/* ================================
   RGV SKIN CARE — MOBILE-FIRST CSS
   Brand: Navy #354E6B · Copper #E2AC9B
   ================================ */

:root, [data-theme="light"] {
  --font-display: 'Boska', 'Georgia', serif;
  --font-body:    'Switzer', 'Helvetica Neue', sans-serif;

  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.6vw,  1.4rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.2vw,  2rem);
  --text-2xl:  clamp(2rem,     1.4rem  + 2vw,    3rem);

  --space-2: 0.5rem;  --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem;  --space-8: 2rem;
  --space-10: 2.5rem; --space-12: 3rem;   --space-16: 4rem;

  /* Surfaces */
  --bg:        #F8F7F5;
  --surface:   #FFFFFF;
  --surface2:  #F3F1EE;
  --border:    #D8D4CC;
  --divider:   #E5E2DA;

  /* Text */
  --text:        #1A1C22;
  --text-muted:  #5C6170;
  --text-faint:  #A8A9AE;
  --text-inv:    #FFFFFF;

  /* Navy — primary brand color */
  --navy:        #354E6B;
  --navy-dark:   #263A52;
  --navy-light:  #E8EEF5;
  --navy-mid:    #C4D0DE;

  /* Copper — accent brand color */
  --copper:      #C8876E;
  --copper-dark: #A86850;
  --copper-light:#F5E8E2;
  --copper-raw:  #E2AC9B;

  /* Urgent */
  --urgent:      #B8283D;
  --urgent-bg:   #FAEAEC;

  --radius:    0.625rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
  --shadow:    0 2px 10px rgba(30,28,24,0.08);
  --shadow-lg: 0 8px 30px rgba(30,28,24,0.12);
  --ease:      180ms cubic-bezier(0.16,1,0.3,1);
}

[data-theme="dark"] {
  --bg:        #12151A;
  --surface:   #191D24;
  --surface2:  #1E2330;
  --border:    #333B4A;
  --divider:   #272E3B;
  --text:      #D4D8E0;
  --text-muted:#7A8294;
  --text-faint:#525A6A;
  --text-inv:  #12151A;
  --navy:      #6EC1E4;
  --navy-dark: #4AAFD8;
  --navy-light:#162030;
  --navy-mid:  #1E3040;
  --copper:    #E2AC9B;
  --copper-dark:#D4917C;
  --copper-light:#3A2820;
  --copper-raw:#E2AC9B;
  --shadow:    0 2px 10px rgba(0,0,0,0.25);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg:#12151A; --surface:#191D24; --surface2:#1E2330; --border:#333B4A;
    --divider:#272E3B; --text:#D4D8E0; --text-muted:#7A8294; --text-faint:#525A6A;
    --text-inv:#12151A; --navy:#6EC1E4; --navy-dark:#4AAFD8; --navy-light:#162030;
    --navy-mid:#1E3040; --copper:#E2AC9B; --copper-dark:#D4917C;
    --copper-light:#3A2820; --copper-raw:#E2AC9B;
  }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100dvh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
h1,h2,h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--navy-mid); color: var(--text); }
a, button { transition: color var(--ease), background var(--ease), opacity var(--ease), box-shadow var(--ease); }

/* ── Layout ── */
.wrap {
  max-width: 680px;
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-8));
}

/* ── Verse Bar ── */
.verse-bar {
  background: var(--navy);
  color: var(--text-inv);
  text-align: center;
  padding: var(--space-3) clamp(var(--space-4), 4vw, var(--space-8));
  font-size: var(--text-xs);
  line-height: 1.6;
}
.verse-text { font-style: italic; opacity: 0.92; }
.verse-ref {
  display: inline-block;
  margin-left: var(--space-2);
  font-weight: 600;
  font-style: normal;
  color: var(--copper-raw);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

/* ── Header ── */
.header {
  position: sticky; top: 0; z-index: 100;
  height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-8));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--divider);
}
.logo { display: flex; align-items: center; color: var(--text); text-decoration: none; }
.header-right { display: flex; align-items: center; gap: var(--space-2); }
.lang-btn {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em;
  padding: 5px 12px; border-radius: var(--radius-full);
  border: 1.5px solid var(--border); color: var(--text-muted);
}
.lang-btn:hover { border-color: var(--navy); color: var(--navy); }
.theme-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full); color: var(--text-muted);
}
.theme-btn:hover { background: var(--surface2); color: var(--text); }

