/* Shared styles for itsmrg.com (homepage + product pages). */
:root {
  --bg: #0b0b0d;
  --surface: #16161a;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --blue: #1d4ed8;   /* Dominican flag blue (brightened for dark bg) */
  --red: #e11d2e;    /* Dominican flag red */
  --white: #ffffff;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px clamp(16px, 5vw, 64px);
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #222;
}
.logo { font-family: "Anton", sans-serif; font-size: 1.8rem; text-decoration: none; letter-spacing: 2px; }
.nav nav { display: flex; gap: clamp(12px, 3vw, 32px); }
.nav nav a { text-decoration: none; font-weight: 600; font-size: 0.9rem; color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--white); }

/* FLAG BAR */
.flag-bar { display: flex; width: 120px; height: 6px; margin: 0 auto 24px; border-radius: 3px; overflow: hidden; }
.flag-bar span { flex: 1; }
.flag-bar span:nth-child(1) { background: var(--blue); }
.flag-bar span:nth-child(2) { background: var(--white); }
.flag-bar span:nth-child(3) { background: var(--red); }
.flag-bar.small { width: 60px; height: 4px; margin-bottom: 16px; }

/* HERO */
.hero {
  min-height: 88vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 80px 16px;
  background:
    radial-gradient(circle at 20% 30%, rgba(29, 78, 216, 0.35), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(225, 29, 46, 0.35), transparent 45%),
    var(--bg);
}
.eyebrow { text-transform: uppercase; letter-spacing: 4px; font-size: 0.8rem; color: var(--muted); margin-bottom: 16px; }
.hero h1 {
  font-family: "Anton", sans-serif;
  font-size: clamp(3.5rem, 13vw, 10rem);
  line-height: 0.95;
  letter-spacing: 2px;
}
.outline { color: transparent; -webkit-text-stroke: 2px var(--white); }
.tagline { max-width: 520px; margin: 24px auto 32px; color: var(--muted); font-size: 1.1rem; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border: 2px solid var(--white);
  border-radius: 999px;
  text-decoration: none; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem;
  transition: transform .15s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--white); color: var(--bg); }
