/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Removed duplicate font @import (fonts are loaded in index.html) */


html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #faf9f7; /* fallback */
    background: linear-gradient(180deg, #fff9ea 0%, #d8cdb3 100%);
}

/* Typography refinements for an editorial, luxury feel */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
}

body, h1, h2, h3, h4, h5, h6 {
    font-variant-ligatures: common-ligatures;
    font-feature-settings: 'liga' 1, 'kern' 1;
    font-optical-sizing: auto;
}

.container {
    width: 100%;
    max-width: 1200px;        /* or 1400px if you prefer, doesn’t affect mobile */
    margin: 0 auto;
    padding: 0 1.25rem;       /* all horizontal padding handled here */
    box-sizing: border-box;   /* already set globally, but harmless to repeat */
}


/* Navigation */
.main-nav {
    background: transparent;
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.mobile-menu-button {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.8rem;
    position: absolute;
    right: 1.2rem;
    top: 0.7rem;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a1a1a;
    margin: 5px 0;
    transition: 0.3s ease-out;
    border-radius: 2px;
    transform-origin: center;
}

/* Burger animation when active */
.mobile-menu-button.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 249, 234, 0.98);
    backdrop-filter: blur(10px);
    list-style: none;
    padding: 5rem 2rem 2rem;
    margin: 0;
    transition: all 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1100; 
}


.nav-links.active {
    right: 0;
}

.nav-links li a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: #1a1a1a;
    transition: all 0.3s ease;
    border-radius: 8px;
    text-align: center;
    font-family: 'Lato', sans-serif;
}

.nav-links li a:hover {
    background: rgba(216, 205, 179, 0.2);
    transform: translateX(5px);
    color: #333;
    transition: 0.3s;
}



/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding: 0 0 5rem;
    background: transparent; /* gradient now applied to body */
    text-align: left;
    position: relative;
    overflow: hidden;
    background-size: 100% 100%;
}

/* Gradient adjustments for different screen sizes */
@media screen and (min-width: 1440px) {
    body {
        background: linear-gradient(180deg, 
            #fffcf5 0%,
            #f7f4ed 30%,
            #ede9e0 70%,
            #d8d5ca 100%
        );
    }
}

@media screen and (min-width: 1920px) {
    body {
        background: linear-gradient(180deg,
            #fffcf5 0%,
            #f9f6ef 20%,
            #f3f0e7 40%,
            #ebe7dd 60%,
            #e3dfd5 80%,
            #d8d5ca 100%
        );
    }
}

.hero-content {
    max-width: 90%;
    position: relative;
    z-index: 2;
    padding-top: 6rem;  /* Space for nav + content spacing */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;  /* Centers children horizontally */
}

.hero-section .container {
    position: relative;
    display: grid;
    justify-items: center; /* keep hero stack centered without dragging the image */
}

.hero-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 120px;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    letter-spacing: -2px;
    text-align: center;  /* Center the text itself */
    line-height: 1;
    white-space: nowrap;
    width: auto;  /* Allow natural width */
    overflow: visible;
    display: block;  /* Ensures block behavior */
    margin-left: auto;  /* Center horizontally */
    margin-right: auto;
}

.credentials {
    font-family: 'Lato', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #4a4a4a;
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
    text-align: center;
}

.title {
    font-family: 'Lato', sans-serif;
    font-size: 42px;
    font-weight: 500;
    color: #1a1a1a;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
    letter-spacing: 4px;
    text-align: center;
}

.tagline {
    display: flex;
    flex-direction: column;
    font-family: 'Playfair Display', serif;
    margin-top: 5rem;
    margin-bottom: 2rem;
    line-height: 1.3;
    align-items: flex-start;  /* Aligns flex items to the left */
}

.tagline-primary,
.tagline-secondary {
    font-size: 38px;
    font-weight: 400;
    text-align: left;  /* Ensures text within spans is left-aligned */
    max-width: 100%;   /* Ensures full width is available */
    line-height: 1.4;
}

/* A block that will be sized to match the H1 width so its left edge lines up
   with the H1's first letter. JS will set its exact width; until then it
   falls back to auto-centered, left-aligned content. */
.aligned-block {
    display: block;
    margin: 0 auto; /* centers the block */
    text-align: left; /* internal content is left-aligned */
    /* small max width to avoid excessive width before JS runs */
    max-width: 90%;
    /* JS will set the explicit width to match the H1; no transform needed */
    transition: width 120ms ease;
}

.tagline-primary {
    color: #1a1a1a;
}

.tagline-secondary {
    color: #1a1a1a;
}

.tech-intro {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    color: #666;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-align: left;  /* Ensures left alignment */
    align-self: flex-start;  /* Aligns the element to the left in flex container */
    max-width: 100%;  /* Ensures full width is available */
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #d4af37 0%, #c5a028 100%);
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.decorative-element {
    position: absolute;
    top: 50%;
    right: -6%;             /* push image further right so text center reads true */
    /* use an actual img; control its rendered size precisely */
    width: 85%;
    max-width: 500px;
    height: auto;
    transform: translateY(-50%);
    opacity: 0.95;
    z-index: 1;              /* behind hero text (hero-content z-index:2) */
    pointer-events: none;
    object-fit: contain;
    display: block;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-52%) translateX(10px);
    }
    100% {
        transform: translateY(-50%) translateX(0);
    }
}



@media (max-width: 480px) {
    h2 { font-size: 28px; line-height: 1.25; letter-spacing: -0.2px; }
    .hero-section h1 {
        font-size: 36px;
    }

    .credentials {
        font-size: 16px;
    }

    .title {
        font-size: 24px;
    }

    .tagline-primary,
    .tagline-secondary {
        font-size: 20px;
    }

    .tech-intro {
        font-size: 13px;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }
}

/* Hover effects */
.cta-button:hover {
    background: #0056b3;
}

/* .nav-links li a:hover duplicate removed to avoid conflicts */

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .decorative-element {
        animation: none !important;
        transform: translateY(-50%) !important; /* keep stable position */
    }
}

/* Innovation Section */
.innovation-section {
    position: relative;
    /* let content define the height */
    height: auto;           /* NEW */
    min-height: 100vh;      /* still fills at least one viewport */
    overflow: visible;      /* NEW: don’t crop the card */
    padding: 5rem 0 7.5rem;   /* a bit more bottom breathing room */
    background: #f7f4ee;    /* fallback behind bg image */
}


.innovation-section .container {
    /* Anchor absolute elements (like the card) to the section, not the container */
    position: static;
    height: auto;
}

.innovation-bg {
    position: absolute;
    inset: 0;
    background-image: url('images/aligner_gloves.png');
    background-position: center -80px; /* crop a bit from the top */
    background-repeat: no-repeat;
    background-size: cover; /* fill viewport; allow slight crop */
    opacity: 1; /* keep strong presence; adjust if needed */
    filter: none; /* remove clarity boost */
    z-index: 0;
}

/* Tweak crop offset responsively */
@media (max-width: 1200px) {
    .innovation-bg { background-position: center -60px; }
}
@media (max-width: 768px) {
    .innovation-bg { background-position: center -40px; }
}

.innovation-header {
    position: relative;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* right align header content */
    text-align: right;
    /* Shrink-wrap to content and align to the right so children at width:100% match header width */
    width: fit-content;
    margin-left: auto;
}

