/**
 * Client-Specific Theming & Customizations
 *
 * This file contains CSS variables for easy color/theme customization
 * and any client-specific CSS overrides.
 *
 * USAGE:
 * 1. Update the CSS variables below to match your client's brand colors
 * 2. Add any additional client-specific CSS at the bottom of this file
 * 3. Do not modify bootstrap.css, platforma.css, or clue.css directly
 */


/* ========================================================================
   CSS VARIABLES - CUSTOMIZE THESE FOR EACH CLIENT
   ======================================================================== */

:root {
  /* ===== PRIMARY BRAND COLORS =====
     Matched to the Way Dental logo (slate blue #587d9b + cyan #39bccd).
     --primary-color is a slightly deepened slate so white text clears WCAG AA
     (5.1:1); --primary-color-light is the exact logo blue, used for accents. */
  --primary-color: #497293;              /* Way Dental slate — buttons, headers, links */
  --primary-color-dark: #3a5c78;         /* Darker shade for hover states */
  --primary-color-light: #587d9b;        /* Exact logo slate blue — light accents/gradients */
  --primary-color-bright: #6b93b3;       /* Brighter shade for button hover states */

  /* Override Bootstrap's primary color to match your brand */
  --bs-primary: #497293;
  --bs-primary-rgb: 73, 114, 147;


  /* ===== SECONDARY COLORS ===== */
  --secondary-color: #587d9b;            /* Logo slate blue */
  --accent-color: #39bccd;               /* Logo cyan — complementary accent */
  --brand-cyan: #39bccd;                 /* Logo cyan (named alias) */
  --brand-cyan-dark: #2ba9ba;            /* Darker cyan for hover states */


  /* ===== UI ELEMENT COLORS ===== */
  --link-color: var(--primary-color);
  --link-hover-color: var(--primary-color-dark);
  --button-color: var(--primary-color);
  --button-hover-color: var(--primary-color-dark);


  /* ===== BACKGROUND COLORS ===== */
  --bg-primary: var(--primary-color);
  --bg-secondary: #fafafa;
  --bg-light: #f8f9fa;
  --hero-bg-color: #e8eef3;              /* Homepage hero section background (slate tint) */
  --sidebar-bg: rgba(58, 92, 120, 0.96); /* Mobile sidebar menu background (brand slate) */


  /* ===== TEXT COLORS ===== */
  --text-primary: #212529;               /* Main body text */
  --text-secondary: #6c757d;             /* Secondary/muted text */
  --text-light: #6c757d;                 /* Light gray text */
  --text-white: #ffffff;                 /* White text */


  /* ===== TYPOGRAPHY ===== */
  --font-family-base: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI",
                      "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-family-headings: 'Cinzel', Georgia, "Times New Roman", serif;
  --font-size-base: 1rem;
  --line-height-base: 1.5;

  /* Heading font weights */
  --heading-font-weight: 300;            /* Light weight for h1-h4 */


  /* ===== SPACING ===== */
  --section-padding: 4rem;               /* Vertical padding for major sections */
  --section-padding-mobile: 2rem;        /* Vertical padding on mobile */


  /* ===== BORDER RADIUS ===== */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.375rem;
  --border-radius-lg: 0.5rem;
  --border-radius-pill: 30px;            /* For rounded buttons */


  /* ===== SHADOWS ===== */
  --box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}


/* ========================================================================
   DARK MODE SUPPORT (OPTIONAL)
   Uncomment this section if you want to support dark mode
   ======================================================================== */

/*
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-light: #3d3d3d;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
  }
}
*/


/* ========================================================================
   CLIENT-SPECIFIC CSS OVERRIDES
   Add any additional custom CSS below this line
   ======================================================================== */

/* Example: Override specific element styling
.custom-header {
  background-color: var(--primary-color);
  color: var(--text-white);
}
*/

/* Example: Client-specific font import
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');
:root {
  --font-family-base: 'Roboto', sans-serif;
}
*/

/* Example: Custom button style
.btn-custom {
  background-color: var(--accent-color);
  color: white;
  border-radius: var(--border-radius-pill);
  padding: 0.75rem 2rem;
}
*/


/* ========================================================================
   USAGE EXAMPLES & NOTES
   ======================================================================== */

