/* --- Design System --- */
:root {
    color-scheme: light;

    /* Decorative brand tints — backgrounds and washes only, never text or
       borders that need to meet a contrast ratio. */
    --color-blush: #ff9a9e;
    --color-blush-soft: #fbc2eb;
    --color-lilac: #a18cd1;

    /* Action colours. All of these clear 4.5:1 against white, so white text
       sits on them safely (the old #ff9a9e buttons were ~2:1). */
    --color-primary: #c04c58;
    --color-primary-dark: #a63b46;
    --color-secondary: #6b52a3;
    --color-secondary-dark: #574289;

    --color-bg: #fdfbf7;
    /* Warm white/cream */
    --color-bg-alt: #ffffff;
    --color-text: #4a4a4a;
    --color-text-light: #6b6b6b;
    /* 5.2:1 on --color-bg */
    --color-heading: #2d2d2d;

    --color-border: #e6e2dd;
    --color-white: #ffffff;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    /* 8rem top+bottom stacked to 256px of dead space between sections */
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition: all 0.3s ease;
}

/* --- Reset & Base Styles --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Keeps anchored sections clear of the fixed header without JS. */
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Focus visibility --- */
:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
    left: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* --- Utilities --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-center {
    text-align: center;
}

.section {
    padding: var(--spacing-xl) 0;
}

/* Content sections sit on white; the cream page background is reserved for the
   hero and the contact block, so the rhythm reads the same on every page. */
.section--alt {
    background-color: var(--color-white);
}

.section-header {
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-top: var(--spacing-xs);
}

.note {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: var(--spacing-md);
}

/* Reveal-on-scroll. Gated behind .js (set by an inline script in <head>) so
   the content is visible by default and never flashes out on slow JS. */