/* Innovation: title wrap so accent equals title width */
.innovation-header .inno-title-wrap { display: inline-block; }
.innovation-header .inno-title-wrap .accent-rule {
  display: block;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  height: 4px;
  background: #e15c17; /* innovation accent */
}

.innovation-ribbon {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, rgba(18,18,18,0.72) 0%, rgba(18,18,18,0.56) 100%);
    backdrop-filter: blur(2px) saturate(110%);
    padding: 1rem 1.25rem;
    /* stack text and align right to echo Canva layout */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 10px 28px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.06);
}

.section-kicker {
    font-family: 'Playfair Display', serif;
    color: #e15c17; /* match Graphy logo */
    font-size: 72px;
    line-height: 1.05;
    text-align: right;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.section-title {
    font-family: 'Lato', sans-serif;
    font-weight: 800;
    font-size: 25px;
    color: #fff;
    letter-spacing: 0.5px;
    margin-top: 0.25rem; /* sit below kicker */
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
/* Ensure measured width equals text width for accent sizing */
.innovation-header .section-title,
.pe-header .section-title { display: inline-block; }

.accent-rule {
    /* Match width to section-title via JS; don't force full width */
    width: auto;
    height: 4px;
    background: #e15c17; /* match Graphy logo */
    border-radius: 2px;
    margin-top: 0.5rem;
    /* Match the ribbon's right padding so the rule insets equally */
    margin-right: 1.25rem;
}

.partner-badge {
    align-self: flex-end;
    margin-top: 0.6rem;
    display: inline-flex;
    align-items: center;
}
.innovation-header .partner-badge { display: none; }

.partner-logo {
    height: 100px;
    width: auto;
    display: block;
}

/* High-clarity aligner overlay (static, like hero) */


.innovation-quote {
    display: none !important; /* replaced by innovation-card */
}

/* Editorial opening quote to add static depth */


.quote-text {
    font-size: 20px;
}

/* Innovation card: sits below the quotes, centred */
#innovation .innovation-card {
    position: relative;
    margin: 1.75rem auto 0;             /* space above card and centre it */
    width: min(640px, 100% - 3rem);     /* responsive width */
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(4px) saturate(108%);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 18px;
    padding: 1.25rem 1.5rem 1.1rem;
    box-shadow: 0 16px 36px rgba(0,0,0,0.12);
    color: #3a3a3a;
    z-index: 2;
}


/* New: Airalo-like section card wrapper */
.innovation-section-card {
    position: relative;
    z-index: 1;
    width: min(1280px, 96%);
    margin: 0 auto;
    background: #ffffff; /* fallback behind image */
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(0,0,0,0.10);
    padding: clamp(1.25rem, 3vw, 2.75rem) clamp(1.25rem, 4vw, 3rem);
    min-height: clamp(420px, 52vh, 700px);
    overflow: hidden; /* clip background image corners */
}

/* Put the original background image inside the card */
.innovation-section-card::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Lighter overlay and more centered crop for clearer image */
    background-image: linear-gradient(180deg, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.28) 55%, rgba(0,0,0,0.34) 100%), url('images/aligner_gloves.png');
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Match previous responsive crop inside the card */
@media (max-width: 1200px) {
  .innovation-section-card::before { background-position: center 20%; }
}
@media (max-width: 768px) {
  .innovation-section-card::before { background-position: center 20%; }
}

/* Ensure all direct content sits above the image */
.innovation-section-card > * { position: relative; z-index: 1; }

/* Reflow header and points inside the section card */
.innovation-section-card .innovation-header {
    align-items: center;
    text-align: center;
    width: 100%;
    margin-left: 0;
}
.innovation-section-card .innovation-header .innovation-ribbon { align-items: center; }
.innovation-section-card .innovation-header .accent-rule { margin-right: 0; margin-left: 0; margin-inline: auto; }

.innovation-section-card .innovation-card {
    /* Turn the floating card into static content within the section card */
    position: static !important;
    width: 100%;
    max-width: none;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
    margin-top: 1.25rem;
}
.innovation-section-card .innovation-lead { padding-left: 0; text-align: center; max-width: 920px; margin: 0 auto; }
.innovation-section-card .innovation-points { grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; width: 100%; max-width: 920px; margin-left: auto; margin-right: auto; justify-items: stretch; }
.innovation-section-card .innovation-points li { padding: 0.45rem 0.25rem; font-size: 18px; line-height: 1.75; }
.innovation-section-card .innovation-lead { font-size: 26px; line-height: 1.55; }
.innovation-section-card .ip-icon { width: 1.4rem; }