/*
HOW TO USE CSS VARIABLES:

1. In your HTML or other CSS:
   background-color: var(--primary-color);
   color: var(--text-primary);

2. To change colors for a specific client:
   - Simply update the hex values in the :root section above
   - All instances throughout the site will update automatically

3. Common customizations by client:
   - --primary-color: Your client's main brand color
   - --sidebar-bg: Match the sidebar to their branding
   - --hero-bg-color: Customize homepage hero section
   - --font-family-base: Use client's preferred font

4. Advanced: Override Bootstrap classes:
   .btn-primary {
     background-color: var(--primary-color);
     border-color: var(--primary-color);
   }

BEST PRACTICES:
- Always use variables instead of hardcoded colors
- Test changes across multiple pages before deploying
- Keep client-specific overrides in this file
- Document any custom CSS you add below
*/


/* ========================================================================
   HOMEPAGE HERO — EDITORIAL TWO-COLUMN OVERLAY (Way Dental)
   Left:  eyebrow + headline + AI search box + CTAs
   Right: frosted glass card + 2x2 service quick links + doctor link
   All selectors namespaced .way-hero-* so they never collide with the
   template's default centered hero. Colors pull from the logo-matched
   palette above (slate --primary-color + cyan --brand-cyan).
   ======================================================================== */

/* Fallback poster if the video fails to load. Also corrects a stale path in
   clue.css that points at a non-existent vid/homepage-cover.jpg (404). */
#homepage-cover {
  background-image: url("../vid/home-cover.jpg");
  background-size: cover;
  background-position: center;
}

/* Recolor the background-video overlay from the old template blue to brand slate */
#homepage-cover .background-video-container-overlay {
  --hero-overlay-corner-1: rgba(58, 92, 120, 0.92);   /* top-left  (primary-dark) */
  --hero-overlay-corner-2: rgba(73, 114, 147, 0.86);  /* bottom-right (primary)  */
  --hero-overlay-tint: rgba(15, 32, 45, 0.42);        /* readability tint (slate-black) */
}

/* Two-column grid (asymmetric: editorial column wider than the card) */
.way-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
  width: 100%;
  padding: 2rem 0;
}

/* clue.css adds padding-left/right: 4rem to #homepage-cover p at >=766px (for the
   old centered hero). Cancel it for the two-column hero's paragraphs. */
#homepage-cover .way-hero-grid p {
  padding-left: 0;
  padding-right: 0;
}

/* ---- LEFT: editorial column ---- */
.way-hero-left { max-width: 640px; }

.way-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}
.way-hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 2px;
  background: var(--brand-cyan);
}

body.homepage #homepage-cover h1.way-hero-title {
  font-size: 3.25rem;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
body.homepage #homepage-cover h1.way-hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand-cyan);
}

.way-hero-tagline {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 34em;
  margin-bottom: 1.75rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Search box (retained) */
.way-hero-search {
  position: relative;
  max-width: 540px;
  margin-bottom: 1.5rem;
}
.way-hero-search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-size: 1.15rem;
  z-index: 2;
  pointer-events: none;
}
.way-hero-search-input {
  width: 100%;
  padding: 0.95rem 1.25rem 0.95rem 3rem;
  border-radius: 40px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.96);
  color: #1c2b36;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.way-hero-search-input::placeholder { color: #6a7681; }
.way-hero-search-input:focus {
  outline: none;
  border-color: var(--brand-cyan);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(57, 188, 205, 0.35);
}

