/* =============================================================
   Oxford Dental Centre — site styles
   =============================================================
   Lifted verbatim out of the <style> block that used to sit in
   index.php, so that the homepage and the service pages share one
   copy instead of six. Nothing below was restyled in the move;
   the service-page rules are appended at the end.
   ============================================================= */
  :root {
    --primary:    #1e9e9e;   /* deep teal */
    --primary-2:  #0a3848;
    --accent:     #c69963;   /* warm gold */
    --accent-2:   #b08654;
    --cream:      #f7f4ee;
    --cream-2:    #efeae0;
    --ink:        #1f2937;
    --ink-soft:   #4b5563;
    --line:       #e5e0d3;
    --white:      #ffffff;
    --shadow-sm:  0 1px 2px rgba(13,74,92,.06);
    --shadow:     0 12px 40px rgba(13,74,92,.08);
    --radius:     14px;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; letter-spacing: -0.01em; color: var(--primary); }
  h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.05; }
  h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); line-height: 1.15; margin-bottom: .5rem; }
  h3 { font-size: 1.15rem; font-weight: 600; }
  p  { color: var(--ink-soft); }
  a  { color: var(--primary); text-decoration: none; }
  a:hover { color: var(--accent-2); }
  .container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
  /* ----- Top bar ----- */
  .topbar {
    background: var(--primary);
    color: rgba(255,255,255,.85);
    font-size: .85rem;
    padding: 8px 0;
  }
  .topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
  .topbar a { color: rgba(255,255,255,.95); }
  .topbar a:hover { color: var(--accent); }
  /* ----- Nav ----- */
  nav.main {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
  }
  nav.main .container { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
  .logo { font-family: 'Fraunces', serif; font-size: 1.35rem; font-weight: 600; color: var(--primary); letter-spacing: -.01em; }
  .logo span { color: var(--accent); }
  .nav-links { display: flex; gap: 28px; align-items: center; }
  .nav-links a { color: var(--ink); font-size: .95rem; font-weight: 500; }
  .nav-links a:hover { color: var(--accent-2); }
  .btn {
    display: inline-block; padding: 12px 22px; border-radius: 999px;
    font-weight: 600; font-size: .95rem; transition: all .2s ease;
    border: 1.5px solid transparent; cursor: pointer;
  }
  .btn-primary { background: var(--primary); color: var(--white); }
  .btn-primary:hover { background: var(--primary-2); color: var(--white); transform: translateY(-1px); }
  .btn-ghost { border-color: var(--primary); color: var(--primary); background: transparent; }
  .btn-ghost:hover { background: var(--primary); color: var(--white); }
  .btn-accent { background: var(--accent); color: var(--white); }
  .btn-accent:hover { background: var(--accent-2); color: var(--white); transform: translateY(-1px); }
  @media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }
  /* ----- Hero ----- */
  .hero {
    background:
      radial-gradient(1200px 600px at 90% -10%, rgba(198,153,99,.18), transparent 60%),
      radial-gradient(900px 500px at -10% 110%, rgba(13,74,92,.08), transparent 60%),
      var(--cream);
    padding: clamp(60px, 10vw, 110px) 0 clamp(80px, 12vw, 130px);
  }
  .hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
  @media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
  .eyebrow {
    display: inline-block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent-2); font-weight: 600; margin-bottom: 18px;
  }
  .hero h1 { color: var(--primary); margin-bottom: 22px; }
  .hero h1 em { font-style: italic; color: var(--accent-2); font-weight: 400; }
  .hero p.lede { font-size: 1.15rem; max-width: 540px; margin-bottom: 32px; }
  .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
  .hero-trust { margin-top: 36px; display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
  .trust-item { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: .9rem; }
  .trust-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
  /* The hero photo is a real <img> rather than a background image: it is the
     largest thing on the screen, and the browser's preload scanner cannot see
     a CSS background, so as a background it only began downloading after the
     stylesheet had been fetched and parsed.
     The box is NOT clipped with overflow:hidden — .hero-card deliberately
     hangs outside it — so the photo carries its own rounding, and the three
     layers are stacked explicitly. Without the z-index values the ::after
     tint would paint over .hero-card, because a pseudo-element generated
     after the content sits last in paint order. */
  .hero-visual {
    aspect-ratio: 4/5; border-radius: 18px;
    box-shadow: var(--shadow);
    position: relative;
  }
  .hero-photo {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    border-radius: inherit;
  }
  .hero-visual::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(13,74,92,.85), rgba(13,74,92,.4));
  }
  .hero-card {
    position: absolute; bottom: -32px; left: -32px; right: 32px; z-index: 2;
    background: var(--white); padding: 24px 28px; border-radius: 14px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent);
  }
  .hero-card .small { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; }
  .hero-card .big { font-family: 'Fraunces', serif; font-size: 1.6rem; color: var(--primary); margin-top: 4px; }
  .hero-card .day { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
  .hero-card .sub { font-size: .9rem; color: var(--ink-soft); margin-top: 4px; }
  @media (max-width: 900px) { .hero-card { left: 16px; right: 16px; bottom: -24px; } }
  /* ----- Sections ----- */
  section { padding: clamp(70px, 9vw, 110px) 0; }
  .section-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
  .section-head .eyebrow { color: var(--accent-2); }
  .section-head p { font-size: 1.05rem; margin-top: 12px; }
  /* ----- About ----- */
  .about { background: var(--white); }
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
  @media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
  .about p + p { margin-top: 16px; }
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
  .stat { text-align: center; padding: 24px 12px; background: var(--cream); border-radius: var(--radius); }
  .stat .num { font-family: 'Fraunces', serif; font-size: 2.2rem; color: var(--primary); font-weight: 600; line-height: 1; }
  .stat .label { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; }
  /* Now an <img> rather than a background image. width + object-fit reproduce
     exactly what `background: center/cover` did, so the crop is unchanged. */
  .about-image {
    aspect-ratio: 4/5; border-radius: 18px;
    display: block; width: 100%; height: auto;
    object-fit: cover; object-position: center;
    box-shadow: var(--shadow);
  }
  /* ----- Services ----- */
  .services { background: var(--cream); }
  .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  @media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }
  .service-card {
    background: var(--white); border-radius: var(--radius); padding: 32px 28px;
    border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease;
  }
  .service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
  .service-card .icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--cream-2); color: var(--primary);
    display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
    font-size: 1.4rem;
  }
  .service-card h3 { color: var(--primary); margin-bottom: 8px; }
  .service-card p { font-size: .95rem; }
  /* ----- Insurance strip ----- */
  .insurance { background: var(--white); padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .insurance .container { text-align: center; }
  .insurance .label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px; }
  .insurers { display: flex; gap: 28px 56px; justify-content: center; align-items: center; flex-wrap: wrap; }
  .insurers img {
    height: 48px; width: auto; max-width: 160px; object-fit: contain;
    opacity: .75; transition: opacity .2s ease, transform .2s ease;
    filter: grayscale(20%);
  }
  .insurers img:hover { opacity: 1; filter: grayscale(0%); transform: translateY(-2px); }
  /* Fallback styling for partners without a logo file yet */
  .insurers span { font-family: 'Fraunces', serif; font-size: 1.1rem; color: var(--primary); opacity: .7; letter-spacing: .02em; }
  /* ----- Contact ----- */
  .contact { background: var(--primary); color: var(--white); }
  .contact h2, .contact h3 { color: var(--white); }
  .contact p { color: rgba(255,255,255,.78); }
  .contact .eyebrow { color: var(--accent); }
  .contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; }
  @media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
  .contact-info-block { margin-bottom: 28px; }
  .contact-info-block .small { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
  .contact-info-block .big { font-family: 'Fraunces', serif; font-size: 1.25rem; color: var(--white); }
  .contact-info-block .big a { color: var(--white); border-bottom: 1px solid rgba(255,255,255,.3); }
  .contact-info-block .big a:hover { color: var(--accent); border-color: var(--accent); }
  .hours-list { list-style: none; }
  .hours-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .95rem; color: rgba(255,255,255,.85); }
  .hours-list li span:last-child { color: var(--white); font-weight: 500; }
  .hours-note { font-size: .85rem; color: rgba(255,255,255,.6); margin-top: 10px; }
  form.book {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius);
    padding: 36px;
    backdrop-filter: blur(8px);
  }
  form.book label { display: block; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; font-weight: 600; }
  form.book input, form.book select, form.book textarea {
    width: 100%; padding: 12px 14px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.06); color: var(--white);
    font-family: inherit; font-size: .95rem; margin-bottom: 18px;
    transition: border .2s, background .2s;
  }
  form.book input:focus, form.book select:focus, form.book textarea:focus {
    outline: none; border-color: var(--accent); background: rgba(255,255,255,.1);
  }
  form.book input::placeholder, form.book textarea::placeholder { color: rgba(255,255,255,.45); }
  form.book select option { color: var(--ink); }
  form.book textarea { resize: vertical; min-height: 100px; }
  form.book .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  @media (max-width: 600px) { form.book .row { grid-template-columns: 1fr; } }
  /* Make native date pickers play nicely on the dark teal form */
  form.book input[type="date"] { color-scheme: dark; }
  form.book input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(4) hue-rotate(-10deg);
    cursor: pointer;
    opacity: .9;
  }
  .form-note {
    font-size: .8rem;
    color: rgba(255,255,255,.55);
    margin-top: -10px;
    margin-bottom: 18px;
    line-height: 1.5;
  }
  /* honeypot — hidden from humans */
  form.book .hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
  .flash { padding: 14px 18px; border-radius: 10px; margin-bottom: 22px; font-size: .95rem; }
  .flash.ok  { background: rgba(166,212,140,.18); border: 1px solid rgba(166,212,140,.4); color: #d6f1c4; }
  .flash.err { background: rgba(255,140,140,.16); border: 1px solid rgba(255,140,140,.4); color: #ffd1d1; }
  /* ----- Footer ----- */
  footer { background: var(--primary-2); color: rgba(255,255,255,.6); padding: 30px 0; font-size: .9rem; text-align: center; }
  footer a { color: rgba(255,255,255,.85); }
  footer p { color: inherit; }
  .footer-nap { margin-bottom: 6px; }
  .footer-nap strong { color: rgba(255,255,255,.9); font-weight: 600; }
  /* Social icons. Marked up as a list, because that is what it is; the
     bullets are removed rather than the semantics. The tap target is
     44px while the glyph inside is 20px, which is why the icon is
     centred in a larger circle rather than simply padded — 44px is the
     size a thumb hits reliably on a phone. */
  .social {
    list-style: none;
    display: flex; justify-content: center; gap: 6px;
    margin: 14px 0 12px;
  }
  .social a {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    color: rgba(255,255,255,.7);
    transition: color .2s, background-color .2s;
  }
  .social a:hover,
  .social a:focus-visible {
    color: var(--white);
    background: rgba(255,255,255,.1);
  }
  /* Keyboard users need to see where they are. Offset so the ring traces
     the circle instead of cutting through it. */
  .social a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  /* Floating WhatsApp */
  .wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 100;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: white;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(37,211,102,.4);
    font-size: 1.6rem; transition: transform .2s;
  }
  .wa-float:hover { transform: scale(1.08); color: white; }

  /* ----- Service pages -----
     Added for the individual service pages. These reuse the existing
     type scale, colours and radius; no variable or rule above was
     changed to accommodate them. */
  .breadcrumb { background: var(--cream); border-bottom: 1px solid var(--line); padding: 14px 0; font-size: .88rem; }
  .breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .breadcrumb li { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); }
  .breadcrumb li + li::before { content: '›'; color: var(--accent-2); }
  .breadcrumb a { color: var(--primary); }
  .breadcrumb a:hover { color: var(--accent-2); }
  .breadcrumb [aria-current='page'] { color: var(--ink-soft); }
  .service-page { padding: clamp(50px, 7vw, 80px) 0 clamp(60px, 8vw, 90px); }
  .service-page .container { max-width: 760px; }
  .service-page h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 20px; }
  .service-page .lede { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 28px; }
  .service-page p + p { margin-top: 16px; }
  .service-page h2 { font-size: 1.4rem; margin-top: 40px; margin-bottom: 14px; }
  .covers { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 6px; }
  @media (max-width: 600px) { .covers { grid-template-columns: 1fr; } }
  .covers li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: .96rem; }
  .covers li::before { content: '✦'; color: var(--accent); flex-shrink: 0; }
  .service-cta { margin-top: 44px; padding: 28px 30px; background: var(--cream); border-radius: var(--radius); border-left: 4px solid var(--accent); }
  .service-cta h2 { margin-top: 0; margin-bottom: 8px; }
  .service-cta .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
  .service-visit { margin-top: 18px; font-size: .95rem; color: var(--ink-soft); }
  .service-visit strong { color: var(--primary); font-weight: 600; }
  .service-back { margin-top: 34px; font-size: .95rem; }
  /* Service cards on the homepage became links — keep them looking identical. */
  a.service-card { display: block; color: inherit; }
  a.service-card:hover h3 { color: var(--accent-2); }
  .service-card .more { display: inline-block; margin-top: 14px; font-size: .9rem; font-weight: 600; color: var(--primary); }
  a.service-card:hover .more { color: var(--accent-2); }