@media (max-width: 600px) {
  .innovation-section-card .innovation-points li { font-size: 17px; line-height: 1.7; }
  .innovation-section-card .innovation-lead { font-size: 24px; }
}
.innovation-section-card .innovation-lead,
.innovation-section-card .innovation-points li { color: #ffffff; text-shadow: 0 1px 2px rgba(0,0,0,0.55); }
@media (max-width: 768px) {
  .innovation-section-card .innovation-points { grid-template-columns: 1fr; }
}
.innovation-section-card .card-partner { justify-content: center; }

@media (max-width: 992px) {
  .innovation-section-card { width: min(1100px, 96%); min-height: auto; }
  .innovation-section-card .innovation-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .innovation-section-card { width: 100%; border-radius: 18px; min-height: auto; padding: 1rem; }
  .innovation-section-card .innovation-points { grid-template-columns: 1fr; }
}

.innovation-lead {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    line-height: 1.5;
    margin: 0 0 0.5rem;
    text-wrap: balance;
    hyphens: none;
    /* Align lead text start with the bullet text column (icon width + gap) */
    padding-left: calc(1.1rem + 0.5rem);
}

.innovation-points {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0;
    display: grid;
    gap: 0.4rem;
    justify-items: start; /* align rows to the left edge */
    width: 100%;
}

.innovation-points li {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    display: grid;                /* ensure wraps align under text, not icon */
    grid-template-columns: 1.1rem 1fr; /* fixed bullet column for consistent left edge */
    align-items: start;
    gap: 0.5rem;
    justify-content: start;
    text-align: left;
}

.ip-icon {
    color: #c7a64a;
    font-weight: 700;
    align-self: start;
    width: 1.1rem;
    text-align: center;
    margin-left: -0.25rem; /* slight inset for visual balance against right padding */
}

.innovation-chips {
    display: grid;
    grid-auto-flow: column;
    gap: 0.5rem;
    margin-top: 1rem;
    width: max-content;
    margin-left: auto;
}

/* Ensure any accidental innovation card markup outside the section stays hidden */
.patient-experience-section .innovation-card, .smiles-simplified-section .innovation-card, .patient-experience-section .innovation-chips, .smiles-simplified-section .innovation-chips { display: none !important; }

.chip {
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    font-size: 12px;
    color: #7a7263;
}

/* Sub-quote under Graphy logo in Innovation */
.innovation-subquote {
    position: relative;
    z-index: 1;
    color: #ffffff;
    text-shadow:
        0 0 1px rgba(0,0,0,0.60),
        0 2px 16px rgba(0,0,0,0.44),
        0 1px 3px rgba(0,0,0,0.34);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 600;
    font-size: clamp(18px, 1.6vw, 24px);
    line-height: 1.6;
    -webkit-text-stroke: 0.35px rgba(0,0,0,0.35);
    paint-order: stroke fill;
    letter-spacing: 0.2px;
    text-align: right;
    margin-top: 0.9rem;
    margin-right: 1.25rem; /* align with ribbon padding */
    margin-left: auto;
    max-width: 520px;
    /* Very faint ribbon-like backdrop */
    display: inline-block;
    background: linear-gradient(180deg, rgba(18,18,18,0.28) 0%, rgba(18,18,18,0.22) 100%);
    backdrop-filter: blur(2px) saturate(108%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 0.5rem 0.75rem 0.45rem;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    quotes: "\201C" "\201D";
}





/* On desktop, drop the subquote further so the logo has breathing room */
@media (min-width: 992px) {
    .innovation-subquote { margin-top: 2.6rem; }
}
@media (min-width: 1200px) {
    .innovation-subquote { margin-top: 3.2rem; }
}
@media (min-width: 1440px) {
    .innovation-subquote { margin-top: 4rem; max-width: 600px; }
}
.innovation-subquote::before { content: open-quote; color: currentColor; margin-right: 0.05em; }
.innovation-subquote::after { content: close-quote; color: currentColor; margin-left: 0.05em; }

/* Partner logo inside Innovation card */
.card-partner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.card-partner .partner-logo { height: 64px; width: auto; opacity: 0.92; }
@media (max-width: 768px) {
  .card-partner { justify-content: center; }
  .card-partner .partner-logo { height: 52px; }
}

/* Desktop alignment handled via calculated right offset on the card itself. */

@media (max-width: 992px) {
    .section-kicker { font-size: 48px; }
    .section-title { font-size: 18px; }
    .innovation-ribbon { padding-right: 1.25rem; }
    .innovation-quote { max-width: 520px; right: 1.5rem; bottom: 1.5rem; }
}

@media (max-width: 768px) {
    .innovation-section { padding: 4rem 0; }
    .innovation-section .container { height: auto; }
    .partner-badge { position: static; margin-top: 1.25rem; }
    .section-kicker { font-size: 30px; }
    .innovation-ribbon { padding: 0.75rem 1rem; max-width: 480px; width: 100%; }
    /* Keep mobile aligned to the right like desktop */
    .innovation-header { align-items: flex-end; text-align: right; width: 100%; margin-left: 0; }
    .innovation-ribbon { align-items: flex-end; }
    .innovation-header .accent-rule { margin-left: auto; margin-right: 0; margin-inline: 0; }
    /* Make innovation subquote match ribbon width on mobile */
    .innovation-subquote.align-with-ribbon {
        width: 100%;
        max-width: 480px;           /* mirror ribbon constraint */
        margin-left: auto;          /* align to right edge like header */
        margin-right: 0;
        padding-left: 1rem;         /* mirror ribbon padding */
        padding-right: 1rem;
    }
    .innovation-card { margin: 1rem 0 0; max-width: 100%; padding: 1rem; }
    .innovation-lead { font-size: 18px; }
    .innovation-points li { font-size: 14px; }
    .accent-rule { margin-right: 1rem; }
    .innovation-header { margin-bottom: 1.25rem; }
    .partner-badge { align-self: center; }
    .partner-logo { height: 60px; }
    .innovation-chips { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0,1fr)); margin-left: 0; width: 100%; }
    .chip { text-align: center; }
}

/* Patient Experience Section */
.patient-experience-section, .smiles-simplified-section {
    position: relative;
    background: linear-gradient(180deg, #faf9f7 0%, #f6f4f0 100%);
    padding: 6rem 0 5rem;
}

/* Benefits variant with photographic background */
.pe-benefits-section {
    background: none; /* image provides the backdrop */
    color: #1a1a1a;
}
.pe-benefits-section .container { position: relative; z-index: 1; }

.pe-bg {
    position: absolute;
    inset: 0;
    background-image: var(--pe-bg);
    background-size: cover;
    background-position: 72% center; /* nudge subject further right to clear text */
    filter: saturate(105%);
    z-index: 0;
}

.pe-benefits-section::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Add a soft radial lighten behind the header + the existing lateral wash */
    background:
      radial-gradient(60% 40% at 50% 18%, rgba(250,249,247,0.98) 0%, rgba(250,249,247,0.90) 38%, rgba(250,249,247,0.62) 60%, rgba(250,249,247,0) 80%),
      linear-gradient(90deg, rgba(250,249,247,0.92) 0%, rgba(250,249,247,0.78) 35%, rgba(250,249,247,0.40) 60%, rgba(250,249,247,0) 100%);
    z-index: 0;
}

/* Subtle top vignette to lift header contrast without a card */
/* Single overlay is sufficient; disable extra vignette to avoid stacking */
.pe-benefits-section::after { content: none; }

@media (max-width: 992px) {
    .pe-bg { background-position: center 40%; }
    .pe-benefits-section::before {
        background:
          radial-gradient(75% 45% at 50% 14%, rgba(250,249,247,0.99) 0%, rgba(250,249,247,0.92) 42%, rgba(250,249,247,0.66) 62%, rgba(250,249,247,0) 80%),
          linear-gradient(180deg, rgba(250,249,247,0.96) 0%, rgba(250,249,247,0.78) 45%, rgba(250,249,247,0.32) 100%);
    }
}

@media (max-width: 600px) {
    .pe-bg { background-position: center 35%; }
}

.pe-header {
    text-align: center;
    margin-bottom: 2.75rem;
}

