@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Mukta:wght@400;500;600;700&display=swap');

/* =====================================================================
   theme.css  —  SINGLE SOURCE OF TRUTH for AstroRawat (white-label).

   TO RE-BRAND FOR A NEW ASTROLOGER:
     1. Change the COLOUR tokens in :root below (that's the whole look).
     2. (Optional) change the two --font-* families.
     3. Change site name / numbers / links in the admin Settings (DB),
        NOT here. Colours live here, content lives in settings.
   Nothing else in the codebase hardcodes brand colours — every page
   consumes the variables and component classes defined in this file.
   ===================================================================== */

:root{
  /* ---- Brand palette (edit these to re-brand) ---- */
  --c-cream:       #FAF4E6;   /* page background            */
  --c-panel:       #FFFDF7;   /* cards / raised surfaces     */
  --c-sand:        #F1E7D2;   /* tints, chips, soft fills    */
  --c-line:        #E3D8C0;   /* warm hairline borders       */
  --c-carbon:      #211A17;   /* headings / strongest ink    */
  --c-ink:         #3A302A;   /* body text                   */
  --c-dim:         #6E6154;   /* muted / secondary text      */
  --c-maroon:      #7B1E27;   /* heading accent + links      */
  --c-maroon-dark: #5E141C;   /* maroon hover                */
  --c-red:         #C0272D;   /* primary CTA / action        */
  --c-red-dark:    #9E1F24;   /* red hover                   */
  --c-black:       #17110E;   /* footer / deep contrast      */
  --c-gold:        #C9922E;   /* optional hairline accent    */
  --c-wa:          #25D366;   /* WhatsApp (convention)       */

  /* ---- Semantic aliases (use these in components) ---- */
  --bg:            var(--c-cream);
  --surface:       var(--c-panel);
  --surface-alt:   var(--c-sand);
  --border:        var(--c-line);
  --heading:       var(--c-carbon);
  --accent:        var(--c-maroon);
  --accent-dark:   var(--c-maroon-dark);
  --text:          var(--c-ink);
  --text-dim:      var(--c-dim);
  --action:        var(--c-red);
  --action-dark:   var(--c-red-dark);
  --footer-bg:     var(--c-black);
  --footer-text:   #E8DFCF;
  --footer-dim:    #A99C88;
  --footer-line:   #2E241D;

  /* ---- Typography ---- */
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Mukta', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --fs-hero: clamp(2rem, 5.2vw, 3.15rem);
  --fs-h1:   clamp(1.7rem, 4vw, 2.4rem);
  --fs-h2:   clamp(1.35rem, 3vw, 1.9rem);
  --fs-h3:   1.25rem;
  --fs-lead: 1.15rem;
  --fs-base: 1.0625rem;   /* 17px */
  --fs-sm:   0.9rem;
  --fs-xs:   0.78rem;

  /* ---- Spacing ---- */
  --gap-xs: .5rem;
  --gap-sm: .75rem;
  --gap-md: 1rem;
  --gap-lg: 1.5rem;
  --gap-xl: 2rem;
  --gap-2xl: 3rem;
  --sec-y: clamp(2.5rem, 6vw, 4.25rem);   /* vertical rhythm of sections */

  /* ---- Radius ---- */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* ---- Shadows (subtle, warm) ---- */
  --shadow-sm: 0 1px 3px rgba(33,26,23,.06);
  --shadow-md: 0 6px 20px rgba(33,26,23,.08);
  --shadow-lg: 0 14px 40px rgba(94,20,28,.12);

  /* ---- Layout ---- */
  --container: 1120px;
  --container-narrow: 920px;

  /* ---- Motion ---- */
  --t-fast: .15s ease;
  --t:      .25s ease;

  /* ---- Z-index ---- */
  --z-nav: 60;
  --z-float: 90;
  --z-modal: 300;
}

/* =====================================================================
   Base / reset
   ===================================================================== */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  font-size:var(--fs-base);
  line-height:1.65;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img,svg,video{ max-width:100%; height:auto; display:block; }
h1,h2,h3,h4,h5{
  font-family:var(--font-head);
  color:var(--heading);
  font-weight:600;
  line-height:1.18;
  margin:0 0 .5em;
}
h1{ font-size:var(--fs-h1); }
h2{ font-size:var(--fs-h2); }
h3{ font-size:var(--fs-h3); }
p{ margin:0 0 1em; }
a{ color:var(--accent); text-decoration:none; transition:color var(--t-fast); }
a:hover{ color:var(--accent-dark); }
strong,b{ font-weight:700; }
hr{ border:0; border-top:1px solid var(--border); margin:var(--gap-xl) 0; }
ul,ol{ margin:0 0 1em; padding-left:1.25em; }

/* =====================================================================
   Layout helpers
   ===================================================================== */