/* CTA buttons */
.way-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.way-hero-btn-primary,
.way-hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 40px;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.way-hero-btn-primary {
  background: var(--brand-cyan);
  color: #0f3140;                 /* dark slate text on cyan — 5.8:1 contrast */
  box-shadow: 0 8px 20px rgba(57, 188, 205, 0.35);
}
.way-hero-btn-primary:hover,
.way-hero-btn-primary:focus-visible {
  background: var(--brand-cyan-dark);
  color: #0f3140;
  transform: translateY(-2px);
}
.way-hero-btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
}
.way-hero-btn-ghost:hover,
.way-hero-btn-ghost:focus-visible {
  background: #fff;
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* ---- RIGHT: frosted glass card ---- */
.way-hero-card {
  background: rgba(20, 40, 54, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.way-hero-card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-cyan);
}
.way-hero-card-eyebrow i { font-size: 1.05rem; }
.way-hero-card-intro {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  margin: 0.6rem 0 1.25rem;
}

/* 2x2 service quick-link grid */
.way-hero-services {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.way-hero-services a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 0.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.way-hero-services a i {
  font-size: 1.9rem;
  color: var(--brand-cyan);
  line-height: 1;
}
.way-hero-services a:hover,
.way-hero-services a:focus-visible {
  background: rgba(57, 188, 205, 0.18);
  border-color: var(--brand-cyan);
  transform: translateY(-2px);
}

.way-hero-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--brand-cyan);
  padding-bottom: 2px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.way-hero-card-link:hover,
.way-hero-card-link:focus-visible {
  color: var(--brand-cyan);
  gap: 0.7rem;
}

/* Mobile polish: this link measured 28px tall on a phone, which is a fiddly
   tap target. Padding is added on top only so the cyan underline stays tight
   to the text and the link looks unchanged. Desktop is untouched. */
@media (max-width: 767.98px) {
  .way-hero-card-link {
    padding-top: 16px;
  }
}

/* Scroll indicator sits lower now that the service dock is gone */
body.homepage #homepage-cover .hero-scroll-indicator { bottom: 24px; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .way-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
  }
  body.homepage #homepage-cover h1.way-hero-title { font-size: 2.6rem; }
  .way-hero-left { max-width: 100%; }
  .way-hero-card { max-width: 520px; }
}

@media (max-width: 767px) {
  .way-hero-grid { padding: 1.5rem 0 3rem; }
  body.homepage #homepage-cover h1.way-hero-title { font-size: 2.1rem; }
  .way-hero-tagline { font-size: 1.05rem; }
  body.homepage #homepage-cover .hero-scroll-indicator { display: none; }
}

@media (max-width: 480px) {
  body.homepage #homepage-cover h1.way-hero-title { font-size: 1.85rem; }
  .way-hero-buttons { flex-direction: column; align-items: stretch; }
  .way-hero-btn-primary,
  .way-hero-btn-ghost { justify-content: center; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .way-hero-btn-primary,
  .way-hero-btn-ghost,
  .way-hero-services a,
  .way-hero-card-link,
  .way-hero-search-input { transition: none; }
}


/* ========================================================================
   EMERGENCY DENTISTRY MICROSITE
   Horizontal pill sub-nav + call-first band, themed to the Way Dental
   slate/cyan palette. Namespaced so it only affects the microsite pages.
   ======================================================================== */
.microsite-subnav {
  padding: 0.75rem 0;
  background: var(--primary-color);
}
.microsite-subnav .subnav-link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.microsite-subnav .subnav-link:hover,
.microsite-subnav .subnav-link:focus-visible {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.15);
}
.microsite-subnav .subnav-link.active {
  color: #0f3140;                    /* dark slate text on cyan pill */
  background-color: var(--brand-cyan);
  font-weight: 600;
}
@media (max-width: 575.98px) {
  .microsite-subnav .subnav-link {
    padding: 0.4rem 0.9rem;
    font-size: 0.78rem;
  }
}

/* Emergency hub "Call Now" band */
.emergency-call-band {
  background-color: #eef4f8;                 /* light slate tint */
  border: 1px solid rgba(73, 114, 147, 0.25);
  border-top: 4px solid var(--brand-cyan);   /* cyan brand accent */
  border-radius: 0.6rem;
  color: #24384a;
}
/* The band sits inside #inside-header, whose h1 is forced white in clue.css.
   Restore a dark slate heading so it's legible on the light band. */
#inside-header .emergency-call-band h1 {
  color: var(--primary-color);
}
.emergency-call-band .emergency-call-btn,
#content .emergency-call-band .emergency-call-btn {
  font-size: 1.35rem;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 40px;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.emergency-call-band .emergency-call-btn:hover,
.emergency-call-band .emergency-call-btn:focus,
.emergency-call-band .emergency-call-btn:active,
#content .emergency-call-band .emergency-call-btn:hover,
#content .emergency-call-band .emergency-call-btn:focus {
  background-color: var(--primary-color-dark);
  border-color: var(--primary-color-dark);
  color: #fff;
}


/* ========================================================================
   HOMEPAGE SPECIAL OFFERS (Way Dental)
   Three offer cards with icon badges, tag pills, and a featured inverted
   middle card. Distinct slate/cyan layout (own namespace .way-offers-*).
   ======================================================================== */
