/* =========================================================================
   Go Dental — Design Tokens
   Colors & Typography variables, plus semantic element styles.
   Import this in any HTML preview/UI kit.
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Caveat:wght@500;600;700&display=swap");

:root {
  /* ──────────── Brand colors ──────────── */

  /* Primary — Go Dental Brand Mustard (the logo / portada / exterior light-box) */
  --gd-yellow-50:  #FBF6E0;
  --gd-yellow-100: #F6E8A7;
  --gd-yellow-200: #ECCF5A;
  --gd-yellow-300: #E0B83A;
  --gd-yellow-400: #D5A91D;
  --gd-yellow-500: #C69D0B;   /* primary anchor */
  --gd-yellow-600: #A88509;
  --gd-yellow-700: #856808;
  --gd-yellow-800: #5E4905;
  --gd-yellow-900: #3A2D03;

  /* Royal Blue — secondary (clinic uniforms / supporting accent) */
  --gd-blue-50:  #EAF1FB;
  --gd-blue-100: #C9DAF3;
  --gd-blue-200: #94B7E7;
  --gd-blue-300: #5E8FD7;
  --gd-blue-400: #356FC8;
  --gd-blue-500: #1E5BC6;   /* primary */
  --gd-blue-600: #1B4FB6;   /* hero / heavy ink */
  --gd-blue-700: #163E92;
  --gd-blue-800: #102E6E;
  --gd-blue-900: #0A1E48;

  /* Accent — Sky / Cyan (the smiling "o" eyes in the logo) */
  --gd-sky-50:  #F0FAFD;
  --gd-sky-100: #DBF2F9;
  --gd-sky-200: #B4E5F2;
  --gd-sky-300: #7ED3E8;
  --gd-sky-400: #5EC8E6;   /* logo accent */
  --gd-sky-500: #3CB6DA;
  --gd-sky-600: #2799BD;
  --gd-sky-700: #1C7796;

  /* Secondary — Champagne / Gold (signage trim, brass interior details) */
  --gd-gold-50:  #FBF7EC;
  --gd-gold-100: #F3E8C6;
  --gd-gold-200: #E8D38C;
  --gd-gold-300: #D7B85A;
  --gd-gold-400: #C8A340;   /* primary gold */
  --gd-gold-500: #B89E2C;
  --gd-gold-600: #8E7820;
  --gd-gold-700: #66571A;

  /* Neutrals — warm-leaning grays */
  --gd-ink:       #0E1726;  /* near-black body ink */
  --gd-ink-soft:  #1F2A3D;
  --gd-slate-700: #344155;
  --gd-slate-500: #5D6B82;
  --gd-slate-400: #8794AB;
  --gd-slate-300: #B6C0D1;
  --gd-slate-200: #D6DCE6;
  --gd-slate-100: #ECEFF4;
  --gd-bone:      #F6F4ED;  /* warm cream surface */
  --gd-paper:     #FBFAF5;  /* lighter than bone */
  --gd-white:     #FFFFFF;

  /* Semantic */
  --gd-success: #2E9F6D;
  --gd-warning: #E89B2C;
  --gd-error:   #D14F4F;
  --gd-info:    var(--gd-sky-500);

  /* ──────────── Semantic surface roles ──────────── */
  --fg-1: var(--gd-ink);          /* primary text */
  --fg-2: var(--gd-slate-700);    /* secondary text */
  --fg-3: var(--gd-slate-500);    /* tertiary / meta */
  --fg-inverse: var(--gd-white);
  --fg-accent: var(--gd-blue-600);
  --fg-on-blue: var(--gd-white);

  --bg-1: var(--gd-white);         /* main surface */
  --bg-2: var(--gd-paper);         /* alt surface */
  --bg-3: var(--gd-bone);          /* warm section */
  --bg-tint-blue: var(--gd-blue-50);
  --bg-tint-sky: var(--gd-sky-50);
  --bg-tint-gold: var(--gd-gold-50);
  --bg-inverse: var(--gd-blue-700);

  --border-1: rgba(14, 23, 38, 0.08);
  --border-2: rgba(14, 23, 38, 0.14);
  --border-strong: var(--gd-blue-600);

  /* ──────────── Type families ──────────── */
  --font-display: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script:  "Caveat", "Brush Script MT", cursive;
  --font-mono:    ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;

  /* ──────────── Type scale ──────────── */
  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-md:   18px;
  --text-lg:   20px;
  --text-xl:   24px;
  --text-2xl:  30px;
  --text-3xl:  38px;
  --text-4xl:  48px;
  --text-5xl:  64px;
  --text-6xl:  84px;

  --leading-tight:   1.08;
  --leading-snug:    1.2;
  --leading-normal:  1.45;
  --leading-relaxed: 1.6;

  --tracking-tight:  -0.02em;
  --tracking-display: -0.03em;
  --tracking-wide:    0.06em;

  /* ──────────── Spacing scale (4pt base) ──────────── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* ──────────── Radius ──────────── */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-pill: 999px;
  --radius-card: 24px;          /* default card radius */

  /* ──────────── Shadows / elevation ──────────── */
  --shadow-xs: 0 1px 2px rgba(14, 23, 38, 0.05);
  --shadow-sm: 0 2px 8px rgba(14, 23, 38, 0.06);
  --shadow-md: 0 8px 24px rgba(14, 23, 38, 0.08);
  --shadow-lg: 0 18px 48px rgba(14, 23, 38, 0.12);
  --shadow-xl: 0 30px 80px rgba(14, 23, 38, 0.18);
  --shadow-blue: 0 18px 40px rgba(30, 91, 198, 0.28);
  --shadow-gold: 0 18px 40px rgba(184, 158, 44, 0.28);
  --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.6);

  /* ──────────── Motion ──────────── */
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out-soft: cubic-bezier(0.32, 0.72, 0, 1);
  --duration-fast: 160ms;
  --duration-base: 260ms;
  --duration-slow: 500ms;
}

