/*
Theme Name: Dentalis
Theme URI: https://dentalis.mx
Author: Dentalis
Author URI: https://dentalis.mx
Description: Modern, friendly WordPress theme for Dentalis — a 3-branch family dental clinic in Metro Manila, Philippines. Custom-built from the Dentalis design handoff. Includes Procedure / Branch / Doctor custom post types and integrates with ACF Free for editor-friendly content management.
Version: 0.4.2
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dentalis
Tags: clinic, dental, healthcare, business, custom-colors, custom-logo, custom-menu, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* ===== Dentalis Design System ===== */
:root {
  --navy: #072642;
  --navy-2: #0E3556;
  --blue: #0798C4;
  --blue-2: #38B6E0;
  --blue-soft: #EAF6FB;
  --blue-soft-2: #D7EEF7;
  --gray: #5B5B5D;
  --gray-2: #9AA0A6;
  --gray-soft: #F4F6F8;
  --line: #E6ECF1;
  --white: #FFFFFF;
  --sun: #FFD166;   /* playful warm accent */
  --mint: #8AE0C4;  /* playful cool accent */
  --coral: #FF8E72; /* playful warm accent */

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 6px rgba(7, 38, 66, 0.06);
  --shadow-md: 0 12px 30px rgba(7, 38, 66, 0.10);
  --shadow-lg: 0 24px 60px rgba(7, 38, 66, 0.16);

  --container: 1240px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4 {
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.1;
  color: var(--navy);
}
h1 { font-size: clamp(40px, 5.6vw, 76px); letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -0.015em; }
h3 { font-size: clamp(22px, 2vw, 28px); }
h4 { font-size: 18px; }
p  { margin: 0; color: var(--gray); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Eyebrow label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--blue); border-radius: 2px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--r-pill);
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 15px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 10px 24px rgba(7,152,196,.32); }
.btn-primary:hover { background: #058AB1; box-shadow: 0 16px 32px rgba(7,152,196,.4); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); }

/* ===== Top utility bar (branch picker etc) ===== */
.utility-bar {
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
}
.utility-bar .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; gap: 16px;
}
.utility-bar a { opacity: .9; }
.utility-bar a:hover { opacity: 1; }
.utility-info { display: flex; gap: 20px; align-items: center; flex-wrap: wrap;}
.utility-info span { display: inline-flex; align-items: center; gap: 8px; }

/* Branch picker pill */
.branch-picker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  cursor: pointer;
  transition: background .2s;
  position: relative;
  font-weight: 600;
}
.branch-picker:hover { background: rgba(255,255,255,.16); }
.branch-picker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(138,224,196,.25);}
.branch-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--white); color: var(--navy);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  min-width: 280px; padding: 8px; z-index: 50;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: all .2s var(--ease);
}
.branch-picker.open .branch-dropdown { opacity: 1; transform: translateY(0); pointer-events: auto;}
.branch-dropdown .b-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px; border-radius: var(--r-sm);
  transition: background .15s;
  cursor: pointer;
}
.branch-dropdown .b-item:hover { background: var(--blue-soft); }
.branch-dropdown .b-item .b-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center; flex-shrink: 0;
}
.branch-dropdown .b-name { font-weight: 700; font-family: 'Nunito', sans-serif; }
.branch-dropdown .b-meta { font-size: 12px; color: var(--gray); }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s, background .2s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(7,38,66,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: auto; max-height: 56px; width: auto; max-width: 280px; display: block; }
.nav-links { display: flex; gap: 28px; align-items: center; list-style: none; padding: 0; margin: 0; }
.nav-links > li { list-style: none; }
.nav-links a {
  font-weight: 600; font-size: 15px;
  color: var(--navy); position: relative; padding: 6px 0;
  transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--blue); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-links a:hover,
.nav-links a.active,
.nav-links li.current-menu-item > a,
.nav-links li.current-menu-parent > a,
.nav-links li.current-menu-ancestor > a { color: var(--blue); }
.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links li.current-menu-item > a::after,
.nav-links li.current-menu-parent > a::after,
.nav-links li.current-menu-ancestor > a::after { transform: scaleX(1); }
.mega-card::after { display: none !important; }

/* Mega menu (Services dropdown) */
.nav-item.has-menu { position: relative; }
.nav-item.has-menu > a { display: inline-flex; align-items: center; }
.nav-item.has-menu .mega-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 720px; padding-top: 14px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  z-index: 60;
}
.nav-item.has-menu:hover .mega-menu,
.nav-item.has-menu:focus-within .mega-menu {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-inner {
  background: white; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px;
  box-shadow: 0 24px 60px rgba(7,38,66,.16);
}
.mega-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px;
}
.mega-all { font-size: 13px; font-weight: 700; color: var(--blue) !important; }
.mega-all::after { display: none !important; }
.mega-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px;
}
.mega-card {
  display: flex !important; flex-direction: column; gap: 4px;
  padding: 12px 14px !important; border-radius: 10px;
  font-weight: 500 !important; font-size: 14px !important;
  color: var(--navy) !important;
  transition: background .15s;
}
.mega-card::after { display: none !important; }
.mega-card:hover { background: var(--blue); color: white !important; }
.mega-card:hover strong,
.mega-card:hover .mega-desc { color: white; }
.mega-card strong {
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 15px;
  color: var(--navy);
  transition: color .15s;
}
.mega-card .mega-desc { font-size: 12px; color: var(--gray); font-weight: 500; transition: color .15s; }
.mega-card .mega-chip {
  align-self: flex-start;
  background: var(--blue-soft); color: var(--blue);
  padding: 2px 8px; border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
}
.nav-cta { display: flex; gap: 12px; align-items: center; }
.burger { display: none; background: var(--blue-soft); border-radius: 12px; padding: 10px; }
.burger svg { display: block; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn-primary { display: none; }
  .nav { position: relative; justify-content: flex-end; }
  .brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .brand img { max-height: 48px; max-width: 55vw; }
  .utility-info span:not(:first-child) { display: none; }
}