.js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js .reveal.visible {
    opacity: 1;
    transform: none;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    /* <button> defaults to line-height:normal while <a> inherits the body's 1.6,
       which rendered the same .btn class at 48px and 54px. Pin it so they match. */
    line-height: 1.6;
    border-radius: var(--radius-full);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(166, 59, 70, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(166, 59, 70, 0.45);
}

.btn-outline {
    background: transparent;
    border-color: var(--color-text);
    color: var(--color-text);
}

.btn-outline:hover {
    background: var(--color-text);
    color: var(--color-white);
}

.full-width {
    width: 100%;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: var(--spacing-sm) 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:not(.btn):hover,
.nav-link[aria-current="page"] {
    color: var(--color-primary-dark);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--color-heading);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Hero Section --- */
.hero {
    padding-top: calc(var(--spacing-xl) + 60px);
    padding-bottom: var(--spacing-xl);
    background: radial-gradient(circle at top right, #fef6f7, transparent);
    overflow: hidden;
}

.hero--compact {
    padding-top: calc(var(--spacing-lg) + 80px);
    padding-bottom: var(--spacing-lg);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--spacing-lg);
}

.hero--compact .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 760px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.hero-title .highlight {
    background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    max-width: 450px;
}

.hero--compact .hero-subtitle {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Carousel --- */
.carousel {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.carousel-track {
    position: relative;
    height: 100%;
    width: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    /* visibility keeps inactive slides out of the tab order and the
       accessibility tree; it flips only after the fade finishes. */
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0s linear 0.8s;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease-in-out, visibility 0s;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    border: none;
    cursor: pointer;
    padding: 1rem;
    line-height: 1;
    color: var(--color-white);
    font-size: 1.5rem;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-pause {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.45);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    padding: 0.4rem 0.9rem;
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.carousel-pause:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

/* The dot reads as 14px but the button is a 24px tap target (WCAG 2.5.8);
   content-box clipping keeps the padding invisible. */
.dot {
    width: 24px;
    height: 24px;
    padding: 5px;
    border: none;
    background-color: rgba(255, 255, 255, 0.6);
    background-clip: content-box;
    border-radius: 50%;
    cursor: pointer;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
    transition: var(--transition);
}

.dot[aria-current="true"] {
    background-color: var(--color-white);
    padding: 3px;
}

/* --- Services Section --- */
/* .services / .pricing take their white background from .section--alt */

.services-grid {
    display: grid;
    /* 250px lets the 1200px container fit 4 columns, so 8 cards tile evenly
       instead of leaving a stranded row of 2. */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: var(--color-bg);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy spring effect */
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    background: #fff0f1;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    /* Organic shape */
    transition: border-radius 0.4s ease, transform 0.4s ease, background 0.4s ease;
}

.service-card:hover .service-icon {
    border-radius: 50%;
    background: var(--color-blush);
    transform: rotate(5deg);
}

.service-title {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    text-wrap: balance;
}

.service-desc {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* --- Pricing Section --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    /* stretch, so the two cards share a bottom edge even with differing rows */
    align-items: stretch;
    max-width: 900px;
    margin: 0 auto;
}

/* Pricing sits on the cream page background, so its cards invert to white —
   the section alternates with the white Services block above it. */
.pricing-card {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.pricing-card.featured {
    background: linear-gradient(135deg, #fff5f6, #f8f4ff);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.pricing-plan {
    text-align: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pricing-list li {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
}

.pricing-list li span:last-child {
    font-weight: 600;
    white-space: nowrap;
}

/* --- Contact Section --- */
.contact {
    padding: var(--spacing-xl) 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-info {
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
    color: var(--color-white);
}

.contact-title {
    color: var(--color-white);
    margin-bottom: var(--spacing-xs);
}

.contact-text {
    margin-bottom: var(--spacing-md);
}

.contact-info a {
    color: var(--color-white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-info a:hover {
    text-decoration-thickness: 2px;
}

.contact-info :focus-visible {
    outline-color: var(--color-white);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

/* Trailing margin on the last row left a dead strip at the panel's foot. */
.contact-info>.info-item:last-child {
    margin-bottom: 0;
}

.info-item p {
    margin: 0;
}

.hours {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.hours p {
    margin-bottom: 0.25rem;
}

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

.hours .closed {
    opacity: 0.85;
}

/* The grid stretches both columns to the taller one; centring the form keeps
   the leftover space balanced instead of dumping it all below the button. */
.contact-form-container {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #b9b3ac;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-white);
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #767070;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(192, 76, 88, 0.25);
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
}

/* Honeypot — invisible to people, tempting to bots that fill every field. */
.form-honey {
    display: none;
}

/* --- Plant Cards --- */
.plants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.plant-card {
    position: relative;
    height: 400px;
    background-color: #d8d4cf;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plant-card:hover,
.plant-card:focus-within {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.plant-card>picture>img,
.plant-card>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Always-on scrim that fades out into the photo, so the name has something to
   sit on without a hard-edged bar being stamped across the image. */
.plant-card::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 13rem;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.72) 35%,
            rgba(0, 0, 0, 0.32) 70%,
            rgba(0, 0, 0, 0) 100%);
}

/* The panel is only as tall as its own content and is anchored to the bottom of
   the card, so sliding it down by (its height - --peek) leaves exactly the name
   row on show. Sizing it to 100% here would push the text clean off the card. */
.plant-card-content {
    --peek: 5.75rem;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 100%;
    z-index: 2;
    overflow: hidden;
    padding: var(--spacing-md);
    /* Transparent while collapsed — the scrim above does the work. It only
       becomes an actual panel once the details are revealed. */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.86) 65%, rgba(0, 0, 0, 0) 100%);
    color: var(--color-white);
    transform: translateY(calc(100% - var(--peek)));
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), background 0.4s ease;
}

.plant-card.is-open .plant-card-content,
.plant-card:focus-within .plant-card-content {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.88) 60%, rgba(0, 0, 0, 0.72) 100%);
}

.plant-card.is-open .plant-card-content,
.plant-card:focus-within .plant-card-content {
    transform: translateY(0);
}

/* Hover-to-expand only where hovering is a real input mode. */
@media (hover: hover) and (pointer: fine) {
    .plant-card:hover .plant-card-content {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.88) 60%, rgba(0, 0, 0, 0.72) 100%);
    }

    .plant-card:hover .plant-details {
        opacity: 1;
        transform: none;
    }
}

.plant-name {
    font-size: 1.4rem;
    /* Two lines of the longest names still fit inside --peek. */
    margin-bottom: var(--spacing-sm);
    color: var(--color-white);
}

.plant-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.plant-toggle::after {
    content: '\25BC';
    font-size: 0.7rem;
    font-family: var(--font-body);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.plant-card.is-open .plant-toggle::after {
    transform: rotate(180deg);
}

.plant-details {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.plant-card.is-open .plant-details,
.plant-card:focus-within .plant-details {
    opacity: 1;
    transform: none;
}

.plant-desc {
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
}

.plant-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm) var(--spacing-md);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.metric {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.metric .icon {
    font-size: 1.2rem;
}

/* --- Footer --- */
.footer {
    background-color: #f4f2ef;
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-top: 1px solid var(--color-border);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.footer-links ul li {
    margin-bottom: 0.25rem;
}

.footer-links ul li a {
    color: var(--color-text-light);
    display: inline-block;
    padding: 0.2rem 0;
    min-height: 24px;
}

.footer-links ul li a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0;
    min-height: 24px;
    color: var(--color-text-light);
}

/* The source SVGs are fill="white", which is right on the purple contact panel
   but invisible here on the light footer. Recolour them to match the text. */
.social-icons img {
    filter: brightness(0) invert(42%);
}

.social-icons a:hover img {
    filter: brightness(0) invert(28%) sepia(37%) saturate(1200%) hue-rotate(315deg);
}

.social-icons a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.footer-map-container {
    margin-top: var(--spacing-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: var(--spacing-lg);
}

.map-embed {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: #efece7;
    line-height: 0;
}

.map-embed iframe {
    width: 100%;
    height: 350px;
    border: none;
    display: block;
}

.map-note {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin: var(--spacing-sm) 0 0;
}

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid #e5e5e5;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* --- Responsive Queries --- */
/* 900px is the single point where every two-column layout collapses, so the
   hero, pricing and contact all change together rather than at three widths. */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 5rem;
    }

    .header .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .header .nav-list.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-visual,
    .carousel {
        height: 380px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* An odd number of cards would leave the last one stranded half-width. */
    .services-grid>.service-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .service-card {
        padding: var(--spacing-sm);
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }

    .service-title {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-info,
    .contact-form-container {
        padding: var(--spacing-md);
    }

    .carousel-btn {
        padding: 0.65rem;
        font-size: 1.1rem;
    }
}

/* --- Motion preferences --- */
@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