.btn.primary { background: var(--red); border-color: var(--red); color: var(--white); }
.btn.primary:hover { background: #ff3343; border-color: #ff3343; color: var(--white); }

/* SECTIONS */
.section { max-width: 1100px; margin: 0 auto; padding: 96px 16px; }
.section h2 {
  font-family: "Anton", sans-serif;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 40px;
}
.section h2::after { content: ""; display: block; width: 60px; height: 5px; margin-top: 8px; background: linear-gradient(90deg, var(--blue) 50%, var(--red) 50%); }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; }
.photo-placeholder {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue), #0b0b0d 55%, var(--red));
  display: grid; place-items: center;
}
.photo-placeholder span { font-family: "Anton", sans-serif; font-size: 5rem; opacity: 0.25; }
.about-grid img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.about-text p { font-size: 1.1rem; color: #d4d4d8; margin-bottom: 20px; }

/* MUSIC CARDS */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; transition: transform .2s; }
.card:hover { transform: translateY(-4px); }
.cover { aspect-ratio: 1; display: grid; place-items: center; text-align: center; padding: 16px; }
.cover span { font-family: "Anton", sans-serif; font-size: 1.8rem; line-height: 1.05; letter-spacing: 1px; }
.c1 { background: linear-gradient(135deg, var(--red), #7f0d17); }
.c2 { background: linear-gradient(135deg, #f59e0b, var(--red)); }
.c3 { background: linear-gradient(135deg, var(--blue), #0e7490); }
.c4 { background: linear-gradient(135deg, #3f3f46, #0b0b0d); border-bottom: 1px solid #27272a; }
.card-body { padding: 20px; }
.kind { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); }
.card h3 { margin: 6px 0 8px; font-size: 1.2rem; }
.card h3 small { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.card-body > p:last-child { color: var(--muted); font-size: 0.95rem; }

/* LISTEN */
.embed iframe { border-radius: var(--radius); display: block; }
.platforms, .socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.platforms a, .socials a {
  padding: 10px 20px; border: 1px solid #3f3f46; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: border-color .2s, background .2s;
}
.platforms a:hover, .socials a:hover { border-color: var(--white); background: #1f1f23; }

/* CONTACT */
.contact { text-align: center; }
.contact h2::after { margin-left: auto; margin-right: auto; }
.contact > p { color: var(--muted); margin-bottom: 20px; }
.contact .socials { justify-content: center; margin-top: 32px; }

/* FOOTER */
footer { text-align: center; padding: 48px 16px; border-top: 1px solid #222; color: var(--muted); font-size: 0.85rem; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 12px; }
.legal-links a { color: var(--muted); text-decoration: none; }
.legal-links a:hover { color: var(--white); text-decoration: underline; }
.form .fine { font-size: .78rem; color: var(--muted); text-align: center; }
.form .fine a, .form .check a { color: var(--text); }
.shop-legal { color: var(--muted); font-size: .85rem; margin-top: 8px; }
.shop-legal a { color: var(--text); }
.embed-gate { border-radius: var(--radius); background: var(--surface); min-height: 352px; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px; color: var(--muted); }
.embed-gate .btn { cursor: pointer; font-family: inherit; }
.embed-gate .small { font-size: .8rem; }

/* MOBILE */
@media (max-width: 700px) {
  .nav nav a { font-size: 0.8rem; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 72px 16px; }
}

/* FORMS */
.join { text-align: center; }
.join h2::after { margin-left: auto; margin-right: auto; }
.join > p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }
.form { display: grid; gap: 14px; max-width: 620px; margin: 0 auto; text-align: left; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 1rem; text-transform: none; letter-spacing: 0;
  color: var(--text); background: var(--surface); border: 1px solid #333; border-radius: 10px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.form textarea { min-height: 130px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.82rem; line-height: 1.45; }
.form .check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.form .btn { justify-self: center; cursor: pointer; font-family: inherit; }
.form .hp { position: absolute; left: -9999px; }
.form-status { text-align: center; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #4ade80; }
.form-status.err { color: #f87171; }
@media (max-width: 700px) { .form .row { grid-template-columns: 1fr; } }

/* SHOP */
.shop-group { margin-bottom: 56px; }
.shop-group h3 { font-family: "Anton", sans-serif; font-size: 1.6rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.shop-group > p { color: var(--muted); margin-bottom: 20px; }
.product { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product .pimg { aspect-ratio: 1; background: linear-gradient(135deg, var(--blue), #0b0b0d 55%, var(--red)); display: grid; place-items: center; overflow: hidden; }
.product .pimg img { width: 100%; height: 100%; object-fit: cover; }
.product .pimg span { font-family: "Anton", sans-serif; font-size: 1.6rem; padding: 16px; text-align: center; }
.product .pbody { padding: 18px; display: grid; gap: 8px; flex: 1; align-content: start; }
.product h4 { font-size: 1.1rem; }
.product .desc { color: var(--muted); font-size: .92rem; }
.product .meta { color: var(--muted); font-size: .85rem; }
.product .price { font-weight: 800; font-size: 1.15rem; }
.product .buy { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.product .buy select { padding: 10px; border-radius: 10px; background: var(--bg); color: var(--text); border: 1px solid #333; font: inherit; }
.product .btn { cursor: pointer; font-family: inherit; padding: 12px 20px; }
.product .btn[disabled] { opacity: .5; cursor: default; transform: none; }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 3px 9px; border-radius: 999px; background: var(--red); color: #fff; }
.cara { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; background: radial-gradient(circle at 0% 0%, rgba(29,78,216,.35), transparent 50%), radial-gradient(circle at 100% 100%, rgba(225,29,46,.35), transparent 50%), var(--surface); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); }
.cara h3 { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1; margin-bottom: 12px; }
.cara .lead { font-size: 1.15rem; font-style: italic; margin-bottom: 14px; }
.cara ul { color: #d4d4d8; margin: 14px 0 0 18px; display: grid; gap: 6px; }
.slots-day { margin-bottom: 14px; }
.slots-day b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 8px; }
.slot-list { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { padding: 9px 14px; border-radius: 999px; border: 1px solid #3f3f46; background: var(--bg); color: var(--text); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.slot:hover { border-color: var(--white); }
.slot.on { background: var(--white); color: var(--bg); border-color: var(--white); }
.shop-msg { color: #f87171; font-weight: 600; min-height: 1.4em; font-size: .9rem; }
@media (max-width: 700px) { .cara { grid-template-columns: 1fr; } .nav nav { overflow-x: auto; max-width: 70vw; } }
.product label.meta { display: flex; gap: 8px; align-items: center; }
.product label.meta select { padding: 8px; border-radius: 10px; background: var(--bg); color: var(--text); border: 1px solid #333; font: inherit; }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.7); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal-box { position: relative; background: var(--surface); border: 1px solid #27272a; border-radius: 16px; padding: clamp(20px, 4vw, 32px); width: 100%; max-width: 560px; }
.modal-x { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 1.8rem; cursor: pointer; line-height: 1; }
.modal-x:hover { color: var(--text); }

/* Product names link to their own page */
.plink { color: inherit; text-decoration: none; }
.plink:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Whole product card opens its page (pickers and buttons still work as usual) */
.product[data-url] { cursor: pointer; transition: transform .2s, box-shadow .2s; }
.product[data-url]:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px #3f3f46, 0 12px 30px rgba(0,0,0,.35); }
.product[data-url]:hover .plink { text-decoration: underline; text-underline-offset: 3px; }
.product[data-url] select, .product[data-url] button { cursor: pointer; }
a.pimg { display: grid; color: inherit; text-decoration: none; }