/* ===== Mobile nav drawer ===== */
.drawer {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(7,38,66,.45);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer .panel {
  position: absolute; right: 0; top: 0; height: 100%;
  width: min(380px, 90%); background: var(--white);
  padding: 0;
  transform: translateX(100%); transition: transform .35s var(--ease);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.drawer.open .panel { transform: translateX(0); }

/* Drawer header — gradient tint, logo + tagline + close */
.drawer-head {
  padding: 18px 22px 22px;
  background: linear-gradient(180deg, var(--blue-soft) 0%, white 100%);
  display: flex; align-items: flex-start; justify-content: space-between;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.drawer-brand {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  align-items: flex-start; /* prevent flex's default cross-axis stretch from distorting the logo */
}
.drawer-brand .drawer-logo {
  width: auto; /* keep the logo's natural aspect ratio */
  max-width: 60%;
  height: auto;
  max-height: 44px;
  display: block;
}
.drawer-close {
  width: 40px; height: 40px;
  background: var(--gray-soft);
  border-radius: 12px; border: 0; cursor: pointer;
  display: grid; place-items: center;
  color: var(--navy);
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.drawer-close:hover { background: var(--blue-soft); color: var(--blue); }

/* Nav scroll area */
.drawer-nav {
  flex: 1 1 auto;
  padding: 14px 14px 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Each menu item — icon tile + label + chevron */
.drawer .panel a.drawer-nav-item,
.drawer-nav-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 0;
  color: var(--navy);
  font-family: 'Nunito', sans-serif; font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: background .2s, color .2s;
  cursor: pointer;
  margin-bottom: 2px;
}
.drawer-nav-item .ico {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--gray-soft);
  color: var(--blue);
  display: grid; place-items: center;
  transition: background .2s, color .2s;
  flex-shrink: 0;
}
.drawer-nav-item .label { flex: 1 1 auto; }
.drawer-nav-item .chev {
  color: var(--gray-2);
  transition: transform .2s, color .2s;
  flex-shrink: 0;
}
.drawer-nav-item:hover { background: var(--blue-soft); }
.drawer-nav-item:hover .ico { background: white; }
.drawer-nav-item:hover .chev { color: var(--blue); transform: translateX(3px); }
.drawer-nav-item.active { background: var(--blue); color: white; }
.drawer-nav-item.active .ico { background: rgba(255,255,255,.2); color: white; }
.drawer-nav-item.active .chev { color: white; }

/* Contact strip below the nav */
.drawer-contact {
  padding: 18px 22px 14px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.drawer-contact-label {
  font-size: 11px; color: var(--gray);
  text-transform: uppercase; letter-spacing: .14em;
  font-family: 'Nunito', sans-serif; font-weight: 700;
  margin-bottom: 12px;
}
.drawer-contact-row {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--navy);
  margin-bottom: 8px;
  text-decoration: none;
  border-bottom: 0;
  padding: 0;
}
.drawer-contact-row:last-child { margin-bottom: 0; }
.drawer-contact-row svg { color: var(--blue); flex-shrink: 0; }
.drawer-contact-row strong { font-family: 'Nunito', sans-serif; font-weight: 700; }

/* Footer band — CTA + social */
.drawer-foot {
  padding: 18px 22px 24px;
  background: var(--gray-soft);
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  flex-shrink: 0;
}
.drawer-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--blue);
  color: white;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-family: 'Nunito', sans-serif; font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border: 0;
  box-shadow: 0 10px 24px rgba(7,152,196,.32);
  transition: transform .2s, box-shadow .2s, background .2s;
  width: auto; min-width: 220px; max-width: 100%;
}
.drawer-cta:hover {
  background: #058AB1;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(7,152,196,.4);
}
.drawer-social { display: flex; gap: 10px; }
.drawer-social a {
  width: 38px; height: 38px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--navy);
  text-decoration: none;
  padding: 0;
  transition: background .2s, color .2s, border-color .2s;
}
.drawer-social a:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,.78);
  padding: 80px 0 30px; margin-top: 100px;
}
.site-footer h4 { color: var(--white); margin-bottom: 18px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
}
.footer-grid a { display: block; padding: 6px 0; color: rgba(255,255,255,.7); transition: color .2s;}
.footer-grid a:hover { color: var(--blue-2); }
.footer-grid p { color: rgba(255,255,255,.6); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 56px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,.5);
}
.social-row { display: flex; gap: 10px; margin-top: 14px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); display: grid; place-items: center;
  padding: 0;
  transition: background .2s, transform .2s;
}
.social-row a:hover { background: var(--blue); transform: translateY(-2px); }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px;}
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== WhatsApp Float ===== */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 50;
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: white;
  padding: 12px 18px; border-radius: var(--r-pill);
  box-shadow: 0 10px 30px rgba(37,211,102,.4);
  font-weight: 700; font-family: 'Nunito', sans-serif;
  transition: transform .25s var(--ease);
  animation: wa-pulse 2.4s infinite;
}
.wa-float:hover { transform: translateY(-3px); }
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 10px 30px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.4);}
  50% { box-shadow: 0 10px 30px rgba(37,211,102,.4), 0 0 0 14px rgba(37,211,102,0);}
}

