/* ========================================
   TRAINQUIL EFFECTS
   Main Website Styles
   ======================================== */

/* ---------- CSS VARIABLES ---------- */

:root {
    --deep-blue-gray: #334e5c;
    --muted-teal: #4f8f8b;
    --soft-aqua: #a8d5d1;
    --warm-ivory: #f7f5f0;
    --charcoal: #29363b;
    --white: #ffffff;

    --light-aqua: #e5f1ef;
    --light-gray: #eef1f0;
    --border-color: #d8dfdd;

    --heading-font: "Cormorant Garamond", Georgia, serif;
    --body-font: "Nunito Sans", Arial, sans-serif;

    --max-width: 1200px;
    --section-space: 7rem;

    --small-radius: 0.5rem;
    --medium-radius: 1rem;
    --large-radius: 1.5rem;

    --shadow:
        0 1rem 2.5rem rgba(41, 54, 59, 0.08);
}


/* ========================================
   RESET / GLOBAL
   ======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--warm-ivory);
    color: var(--charcoal);
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.7;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--deep-blue-gray);
    font-family: var(--heading-font);
    line-height: 1.05;
}

h1 {
    font-size: clamp(3.4rem, 7vw, 6.5rem);
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    letter-spacing: -0.025em;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.25rem;
}

:focus-visible {
    outline: 3px solid var(--muted-teal);
    outline-offset: 4px;
}


/* ========================================
   REUSABLE COMPONENTS
   ======================================== */

.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--section-space) 1.5rem;
}

.eyebrow {
    margin-bottom: 0.9rem;
    color: var(--muted-teal);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.section-heading {
    margin-bottom: 3.5rem;
}

.centered-heading {
    max-width: 720px;
    margin-right: auto;
    margin-bottom: 3.5rem;
    margin-left: auto;
    text-align: center;
}

.centered-heading p:last-child {
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
}

.split-heading {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 4rem;
    align-items: end;
}

.split-heading h2 {
    margin-bottom: 0;
}

.split-heading > p {
    margin-bottom: 0.5rem;
}

.button {
    display: inline-flex;
    min-height: 3.25rem;
    padding: 0.85rem 1.5rem;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--muted-teal);
    color: var(--white);
}

.button-primary:hover {
    background: var(--deep-blue-gray);
}

.button-secondary {
    border-color: var(--deep-blue-gray);
    background: transparent;
    color: var(--deep-blue-gray);
}

.button-secondary:hover {
    background: var(--deep-blue-gray);
    color: var(--white);
}

.button-light {
    background: var(--warm-ivory);
    color: var(--deep-blue-gray);
}

.button-light:hover {
    background: var(--white);
}