.way-offers {
  padding: 4rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #e8eff5 100%);
}
.way-offers-intro { max-width: 680px; margin: 0 auto 2.5rem; }
.way-offers-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-cyan-dark);
  margin-bottom: 0.6rem;
}
.way-offers-heading {
  font-weight: 300;
  color: var(--primary-color);
  margin-bottom: 0.6rem;
}
.way-offers-sub { color: var(--text-secondary); margin-bottom: 0; }

.way-offer-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e9f0;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: 0 6px 22px rgba(30, 60, 90, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.way-offer-card:hover,
.way-offer-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(30, 60, 90, 0.13);
}
.way-offer-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-color);
  background: rgba(57, 188, 205, 0.14);
  border: 1px solid rgba(57, 188, 205, 0.45);
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  margin-bottom: 1.25rem;
}
.way-offer-badge {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--brand-cyan) 130%);
  color: #fff;
  font-size: 1.9rem;
  margin-bottom: 1.1rem;
}
.way-offer-badge i { line-height: 1; }
.way-offer-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.55rem;
}
.way-offer-desc {
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}
.way-offer-btn {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--primary-color);
  background: transparent;
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  padding: 0.5rem 1.35rem;
  transition: background-color 0.2s ease, color 0.2s ease, gap 0.2s ease;
}
.way-offer-btn:hover,
.way-offer-btn:focus-visible {
  background: var(--primary-color);
  color: #fff;
  gap: 0.7rem;
}

/* Featured (middle) card — inverted slate fill */
.way-offer-card--featured {
  background: linear-gradient(150deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(30, 60, 90, 0.22);
}
.way-offer-card--featured .way-offer-title { color: #fff; }
.way-offer-card--featured .way-offer-desc { color: rgba(255, 255, 255, 0.9); }
.way-offer-card--featured .way-offer-badge {
  background: var(--brand-cyan);
  color: #0f3140;
}
.way-offer-tag--featured {
  color: #0f3140;
  background: var(--brand-cyan);
  border-color: var(--brand-cyan);
}
.way-offer-btn--featured {
  background: var(--brand-cyan);
  color: #0f3140;
  border-color: var(--brand-cyan);
}
.way-offer-btn--featured:hover,
.way-offer-btn--featured:focus-visible {
  background: #fff;
  color: var(--primary-color);
  border-color: #fff;
}

.way-offers-terms {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 2rem auto 0;
  max-width: 760px;
}

@media (prefers-reduced-motion: reduce) {
  .way-offer-card,
  .way-offer-btn { transition: none; }
}


/* ========================================================================
   BRAND TYPOGRAPHY
   Headings: Cinzel — the free Google Fonts match for the WAY DENTAL logo
   wordmark (Trajan-style inscriptional Roman capitals).
   Body: Lato — a warm, highly readable humanist sans used everywhere else.
   Fonts are loaded via the Google Fonts <link> in base-simple.njk <head>.
   The heading font variable was previously defined but never applied, so
   these rules also wire the variables to the actual elements.
   ======================================================================== */
body {
  font-family: var(--font-family-base);
}

h1, h2, h3, h4, h5, h6,
.hp-section-heading,
.way-offers-heading {
  font-family: var(--font-family-headings);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Bootstrap sets .lead to font-weight 300, which reads too thin in Lato and
   clashes with the 400-weight body copy right below it. Match the body weight
   and set the lead apart by a softer gray-blue color instead of by weight.
   Dark-band leads keep their white color via a higher-specificity rule. */
.lead {
  font-weight: 400;
  color: #566b7d;
}

/* A .lead used as a subheading inside the blue #inside-header band must stay
   light. The gray-blue above is dark-on-blue and unreadable on the gradient,
   so match the white heading it sits under. */
#inside-header .lead {
  color: rgba(255, 255, 255, 0.92);
}

/* Homepage hero uses the heading serif (Cinzel) so it matches the rest of the
   site. Cinzel has no true italic, so the cyan accent is set upright (not a
   synthetic slant) and kept a lighter weight for contrast against the title. */
body.homepage #homepage-cover h1.way-hero-title,
.way-hero-title {
  font-family: var(--font-family-headings);
  letter-spacing: 0.02em;
  font-weight: 600;
}
body.homepage #homepage-cover h1.way-hero-title em,
.way-hero-title em {
  font-style: normal;
  font-weight: 400;
}