/* ===== Reveal-on-scroll =====
   Content is visible by default; JS opts elements into the animated entrance
   by adding [data-reveal-armed] before the page scrolls. This way, if JS is
   slow / blocked / running in a flaky iframe context, content still paints. */
.reveal { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal[data-reveal-armed]:not(.in) { opacity: 0; transform: translateY(28px); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }
.reveal.delay-4 { transition-delay: .4s; }

/* ===== Common: Photo placeholder ===== */
.photo-ph {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(135deg, var(--blue-soft) 0 14px, var(--blue-soft-2) 14px 28px);
  display: grid; place-items: center;
  color: var(--blue); font-family: 'JetBrains Mono','Courier New', monospace;
  font-size: 12px; letter-spacing: .04em;
  aspect-ratio: 4/5;
}
.photo-ph::before {
  content: ""; position: absolute; inset: 14px;
  border: 1.5px dashed rgba(7,152,196,.45);
  border-radius: calc(var(--r-lg) - 6px);
  pointer-events: none;
}
.photo-ph span {
  background: rgba(255,255,255,.85);
  padding: 6px 12px; border-radius: var(--r-pill);
  position: relative; z-index: 1;
}

/* Sections */
section { padding: 100px 0; }
@media (max-width: 700px) { section { padding: 64px 0; } }

/* ===== Section header (eyebrow + title + lead) ===== */
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head p { margin-top: 16px; font-size: 17px; }

/* CTA strip */
.cta-strip {
  background: linear-gradient(135deg, var(--blue) 0%, #5BB8DB 100%);
  color: white; border-radius: var(--r-xl);
  padding: 56px clamp(28px, 5vw, 64px);
  display: flex; justify-content: space-between; gap: 32px;
  align-items: center; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ""; position: absolute; right: -100px; top: -120px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.cta-strip::after {
  content: ""; position: absolute; left: -60px; bottom: -120px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.cta-strip h2 { color: white; max-width: 600px; }
.cta-strip p { color: rgba(255,255,255,.85); margin-top: 10px; }
.cta-strip .btn-light { box-shadow: var(--shadow-md); }

/* Hero H1 animation — shimmer sweep on words before the last, letter bounce on last word. */
.hero h1 em .shine{
  background:linear-gradient(110deg,
    var(--blue-2) 0%, var(--blue-2) 42%,
    #ffffff 50%,
    var(--blue-2) 58%, var(--blue-2) 100%);
  background-size:400% 100%;
  background-repeat:no-repeat;
  background-position:100% 0;
  -webkit-background-clip:text; background-clip:text;
  color:transparent; -webkit-text-fill-color:transparent;
  animation:dentalisShimmer 3s ease-in-out infinite;
}
@keyframes dentalisShimmer{
  0%   { background-position:100% 0 }
  73%  { background-position:0% 0 }
  100% { background-position:0% 0 }
}
.hero h1 em .bounce{ display:inline-block; }
.hero h1 em .bounce .ch{
  display:inline-block;
  color:var(--blue-2); -webkit-text-fill-color:var(--blue-2);
  animation:dentalisLetterJump 3s cubic-bezier(.5,.05,.3,1) infinite;
  will-change:transform;
}
.hero h1 em .bounce .ch:nth-child(1){ animation-delay:0s }
.hero h1 em .bounce .ch:nth-child(2){ animation-delay:.05s }
.hero h1 em .bounce .ch:nth-child(3){ animation-delay:.10s }
.hero h1 em .bounce .ch:nth-child(4){ animation-delay:.15s }
.hero h1 em .bounce .ch:nth-child(5){ animation-delay:.20s }
.hero h1 em .bounce .ch:nth-child(6){ animation-delay:.25s }
.hero h1 em .bounce .ch:nth-child(7){ animation-delay:.30s }
.hero h1 em .bounce .ch:nth-child(8){ animation-delay:.35s }
.hero h1 em .bounce .ch:nth-child(9){ animation-delay:.40s }
.hero h1 em .bounce .ch:nth-child(10){ animation-delay:.45s }
@keyframes dentalisLetterJump{
  0%, 73%, 100% { transform:translateY(0) scale(1); color:var(--blue-2); -webkit-text-fill-color:var(--blue-2) }
  82%           { transform:translateY(-22px) scale(1.06); color:#fff; -webkit-text-fill-color:#fff }
  95%           { transform:translateY(0) scale(1); color:var(--blue-2); -webkit-text-fill-color:var(--blue-2) }
}
@media (prefers-reduced-motion:reduce){
  .hero h1 em .shine,
  .hero h1 em .bounce .ch{ animation:none !important; background:none !important;
    color:var(--blue-2) !important; -webkit-text-fill-color:var(--blue-2) !important; transform:none !important; }
}

/* Floating parallax blobs — colored circles drifting on scroll. */
.deco-blobs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.deco-blob  { position: absolute; border-radius: 50%; filter: blur(2px); will-change: transform; }
.stats > *:not(.deco-blobs),
.cta-strip > *:not(.deco-blobs),
.site-footer > .container { position: relative; z-index: 1; }
.site-footer { position: relative; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .deco-blob { transform: none !important; } }

/* Cards (generic) */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow-md); }

/* Tag chip */
.chip {
  display: inline-block;
  background: var(--blue-soft); color: var(--blue);
  border-radius: var(--r-pill);
  padding: 6px 12px; font-size: 12px; font-weight: 700;
  font-family: 'Nunito', sans-serif;
  letter-spacing: .04em; text-transform: uppercase;
}

/* Marquee */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}
.marquee-track {
  display: flex; gap: 56px; align-items: center;
  width: max-content;
  animation: scroll 30s linear infinite;
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}
.marquee-item {
  font-family: 'Nunito', sans-serif; font-weight: 800;
  font-size: 22px; color: var(--gray-2);
  white-space: nowrap;
  display: flex; align-items: center; gap: 12px;
}
.marquee-item .pip {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; opacity: .35;
}

/* ===== WordPress core class accommodations ===== */
.entry-content > * + * { margin-top: 1em; }
.alignwide { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }
.wp-block-image figcaption { color: var(--gray); font-size: 13px; text-align: center; margin-top: 8px; }
.screen-reader-text { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== Single blog post — base layout (was inline in single.php) ===== */
.post-hero { padding: 64px 0 24px; background: linear-gradient(180deg, var(--blue-soft) 0%, white 100%); }
.post-hero .breadcrumb { font-size: 13px; color: var(--gray); margin-bottom: 14px; font-family: 'JetBrains Mono', monospace; }
.post-hero .breadcrumb a { color: var(--blue); }
.post-hero h1 { font-size: clamp(32px, 4vw, 56px); max-width: 820px; line-height: 1.1; }
.post-hero .meta { display: flex; gap: 16px; align-items: center; margin-top: 24px; font-size: 14px; color: var(--gray); flex-wrap: wrap; }
.post-cover { aspect-ratio: 16/8; max-width: 1040px; margin: 24px auto 0; border-radius: var(--r-lg); overflow: hidden; background-image: repeating-linear-gradient(135deg, var(--blue-soft) 0 14px, var(--blue-soft-2) 14px 28px); background-size: cover; background-position: center; background-repeat: no-repeat; }
.post-body { max-width: 720px; margin: 0 auto; padding: 56px 0; }
.post-body p { font-size: 18px; line-height: 1.75; margin-bottom: 24px; color: var(--navy); }
.post-body h2 { margin: 48px 0 16px; font-size: clamp(26px, 3vw, 38px); }
.post-body h3 { margin: 32px 0 12px; }
.post-body img, .post-body figure { margin: 32px 0; border-radius: var(--r-md); overflow: hidden; }
.post-body blockquote { border-left: 4px solid var(--blue); padding: 8px 0 8px 24px; margin: 32px 0; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 22px; line-height: 1.4; color: var(--navy); }
.post-body ul, .post-body ol { padding-left: 24px; margin-bottom: 24px; }
.post-body li { margin-bottom: 8px; font-size: 17px; line-height: 1.7; }
.post-body a { color: var(--blue); text-decoration: underline; }

/* ===== Single blog post — v2.10 design upgrade ===== */

/* 1. Reading progress bar */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: rgba(0,0,0,0.05); z-index: 100; }
.reading-progress .bar { height: 100%; background: var(--blue); transform-origin: left center; transform: scaleX(0); will-change: transform; }

/* Avatar in post hero — replaces the old flat-color circle */
.post-hero .meta .av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; }
.post-hero .meta img.av { background: var(--blue-soft); }

/* 3. Tags */
.post-tags { max-width: 720px; margin: 16px auto 0; padding-top: 24px; border-top: 1px solid #eef2f6; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-tags-label { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--gray); margin-right: 4px; text-transform: uppercase; letter-spacing: .04em; }
.post-tag { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); text-decoration: none; font-size: 13px; font-weight: 600; transition: background .15s ease, color .15s ease; }
.post-tag:hover { background: var(--blue); color: #fff; }

/* 4. Share buttons */
.post-share { max-width: 720px; margin: 24px auto 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-share-label { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--gray); margin-right: 4px; text-transform: uppercase; letter-spacing: .04em; }
.post-share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; background: #fff; border: 1px solid #e3e8ee; color: var(--navy); text-decoration: none; font-size: 13px; font-weight: 700; font-family: 'Nunito', sans-serif; cursor: pointer; transition: all .15s ease; }
.post-share-btn:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.post-share-btn.whatsapp:hover { border-color: #25D366; color: #25D366; }
.post-share-btn.copied { border-color: var(--blue); background: var(--blue); color: #fff; }

/* 5. Author bio card */
.post-author { max-width: 720px; margin: 40px auto 0; padding: 24px; background: var(--blue-soft); border-radius: var(--r-lg); display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; }
.post-author-photo img,
.post-author-photo .post-author-img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; background: #fff; }
.post-author-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.post-author-name { margin: 0 0 8px; font-size: 22px; color: var(--navy); }
.post-author-bio { margin: 0; font-size: 15px; line-height: 1.6; color: var(--gray-2); }
@media (max-width: 600px) {
    .post-author { grid-template-columns: 1fr; text-align: center; }
    .post-author-photo img,
    .post-author-photo .post-author-img { margin: 0 auto; }
}

/* 6. Prev / Next post nav */
.post-nav { max-width: 720px; margin: 40px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 32px; border-top: 1px solid #eef2f6; }
.post-nav-link { display: block; padding: 16px 18px; background: #fff; border: 1px solid #e3e8ee; border-radius: var(--r-md); text-decoration: none; transition: all .15s ease; }
.post-nav-link:hover { border-color: var(--blue); transform: translateY(-1px); }
.post-nav-link.next { text-align: right; }
.post-nav-label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.post-nav-title { display: block; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--navy); }
@media (max-width: 600px) {
    .post-nav { grid-template-columns: 1fr; }
    .post-nav-link.next { text-align: left; }
}

/* 7. Related posts */
.post-related { background: var(--blue-soft); padding: 64px 0; margin-top: 80px; }
.post-related-title { font-size: clamp(24px, 3vw, 32px); margin: 0 0 32px; color: var(--navy); }
.post-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-related-card { display: block; background: #fff; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.post-related-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(11, 26, 58, 0.08); }
.post-related-cover { aspect-ratio: 16/9; background-image: repeating-linear-gradient(135deg, var(--blue-soft) 0 14px, var(--blue-soft-2) 14px 28px); background-size: cover; background-position: center; background-repeat: no-repeat; }
.post-related-body { padding: 18px 20px 22px; }
.post-related-body .chip.small { font-size: 11px; padding: 3px 10px; margin-bottom: 10px; display: inline-block; }
.post-related-body h3 { margin: 0; font-size: 17px; line-height: 1.35; color: var(--navy); }
@media (max-width: 900px) {
    .post-related-grid { grid-template-columns: 1fr; }
    .post-related { padding: 48px 0; margin-top: 56px; }
}

/* ===== Book an Appointment — slim horizontal banner (v2.11) ===== */
.book-cta-banner {
    position: relative;
    max-width: 1040px;
    margin: 96px auto 64px;  /* extra top margin so popped-out image has breathing room above */
    padding: 24px clamp(24px, 4vw, 40px);
    border-radius: var(--r-lg);
    overflow: visible;        /* allow image to extend above */
    color: #fff;
    background:
        radial-gradient(circle at 88% 22%, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 18%),
        radial-gradient(circle at 92% 70%, rgba(166,229,214,.18) 0%, rgba(255,255,255,0) 15%),
        radial-gradient(circle at 38% 90%, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 18%),
        radial-gradient(circle at 12% 32%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 20%),
        linear-gradient(135deg, var(--blue) 0%, #5BB8DB 100%);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}
.book-cta-banner > * { position: relative; z-index: 1; }

/* Left: image — pops out above the banner top */
.book-cta-banner .book-cta-image {
    flex: 0 0 auto;
    width: 160px; height: 200px;
    margin: 0;
    display: flex; align-items: flex-end; justify-content: center;
    transform: translateY(-40px);
    filter: drop-shadow(0 12px 24px rgba(11, 26, 58, 0.18));
}
.book-cta-banner .book-cta-image img {
    width: 100%; height: 100%;
    object-fit: contain;
    object-position: bottom center;
    display: block;
}

/* Middle: text */
.book-cta-banner .book-cta-text {
    flex: 1 1 320px;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.book-cta-banner .book-cta-headline {
    font-family: 'Nunito', sans-serif; font-weight: 900;
    font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2;
    color: #fff; margin: 0;
}
.book-cta-banner .book-cta-headline .book-cta-hl {
    display: inline-block;
    background: var(--mint);
    color: var(--navy);
    padding: 2px 14px;
    margin: 0 2px;
    border-radius: 999px;
    line-height: 1.15;
    font-weight: inherit;
    box-shadow: 0 4px 12px rgba(11, 26, 58, 0.15);
}
.book-cta-banner .book-cta-subhead {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px; line-height: 1.5;
    margin: 0;
}

/* Right: button */
.book-cta-banner .book-cta-buttons {
    flex: 0 0 auto;
    display: flex; gap: 12px; margin: 0;
}
.book-cta-banner .book-cta-buttons .wp-block-button__link {
    font-family: 'Nunito', sans-serif; font-weight: 800;
    font-size: 15px;
    padding: 14px 28px; border-radius: 999px;
    transition: all .2s ease;
    border: 0;
    white-space: nowrap;
}
.book-cta-banner .book-cta-btn-light .wp-block-button__link {
    background: #fff; color: var(--navy);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.book-cta-banner .book-cta-btn-light .wp-block-button__link:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

@media (max-width: 720px) {
    .book-cta-banner {
        margin: 80px auto 40px;
        padding: 28px 24px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    .book-cta-banner .book-cta-image {
        width: 130px; height: 150px;
        transform: translateY(-50px);
        margin-bottom: -34px;  /* tighten the gap below image since it's lifted */
    }
    .book-cta-banner .book-cta-text { flex: 0 0 auto; min-width: 0; }
    .book-cta-banner .book-cta-buttons { width: 100%; }
    .book-cta-banner .book-cta-buttons .wp-block-button { flex: 1 1 auto; }
    .book-cta-banner .book-cta-buttons .wp-block-button__link { display: block; text-align: center; }
}

/* === Book CTA banner — preset variants === */

/* Big & Tall: largest image, deepest pop-out */
.book-cta-banner.book-cta-style-big { margin-top: 120px; }
.book-cta-banner.book-cta-style-big .book-cta-image {
    width: 220px; height: 280px;
    transform: translateY(-70px);
}

/* Subtle: smaller image, gentle pop-out */
.book-cta-banner.book-cta-style-subtle { margin-top: 56px; }
.book-cta-banner.book-cta-style-subtle .book-cta-image {
    width: 120px; height: 150px;
    transform: translateY(-20px);
}

/* Inline: no pop-out, image stays inside the banner */
.book-cta-banner.book-cta-style-inline { margin-top: 40px; }
.book-cta-banner.book-cta-style-inline .book-cta-image {
    width: 110px; height: 110px;
    transform: translateY(0);
    align-items: center;
    filter: none;
}

@media (max-width: 720px) {
    .book-cta-banner.book-cta-style-big .book-cta-image {
        width: 180px; height: 220px;
        transform: translateY(-70px);
        margin-bottom: -50px;
    }
    .book-cta-banner.book-cta-style-subtle .book-cta-image {
        width: 100px; height: 120px;
        transform: translateY(-30px);
        margin-bottom: -20px;
    }
    .book-cta-banner.book-cta-style-inline .book-cta-image {
        width: 88px; height: 88px;
        transform: translateY(0);
        margin-bottom: 0;
    }
}

/* ============================================================
   About — Doctor team with circles
   Used by: front-page.php About section + dentalis/about-doctors block pattern.
   Image breaks out to near-edge on mobile (-20px) to maximize size; circles
   are percentage-sized and bottom-anchored circles stay at bottom: ≥ 0 so
   the photo never appears to float above the section base.
   ============================================================ */
.about-doctors-stage {
    container-type: inline-size;
    background: var(--gray-soft);
    padding: 80px 0;
    overflow: hidden;
}
.about-doctors-stage > .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 28px;
}
.about-doctors-stage .about-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 48px;
    align-items: center;
}

/* Photo stage — height auto, hugs the image so circle bottoms align with photo bottom */
.about-doctors-stage .about-images {
    position: relative;
    isolation: isolate;
}
.about-doctors-stage .about-images > img,
.about-doctors-stage .about-images figure.wp-block-image {
    margin: 0;
    position: relative; z-index: 1;
}
/* Image renders at NATIVE aspect ratio (width: 100%, height: auto) so there
   is zero cropping — all 3 doctors stay fully visible from heads to feet. */
.about-doctors-stage .about-images > img,
.about-doctors-stage .about-images .doctors-img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    position: relative; z-index: 1;
    filter: drop-shadow(0 22px 28px rgba(7,38,66,.14));
}

/* Block pattern uses a wp:image figure — same native-aspect treatment. */
.about-doctors-stage .about-images figure.wp-block-image {
    margin: 0 !important;
    width: 100% !important;
    position: relative; z-index: 1;
    filter: drop-shadow(0 22px 28px rgba(7,38,66,.14));
}
.about-doctors-stage .about-images figure.wp-block-image > img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
}

/* Decorative circles.
   IMPORTANT: override the global `.deco-blobs { z-index: 0; overflow: hidden }`
   from line 450. The global z-index:0 creates a stacking context that traps
   children — front circles with z-index:2 would still render BEHIND the image
   (z-index:1) because their parent's stacking context is below it. Setting
   z-index:auto here means children's z-indexes operate in .about-images'
   stacking context directly, so f1–f4 correctly layer above the image. */
.about-doctors-stage .about-images .deco-blobs {
    position: absolute; inset: 0; pointer-events: none;
    z-index: auto;
    overflow: visible;
}
.about-doctors-stage .deco-blob {
    position: absolute; border-radius: 50%;
    will-change: transform, opacity;
    opacity: 0;
    transition: opacity .8s var(--ease);
}
.about-doctors-stage .deco-blob.glow { filter: blur(1px); }

/* Reveal cascade — when section enters viewport, .in is added to .about-images */
.about-doctors-stage .about-images.in .deco-blob { opacity: var(--op, .4); }
.about-doctors-stage .about-images.in .deco-blob:nth-child(1) { transition-delay: 0s; }
.about-doctors-stage .about-images.in .deco-blob:nth-child(2) { transition-delay: .08s; }
.about-doctors-stage .about-images.in .deco-blob:nth-child(3) { transition-delay: .16s; }
.about-doctors-stage .about-images.in .deco-blob:nth-child(4) { transition-delay: .24s; }
.about-doctors-stage .about-images.in .deco-blob:nth-child(5) { transition-delay: .32s; }
.about-doctors-stage .about-images.in .deco-blob:nth-child(6) { transition-delay: .40s; }
.about-doctors-stage .about-images.in .deco-blob:nth-child(7) { transition-delay: .48s; }

/* Behind the photo (z-index 0) — large, peek slightly past head/shoulder edges */
.about-doctors-stage .deco-blob.b1 { width: 24%; aspect-ratio: 1; top: 4%;  left: -4%;  background: var(--blue);      --op: .32; z-index: 0; }
.about-doctors-stage .deco-blob.b2 { width: 18%; aspect-ratio: 1; top: 8%;  right: -3%; background: var(--blue-2);    --op: .42; z-index: 0; }
.about-doctors-stage .deco-blob.b3 { width: 14%; aspect-ratio: 1; top: 48%; left: -3%;  background: var(--blue-soft); --op: .85; z-index: 0; }

/* In front of the photo (z-index 2) — clearly prominent. Positioned in safe
   zones (above hairlines + over the white coats) so faces stay clear. */
.about-doctors-stage .deco-blob.f1 { width: 14%; aspect-ratio: 1; top: 4%;     left: 5%;   background: var(--blue);   --op: .65; z-index: 2; }
.about-doctors-stage .deco-blob.f2 { width: 18%; aspect-ratio: 1; bottom: 6%;  left: 28%;  background: var(--mint);   --op: .70; z-index: 2; }
.about-doctors-stage .deco-blob.f3 { width: 11%; aspect-ratio: 1; top: 8%;     right: 7%;  background: var(--blue);   --op: .65; z-index: 2; }
.about-doctors-stage .deco-blob.f4 { width: 15%; aspect-ratio: 1; bottom: 10%; right: 10%; background: var(--blue-2); --op: .60; z-index: 2; }

/* Text panel */
.about-doctors-stage .about-text .eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--blue); font-family: 'Nunito', sans-serif;
    font-weight: 800; letter-spacing: .12em; font-size: 12.5px;
    text-transform: uppercase;
    margin: 0;
}
.about-doctors-stage .about-text .eyebrow::before {
    content: ''; display: inline-block; width: 26px; height: 2px;
    background: var(--blue); border-radius: 1px;
}
.about-doctors-stage .about-text h2,
.about-doctors-stage .about-text .wp-block-heading { margin-top: 14px; }
.about-doctors-stage .about-text .lead { margin-top: 18px; font-size: 16px; color: var(--gray); }
.about-doctors-stage .about-text .features {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px; margin-top: 28px;
}
.about-doctors-stage .about-text .feature {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px; border-radius: var(--r-md);
    background: white; border: 1px solid var(--line);
}
.about-doctors-stage .about-text .feature .ic {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--blue-soft); color: var(--blue);
    display: grid; place-items: center; flex-shrink: 0;
}
.about-doctors-stage .about-text .feature strong { font-family: 'Nunito', sans-serif; font-size: 13.5px; display: block; margin-bottom: 4px; }
.about-doctors-stage .about-text .feature span { font-size: 12.5px; color: var(--gray); line-height: 1.4; }

/* Mobile (container query — fires whether viewport-narrow OR inside a narrow container) */
@container (max-width: 900px) {
    .about-doctors-stage .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-doctors-stage .about-text .features { grid-template-columns: 1fr; }
    /* Edge-to-edge photo on mobile: -20px negative margin breaks out of the
       container's 28px padding, leaving ~8px breathing space from screen edge. */
    .about-doctors-stage .about-images { margin-left: -20px; margin-right: -20px; }
}

@media (prefers-reduced-motion: reduce) {
    .about-doctors-stage .deco-blob { transform: none !important; transition: opacity .3s linear; }
}

/* ===== Procedure Category sections (services page + taxonomy archive) ===== */
.svc-category-section {
    margin-top: 56px;
    margin-bottom: 56px;
}
.svc-category-section:first-of-type { margin-top: 0; }
.svc-category-head {
    max-width: 760px;
    margin: 0 auto 32px;
    text-align: center;
}
.svc-category-head h2 { margin-bottom: 14px; }
.svc-category-desc {
    color: var(--gray); font-size: 17px;
}
.svc-category-desc p { color: var(--gray); margin: 0; }
.svc-category-desc p + p { margin-top: 12px; }

/* Category archive page hero */
.cat-hero {
    position: relative;
    padding: 100px 0 70px;
    background: var(--blue-soft);
    background-size: cover;
    background-position: center;
    color: white;
    overflow: hidden;
}
.cat-hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(7,38,66,.78) 0%, rgba(7,38,66,.55) 60%, rgba(7,152,196,.5) 100%);
    pointer-events: none;
}
.cat-hero > .container { position: relative; z-index: 1; }
.cat-hero .breadcrumb,
.cat-hero .breadcrumb a { color: rgba(255,255,255,.85); }
.cat-hero h1 { color: white; max-width: 800px; margin-top: 16px; }
.cat-hero .lead {
    color: rgba(255,255,255,.9); margin-top: 18px; max-width: 640px; font-size: 18px;
}

/* Fallback when no hero image set — soft blue, no overlay */
.cat-hero-empty { background: linear-gradient(180deg, var(--blue-soft) 0%, white 100%); color: var(--navy); }
.cat-hero-empty::after { display: none; }
.cat-hero-empty .breadcrumb,
.cat-hero-empty .breadcrumb a { color: var(--gray); }
.cat-hero-empty .breadcrumb a { color: var(--blue); }
.cat-hero-empty h1 { color: var(--navy); }
.cat-hero-empty .lead { color: var(--gray); }

@media (max-width: 720px) {
    .svc-category-section { margin-top: 40px; margin-bottom: 40px; }
    .svc-category-head { margin-bottom: 24px; }
    .cat-hero { padding: 70px 0 50px; }
}

/* ===== Quick Inquiry section (homepage, after hero) ===== */
/* Full-bleed: section breaks out of .container so the blue band spans
   the entire viewport width edge-to-edge. Form content inside is then
   constrained to a readable ~880px column so individual fields don't
   look stretched on wide desktop screens. */
.quick-inquiry {
    position: relative;
    background: linear-gradient(135deg, var(--blue) 0%, #5BB8DB 100%);
    color: white;
    overflow: hidden;
    padding: 80px 24px;
}
/* Override the inherited .container (which has max-width 1240px + padding) */
.quick-inquiry > .container { max-width: none; padding: 0; }
.quick-inquiry .qi-wrap { width: 100%; margin: 0 auto; position: relative; z-index: 1; }

/* Card is now structural only — visual blue background lives on the section
   itself so the band is truly edge-to-edge. */
.quick-inquiry .qi-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    color: white;
    position: relative;
    max-width: 880px;
    margin: 0 auto;
}
/* Subtle radial highlights at the section corners (full-bleed) for depth */
.quick-inquiry::before {
    content: ""; position: absolute; top: -120px; right: -80px;
    width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.15) 0%, transparent 70%);
    pointer-events: none;
}
.quick-inquiry::after {
    content: ""; position: absolute; bottom: -80px; left: -60px;
    width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(138,224,196,.18) 0%, transparent 70%);
    pointer-events: none;
}
.quick-inquiry .qi-card > * { position: relative; z-index: 1; }