/* Use Innovation ribbon styling inside Patient Experience header */
.pe-header .innovation-ribbon {
    align-items: center;
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
    width: fit-content;     /* shrink-wrap to kicker width */
    display: inline-flex;   /* shrink to content width */
    overflow: visible;
}
.pe-benefits-section .pe-header { text-align: left; }
.pe-benefits-section .pe-header .innovation-ribbon {
    align-items: flex-start;
    text-align: left;
    margin-left: 0;
    margin-right: auto;
    margin-bottom: 0.25rem; /* visual separation from intro to emphasize it sits outside */
}
/* Accent rule under PE ribbon, left-aligned */
.pe-benefits-section .pe-header .accent-rule {
    margin-top: 0.5rem;
    margin-left: 1.25rem;   /* match innovation-ribbon desktop left/right padding */
    margin-right: 0;     /* override global right inset */
    background: #bc9c22; /* gold accent for PE */
}
/* When accent sits inside the ribbon wrap, make it match title width exactly */
.pe-benefits-section .pe-header .pe-title-wrap { display: inline-block; }
.pe-benefits-section .pe-header .pe-title-wrap .accent-rule {
    margin-left: 0;   /* no extra inset inside the ribbon */
    margin-right: 0;
    width: 100%;      /* match the title-wrap width (the h2 width) */
}
@media (max-width: 768px) {
    .pe-benefits-section .pe-header .accent-rule {
        margin-left: 1rem; /* ribbon mobile padding-left (0.75rem 1rem) */
        margin-right: 0;
        margin-inline: 0;
    }
}
.pe-benefits-section .section-kicker { font-size: 72px; color: #bc9c22; text-align: left; white-space: nowrap; }
.pe-benefits-section .section-title { font-size: 25px; text-align: left; }
@media (max-width: 992px) {
    .pe-benefits-section .section-kicker { font-size: 48px; text-align: left; }
    .pe-benefits-section .section-title { font-size: 18px; text-align: left; }
}
@media (max-width: 768px) {
    .pe-benefits-section .section-kicker { font-size: 36px; text-align: left; }
}

/* Extra legibility for benefits header over photo */
.pe-benefits-section .pe-title { text-shadow: 0 2px 12px rgba(0,0,0,0.28), 0 1px 2px rgba(0,0,0,0.18); }
.pe-benefits-section .pe-intro {
    /* Readability backdrop, matched to .innovation-subquote */
    color: #ffffff;
    text-shadow: 0 0 1px rgba(0,0,0,0.60), 0 2px 16px rgba(0,0,0,0.44), 0 1px 3px rgba(0,0,0,0.34);
    font-family: 'Playfair Display', serif;
    font-style: italic;              /* magazine quote feel */
    font-weight: 600;
    font-size: clamp(17px, 1.4vw, 24px);
    line-height: 1.6;
    text-align: left;
    margin-left: 1.25rem;            /* align with ribbon desktop padding */
    margin-right: auto;
    margin-top: 1.25rem;             /* add more space below accent rule */
    max-width: 760px;                /* shorten measure to avoid busy areas */
    quotes: "\201C" "\201D";       /* “ ” */
    /* Backdrop block */
    display: inline-block;
    background: linear-gradient(180deg, rgba(18,18,18,0.28) 0%, rgba(18,18,18,0.22) 100%);
    backdrop-filter: blur(2px) saturate(108%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 0.5rem 0.75rem 0.45rem;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}
@media (max-width: 768px) {
    .pe-benefits-section .pe-header { align-items: flex-start; text-align: left; }
    .pe-benefits-section .pe-intro {
        /* Align exactly with ribbon padding-left */
        padding-left: 1rem;         /* match ribbon mobile padding */
        margin-left: 0;             /* avoid double offset */
        margin-top: 1rem;           /* spacing below accent rule */
        text-align: left;
    }
    /* Avoid optical left overhang from decorative quotes on small screens */
    .pe-benefits-section .pe-intro::before,
    .pe-benefits-section .pe-intro::after { display: none; }
}

/* Extra-tight mobile refinements */
@media (max-width: 480px) {
  /* Contact: tighter stack and touch-friendly scale */
  .contact-section .contact-row { gap: 12px; }
  .contact-section .contact-details { gap: 10px; }
  .contact-section .mini-card-body { padding: 14px; }
  .contact-section .mini-card-value { font-size: 20px; }
  .contact-section .btn-chip { padding: .55rem .85rem; font-size: .95rem; }
}

@media (max-width: 400px) {
  /* Patient Experience: scale down title and intro slightly */
  .pe-benefits-section .pe-title { font-size: 28px; }
  .pe-benefits-section .pe-intro { font-size: 15px; line-height: 1.6; }
}

/* Utility: align following content with ribbon padding */
.align-with-ribbon { padding-left: 1.25rem; }
@media (max-width: 768px) { .align-with-ribbon { padding-left: 1rem; } }

/* Make PE header fill viewport and pin the first intro to bottom */
.pe-benefits-section .container {
    min-height: 70svh;              /* was 100svh; reduce anchoring effect */
    display: flex;
    flex-direction: column;
}
.pe-benefits-section .pe-header {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;                 /* stretch to fill container height */
    gap: 0.4rem;                    /* was 0.75rem; lighter spacing */
}
.pe-benefits-section .pe-header .pe-intro {
    margin-top: auto;               /* push the intro to the bottom of header */
    margin-bottom: clamp(8px, env(safe-area-inset-bottom) + 6px, 16px);
}
@media (max-width: 768px) {
    .pe-benefits-section .container { min-height: 70svh; }
    .pe-benefits-section .pe-header { gap: 0.45rem; }
    .pe-benefits-section .pe-header .pe-intro {
        margin-bottom: clamp(6px, env(safe-area-inset-bottom) + 5px, 12px);
    }
}
.pe-benefits-section .pe-intro::before {
    content: open-quote;
    color: currentColor;              /* match intro text color */
    font-size: 1.25em;
    font-weight: 600;
    line-height: 0;
    vertical-align: -0.05em;
    margin-right: 0.05em;
}
.pe-benefits-section .pe-intro::after {
    content: close-quote;
    color: currentColor;              /* match intro text color */
    font-size: 1.25em;
    font-weight: 600;
    line-height: 0;
    vertical-align: -0.05em;
    margin-left: 0.05em;
}

.pe-kicker {
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 12px;
    color: #7a7263;
    margin-bottom: 0.75rem;
}

.pe-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 48px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: #101010;
    margin: 0 0 0.75rem 0;
}

.pe-intro {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    color: #262626;
    max-width: 820px;
    margin: 0.5rem auto 0;
    line-height: 1.7;
}

/* Patient Experience cards */
.pe-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2.25rem;
    align-items: stretch;          /* make all cards the same height per row */
}

.pe-highlight {
    display: flex;                 /* stack content vertically */
    flex-direction: column;
    background: rgba(255, 255, 255, 0.66);
    backdrop-filter: blur(6px) saturate(110%);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 18px;
    padding: 1.25rem 1.25rem 1.1rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

/* let the body copy grow so shorter cards still fill the height */
.pe-highlight-text {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: #4a4a4a;
    line-height: 1.7;
    flex-grow: 1;
}


.pe-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;        /* Remove white boxes by handling bg here */
    border-radius: 12px;        /* Softer, uniform shape */
    overflow: hidden;
    margin-bottom: 1rem;
}

.pe-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;        /* avoids cropping, keeps proportions */
    background: transparent;    /* remove the white image background */
}


.pe-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* crop elegantly to square */
    border-radius: 8px;      /* soften corners to match cards */
    display: block;
}

.pe-highlight-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.25;
    color: #1a1a1a;
    margin: 0 0 0.35rem 0;
}

.pe-highlight-text {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: #4a4a4a;
    line-height: 1.7;
}

.pe-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    margin-top: 2.75rem;
    position: relative;
}

.pe-steps::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,0.12), rgba(0,0,0,0));
}

.pe-step {
    position: relative;
    padding-top: 1.75rem;
}

.pe-step-dot {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #c7a64a;
    box-shadow: 0 8px 18px rgba(199,166,74,0.35);
}

.pe-step-title {
    text-align: center;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    color: #7a7263;
    margin-bottom: 0.25rem;
}

.pe-step-text {
    text-align: center;
    font-size: 15px;
    color: #3a3a3a;
}

@media (max-width: 992px) {
    .pe-title { font-size: 40px; }
    .pe-highlights { grid-template-columns: 1fr 1fr; }
    .pe-steps { grid-template-columns: 1fr; }
    .pe-steps::before { display: none; }
    .pe-step { padding-top: 0.5rem; }
    .pe-step-dot { position: static; transform: none; margin: 0 auto 0.5rem; }
}

@media (max-width: 600px) {
    .pe-title { font-size: 32px; }
    .pe-intro { font-size: 16px; }
    .pe-highlights { grid-template-columns: 1fr; }
}