/* ── Hero ── */
.hero {
  max-width: 680px;
  margin-inline: auto;
  padding: clamp(var(--space-10), 8vw, var(--space-16)) clamp(var(--space-5), 5vw, var(--space-8));
  text-align: center;
}
.badge {
  display: inline-block;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--navy-light); color: var(--navy);
  padding: 4px 14px; border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}
[data-theme="dark"] .badge { background: var(--navy-mid); }
.hero h1 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
  color: var(--text);
}
.hero > p {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

/* ── Call Button ── */
.btn-call {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--navy); color: var(--text-inv);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: var(--text-base); font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn-call:hover, .btn-call:active { background: var(--navy-dark); box-shadow: var(--shadow-lg); }
.btn-call-lg { font-size: var(--text-lg); padding: 16px 36px; }

/* ── Trust Row ── */
.trust-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-6);
  font-size: var(--text-sm); color: var(--text-muted); font-weight: 500;
}

/* ── Sections ── */
.section {
  padding-block: clamp(var(--space-10), 7vw, var(--space-16));
  padding-inline: clamp(var(--space-5), 5vw, var(--space-8));
  max-width: 680px;
  margin-inline: auto;
}
.section-alt { background: var(--surface2); max-width: 100%; }
.section-alt > * { max-width: 680px; margin-inline: auto; }
.section-alt.section { padding-inline: clamp(var(--space-5), 5vw, var(--space-8)); }

.label {
  display: block;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--copper);
  margin-bottom: var(--space-3);
}
.section h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
  color: var(--text);
}
.section-alt h2 { margin-inline: auto; }
.section-sub {
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  font-size: var(--text-base);
}
.section-cta {
  border-top: 1px solid var(--divider);
  padding-top: var(--space-8);
  margin-top: var(--space-8);
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-4); text-align: center;
}
.section-cta p { color: var(--text-muted); font-size: var(--text-sm); }
.btn-outline {
  display: inline-flex; align-items: center;
  padding: 12px 24px; border-radius: var(--radius-full);
  border: 2px solid var(--navy); color: var(--navy);
  font-weight: 600; font-size: var(--text-sm); text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn-outline:hover { background: var(--navy); color: var(--text-inv); }

/* ── Card Images ── */
.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: calc(-1 * var(--space-5)) calc(-1 * var(--space-5)) var(--space-4);
  width: calc(100% + 2 * var(--space-5));
  display: block;
  background: var(--surface2);
}

/* ── Treatment Cards ── */
.cards {
  display: flex; flex-direction: column; gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow);
}
.card-urgent {
  border-left: 4px solid var(--copper);
  background: var(--copper-light);
}
[data-theme="dark"] .card-urgent { background: var(--surface); }
.card-top {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}
.card h3 {
  font-size: var(--text-lg); font-weight: 600; color: var(--text);
  font-family: var(--font-display);
}
.card > p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.6; }
.tag {
  display: inline-block; flex-shrink: 0;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--surface2); color: var(--text-faint);
  padding: 3px 10px; border-radius: var(--radius-full);
}
.tag-urgent { background: var(--urgent-bg); color: var(--urgent); }

/* ── Check List ── */
.check-list {
  list-style: none;
  display: flex; flex-direction: column; gap: var(--space-4);
  margin-top: var(--space-2);
}
.check-list li {
  display: flex; align-items: flex-start; gap: var(--space-3);
  font-size: var(--text-base); color: var(--text);
  padding-left: 0;
}
.check-list li::before {
  content: '';
  display: inline-block; flex-shrink: 0;
  width: 20px; height: 20px; margin-top: 2px;
  background: var(--navy);
  border-radius: var(--radius-full);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: var(--space-2); }