.quick-inquiry .qi-card-head { margin-bottom: 28px; }
.quick-inquiry .qi-card-head h3 {
    color: white;
    font-size: clamp(24px, 2.4vw, 32px);
    margin-bottom: 8px;
}
.quick-inquiry .qi-card-head p {
    color: rgba(255,255,255,.85);
    font-size: 15px;
}

/* ----- Fluent Forms output overrides (scoped to .quick-inquiry only) ----- */
.quick-inquiry .frm-fluent-form,
.quick-inquiry .ff-form-loading {
    color: white;
}
.quick-inquiry .frm-fluent-form .ff-el-group { margin-bottom: 16px; }
.quick-inquiry .frm-fluent-form .ff-el-input--label,
.quick-inquiry .frm-fluent-form label {
    color: white !important;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
}
/* Required asterisk — replace red with brand sun-yellow for friendlier feel */
.quick-inquiry .frm-fluent-form .ff-el-is-required.asterisk-right label::after,
.quick-inquiry .frm-fluent-form label .ff-el-is-required-asterisk,
.quick-inquiry .frm-fluent-form .ff-el-is-required label::after {
    color: var(--sun) !important;
}

.quick-inquiry .frm-fluent-form input[type="text"],
.quick-inquiry .frm-fluent-form input[type="email"],
.quick-inquiry .frm-fluent-form input[type="tel"],
.quick-inquiry .frm-fluent-form input[type="number"],
.quick-inquiry .frm-fluent-form input[type="url"],
.quick-inquiry .frm-fluent-form input[type="date"],
.quick-inquiry .frm-fluent-form input[type="time"],
.quick-inquiry .frm-fluent-form input[type="datetime-local"],
.quick-inquiry .frm-fluent-form select,
.quick-inquiry .frm-fluent-form textarea,
.quick-inquiry .frm-fluent-form .ff-el-form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid rgba(255,255,255,.5);
    border-radius: var(--r-sm);
    font-family: inherit;
    font-size: 15px;
    background: white;
    color: var(--navy);
    transition: border-color .2s, box-shadow .2s;
    box-shadow: none;
}
.quick-inquiry .frm-fluent-form input:focus,
.quick-inquiry .frm-fluent-form select:focus,
.quick-inquiry .frm-fluent-form textarea:focus,
.quick-inquiry .frm-fluent-form .ff-el-form-control:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 4px rgba(255,255,255,.25);
    background: white;
}
.quick-inquiry .frm-fluent-form input::placeholder,
.quick-inquiry .frm-fluent-form textarea::placeholder {
    color: var(--gray-2);
}
.quick-inquiry .frm-fluent-form textarea { min-height: 84px; resize: vertical; }
.quick-inquiry .frm-fluent-form select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%230798C4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
}