.container{ width:100%; max-width:var(--container); margin-inline:auto; padding-inline:18px; }
.container--narrow{ max-width:var(--container-narrow); }
.section{ padding-block:var(--sec-y); }
.section--tint{ background:var(--surface-alt); }
.section--panel{ background:var(--surface); }

.section-head{ text-align:center; max-width:640px; margin:0 auto var(--gap-xl); }
.section-head h2{ margin-bottom:.35rem; }
.section-head .sub{ color:var(--text-dim); font-size:var(--fs-lead); margin:0; }

/* Eyebrow / small label above a heading */
.eyebrow{
  display:inline-block; font-family:var(--font-body); font-weight:700;
  font-size:var(--fs-xs); letter-spacing:.14em; text-transform:uppercase;
  color:var(--accent);
}

/* Text helpers */
.lead{ font-size:var(--fs-lead); color:var(--text-dim); }
.muted{ color:var(--text-dim); }
.accent{ color:var(--accent); }
.on-carbon{ color:var(--heading); }
.text-center{ text-align:center; }

/* =====================================================================
   Buttons
   ===================================================================== */
.btn{
  --_bg:var(--action); --_fg:#fff; --_bd:var(--action);
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  font-family:var(--font-body); font-weight:700; font-size:1.0625rem;
  line-height:1; text-align:center; cursor:pointer;
  padding:.85em 1.6em; border-radius:var(--radius);
  color:var(--_fg); background:var(--_bg); border:1.5px solid var(--_bd);
  transition:background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.btn:hover{ background:var(--action-dark); border-color:var(--action-dark); color:#fff; transform:translateY(-1px); }
.btn:active{ transform:translateY(0); }

.btn--maroon{ --_bg:var(--accent); --_bd:var(--accent); }
.btn--maroon:hover{ background:var(--accent-dark); border-color:var(--accent-dark); }

.btn--outline{ --_bg:transparent; --_fg:var(--accent); --_bd:var(--accent); }
.btn--outline:hover{ background:var(--accent); color:#fff; }

.btn--ghost{ --_bg:transparent; --_fg:var(--heading); --_bd:var(--border); }
.btn--ghost:hover{ background:var(--surface-alt); color:var(--heading); border-color:var(--border); }

.btn--wa{ --_bg:var(--c-wa); --_bd:var(--c-wa); --_fg:#0b3d24; }
.btn--wa:hover{ background:#1eb257; border-color:#1eb257; color:#0b3d24; }

.btn--sm{ padding:.6em 1.1em; font-size:var(--fs-sm); }
.btn--lg{ padding:1em 2em; font-size:1.15rem; }
.btn--block{ display:flex; width:100%; }

/* =====================================================================
   Cards
   ===================================================================== */
.card{
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:var(--gap-lg);
  box-shadow:var(--shadow-sm);
}
.card--hover{ transition:transform var(--t), box-shadow var(--t), border-color var(--t); }
.card--hover:hover{ transform:translateY(-3px); box-shadow:var(--shadow-md); border-color:var(--c-sand); }
.card--flat{ box-shadow:none; }
.card__title{ font-family:var(--font-head); color:var(--heading); font-size:var(--fs-h3); margin:0 0 .35rem; }
.card__sub{ color:var(--text-dim); font-size:var(--fs-sm); margin:0; }

/* Icon tile used inside tool/feature cards */
.tile-ico{
  width:56px; height:56px; flex:none; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background:var(--surface-alt); color:var(--accent);
}
.tile-ico svg{ width:30px; height:30px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

/* =====================================================================
   CTA band (dark) — reusable across pages
   ===================================================================== */
.cta-band{ background:var(--c-black); color:#fff; border-radius:var(--radius-lg); padding:clamp(1.8rem,5vw,2.8rem); text-align:center; }
.cta-band h2{ color:#fff; }
.cta-band p{ color:var(--footer-dim); max-width:36em; margin:.4rem auto 1.4rem; }

/* =====================================================================
   Chips / badges / pills
   ===================================================================== */
.chip{
  display:inline-flex; align-items:center; gap:.4em;
  padding:.5em .9em; border-radius:var(--radius-pill);
  background:var(--surface); border:1px solid var(--border);
  color:var(--text-dim); font-size:var(--fs-sm); font-weight:600;
  transition:border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.chip:hover{ border-color:var(--accent); color:var(--accent); }
.chip.is-active{ background:var(--accent); border-color:var(--accent); color:#fff; }

.badge{
  display:inline-block; padding:.25em .6em; border-radius:6px;
  font-size:var(--fs-xs); font-weight:700; letter-spacing:.02em;
  background:var(--surface-alt); color:var(--accent);
}
.badge--red{ background:#FBE7E8; color:var(--action-dark); }
.badge--soon{ background:#FBE9CE; color:#8A5A00; }

/* =====================================================================
   Forms
   ===================================================================== */
label{ display:block; font-size:var(--fs-sm); color:var(--text-dim); font-weight:700; margin:0 0 .35rem; }
input,select,textarea{
  width:100%; font-family:inherit; font-size:1rem; color:var(--text);
  padding:.7em .85em; background:var(--surface);
  border:1px solid var(--border); border-radius:var(--radius);
  transition:border-color var(--t-fast), box-shadow var(--t-fast);
}
input:focus,select:focus,textarea:focus{
  outline:none; border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(123,30,39,.12);
}
textarea{ resize:vertical; min-height:120px; }
.field{ margin-bottom:var(--gap-md); }
.field-row{ display:flex; gap:var(--gap-md); flex-wrap:wrap; }
.field-row > .field{ flex:1; min-width:150px; }

/* Alerts / messages */
.msg{ padding:.8em 1em; border-radius:var(--radius); font-weight:600; margin:var(--gap-md) 0; }
.msg--ok{ background:#E7F3E8; color:#1f7a35; }
.msg--err{ background:#FBE7E8; color:var(--action-dark); }
.msg--warn{ background:#FBE9CE; color:#8A5A00; }

/* =====================================================================
   Grid helpers (auto-fit, responsive by default)
   ===================================================================== */
.grid{ display:grid; gap:var(--gap-lg); }
.grid--tools{ grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); }
.grid--3{ grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4{ grid-template-columns:repeat(auto-fit, minmax(190px, 1fr)); }
.grid--rashi{ grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:var(--gap-sm); }

/* =====================================================================
   Divider with centered ornament (traditional touch)
   ===================================================================== */
.rule-orn{ display:flex; align-items:center; gap:var(--gap-md); color:var(--border); margin:var(--gap-xl) 0; }
.rule-orn::before,.rule-orn::after{ content:""; flex:1; height:1px; background:var(--border); }
.rule-orn span{ color:var(--accent); font-size:1.1rem; }

/* =====================================================================
   Footer (dark surface)
   ===================================================================== */
.site-footer{ background:var(--footer-bg); color:var(--footer-text); margin-top:var(--gap-2xl); }
.site-footer a{ color:var(--footer-dim); }
.site-footer a:hover{ color:#fff; }
.site-footer h4{ color:#fff; font-family:var(--font-body); font-size:var(--fs-sm); letter-spacing:.05em; text-transform:uppercase; margin:0 0 .8rem; }
.footer-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(180px,1fr)); gap:var(--gap-xl); padding-block:var(--gap-2xl); }
.footer-grid a{ display:block; padding:.3rem 0; font-size:var(--fs-sm); }
.footer-bottom{ border-top:1px solid var(--footer-line); text-align:center; padding:1rem 0; color:var(--footer-dim); font-size:var(--fs-xs); }

/* =====================================================================
   Floating WhatsApp (settings-driven; markup added in shared shell)
   ===================================================================== */
.wa-float{ position:fixed; right:18px; bottom:18px; z-index:var(--z-float); display:flex; flex-direction:column; gap:10px; align-items:flex-end; }
.wa-float__btn{
  display:inline-flex; align-items:center; gap:.55em;
  background:var(--c-wa); color:#0b3d24; font-weight:700; font-size:var(--fs-sm);
  padding:.7em 1em; border-radius:var(--radius-pill);
  box-shadow:var(--shadow-md); transition:transform var(--t-fast);
}
.wa-float__btn:hover{ transform:translateY(-2px); color:#0b3d24; }
.wa-float__btn svg{ width:20px; height:20px; }

/* =====================================================================
   Utilities
   ===================================================================== */
.mt-0{ margin-top:0; } .mb-0{ margin-bottom:0; }
.mt-sm{ margin-top:var(--gap-sm); } .mt-md{ margin-top:var(--gap-md); } .mt-lg{ margin-top:var(--gap-lg); }
.mb-sm{ margin-bottom:var(--gap-sm); } .mb-md{ margin-bottom:var(--gap-md); } .mb-lg{ margin-bottom:var(--gap-lg); }
.flex{ display:flex; } .flex-wrap{ flex-wrap:wrap; } .items-center{ align-items:center; }
.gap-sm{ gap:var(--gap-sm); } .gap-md{ gap:var(--gap-md); } .gap-lg{ gap:var(--gap-lg); }
.hidden{ display:none !important; }
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* =====================================================================
   Accessibility / motion
   ===================================================================== */
:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}

/* =====================================================================
   Small-screen tweaks
   ===================================================================== */
@media (max-width:600px){
  :root{ --fs-base:1rem; }
  .card{ padding:var(--gap-md); }
  .wa-float{ right:12px; bottom:12px; }
}