/* Smiles Simplified Section 2: bottom thumbnail layout */
#smiles-simplified-2 .pe-highlight {
    display: flex;
    flex-direction: column;
}
#smiles-simplified-2 .pe-icon {
    order: 3;                    /* push image below title + text */
    width: 100%;
    margin: 0.75rem 0 0;        /* space above image only */
    height: auto;               /* override base 40px height */
    display: block;             /* let image define height */
}
#smiles-simplified-2 .pe-icon img {
    width: 100%;
    height: auto;               /* no cropping; keep natural aspect */
    object-fit: contain;        /* ensure full image is visible */
    border-radius: 12px;        /* slightly larger radius for photo feel */
    display: block;
}

/* Mobile overrides to anchor Innovation card at bottom of viewport */
@media (max-width: 768px) {
    .innovation-section {
        padding: 4rem 0 11rem;
    }
    /* Keep background image and mobile overlay visible */
    /* .innovation-section::before remains defined above to improve contrast */
    /* .innovation-bg remains visible for mobile */
  
    .innovation-chips { display: none; }
}



@media (max-width: 480px) {
    /* Further adjust crop for very small screens */
    /* Keep background image visible on very small screens as well */
}

/* Innovation full-bleed background (restored) */
.innovation-bg {
    position: absolute;
    inset: 0;
    background-image: url('images/aligner_gloves.png');
    background-position: center -60px;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 1;
    z-index: 0;
}

/* =========================
   CALL TO ACTION SECTION
   ========================= */

.cta-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:11.25rem 1.5rem 5rem;
  color: #f9fafb;
  overflow: hidden;
}

/* Background image layer */
.cta-bg {
  position: absolute;
  inset: 0;
  background-image: url("images/call_us_aligner.png");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Soft dark overlay for readability */
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(0, 0, 0, 0.45), transparent 60%),
              linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.2));
  z-index: 0;
}

/* Bring real content above image/overlay */
.cta-section .container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
}

/* Header ribbon – centred like your screenshot */
.cta-section .innovation-header {
  display: flex;
  justify-content: center;
}

.cta-section .innovation-ribbon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 2.25rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.72) 0%, rgba(18, 18, 18, 0.56) 100%);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.7);
}

/* Small top line: "Begin Your Smile Journey" */
.cta-section .section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  margin-bottom: 0.55rem;
  color: #79a6c5; /* your chosen CTA blue */
  text-align: center;
}

/* Main title: "Our Services Are Available..." */
.cta-section .section-title {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1.25;
  color: #f9fafb;
  margin: 0;
  text-align: center;
}

/* Accent bar under the title – match full title width */
.cta-section .cta-title-wrap .accent-rule {
  display: block;
  height: 3px;
  width: 100%;          /* now spans the whole title block */
  border-radius: 999px;
  margin-top: 0.75rem;
  background: #79a6c5;  /* CTA blue */
}



/* Quote card – anchored towards the lower-right */
.cta-quote {
  position: absolute;
  right: clamp(2rem, 14vw, 6rem);
  bottom: clamp(2rem, 10vh, 4rem);
  max-width: min(520px, 42vw);
}

.cta-quote-text {
  margin: 0;
  color: #ffffff;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  line-height: 1.6;
  letter-spacing: 0.2px;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.60),
    0 2px 16px rgba(0, 0, 0, 0.44),
    0 1px 3px rgba(0, 0, 0, 0.34);
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.28) 0%, rgba(18, 18, 18, 0.22) 100%);
  backdrop-filter: blur(2px) saturate(108%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 0.6rem 1rem 0.55rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  quotes: "\201C" "\201D";
}

.cta-quote-text::before { content: open-quote; margin-right: 0.05em; }
.cta-quote-text::after  { content: close-quote; margin-left: 0.05em; }

/* ========= Mobile adjustments ========= */

@media (max-width: 767px) {
  .cta-section {
    padding: 3.25rem 1.25rem 3.5rem;
    min-height: auto;
  }

  .cta-section .container {
    max-width: 480px;
    margin-inline: auto;
  }

  .cta-bg {
    background-position: 30% center;
  }

  .cta-section .innovation-header {
    justify-content: center;
  }

  .cta-section .innovation-ribbon {
    max-width: 92%;
    padding: 0.9rem 1.2rem 1rem;
  }

  .cta-section .section-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  .cta-section .section-title {
    font-size: clamp(1.25rem, 5.2vw, 1.6rem);
  }

   .cta-section .accent-rule {
    margin-top: 0.6rem;   /* keep the spacing */
    /* don't set width here – it will inherit the full-width style */
  }


  .cta-quote {
    position: static;
    margin-top: 1.6rem;
    max-width: 17.5rem;
    margin-inline: auto;
  }

  .cta-quote-text {
    text-align: center;
    font-size: 0.95rem;
  }
}

/* Let the accent match the title width in CTA */
.cta-section .cta-title-wrap {
  display: inline-block;
  text-align: center;
}
.cta-section .cta-title-wrap .accent-rule {
  width: 100%;         /* same width as the title text */
  margin-left: 0;
  margin-right: 0;
}



/* ========== Contact ========== */
:root{
  --page-bg: #fbf1de;
  --ink:#141414;
  --muted:#5a5a5a;
  --card:#ffffff;
  --edge:#e9e6e1;
  --accent:#f7931e;
  --shadow:0 20px 50px rgba(15,15,15,.07);
}

/* Actual contact section spacing */
#contact,
.contact-section {
  padding-top: clamp(50px, 18vw, 100px);
  padding-bottom: clamp(60px, 8vw, 100px);
}


.contact {
  padding: clamp(220px, 20vw, 300px) 20px  clamp(48px,6vw,80px);
  background:
    linear-gradient(to bottom, rgba(233,230,225,.5), rgba(233,230,225,0)) ,
    radial-gradient(1200px 600px at 80% -10%, #f6f5f3 0%, #edece9 55%, #e6e4e0 100%);
}


.contact-wrap{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(20px,3vw,32px);
  align-items: stretch;
}

.contact-card{
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 20px;
  padding: clamp(20px,3vw,28px);
  box-shadow: var(--shadow);
}

.contact-card h2{
  font-family: "Playfair Display", serif;
  font-size: clamp(28px,4vw,40px);
  letter-spacing: -.01em;
  margin: 0;
  color: var(--ink);
}

.contact-lead{
  margin: 10px 0 18px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.05rem;
}

.btn-contact{
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(247,147,30,.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-contact:hover{ transform: translateY(-1px); box-shadow: 0 16px 28px rgba(247,147,30,.32); }

.contact-details{
  margin-top: 22px;
  display: grid;
  gap: 16px;
}

.detail{
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--ink);
}
.detail svg{
  width: 24px; height: 24px; fill: var(--muted);
  margin-top: 3px;
}
.detail strong{ font-weight: 700; }
.detail-actions a{
  font-size: .95rem;
  color: var(--accent);
  text-decoration: none;
}
.contact-note{
  margin-top: 14px;
  color: var(--muted);
  font-size: .95rem;
}

/* Map side */
.contact-map{
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--edge);
  box-shadow: var(--shadow);
  background: #faf9f7;
}
#map{
  height: clamp(360px, 48vw, 520px);
  width: 100%;
}
.map-fallback{
  display: block;
  padding: 18px;
  text-align: center;
  color: var(--accent);
}

@media (max-width: 900px){
  .contact-wrap{ grid-template-columns: 1fr; }
  #map{ height: 360px; }
}