/* Submit button — mint pill, narrow + centered to stand out as a clear CTA */
.quick-inquiry .frm-fluent-form .ff-btn,
.quick-inquiry .frm-fluent-form button[type="submit"],
.quick-inquiry .frm-fluent-form .ff_btn_style,
.quick-inquiry .frm-fluent-form .ff_btn_submit {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100%;
    min-width: 240px;
    padding: 16px 40px !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: var(--r-pill) !important;
    font-family: 'Nunito', sans-serif !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--mint) !important;
    color: var(--navy) !important;
    border: 0 !important;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(7, 38, 66, 0.32) !important;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s !important;
    margin: 32px auto 0 !important;
}
/* Right-arrow that nudges on hover */
.quick-inquiry .frm-fluent-form .ff-btn::after,
.quick-inquiry .frm-fluent-form button[type="submit"]::after,
.quick-inquiry .frm-fluent-form .ff_btn_submit::after {
    content: "\2192";
    font-size: 20px;
    line-height: 1;
    transition: transform .2s var(--ease);
}
.quick-inquiry .frm-fluent-form .ff-btn:hover,
.quick-inquiry .frm-fluent-form button[type="submit"]:hover,
.quick-inquiry .frm-fluent-form .ff_btn_style:hover,
.quick-inquiry .frm-fluent-form .ff_btn_submit:hover {
    background: white !important;
    color: var(--navy) !important;
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(7, 38, 66, 0.4) !important;
}
.quick-inquiry .frm-fluent-form .ff-btn:hover::after,
.quick-inquiry .frm-fluent-form button[type="submit"]:hover::after,
.quick-inquiry .frm-fluent-form .ff_btn_submit:hover::after {
    transform: translateX(6px);
}
/* Center the submit row regardless of Fluent Forms wrapper */
.quick-inquiry .frm-fluent-form .ff_submit_btn_wrapper,
.quick-inquiry .frm-fluent-form .ff-el-group:last-child {
    text-align: center;
}