.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq summary {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-base); font-weight: 600;
  cursor: pointer; list-style: none; user-select: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-3);
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 1.4rem; font-weight: 300;
  color: var(--navy); flex-shrink: 0;
  line-height: 1;
}
.faq[open] summary::after { content: '−'; }
.faq summary:hover { background: var(--surface2); }
.faq p {
  padding: 0 var(--space-5) var(--space-4);
  font-size: var(--text-sm); color: var(--text-muted); line-height: 1.7;
}

/* ── Pricing Table ── */
.price-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: var(--text-sm);
  min-width: 320px;
}
.price-table thead tr {
  background: var(--navy);
  color: var(--text-inv);
}
.price-table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price-table th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.price-table th:last-child  { border-radius: 0 var(--radius-lg) 0 0; }
.price-table tbody tr {
  border-bottom: 1px solid var(--divider);
  transition: background var(--ease);
}
.price-table tbody tr:last-child { border-bottom: none; }
.price-table tbody tr:nth-child(even) { background: var(--surface2); }
.price-table tbody tr:hover { background: var(--navy-light); }
[data-theme="dark"] .price-table tbody tr:hover { background: var(--navy-mid); }
.price-table td {
  padding: var(--space-3) var(--space-4);
  color: var(--text);
  vertical-align: top;
}
.price-table td:first-child {
  font-weight: 600;
  color: var(--text);
}
.price {
  display: block;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
[data-theme="dark"] .price { color: var(--copper-raw); }
.price-note {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
  font-style: italic;
}
.price-disclaimer {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
  margin-top: var(--space-2);
  padding-left: var(--space-2);
  border-left: 2px solid var(--copper);
}

/* ── CTA Block ── */
.cta-block {
  background: var(--navy);
  color: var(--text-inv);
  text-align: center;
  padding: clamp(var(--space-10), 8vw, var(--space-16))
           clamp(var(--space-5), 5vw, var(--space-8));
}
.cta-block h2 {
  font-size: var(--text-xl);
  color: var(--text-inv);
  margin-bottom: var(--space-3);
}
.cta-block > p {
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-8);
  font-size: var(--text-base);
}
.cta-block .btn-call {
  background: var(--surface);
  color: var(--navy);
  margin-bottom: var(--space-8);
}
.cta-block .btn-call:hover { background: var(--surface2); }
.cta-details {
  display: flex; flex-direction: column; gap: var(--space-2);
  font-size: var(--text-sm); color: rgba(255,255,255,0.7);
}
.cta-details a { color: var(--copper-raw); text-decoration: none; }
.cta-details a:hover { text-decoration: underline; }

/* ── Footer ── */
.footer {
  text-align: center;
  padding: var(--space-6) clamp(var(--space-4), 4vw, var(--space-8));
  font-size: var(--text-xs); color: var(--text-faint);
  border-top: 1px solid var(--divider);
  background: var(--surface);
}

/* ── Desktop: 2-col cards ── */
@media (min-width: 640px) {
  .cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }
  .card-urgent { grid-column: span 2; }
  .trust-row { gap: var(--space-3) var(--space-8); }
}

/* ── iPhone safe areas ── */
@supports (padding: max(0px)) {
  .header { padding-left: max(clamp(var(--space-4), 4vw, var(--space-8)), env(safe-area-inset-left)); padding-right: max(clamp(var(--space-4), 4vw, var(--space-8)), env(safe-area-inset-right)); }
  .hero, .section, .cta-block, .footer {
    padding-left: max(clamp(var(--space-5), 5vw, var(--space-8)), env(safe-area-inset-left));
    padding-right: max(clamp(var(--space-5), 5vw, var(--space-8)), env(safe-area-inset-right));
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