.text-link {
    display: inline-flex;
    gap: 0.6rem;
    align-items: center;
    color: var(--deep-blue-gray);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.text-link span {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.text-link:hover span {
    transform: translateX(0.3rem);
}

.light-link {
    color: var(--white);
}

.section-action {
    margin-top: 3rem;
    text-align: center;
}


/* ========================================
   HEADER / NAVIGATION
   ======================================== */

.site-header {
    position: relative;
    z-index: 100;
    border-bottom: 1px solid rgba(51, 78, 92, 0.1);
    background: rgba(247, 245, 240, 0.97);
}

.nav-container {
    display: flex;
    width: min(calc(100% - 3rem), var(--max-width));
    min-height: 6rem;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: block;
    flex: 0 0 auto;
}

.brand img {
    width: 92px;
    height: 92px;
    object-fit: contain;
}

.primary-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.primary-nav a {
    position: relative;
    color: var(--charcoal);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.primary-nav > a:not(.nav-cta)::after {
    position: absolute;
    right: 0;
    bottom: -0.4rem;
    left: 0;
    height: 2px;
    background: var(--muted-teal);
    content: "";
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.primary-nav > a:not(.nav-cta):hover::after,
.primary-nav > a.active:not(.nav-cta)::after {
    transform: scaleX(1);
}

.nav-cta {
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    background: var(--deep-blue-gray);
    color: var(--white) !important;
}

.nav-cta:hover {
    background: var(--muted-teal);
}

.menu-button {
    display: none;
    width: 3rem;
    height: 3rem;
    padding: 0.65rem;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 0.35rem 0;
    background: var(--deep-blue-gray);
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


/* ========================================
   HERO
   ======================================== */

.hero {
    display: grid;
    width: 100%;
    max-width: 1400px;
    min-height: 720px;
    margin: 0 auto;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: stretch;
}

.hero-content {
    display: flex;
    width: 100%;
    max-width: none;
    padding: 6.5rem 4rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.hero-content > * {
    width: 100%;
    max-width: 560px;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero-text {
    margin-bottom: 2rem;
    font-size: 1.12rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    min-width: 0;
    min-height: 720px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ========================================
   HOUSE-CALL INTRO
   ======================================== */

.intro {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border-color);
}

.process-card {
    padding: 2.5rem;
    border-right: 1px solid var(--border-color);
}

.process-card:first-child {
    padding-left: 0;
}

.process-card:last-child {
    padding-right: 0;
    border-right: 0;
}

.process-number {
    display: block;
    margin-bottom: 2rem;
    color: var(--muted-teal);
    font-family: var(--heading-font);
    font-size: 1.4rem;
    font-weight: 700;
}

.process-card h3 {
    margin-bottom: 0.8rem;
}

.process-card p {
    margin-bottom: 0;
}


/* ========================================
   SERVICES
   ======================================== */

.services-preview {
    max-width: none;
    padding-right: max(1.5rem, calc((100vw - 1200px) / 2));
    padding-left: max(1.5rem, calc((100vw - 1200px) / 2));
    background: var(--light-aqua);
}

.service-grid {
    display: grid;
    max-width: var(--max-width);
    margin: 0 auto;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.services-preview .split-heading,
.services-preview .section-action {
    max-width: var(--max-width);
    margin-right: auto;
    margin-left: auto;
}

.service-card {
    overflow: hidden;
    border-radius: var(--large-radius);
    background: var(--warm-ivory);
    box-shadow: var(--shadow);
}

.service-image {
    aspect-ratio: 1 / 0.88;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.035);
}

.service-content {
    padding: 2rem;
}

.card-label {
    margin-bottom: 0.6rem;
    color: var(--muted-teal);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.service-content h3 {
    margin-bottom: 1rem;
}

.service-content p:not(.card-label) {
    font-size: 0.95rem;
}


/* ========================================
   TRAINQUIL DIFFERENCE
   ======================================== */

.difference {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(3rem, 7vw, 7rem);
    align-items: center;
}

.difference-image {
    position: relative;
}

.difference-image::before {
    position: absolute;
    z-index: -1;
    top: -1.25rem;
    left: -1.25rem;
    width: 55%;
    height: 55%;
    border-radius: var(--large-radius);
    background: var(--soft-aqua);
    content: "";
}

.difference-image img {
    aspect-ratio: 0.92 / 1;
    border-radius: var(--large-radius);
    object-fit: cover;
}

.difference-content {
    max-width: 570px;
}

.difference-content h2 {
    margin-bottom: 1.5rem;
}

.feature-list {
    display: grid;
    margin: 2rem 0;
    padding: 0;
    gap: 0.8rem;
    list-style: none;
}

.feature-list li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    font-weight: 600;
}

.feature-list li span {
    color: var(--muted-teal);
    font-weight: 700;
}


/* ========================================
   MEET YOUR GROOMER
   ======================================== */

.groomer {
    display: grid;
    max-width: none;
    padding-right: max(1.5rem, calc((100vw - 1200px) / 2));
    padding-left: max(1.5rem, calc((100vw - 1200px) / 2));
    grid-template-columns:
        minmax(0, calc(var(--max-width) * 0.55))
        minmax(0, calc(var(--max-width) * 0.45));
    justify-content: center;
    background: var(--white);
}

.groomer-content {
    display: flex;
    padding: 4rem 6rem 4rem 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.groomer-content h2 {
    margin-bottom: 1.5rem;
}

.groomer-image {
    min-height: 650px;
    overflow: hidden;
    border-radius: var(--large-radius);
}

.groomer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.credential-list {
    display: grid;
    width: 100%;
    margin: 1.5rem 0 2.5rem;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.credential-list div {
    padding-top: 1rem;
    border-top: 2px solid var(--soft-aqua);
}

.credential-list strong,
.credential-list span {
    display: block;
}

.credential-list strong {
    color: var(--deep-blue-gray);
    font-family: var(--heading-font);
    font-size: 1.25rem;
    line-height: 1.15;
}

.credential-list span {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    line-height: 1.4;
}


/* ========================================
   CREDENTIAL HIGHLIGHT
   ======================================== */

.credentials-preview {
    padding: 6rem 1.5rem;
    background: var(--deep-blue-gray);
    color: var(--white);
}

.credentials-inner {
    display: grid;
    max-width: var(--max-width);
    margin: 0 auto;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.credentials-copy {
    max-width: 470px;
}

.credentials-copy h2 {
    color: var(--white);
}

.credentials-copy .eyebrow {
    color: var(--soft-aqua);
}

.credentials-image {
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--large-radius);
    background: rgba(255, 255, 255, 0.06);
}

.credentials-image img {
    border-radius: var(--medium-radius);
}


/* ========================================
   PORTFOLIO PREVIEW
   ======================================== */

.portfolio-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.portfolio-preview-grid figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--medium-radius);
    background: var(--deep-blue-gray);
}

.portfolio-preview-grid figure:nth-child(even) {
    margin-top: 2rem;
    margin-bottom: -2rem;
}

.portfolio-preview-grid img {
    aspect-ratio: 0.85 / 1;
    object-fit: cover;
    transition:
        opacity 0.3s ease,
        transform 0.4s ease;
}

.portfolio-preview-grid figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 3rem 1.25rem 1.25rem;
    background:
        linear-gradient(
            to top,
            rgba(41, 54, 59, 0.9),
            rgba(41, 54, 59, 0)
        );
    color: var(--white);
}

.portfolio-preview-grid strong,
.portfolio-preview-grid span {
    display: block;
}

.portfolio-preview-grid strong {
    font-family: var(--heading-font);
    font-size: 1.5rem;
}

.portfolio-preview-grid span {
    font-size: 0.78rem;
}

.portfolio-preview-grid figure:hover img {
    opacity: 0.9;
    transform: scale(1.035);
}

.portfolio-preview .section-action {
    margin-top: 5rem;
}


/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonials {
    max-width: none;
    padding-right: max(1.5rem, calc((100vw - 1200px) / 2));
    padding-left: max(1.5rem, calc((100vw - 1200px) / 2));
    background: var(--light-aqua);
}

.testimonial-grid {
    display: grid;
    max-width: var(--max-width);
    margin: 0 auto;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.testimonial-card {
    padding: 2.5rem;
    border-radius: var(--large-radius);
    background: var(--warm-ivory);
}

.featured-testimonial {
    background: var(--deep-blue-gray);
    color: var(--white);
}

.quote-mark {
    height: 3rem;
    margin-bottom: 1rem;
    color: var(--muted-teal);
    font-family: var(--heading-font);
    font-size: 5rem;
    line-height: 1;
}

.featured-testimonial .quote-mark {
    color: var(--soft-aqua);
}

.testimonial-card > p:first-of-type {
    font-family: var(--heading-font);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.5;
}

.testimonial-name {
    margin-top: 2rem;
    margin-bottom: 0;
    color: var(--deep-blue-gray);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.featured-testimonial .testimonial-name {
    color: var(--soft-aqua);
}


/* ========================================
   FAQ
   ======================================== */

.faq {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(3rem, 8vw, 8rem);
}

.faq-intro {
    align-self: start;
}

.faq-intro h2 {
    margin-bottom: 1.5rem;
}

.faq-list {
    border-top: 1px solid var(--border-color);
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    display: flex;
    width: 100%;
    padding: 1.6rem 0;
    align-items: center;
    justify-content: space-between;
    border: 0;
    background: transparent;
    color: var(--deep-blue-gray);
    cursor: pointer;
    font-family: var(--heading-font);
    font-size: 1.45rem;
    font-weight: 700;
    text-align: left;
}

.faq-icon {
    display: flex;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-aqua);
    color: var(--deep-blue-gray);
    font-family: var(--body-font);
    font-size: 1.3rem;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    background: var(--muted-teal);
    color: var(--white);
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 3.5rem 1.5rem 0;
}

.faq-answer.open {
    display: block;
}

.faq-answer p {
    margin: 0;
}


/* ========================================
   FINAL CTA
   ======================================== */

.appointment-cta {
    display: flex;
    max-width: var(--max-width);
    margin: 2rem auto 7rem;
    padding: 4rem;
    gap: 3rem;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--large-radius);
    background: var(--muted-teal);
    color: var(--white);
}

.appointment-cta > div {
    max-width: 700px;
}

.appointment-cta h2 {
    margin-bottom: 1rem;
    color: var(--white);
}

.appointment-cta .eyebrow {
    color: var(--white);
}

.appointment-cta p:last-child {
    margin-bottom: 0;
}


/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.78);
}

.footer-main {
    display: grid;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 1.5rem;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 5rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand img {
    width: 115px;
    height: 115px;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-links h2 {
    margin-bottom: 1.2rem;
    color: var(--white);
    font-size: 1.35rem;
}

.footer-links a {
    margin-bottom: 0.65rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--soft-aqua);
}

.footer-bottom {
    display: flex;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.75rem;
}

.footer-bottom p {
    margin: 0;
}


/* ========================================
   TABLET
   ======================================== */

@media (max-width: 900px) {
    :root {
        --section-space: 5.5rem;
    }

    .primary-nav {
        gap: 1.1rem;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr 1fr;
    }

    .hero-content {
        padding: 5rem 2.5rem;
    }

    .hero-image {
        min-height: 600px;
    }

    .process-card {
        padding: 2rem 1.5rem;
    }

    .difference {
        gap: 3rem;
    }

    .groomer {
        grid-template-columns: 1fr 1fr;
    }

    .groomer-content {
        padding-right: 3rem;
    }

    .credential-list {
        grid-template-columns: 1fr;
    }

    .credentials-inner {
        gap: 3rem;
    }

    .portfolio-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-preview-grid figure:nth-child(even) {
        margin: 0;
    }

    .faq {
        gap: 4rem;
    }

    .appointment-cta {
        margin-right: 1.5rem;
        margin-left: 1.5rem;
    }

    .footer-main {
        gap: 3rem;
    }
}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 720px) {
    :root {
        --section-space: 4.5rem;
    }

    h1 {
        font-size: clamp(3.1rem, 16vw, 4.5rem);
    }

    h2 {
        font-size: clamp(2.4rem, 12vw, 3.4rem);
    }

    .section {
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    .nav-container {
        width: calc(100% - 2rem);
        min-height: 5rem;
    }

    .brand img {
        width: 74px;
        height: 74px;
    }

    .menu-button {
        display: block;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        padding: 1.5rem;
        flex-direction: column;
        align-items: stretch;
        border-top: 1px solid var(--border-color);
        background: var(--warm-ivory);
        box-shadow: 0 1rem 2rem rgba(41, 54, 59, 0.1);
    }

    .primary-nav.open {
        display: flex;
    }

    .primary-nav a {
        padding: 0.7rem 0;
    }

    .primary-nav > a:not(.nav-cta)::after {
        display: none;
    }

    .nav-cta {
        margin-top: 0.5rem;
        padding: 0.9rem 1rem !important;
        text-align: center;
    }

    .hero {
        display: flex;
        flex-direction: column;
    }

    .hero-image {
        order: 1;
        min-height: 430px;
    }

    .hero-content {
        order: 2;
        max-width: none;
        padding: 3.5rem 1.25rem 4.5rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .split-heading {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-card,
    .process-card:first-child,
    .process-card:last-child {
        padding: 2rem 0;
        border-right: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .process-card:last-child {
        border-bottom: 0;
    }

    .process-number {
        margin-bottom: 1rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .difference {
        grid-template-columns: 1fr;
    }

    .difference-image {
        max-width: 550px;
    }

    .difference-content {
        max-width: none;
    }

    .groomer {
        padding-right: 1.25rem;
        padding-left: 1.25rem;
        grid-template-columns: 1fr;
    }

    .groomer-content {
        padding: 0 0 3rem;
    }

    .groomer-image {
        min-height: 500px;
    }

    .credential-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .credentials-preview {
        padding: 4.5rem 1.25rem;
    }

    .credentials-inner {
        grid-template-columns: 1fr;
    }

    .credentials-copy {
        max-width: none;
    }

    .portfolio-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .faq {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .appointment-cta {
        margin: 1rem 1.25rem 5rem;
        padding: 3rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-main {
        padding: 4rem 1.25rem;
        grid-template-columns: 1fr 1fr;
        gap: 3rem 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        padding: 1.5rem 1.25rem;
        gap: 0.5rem;
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ========================================
   SMALL MOBILE
   ======================================== */

@media (max-width: 480px) {
    .button {
        width: 100%;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .text-link {
        width: auto;
    }

    .hero-image {
        min-height: 360px;
    }

    .credential-list {
        grid-template-columns: 1fr;
    }

    .groomer-image {
        min-height: 420px;
    }

    .portfolio-preview-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-preview-grid img {
        aspect-ratio: 1 / 1;
    }

    .faq-question {
        gap: 1rem;
        font-size: 1.3rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }
}

/* ========================================
   SERVICES PAGE
   ======================================== */


/* ---------- SERVICES HERO ---------- */

/* ---------- SERVICES HERO ---------- */

.page-hero {
    display: grid;
    width: 100%;
    max-width: 1400px;
    min-height: 650px;
    margin: 0 auto;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: stretch;
}

.page-hero-content {
    display: flex;
    width: 100%;
    max-width: none;
    padding: 6rem 4rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.page-hero-content > * {
    width: 100%;
    max-width: 550px;
}

.page-hero-content h1 {
    margin-bottom: 1.5rem;
}

.page-hero-content > p:not(.eyebrow) {
    margin-bottom: 2rem;
    font-size: 1.08rem;
}

.page-hero-image {
    min-width: 0;
    min-height: 650px;
    overflow: hidden;
}

.page-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ---------- HOUSE-CALL SERVICE INTRO ---------- */

.service-intro {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.service-intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border-color);
}

.service-intro-grid article {
    padding: 2.5rem;
    border-right: 1px solid var(--border-color);
}

.service-intro-grid article:first-child {
    padding-left: 0;
}

.service-intro-grid article:last-child {
    padding-right: 0;
    border-right: 0;
}

.service-intro-grid h3 {
    margin-bottom: 0.8rem;
}

.service-intro-grid p {
    margin-bottom: 0;
}


/* ---------- ALL-INCLUSIVE CARE ---------- */

.included-care {
    padding: 7rem 1.5rem;
    background: var(--deep-blue-gray);
    color: rgba(255, 255, 255, 0.86);
}

.included-care-inner {
    display: grid;
    max-width: var(--max-width);
    margin: 0 auto;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(3rem, 7vw, 7rem);
    align-items: start;
}

.included-care-heading {
    max-width: 470px;
}

.included-care-heading h2 {
    color: var(--white);
}

.included-care-heading .eyebrow {
    color: var(--soft-aqua);
}

.included-care-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.included-care-grid article {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--medium-radius);
    background: rgba(255, 255, 255, 0.05);
}

.care-icon {
    display: block;
    margin-bottom: 1.25rem;
    color: var(--soft-aqua);
    font-family: var(--heading-font);
    font-size: 1.25rem;
    font-weight: 700;
}

.included-care-grid h3 {
    margin-bottom: 0.75rem;
    color: var(--white);
    font-size: 1.5rem;
}

.included-care-grid p {
    margin-bottom: 0;
    font-size: 0.94rem;
}


/* ---------- SERVICE CATALOG ---------- */

.service-catalog {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.service-catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: start;
}

.service-detail-card {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--large-radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.service-detail-image {
    width: 100%;
    padding: 1.5rem 1.5rem 0;
}

.service-detail-image img {
    display: block;
    width: 100%;
    max-width: 415px;
    aspect-ratio: 1 / 0.94;
    margin: 0 auto;
    border-radius: var(--medium-radius);
    object-fit: cover;
}

.service-detail-content {
    padding: 2rem 2.25rem 2.5rem;
}

.service-detail-content .card-label {
    margin-bottom: 0.6rem;
}

.service-detail-content h3 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 3vw, 2.7rem);
}

.service-detail-content > p:not(.card-label):not(.service-detail-note) {
    margin-bottom: 1.75rem;
}

.service-detail-content h4 {
    margin: 0 0 1rem;
    color: var(--deep-blue-gray);
    font-family: var(--heading-font);
    font-size: 1.25rem;
    line-height: 1.2;
}

.service-detail-list {
    display: grid;
    margin: 0 0 2rem;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1.5rem;
    list-style: none;
}

.service-detail-list li {
    position: relative;
    padding-left: 1.15rem;
    font-size: 0.86rem;
    line-height: 1.5;
}

.service-detail-list li::before {
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 50%;
    background: var(--muted-teal);
    content: "";
}

.service-detail-note {
    margin: 0 0 2rem;
    padding: 1rem 1.15rem;
    border-left: 3px solid var(--muted-teal);
    background: var(--light-aqua);
    font-size: 0.84rem;
    line-height: 1.55;
}

.service-detail-content .text-link {
    margin-top: 0.25rem;
}


/* ---------- PRICING ---------- */

.pricing-section {
    padding-top: 7rem;
    padding-bottom: 7rem;
}

.pricing-card {
    display: grid;
    padding: clamp(2.5rem, 6vw, 5rem);
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(3rem, 7vw, 7rem);
    border-radius: var(--large-radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.pricing-card h2 {
    margin-bottom: 0;
}

.pricing-card > div:last-child {
    max-width: 540px;
}

.pricing-lead {
    color: var(--deep-blue-gray);
    font-family: var(--heading-font);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.45;
}

.pricing-card .button {
    margin-top: 0.75rem;
}


/* ---------- COOPERATIVE CARE ---------- */

.cooperative-care {
    padding: 7rem 1.5rem;
    background: var(--white);
}

.cooperative-care-inner {
    display: grid;
    max-width: var(--max-width);
    margin: 0 auto;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(3rem, 7vw, 7rem);
    align-items: center;
}

.cooperative-care-image {
    position: relative;
}

.cooperative-care-image::before {
    position: absolute;
    z-index: 0;
    right: -1.25rem;
    bottom: -1.25rem;
    width: 55%;
    height: 55%;
    border-radius: var(--large-radius);
    background: var(--soft-aqua);
    content: "";
}

.cooperative-care-image img {
    position: relative;
    z-index: 1;
    aspect-ratio: 0.92 / 1;
    border-radius: var(--large-radius);
    object-fit: cover;
}

.cooperative-care-content {
    max-width: 570px;
}

.cooperative-care-content h2 {
    margin-bottom: 1.5rem;
}


/* ---------- SCHEDULING ---------- */

.schedule-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border-color);
}

.schedule-grid article {
    padding: 2.5rem;
    border-right: 1px solid var(--border-color);
}

.schedule-grid article:first-child {
    padding-left: 0;
}

.schedule-grid article:last-child {
    padding-right: 0;
    border-right: 0;
}

.schedule-grid h3 {
    margin-bottom: 0.8rem;
}

.schedule-grid p {
    margin-bottom: 0;
}


/* ========================================
   SERVICES PAGE TABLET
   ======================================== */

@media (max-width: 900px) {
    .page-hero {
        min-height: auto;
        grid-template-columns: 1fr 1fr;
    }

    .page-hero-content {
        padding: 5rem 2.5rem;
    }

    .page-hero-image {
        min-height: 600px;
    }

    .included-care-inner {
        gap: 3rem;
    }

    .service-catalog-grid {
        gap: 1.5rem;
    }

    .service-detail-image {
        padding: 1.25rem 1.25rem 0;
    }

    .service-detail-content {
        padding: 1.75rem;
    }

    .service-detail-list {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        gap: 3rem;
    }

    .cooperative-care-inner {
        gap: 3rem;
    }
}


/* ========================================
   SERVICES PAGE MOBILE
   ======================================== */

@media (max-width: 720px) {
    .page-hero {
        display: flex;
        flex-direction: column;
    }

    .page-hero-image {
        order: 1;
        min-height: 430px;
    }

    .page-hero-content {
        order: 2;
        max-width: none;
        padding: 3.5rem 1.25rem 4.5rem;
    }


    /* HOUSE-CALL INTRO */

    .service-intro {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .service-intro-grid {
        grid-template-columns: 1fr;
    }

    .service-intro-grid article,
    .service-intro-grid article:first-child,
    .service-intro-grid article:last-child {
        padding: 2rem 0;
        border-right: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .service-intro-grid article:last-child {
        border-bottom: 0;
    }


    /* ALL-INCLUSIVE CARE */

    .included-care {
        padding: 5rem 1.25rem;
    }

    .included-care-inner {
        grid-template-columns: 1fr;
    }

    .included-care-heading {
        max-width: none;
    }

    .included-care-grid {
        grid-template-columns: 1fr;
    }


    /* SERVICE CATALOG */

    .service-catalog {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .service-catalog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-detail-image {
        padding: 1.25rem 1.25rem 0;
    }

    .service-detail-image img {
        max-width: 415px;
    }

    .service-detail-content {
        padding: 1.75rem 1.5rem 2rem;
    }

    .service-detail-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    /* PRICING */

    .pricing-section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .pricing-card {
        padding: 2.5rem 1.5rem;
        grid-template-columns: 1fr;
        gap: 2rem;
    }


    /* COOPERATIVE CARE */

    .cooperative-care {
        padding: 5rem 1.25rem;
    }

    .cooperative-care-inner {
        grid-template-columns: 1fr;
    }

    .cooperative-care-image {
        max-width: 550px;
    }

    .cooperative-care-content {
        max-width: none;
    }


    /* SCHEDULING */

    .schedule-section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .schedule-grid article,
    .schedule-grid article:first-child,
    .schedule-grid article:last-child {
        padding: 2rem 0;
        border-right: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .schedule-grid article:last-child {
        border-bottom: 0;
    }
}


/* ========================================
   SERVICES PAGE SMALL MOBILE
   ======================================== */

@media (max-width: 480px) {
    .page-hero-image {
        min-height: 360px;
    }

    .included-care-grid article {
        padding: 1.5rem;
    }

    .service-detail-image {
        padding: 1rem 1rem 0;
    }

    .service-detail-content {
        padding: 1.5rem 1.25rem 1.75rem;
    }

    .service-detail-list {
        grid-template-columns: 1fr;
    }

    .cooperative-care-image::before {
        right: -0.6rem;
        bottom: -0.6rem;
    }
}

/* ========================================
   PORTFOLIO PAGE
   ======================================== */


/* ---------- PORTFOLIO HERO ---------- */

.portfolio-hero {
    padding: 8rem 1.5rem 7rem;
    background:
        linear-gradient(
            135deg,
            var(--warm-ivory) 0%,
            var(--warm-ivory) 62%,
            var(--light-aqua) 62%,
            var(--light-aqua) 100%
        );
}

.portfolio-hero-inner {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.portfolio-hero-inner h1 {
    max-width: 800px;
    margin-right: auto;
    margin-bottom: 1.5rem;
    margin-left: auto;
}

.portfolio-hero-inner > p:not(.eyebrow) {
    max-width: 680px;
    margin-right: auto;
    margin-bottom: 2rem;
    margin-left: auto;
    font-size: 1.08rem;
}

.portfolio-hero-inner .button {
    margin-top: 0.5rem;
}


/* ---------- PORTFOLIO INTRO ---------- */

.portfolio-intro {
    padding-top: 7rem;
    padding-bottom: 7rem;
}

.portfolio-intro-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(3rem, 8vw, 8rem);
    align-items: start;
}

.portfolio-intro-grid h2 {
    margin-bottom: 0;
}

.portfolio-intro-grid > div:last-child {
    max-width: 600px;
}

.portfolio-intro-lead {
    color: var(--deep-blue-gray);
    font-family: var(--heading-font);
    font-size: clamp(1.4rem, 2vw, 1.7rem);
    font-weight: 600;
    line-height: 1.45;
}


/* ---------- PORTFOLIO GALLERY ---------- */

.portfolio-gallery-section {
    padding: 7rem 1.5rem 8rem;
    background: var(--white);
}

.portfolio-gallery-section > .section-heading {
    max-width: 720px;
    margin-right: auto;
    margin-bottom: 4rem;
    margin-left: auto;
}

.portfolio-gallery {
    display: grid;
    max-width: var(--max-width);
    margin: 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.portfolio-card {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--large-radius);
    background: var(--warm-ivory);
    box-shadow: 0 8px 24px rgba(41, 54, 59, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(41, 54, 59, 0.11);
}

.portfolio-card-image {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--light-gray);
}

.portfolio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-card-image img {
    transform: scale(1.025);
}

.portfolio-card-content {
    position: relative;
    padding: 1.35rem 1.5rem 1.5rem;
}

.portfolio-card-content::before {
    position: absolute;
    top: 0;
    left: 1.5rem;
    width: 2.5rem;
    height: 3px;
    background: var(--muted-teal);
    content: "";
}

.portfolio-card-content h3 {
    margin: 0 0 0.2rem;
    color: var(--deep-blue-gray);
    font-size: 1.65rem;
}

.portfolio-card-content p {
    margin: 0;
    color: var(--charcoal);
    font-size: 0.88rem;
    font-weight: 600;
}

.javascript-message {
    max-width: 650px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    border-radius: var(--medium-radius);
    background: var(--light-aqua);
    text-align: center;
}


/* ---------- PORTFOLIO MESSAGE ---------- */

.portfolio-message {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.portfolio-message-inner {
    display: grid;
    padding: clamp(2.5rem, 6vw, 5rem);
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(3rem, 7vw, 7rem);
    border-radius: var(--large-radius);
    background: var(--deep-blue-gray);
    color: rgba(255, 255, 255, 0.84);
}

.portfolio-message-inner .eyebrow {
    color: var(--soft-aqua);
}

.portfolio-message-inner h2 {
    margin-bottom: 0;
    color: var(--white);
}

.portfolio-message-inner > div:last-child {
    max-width: 560px;
}

.portfolio-message-inner .text-link {
    color: var(--white);
}

.portfolio-message-inner .text-link:hover {
    color: var(--soft-aqua);
}


/* ========================================
   PORTFOLIO PAGE TABLET
   ======================================== */

@media (max-width: 900px) {
    .portfolio-hero {
        padding-top: 6.5rem;
        padding-bottom: 6rem;
    }

    .portfolio-intro-grid {
        gap: 3rem;
    }

    .portfolio-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portfolio-message-inner {
        gap: 3rem;
    }
}


/* ========================================
   PORTFOLIO PAGE MOBILE
   ======================================== */

@media (max-width: 720px) {
    .portfolio-hero {
        padding: 5rem 1.25rem;
        background:
            linear-gradient(
                155deg,
                var(--warm-ivory) 0%,
                var(--warm-ivory) 72%,
                var(--light-aqua) 72%,
                var(--light-aqua) 100%
            );
    }

    .portfolio-intro {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .portfolio-intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-intro-grid > div:last-child {
        max-width: none;
    }

    .portfolio-gallery-section {
        padding: 5rem 1.25rem;
    }

    .portfolio-gallery-section > .section-heading {
        margin-bottom: 3rem;
    }

    .portfolio-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .portfolio-card-content {
        padding: 1.15rem 1.2rem 1.3rem;
    }

    .portfolio-card-content::before {
        left: 1.2rem;
    }

    .portfolio-card-content h3 {
        font-size: 1.4rem;
    }

    .portfolio-message {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .portfolio-message-inner {
        padding: 2.5rem 1.5rem;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


/* ========================================
   PORTFOLIO PAGE SMALL MOBILE
   ======================================== */

@media (max-width: 480px) {
    .portfolio-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portfolio-card {
        max-width: 415px;
        margin: 0 auto;
    }

    .portfolio-card-content {
        padding: 1.25rem 1.35rem 1.4rem;
    }

    .portfolio-card-content::before {
        left: 1.35rem;
    }

    .portfolio-card-content h3 {
        font-size: 1.55rem;
    }
}

/* ========================================
   ABOUT PAGE
   ======================================== */


/* ---------- ABOUT HERO ---------- */

.about-hero {
    display: grid;
    max-width: 1400px;
    min-height: 680px;
    margin: 0 auto;
    grid-template-columns: 1fr 1fr;
    background: var(--warm-ivory);
}

.about-hero-image {
    min-height: 680px;
    overflow: hidden;
}

.about-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-hero-content {
    display: flex;
    max-width: 650px;
    padding: 6rem clamp(2.5rem, 6vw, 6rem);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.about-hero-content h1 {
    margin-bottom: 1.5rem;
}

.about-hero-lead {
    margin-bottom: 0.75rem;
    color: var(--muted-teal);
    font-family: var(--heading-font);
    font-size: 1.6rem;
    font-weight: 700;
}

.about-hero-content > p:not(.eyebrow):not(.about-hero-lead) {
    max-width: 530px;
    margin-bottom: 2rem;
    font-size: 1.02rem;
}

/* ---------- ABOUT PAGE WIDTH ---------- */

.content-width {
    width: 100%;
    max-width: var(--max-width);
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}


/* ---------- ABOUT STORY ---------- */

.about-story {
    display: grid;
    padding-top: 8rem;
    padding-bottom: 8rem;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(3rem, 8vw, 8rem);
    align-items: start;
}

.about-story-heading {
    max-width: 500px;
}

.about-story-heading h2 {
    margin-bottom: 0;
}

.about-story-content {
    max-width: 620px;
}

.about-story-lead {
    color: var(--deep-blue-gray);
    font-family: var(--heading-font);
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    font-weight: 600;
    line-height: 1.45;
}


/* ---------- ABOUT PHILOSOPHY ---------- */

.about-philosophy {
    padding: 7rem 1.5rem;
    background: var(--deep-blue-gray);
    color: rgba(255, 255, 255, 0.84);
}

.about-philosophy-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.about-philosophy-heading {
    max-width: 680px;
    margin-bottom: 4rem;
}

.about-philosophy-heading .eyebrow {
    color: var(--soft-aqua);
}

.about-philosophy-heading h2 {
    margin-bottom: 0;
    color: var(--white);
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.about-values article {
    padding: 2.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.about-values article:first-child {
    padding-left: 0;
}

.about-values article:last-child {
    padding-right: 0;
    border-right: 0;
}

.about-values .process-number {
    color: var(--soft-aqua);
}

.about-values h3 {
    margin-bottom: 0.8rem;
    color: var(--white);
}

.about-values p {
    margin-bottom: 0;
}


/* ========================================
   EDUCATION & QUALIFICATIONS
   ======================================== */

.credentials-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.credentials-intro {
    display: grid;
    margin-bottom: 7rem;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(3rem, 8vw, 8rem);
    align-items: start;
}

.credentials-intro h2 {
    margin-bottom: 0;
}

.credentials-intro > div:last-child {
    max-width: 600px;
}

.credentials-lead {
    color: var(--deep-blue-gray);
    font-family: var(--heading-font);
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    font-weight: 600;
    line-height: 1.45;
}


/* ---------- FEATURED EDUCATION ---------- */

.featured-education {
    margin-bottom: 8rem;
}

.featured-education > .section-heading {
    max-width: 720px;
    margin-right: auto;
    margin-bottom: 4rem;
    margin-left: auto;
}

.featured-credential-grid {
    display: grid;
    max-width: 1000px;
    margin: 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.featured-credential {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--large-radius);
    background: var(--white);
    box-shadow: 0 10px 28px rgba(41, 54, 59, 0.07);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.featured-credential:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(41, 54, 59, 0.12);
}

.featured-credential-image {
    display: flex;
    min-height: 315px;
    padding: 1.75rem;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    background: var(--light-gray);
}

.featured-credential-image img {
    display: block;
    width: 100%;
    max-width: 358px;
    height: auto;
    margin: 0 auto;
    box-shadow: 0 6px 18px rgba(41, 54, 59, 0.12);
}

.featured-credential-content {
    position: relative;
    padding: 2rem;
}

.featured-credential-content::before {
    position: absolute;
    top: 0;
    left: 2rem;
    width: 2.75rem;
    height: 3px;
    background: var(--muted-teal);
    content: "";
}

.featured-credential-content .card-label {
    margin-bottom: 0.6rem;
}

.featured-credential-content h3 {
    margin-bottom: 0.9rem;
    color: var(--deep-blue-gray);
    font-size: clamp(1.6rem, 2.5vw, 2rem);
}

.featured-credential-content p:last-child {
    margin-bottom: 0;
}


/* ========================================
   CONTINUING EDUCATION
   ======================================== */

.continuing-education {
    padding-top: 7rem;
    border-top: 1px solid var(--border-color);
}

.continuing-education-heading {
    display: grid;
    margin-bottom: 3.5rem;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(3rem, 8vw, 8rem);
    align-items: start;
}

.continuing-education-heading h2 {
    margin-bottom: 0;
}

.continuing-education-heading > div:last-child {
    max-width: 580px;
}

.scroll-hint {
    display: flex;
    margin-top: 1.5rem;
    margin-bottom: 0;
    gap: 0.65rem;
    align-items: center;
    color: var(--muted-teal);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.scroll-hint span {
    font-size: 1.2rem;
}


/* ---------- CERTIFICATE SCROLL RAIL ---------- */

.certificate-scroll {
    display: flex;
    width: 100%;
    padding: 0.5rem 0 1.75rem;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--muted-teal) var(--light-gray);
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
}

.certificate-scroll:focus-visible {
    outline: 3px solid rgba(79, 143, 139, 0.35);
    outline-offset: 6px;
    border-radius: var(--small-radius);
}

.certificate-scroll::-webkit-scrollbar {
    height: 10px;
}

.certificate-scroll::-webkit-scrollbar-track {
    border-radius: 999px;
    background: var(--light-gray);
}

.certificate-scroll::-webkit-scrollbar-thumb {
    border: 2px solid var(--light-gray);
    border-radius: 999px;
    background: var(--muted-teal);
}


/* ---------- CERTIFICATE CARDS ---------- */

.certificate-card {
    flex: 0 0 358px;
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid var(--border-color);
    border-radius: var(--medium-radius);
    background: var(--white);
    box-shadow: 0 7px 20px rgba(41, 54, 59, 0.06);
}

.certificate-card-image {
    display: flex;
    width: 100%;
    min-height: 264px;
    padding: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    background: var(--light-gray);
}

.certificate-card-image img {
    display: block;
    width: 358px;
    max-width: 100%;
    height: 264px;
    object-fit: contain;
}

.certificate-card-content {
    padding: 1.4rem 1.5rem 1.6rem;
}

.certificate-card-content .card-label {
    margin-bottom: 0.45rem;
}

.certificate-card-content h3 {
    margin: 0;
    color: var(--deep-blue-gray);
    font-size: 1.35rem;
    line-height: 1.25;
}


/* ---------- JAVASCRIPT FALLBACK ---------- */

.javascript-message {
    max-width: 650px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    border-radius: var(--medium-radius);
    background: var(--light-aqua);
    text-align: center;
}


/* ========================================
   APPOINTMENT
   ======================================== */


/* ---------- APPOINTMENT INTRO ---------- */

.appointment-intro {
    padding: 7rem 1.5rem;
    background: var(--muted-teal);
    color: var(--white);
}

.appointment-intro-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.appointment-intro .eyebrow {
    color: var(--white);
}

.appointment-intro h2 {
    margin-bottom: 1.25rem;
    color: var(--white);
}

.appointment-intro p:last-child {
    max-width: 650px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}


/* ---------- APPOINTMENT SECTION ---------- */

.appointment-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.appointment-layout {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: clamp(3rem, 7vw, 7rem);
    align-items: start;
}

.appointment-info {
    position: sticky;
    top: 8rem;
}

.appointment-info h2 {
    margin-bottom: 1.5rem;
}

.appointment-note {
    margin-top: 2.5rem;
    padding: 1.75rem;
    border-left: 4px solid var(--muted-teal);
    border-radius: 0 var(--medium-radius) var(--medium-radius) 0;
    background: var(--light-aqua);
}

.appointment-note h3 {
    margin-bottom: 0.75rem;
    font-size: 1.45rem;
}

.appointment-note p {
    font-size: 0.9rem;
}

.appointment-note p:last-child {
    margin-bottom: 0;
}


/* ---------- FORM ---------- */

.appointment-form {
    padding: clamp(2rem, 5vw, 3.5rem);
    border: 1px solid var(--border-color);
    border-radius: var(--large-radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.appointment-form fieldset {
    margin: 0 0 3rem;
    padding: 0;
    border: 0;
}

.appointment-form fieldset:last-of-type {
    margin-bottom: 2.5rem;
}

.appointment-form legend {
    width: 100%;
    margin-bottom: 1.75rem;
    padding: 0 0 0.8rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--deep-blue-gray);
    font-family: var(--heading-font);
    font-size: 1.65rem;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.form-field {
    margin-bottom: 1.5rem;
}

.form-grid .form-field {
    margin-bottom: 0;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--deep-blue-gray);
    font-size: 0.9rem;
    font-weight: 700;
}

.form-field label span {
    color: var(--muted-teal);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid #b7c4c3;
    border-radius: var(--small-radius);
    background: var(--warm-ivory);
    color: var(--charcoal);
    font: inherit;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-field input,
.form-field select {
    min-height: 3.25rem;
    padding: 0.75rem 0.9rem;
}

.form-field textarea {
    min-height: 150px;
    padding: 0.9rem;
    resize: vertical;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
    border-color: var(--muted-teal);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--muted-teal);
    outline: none;
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(79, 143, 139, 0.18);
}

.form-field input:required:valid,
.form-field select:required:valid {
    border-color: var(--muted-teal);
}

.form-field textarea::placeholder {
    color: #667579;
    opacity: 1;
}

.form-submit {
    border: 0;
    cursor: pointer;
}

.form-required-note {
    display: inline-block;
    margin: 0 0 0 1rem;
    color: #5b696d;
    font-size: 0.8rem;
}

.form-required-note span {
    color: var(--muted-teal);
}


/* ========================================
   ABOUT PAGE TABLET
   ======================================== */

@media (max-width: 900px) {
    .about-hero {
        min-height: 620px;
    }

    .about-hero-image {
        min-height: 620px;
    }

    .about-hero-content {
        padding: 4.5rem 2.5rem;
    }

    .about-story,
    .credentials-intro,
    .continuing-education-heading {
        gap: 3rem;
    }

    .featured-credential-grid {
        gap: 1.5rem;
    }

    .featured-credential-image {
        min-height: 290px;
        padding: 1.25rem;
    }

    .appointment-layout {
        gap: 3rem;
    }

    .appointment-info {
        position: static;
    }
}


/* ========================================
   ABOUT PAGE MOBILE
   ======================================== */

@media (max-width: 720px) {
    /* HERO */

    .about-hero {
        display: flex;
        min-height: auto;
        flex-direction: column;
    }

    .about-hero-image {
        min-height: 500px;
    }

    .about-hero-content {
        max-width: none;
        padding: 3.5rem 1.25rem 4.5rem;
    }


    /* STORY */

    .about-story {
        padding-top: 5rem;
        padding-bottom: 5rem;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-story-heading,
    .about-story-content {
        max-width: none;
    }


    /* PHILOSOPHY */

    .about-philosophy {
        padding: 5rem 1.25rem;
    }

    .about-philosophy-heading {
        margin-bottom: 3rem;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .about-values article,
    .about-values article:first-child,
    .about-values article:last-child {
        padding: 2rem 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .about-values article:last-child {
        border-bottom: 0;
    }


    /* EDUCATION */

    .credentials-section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .credentials-intro {
        margin-bottom: 5rem;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .credentials-intro > div:last-child {
        max-width: none;
    }

    .featured-education {
        margin-bottom: 5rem;
    }

    .featured-education > .section-heading {
        margin-bottom: 3rem;
    }

    .featured-credential-grid {
        max-width: 500px;
        grid-template-columns: 1fr;
    }

    .featured-credential-image {
        min-height: auto;
        padding: 1.5rem;
    }

    .featured-credential-content {
        padding: 1.75rem;
    }

    .featured-credential-content::before {
        left: 1.75rem;
    }


    /* CONTINUING EDUCATION */

    .continuing-education {
        padding-top: 5rem;
    }

    .continuing-education-heading {
        margin-bottom: 2.5rem;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .continuing-education-heading > div:last-child {
        max-width: none;
    }

    .certificate-scroll {
        margin-right: -1.25rem;
        padding-right: 1.25rem;
        gap: 1rem;
    }

    .certificate-card {
        flex-basis: 320px;
    }

    .certificate-card-image {
        min-height: 236px;
    }

    .certificate-card-image img {
        width: 320px;
        height: auto;
    }


    /* APPOINTMENT INTRO */

    .appointment-intro {
        padding: 5rem 1.25rem;
    }


    /* APPOINTMENT */

    .appointment-section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .appointment-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .appointment-form {
        padding: 2rem 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-submit {
        width: 100%;
    }

    .form-required-note {
        display: block;
        margin: 1rem 0 0;
        text-align: center;
    }
}


/* ========================================
   ABOUT PAGE SMALL MOBILE
   ======================================== */

@media (max-width: 480px) {
    .about-hero-image {
        min-height: 410px;
    }

    .about-hero-content {
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    .featured-credential-image {
        padding: 1rem;
    }

    .featured-credential-content {
        padding: 1.5rem;
    }

    .featured-credential-content::before {
        left: 1.5rem;
    }

    .certificate-card {
        flex-basis: min(300px, calc(100vw - 3rem));
    }

    .certificate-card-image {
        min-height: auto;
    }

    .certificate-card-image img {
        width: 100%;
        height: auto;
    }

    .appointment-form {
        padding: 1.75rem 1.25rem;
    }

    .appointment-note {
        padding: 1.5rem;
    }
}

/* ========================================
   REDUCED MOTION
   ======================================== */

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   THANK YOU PAGE
   ======================================== */

.thankyou-section {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 92px);
    padding: 5rem 1.5rem;
    align-items: center;
    justify-content: center;
    background: var(--warm-ivory);
}

.thankyou-card {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5rem);
    border: 1px solid var(--border-color);
    border-radius: var(--large-radius);
    background: var(--white);
    box-shadow: var(--shadow);
    text-align: center;
}

.thankyou-mark {
    display: flex;
    width: 72px;
    height: 72px;
    margin: 0 auto 1.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-aqua);
    color: var(--muted-teal);
    font-size: 2rem;
    font-weight: 700;
}

.thankyou-card .eyebrow {
    margin-bottom: 0.75rem;
}

.thankyou-card h1 {
    max-width: 620px;
    margin: 0 auto 1.5rem;
}

.thankyou-lead {
    max-width: 580px;
    margin: 0 auto 1rem;
    color: var(--deep-blue-gray);
    font-family: var(--heading-font);
    font-size: clamp(1.3rem, 2vw, 1.55rem);
    font-weight: 600;
    line-height: 1.45;
}

.thankyou-card > p:not(.eyebrow):not(.thankyou-lead) {
    max-width: 580px;
    margin: 0 auto;
}

.thankyou-actions {
    display: flex;
    margin-top: 2.5rem;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}


/* ---------- THANK YOU MOBILE ---------- */

@media (max-width: 600px) {
    .thankyou-section {
        min-height: auto;
        padding: 3rem 1.25rem;
    }

    .thankyou-card {
        padding: 2.75rem 1.5rem;
    }

    .thankyou-mark {
        width: 64px;
        height: 64px;
        margin-bottom: 1.5rem;
        font-size: 1.75rem;
    }

    .thankyou-actions {
        flex-direction: column;
    }

    .thankyou-actions .button {
        width: 100%;
    }
}