/* Hide Fluent Forms's optional form-level description (it defaults to a placeholder
   "Some description about this section" — looks like leftover dummy copy on a live form).
   Editor can re-enable by setting a real description in Fluent Forms → Form Settings,
   AND removing this rule (or scoping to a specific form ID via [data-form-id]). */
.quick-inquiry .ff-form-description,
.quick-inquiry .ff_form_description,
.quick-inquiry .ff-form-desc,
.quick-inquiry .fluentform-description,
.quick-inquiry .fluentform-form-description {
    display: none !important;
}

/* Validation error text — keep readable on the blue card */
.quick-inquiry .frm-fluent-form .error,
.quick-inquiry .frm-fluent-form .ff-el-is-error,
.quick-inquiry .frm-fluent-form .text-danger {
    color: var(--sun) !important;
    font-size: 13px;
    margin-top: 4px;
}

/* Success message after submission */
.quick-inquiry .frm-fluent-form .ff-message-success,
.quick-inquiry .ff_form_success {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.4);
    color: white;
    border-radius: var(--r-sm);
    padding: 18px 20px;
    font-size: 15px;
}

@media (max-width: 720px) {
    .quick-inquiry { padding: 56px 20px; }
    .quick-inquiry .qi-card-head h3 { font-size: 24px; }
}