/* =========================================================================
   Semantic element styles — drop a class to get a “Go Dental” treatment.
   ========================================================================= */

.gd-body {
  font-family: var(--font-body);
  color: var(--fg-1);
  background: var(--bg-1);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Display headlines — Nunito, generous, slightly tight */
.gd-h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--fg-1);
  text-wrap: balance;
}
.gd-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
  text-wrap: balance;
}
.gd-h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--fg-1);
}
.gd-h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1.3;
  color: var(--fg-1);
}

/* Body */
.gd-lead {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: var(--leading-relaxed);
  color: var(--fg-2);
}
.gd-p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--fg-2);
}
.gd-small {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--fg-3);
}

/* Eyebrow label — uppercase tracked, used above section heads */
.gd-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gd-blue-600);
}

/* Script accent — used sparingly for "sonrisa" flourish */
.gd-script {
  font-family: var(--font-script);
  font-weight: 600;
  color: var(--gd-gold-500);
  font-size: 1.4em;
  line-height: 1;
}

/* Pills / tags */
.gd-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  background: var(--bg-tint-sky);
  color: var(--gd-blue-700);
  border: 1px solid var(--border-1);
}

/* Buttons */
.gd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--duration-fast) var(--ease-smooth),
              background var(--duration-base) var(--ease-smooth),
              box-shadow var(--duration-base) var(--ease-smooth);
}
.gd-btn:active { transform: translateY(1px); }

.gd-btn--primary {
  background: var(--gd-blue-600);
  color: var(--gd-white);
  box-shadow: var(--shadow-blue);
}
.gd-btn--primary:hover { background: var(--gd-blue-700); }

.gd-btn--gold {
  background: var(--gd-gold-400);
  color: var(--gd-ink);
  box-shadow: var(--shadow-gold);
}
.gd-btn--gold:hover { background: var(--gd-gold-500); }

.gd-btn--ghost {
  background: var(--gd-white);
  color: var(--gd-blue-700);
  border-color: var(--border-2);
}
.gd-btn--ghost:hover {
  border-color: var(--gd-blue-500);
  color: var(--gd-blue-700);
}

/* Cards */
.gd-card {
  background: var(--bg-1);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-1);
}
.gd-card--soft {
  background: var(--bg-3);
  border: none;
  box-shadow: none;
}

/* Section spacing */
.gd-section { padding-block: clamp(60px, 9vw, 140px); }
.gd-container { max-width: 1280px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