@media (max-width: 768px) {
  .ch-info-card { width: 100%; }
}

@media (max-width: 768px) {
  .ch-info-value { font-size: 17px; }
  .ch-info-label { font-size: 12px; }
}

@media (max-width: 992px) {
  .ch-info-card { width: calc((100% - 1.25rem) / 2); }
}
@media (min-width: 992px) {
  .ch-info-card { padding: 1.5rem 2rem; }
}
@media (max-width: 768px) {
  .ch-info-line { grid-template-columns: 28px 110px 1fr; gap: 0.6rem; padding: 0.6rem 0; }
  .ch-info-icon { width: 28px; height: 28px; border-radius: 8px; }
}


/* === Contact: hero tiles + hours ===================================== */
.ch-hero{ text-align:center; margin-bottom:1.25rem; }
.ch-title{ font-family:'Playfair Display',serif; font-weight:700; font-size: clamp(36px,4.2vw,52px); color:#0f172a; line-height:1.1; margin:0 0 .4rem; }
.ch-sub{ 
  font-family:'Lato',sans-serif; 
  text-transform: uppercase; 
  letter-spacing: .24em; 
  font-size:12px; 
  color:#7a7263; 
  font-weight:700; 
  margin: .5rem 0 0 0; /* sits below title */
}

.ch-tiles{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(14px,2.8vw,22px); max-width: 980px; margin: 1rem auto 1.75rem; }
.ch-tile{ position:relative; overflow:hidden; border-radius:20px; border:1px solid rgba(0,0,0,.06); background:#fff; box-shadow:0 22px 60px rgba(0,0,0,.08); }
.ch-tile-body{ padding: clamp(18px, 3.5vw, 28px); }
.ch-kicker{ font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:#7a7263; font-weight:700; margin-bottom:.35rem; }
.ch-big-link{ font-family:'Playfair Display',serif; font-size: clamp(26px, 4.6vw, 40px); line-height:1.15; color:#0f172a; text-decoration:none; white-space: nowrap; }
.ch-big-link:hover{ text-decoration:underline; }
.ch-address{ font-style:normal; font-family:'Playfair Display',serif; font-size: clamp(18px,2.6vw,22px); color:#0f172a; line-height:1.45; }

.ch-actions{ display:flex; gap:10px; margin-top:.8rem; }
.btn-chip{ appearance:none; border:0; border-radius:999px; padding:.6rem .9rem; font-weight:700; font-size:.95rem; background:linear-gradient(135deg,#2a6dbb 0%, #5aa6ff 100%); color:#fff; box-shadow:0 10px 24px rgba(42,109,187,.20); cursor:pointer; text-decoration:none; }
.btn-chip.ghost{ background:transparent; color:#2a6dbb; border:1px solid rgba(42,109,187,.25); box-shadow:none; }

.ch-icon-wrap{ position:absolute; right:12px; bottom:12px; opacity:.1; }

.ch-hours{ display:flex; justify-content:center; }
.hours-card{ background:#fff; border:1px solid rgba(0,0,0,.06); border-radius:16px; box-shadow:0 18px 40px rgba(0,0,0,.06); padding: .9rem 1.1rem; }
.hours-kicker{ font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:#7a7263; font-weight:700; margin-bottom:.25rem; }
.hours-list{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns: 1fr auto; row-gap:.25rem; column-gap:1.25rem; }
.hours-list li{ display:contents; }
.hours-list li span:last-child{ color:#334155; }

@media (max-width: 768px){
  .ch-tiles{ grid-template-columns:1fr; }
}

/* Business card layout: phone + address on one card */
.ch-bizcard .ch-biz-grid{ display:grid; grid-template-columns: 1fr 1px 1fr; gap: clamp(12px, 2vw, 18px); align-items:start; }
.ch-biz-divider{ width:1px; background: rgba(15,23,42,0.12); height:100%; align-self:stretch; border-radius:1px; }
.ch-biz-block{ min-width:0; }

@media (max-width: 600px){
  .ch-bizcard .ch-biz-grid{ grid-template-columns: 1fr; }
  .ch-biz-divider{ display:none; }
  .ch-biz-block + .ch-biz-block{ margin-top:.75rem; padding-top:.75rem; border-top:1px solid rgba(15,23,42,.10); }
}

/* New compact two-column contact card */
.contact-card{ 
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.contact-row{ 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: clamp(16px,3vw,28px); 
  align-items: stretch;
}
.contact-col{ min-width:0; }
.contact-image{ padding: clamp(12px,2.2vw,18px); display:flex; align-items:center; justify-content:center; }
.contact-image img{ 
  display:block; max-width:100%; height:auto; max-height: clamp(220px, 40vh, 360px); object-fit: contain; 
  border-radius: 12px; 
}
.contact-details{ 
  padding: clamp(16px,2.4vw,24px); 
  display: grid; gap: clamp(12px,2vw,16px); align-content: start;
}
.mini-card{ 
  border:1px solid rgba(0,0,0,.06); 
  border-radius:16px; 
  background:#fff; 
  box-shadow:0 12px 28px rgba(0,0,0,.06);
  text-align:center;
}
.mini-card-body{ padding: clamp(18px,2.8vw,26px); }
.mini-card-kicker{ 
  font-family:'Playfair Display',serif; 
  font-size:14px; 
  letter-spacing:.06em; 
  text-transform:uppercase; 
  color:#0f172a; 
  font-weight:700; 
  margin-bottom:.55rem; 
}
.mini-card-value{ 
  font-family:'Lato',sans-serif; 
  font-weight:700;
  font-size: clamp(22px,3.8vw,28px); 
  color:#0f172a; line-height:1.45; text-decoration:none; 
  letter-spacing: .02em; 
  display:inline-block; 
  margin: .1rem 0 .35rem; 
  font-style: normal; /* override <address> default italics */
}
.mini-card-value:hover{ text-decoration: underline; }
.mini-card-actions{ margin-top:.65rem; display:flex; justify-content:center; }

/* Show the explicit call button only on mobile */
@media (min-width: 769px){
  .call-btn{ display:none; }
}

@media (max-width: 992px){
  .contact-row{ grid-template-columns: 1fr; }
  .contact-image img{ max-height: 260px; height: auto; }
}

/* Mini-card visual enhancements */
.mini-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(15,23,42,0.05);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(2,6,23,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
}

/* Soft inner outline for crisp edges */
.mini-card::after {
  content: "";
  position: absolute; inset: 0; border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(42,109,187,0.10);
  pointer-events: none;
}

/* Subtle top accent that animates in */
.mini-card::before {
  content: "";
  position: absolute; left: 12px; right: 12px; top: 0; height: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2a6dbb 0%, #5aa6ff 100%);
  opacity: 0; transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease;
}

.mini-card:hover,
.mini-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(2,6,23,0.12);
}
.mini-card:hover::before,
.mini-card:focus-within::before { opacity: 1; transform: translateY(0); }

/* Typography refinements */
.mini-card-kicker { color: #334155; letter-spacing: .12em; }
.mini-card-value { font-variant-numeric: tabular-nums; }

/* Restore natural content flow */
.mini-card-body { position: static; padding: clamp(18px,2.8vw,26px); }
.mini-card-icon { display: none; }

/* Chip hover feedback */
.btn-chip.ghost:hover {
  background: rgba(42,109,187,0.08);
  border-color: rgba(42,109,187,0.35);
}


/* ========== Footer ========== */
footer {
    border-top: 1px solid rgba(26, 26, 26, 0.08);   /* clean dividing line */
    background: rgba(250, 249, 247, 0.96);          /* soft neutral background */
    backdrop-filter: blur(4px);
    padding: 1.5rem 0 1.75rem;
    text-align: center;
}

footer p {
    margin: 0;
    font-family: 'Lato', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #7a7263;   /* muted ink tone */
}

@media (max-width: 600px) {
    footer {
        padding: 2rem 0;
    }
}


/* ===============================
   Responsive tidy-up overrides
   =============================== */

/* 1. Desktop (>= 1200px) – keep hero tighter so it feels premium */
@media (min-width: 1200px) {
  .hero-content {
    max-width: 700px;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-section h1,
  .credentials,
  .title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* FIXED: Remove flex — keep natural centering */
  .hero-section .container {
    padding-inline: 3rem;
    display: block;         /* reset flex */
    text-align: center;     /* ensures content within remains centered */
  }

  .hero-section .decorative-element {
    right: 12%;
    max-width: 540px;
  }
}



/* 2. Tablet (768–1199px) – keep grids readable and avoid squashed columns */
@media (max-width: 1199px) and (min-width: 768px) {
  /* Smiles Simplified / Patient highlights: 2 columns instead of 3+ */
  .pe-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  /* Contact card: give more room to the contact info */
  .contact-card .contact-row {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  }
}

/* 3. Small tablets & large phones (< 768px) – single-column stacks */
@media (max-width: 768px) {
  /* Make sure highlights become a comfortable single column */
  .pe-highlights {
    grid-template-columns: 1fr;
  }

  /* Contact: stack image and details nicely */
  .contact-card .contact-row {
    grid-template-columns: 1fr;
  }

  .contact-image img {
    max-width: 220px;
    margin-inline: auto;
  }

}

/* 4. Very small phones (< 400px) – tighten typography slightly */
@media (max-width: 400px) {
  .hero-section h1 {
    font-size: 32px;
  }

  .credentials {
    font-size: 15px;
  }

  .title {
    font-size: 22px;
    letter-spacing: 3px;
  }
}




/* ==== CENTER HERO LAYOUT ON DESKTOP ==== */
@media (min-width: 769px) {
  .hero-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;     /* Centers all text horizontally */
    text-align: center;      /* Ensures all headings & lines are centered */
  }

  .hero-content {
    width: 100%;
    max-width: 900px;        /* Prevents text from stretching too wide */
    text-align: center;
    margin: 0 auto;
  }

  .hero-content h1,
  .hero-content .credentials,
  .hero-content .title,
  .hero-content .tagline,
  .hero-content p {
    text-align: center;      /* Ensures all nested text styles override older rules */
    margin-left: auto;
    margin-right: auto;
  }
}

/* --- CTA TEXT CARD FIXES FOR MOBILE --- */
.cta-section .innovation-header {
  max-width: 52rem;
  margin-inline: auto;
  box-sizing: border-box;
}

/* Mobile adjustments: shrink padding & type to prevent clipping */
@media (max-width: 600px) {
  .cta-section .innovation-header {
    padding: 1.1rem 1.4rem;
    margin: 1.5rem 1rem 0;
  }

  .cta-section .section-title {
    font-size: clamp(1.6rem, 6vw, 2.1rem);
    line-height: 1.15;
  }

  .cta-section .section-kicker {
    font-size: 0.9rem;
    letter-spacing: 0.03em;
  }

  .cta-section .cta-quote-text {
    font-size: 0.95rem;
    padding-inline: 1.2rem;
  }
}

/* =========================
   MOBILE LAYOUT TWEAKS
   ========================= */
/* ---------------------------------- */
/* CTA SECTION – MOBILE LAYOUT (<=767px)
/* ---------------------------------- */
/* ========= Mobile adjustments ========= */
@media (max-width: 767px) {
  .cta-section {
    /* keep the ribbon high, but not so tall that we over-crop the sides */
    padding: 2.5rem 1.25rem 3.5rem;
    min-height: 90vh;
    align-items: flex-start; /* card towards the top, not centred vertically */
  }

  .cta-section .container {
    max-width: 480px;
    margin-inline: auto;
  }

  .cta-bg {
    /* show more of the left side (hand + aligner) and a bit more top */
    background-position: 18% 28%;
  }

  .cta-section .innovation-header {
    justify-content: center;
  }

  .cta-section .innovation-ribbon {
    max-width: 92%;
    padding: 0.9rem 1.2rem 1rem;
  }

  .cta-section .section-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  .cta-section .section-title {
    font-size: clamp(1.25rem, 5.2vw, 1.6rem);
  }

  .cta-section .accent-rule {
    width: 3.2rem;
    margin-top: 0.6rem;
  }

  .cta-quote {
    position: static;
    margin-top: 1.6rem;
    max-width: 17.5rem;
    margin-inline: auto;
  }

  .cta-quote-text {
    text-align: center;
    font-size: 0.95rem;
  }
}



/* === HERO MOBILE SPACING TWEAK === */
@media (max-width: 768px) {
  .hero-section {
    /* don’t force it to be a full viewport height on phones */
    min-height: auto;
    padding-top: 5.5rem;      /* room for logo + nav */
    padding-bottom: 2.5rem;   /* smaller gap under the aligner */
  }

  .hero-section .container {
    padding-bottom: 0;
  }

  .hero-section .decorative-element {
    max-height: 420px;        /* keep image from getting too tall */
    margin-bottom: 0;
  }
}

/* === HERO: MOBILE OPTIMIZED LAYOUT (aligner higher + no empty bottom) === */
@media (max-width: 768px) {

  .hero-section {
    min-height: auto;                /* REMOVE forced full-screen */
    padding: 5.5rem 1.5rem 3.5rem;   /* balanced spacing */
    display: block;
  }

  .hero-section .container {
    position: relative;
    width: 100%;
    display: block;                  /* override desktop flex centering */
  }

  .hero-content {
    max-width: 100%;
    padding-right: 0;                /* remove push-right */
    text-align: center;              /* stronger mobile presentation */
  }

  /* Move the aligner ABOVE the tagline */
  .decorative-element {
    position: absolute;
    top: 33%;                        /* <-- lift image upward */
    right: -5%;                      /* slight overflow for elegance */
    transform: translateY(-50%);
    width: 62vw;
    max-width: 280px;
    opacity: 0.9;
    pointer-events: none;
  }

  /* Tagline BELOW aligner */
  .hero-content .tagline {
    margin-top: 9rem;                /* creates space for aligner above */
  }
}


/* --- Clean join between Innovation and Smiles Simplified --- */

.innovation-section {
  margin-bottom: 0;      /* no extra gap below innovation */
  padding-bottom: 4rem;  /* keep some breathing room under the card */
}

.smiles-simplified-section {
  margin-top: 0;                     /* remove any top gap that shows body/bg */
  background: var(--page-bg, #fbf1de);        /* same cream as the hero/inno sections */
  /* If you still want a bit of vertical spacing at the start: */
  padding-top: 4rem;                 /* adjust up/down to taste */
}

/* === FIX: remove grey strip under Innovation section === */
.innovation-section {
  background: var(--page-bg, #fbf1de);   /* let the page background show instead of grey */
  padding-bottom: 1.5rem;    /* smaller bottom gap so no thick band appears */
}

@media (max-width: 768px) {
  .innovation-section {
    padding-bottom: 1.25rem;
  }
}

/* Remove any stray overlay by default */
.innovation-section::after {
  content: none;
}

/* Fade the innovation background into the page colour on mobile to mask the grey strip */
@media (max-width: 768px) {
  .innovation-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 170px;
    background: linear-gradient(180deg, rgba(251, 241, 222, 0) 0%, var(--page-bg, #fbf1de) 60%);
    pointer-events: none;
    z-index: 0;
  }
  /* Also soften the BG image itself so the bottom edge is invisible */
  .innovation-bg {
    -webkit-mask-image: linear-gradient(180deg, rgba(255,255,255,1) 60%, rgba(255,255,255,0) 88%);
    mask-image: linear-gradient(180deg, rgba(255,255,255,1) 60%, rgba(255,255,255,0) 88%);
    z-index: -1;
  }
  .innovation-card {
    position: relative;
    z-index: 1;
  }
}

/* --- Mobile fix: show full innovation background image again --- */
@media (max-width: 768px) {

  /* Put the hero image back on the whole section */
  .innovation-section {
    padding: 4rem 0;
    background-image:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.30) 40%,
        rgba(0, 0, 0, 0.0) 100%
      ),
      url("images/aligner_gloves.png");
    background-size: cover;
    background-position: center 22%;
    background-repeat: no-repeat;
  }

  /* Stop the card from drawing its own background image on mobile */
  .innovation-section-card::before {
    background-image: none;
  }

  /* Let the card be transparent so the image behind shows through */
  .innovation-section-card {
    background: transparent;
    border: none;
    box-shadow: none;
  }
}


/* ===== CTA RIBBON TWEAKS (POSITION + STYLE) ===== */

/* Desktop & tablet */
@media (min-width: 768px) {
  .cta-section .innovation-header {
    /* keep the glass / ribbon style but control size & position */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    width: min(640px, 100% - 4rem);
    /* pull the ribbon UP so it sits over the eyes */
    margin: -17.75rem auto 2.25rem;
  }

  /* make the inner ribbon behave like in Innovation / PE sections */
  .cta-section .innovation-ribbon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
  }

  .cta-section .section-kicker {
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
}

/* Mobile – keep it centred and not too high under the nav */
@media (max-width: 767px) {
  .cta-section .container {
    justify-content: flex-start;
    padding-top: 4.25rem;
    padding-bottom: 3rem;
  }

  .cta-section .innovation-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    width: min(420px, 100% - 2rem);
    margin: 1.5rem auto 1.75rem;  /* back to a normal card spacing */
  }

  .cta-section .innovation-ribbon {
    align-items: center;
  }
}

/* --- Simplify CTA ribbon to match Innovation / PE --- */
.cta-section .innovation-header {
  background: transparent;        /* remove outer glass block */
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.cta-section .innovation-ribbon {
  /* keep the actual ribbon as the only dark layer */
  background: linear-gradient(135deg, rgba(18,18,18,0.72) 0%, rgba(18,18,18,0.56) 100%);
  border-radius: 25px;
  padding: 1rem 1.25rem;
}

/* --- CTA Accent Rule Fix (Match Innovation / PE) --- */

/* Make the CTA title wrap behave just like the innovation ribbon */
.cta-section .innovation-header .cta-title-wrap {
  display: inline-block;
  text-align: center;
  width: auto;
}

/* Style the accent rule so it matches Innovation/PE */
.cta-section .innovation-header .accent-rule {
  display: block;
  height: 4px;
  width:80%;                 /* perfect balanced width (adjustable) */
  background-color: #79a6c5;  /* brand orange */
  margin: 0.75rem auto 0;     /* centered automatically */
  border-radius: 2px;
}

/* --- CTA RIBBON TEXT LAYOUT & COLOUR TO MATCH INNOVATION / PE --- */

.cta-section .cta-title-wrap {
  text-align: center;
}

/* Top line: "Our Services are available..." */
.cta-section .section-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: #79a6c5; /* your requested blue */
}

/* Main title: "Begin Your Smile Journey" */
.cta-section .section-title {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 600;
  color: #f9fafb; /* light, like other ribbons */
  margin-bottom: 0.75rem;
}

/* Accent bar under the title */
.cta-section .accent-rule {
  height: 4px;
  width: 80%;           /* make it span the title width on all screens */
  background: #79a6c5;  /* CTA blue */
  border-radius: 2px;
  margin: 0.75rem auto 0;
}



/* -------------------------------------------------- */
/* CTA RIBBON — MATCHES INNOVATION + PATIENT EXPERIENCE */
/* -------------------------------------------------- */

.cta-section .innovation-ribbon {
  text-align: center;
}

/* Top small line — same as PE/Innovation kicker */
.cta-section .section-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  color: #79a6c5; /* your requested blue */
}

/* Main title — same style as other section titles */
.cta-section .section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: #ffffff;
  margin-bottom: 0.65rem;
  line-height: 1.25;
}

/* Accent bar */
.cta-section .accent-rule {
  width: 64px;
  height: 3px;
  margin: 0.5rem auto 0;
  background: #e15c17; /* same orange accent used across site */
  border-radius: 999px;
}

/* === FINAL CTA RIBBON (match Innovation / Patient Experience) === */

.cta-section .innovation-header {
  /* no outer glass card – just centre the ribbon */
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  text-align: center;
}

.cta-section .innovation-header .innovation-ribbon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 1.5rem;
  border-radius: 25px;
  background: linear-gradient(
    135deg,
    rgba(18, 18, 18, 0.72) 0%,
    rgba(18, 18, 18, 0.56) 100%
  );
}

/* TOP LINE – big, like "Patient Experience" */
.cta-section .innovation-header .section-kicker {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-transform: none;
  color: #79a6c5;
  margin: 0 0 0.35rem;
}

/* SECOND LINE – smaller, blue, like "Comfort, Clarity, Confidence" */
.cta-section .innovation-header .section-title {
  font-family: "Lato", serif;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: 0;
  margin: 0;
}

/* ACCENT BAR – short, centred, under the second line */
.cta-section .innovation-header .accent-rule {
  width: 100%;
  height: 3px;
  margin: 0.6rem auto 0;
  border-radius: 999px;
  background: #79a6c5; /* same warm accent as other ribbons */
}

/* Small-screen tweaks so it doesn’t feel huge on phones */
@media (max-width: 600px) {
  .cta-section .innovation-header .innovation-ribbon {
    padding: 0.85rem 1.2rem;
  }

  .cta-section .innovation-header .section-kicker {
    font-size: 1.6rem;
  }

  .cta-section .innovation-header .section-title {
    font-size: 1rem;
  }

  .cta-section .innovation-header .accent-rule {
    width: 52px;
  }
}

/* FINAL FIX – make CTA accent full-width on mobile */
@media (max-width: 767px) {
  #cta .innovation-ribbon .accent-rule {
    width: 100% !important;
    margin-left: 0;
    margin-right: 0;
  }
}

