/* =====================================================================
   Dental Destination — main stylesheet
   Fonts, colour tokens, typography, buttons and utilities.

   Look & feel: deep emerald + honey gold on warm ivory. Inter is used for
   both headings and text. Fonts are self-hosted from /assets/fonts (no Google Fonts call).

   To re-colour the whole site, change the variables in :root below.

   Header / footer / appointment form  -> sec-style.css
   Treatment (service) pages           -> services.css
   ===================================================================== */

/* ===================== FONTS (self-hosted) ===================== */
/* Inter (variable font: one file covers weights 100-900). SIL Open Font License. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext: only downloaded when a page uses one of these (e.g. the rupee sign) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===================== CSS VARIABLES ===================== */
:root {
  /* greens */
  --emerald: #0F3D30;
  --emerald-deep: #0A2A21;
  --emerald-soft: #1B5A47;
  --ink: #0B1512;

  /* gold */
  --gold: #D6AE45;
  --gold-light: #EBD08E;
  --gold-dark: #8A6A12;

  /* neutrals */
  --ivory: #F8F7F2;
  --stone: #EDEEE6;
  --mint: #EDF3EE;
  --white: #ffffff;
  --line: rgba(15, 61, 48, 0.14);

  --text-dark: #1E2A25;
  --text-muted: #5C6963;

  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.35s cubic-bezier(.4, 0, .2, 1);
}

/* ===================== BASE ===================== */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  background: var(--ivory);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
}

a {
  color: var(--emerald-soft);
}

a:hover {
  color: var(--gold-dark);
}

::selection {
  background: var(--gold-light);
  color: var(--emerald-deep);
}

/* ===================== TYPOGRAPHY ===================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--emerald);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Inter has no italic file loaded: keep emphasis upright, coloured instead */
h1 em, h2 em, h3 em { font-style: normal; }

/* small caps label above headings */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.9rem;
}

.section-eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: currentColor;
}

.section-head .section-eyebrow::after {
  content: '';
  width: 34px;
  height: 1px;
  background: currentColor;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--emerald);
}

/* Kept for markup compatibility: no underline bar any more, the eyebrow does the work */
.section-heading-underline {
  display: inline;
}

/* ===================== BUTTONS ===================== */
.btn-gold,
.btn-outline-navy,
.btn-outline-light-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  padding: 16px 30px;
  line-height: 1.2;
  transition: var(--transition);
}

/* solid gold (main call to action) */
.btn-gold {
  background: var(--gold);
  color: var(--emerald-deep);
  border: 1px solid var(--gold);
  cursor: pointer;
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--emerald-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(214, 174, 69, 0.32);
}

/* hairline button for light backgrounds */
.btn-outline-navy {
  background: transparent;
  color: var(--emerald);
  border: 1px solid var(--emerald);
}

.btn-outline-navy:hover {
  background: var(--emerald);
  color: var(--ivory);
  transform: translateY(-2px);
}

/* hairline button for dark backgrounds */
.btn-outline-light-pill {
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(248, 247, 242, 0.5);
}

.btn-outline-light-pill:hover {
  background: rgba(248, 247, 242, 0.1);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

/* ===================== UTILITIES ===================== */
.py-section {
  padding: 6.5rem 0;
}

.section-divider {
  height: 1px;
  background: var(--line);
}

.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Content stays visible if JavaScript is unavailable */
.no-js .fade-up {
  opacity: 1;
  transform: none;
}

/* keep Bootstrap's wide gutters from pushing past the viewport on phones */
@media (max-width: 575.98px) {
  .row.g-5 {
    --bs-gutter-x: 1.5rem;
  }
}

@media (max-width: 768px) {
  .py-section {
    padding: 4.25rem 0;
  }

  .section-heading {
    font-size: 1.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
