/* ==========================================================================
   1. Google Fonts & Reset
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color Palette */
    --color-primary: #98FFC2;       /* Mint Accent */
    --color-primary-hover: #7ee6a9; /* Darker mint for interactive hover states */
    --color-dark: #2A2A2A;          /* Charcoal Banner */
    --color-light-bg: #F6F5F4;      /* Light Gray Section */
    --color-white: #FFFFFF;
    --color-text-main: #1A1A1A;
    --color-text-muted: #555555;

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

    /* Spacing & Layout */
    --container-max-width: 1200px;
    --section-padding-desktop: 5rem 2rem;
    --section-padding-mobile: 3rem 1.25rem;
    --transition-smooth: all 0.3s ease;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-main);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   2. Typography & Global Elements
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: #000000;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 3rem; }
h3 { font-size: 1.9rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--color-text-main);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 40px;
}

/* ==========================================================================
   3. Reusable Components (Buttons & Cards)
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

/* Pill-shaped buttons based on the Squarespace template styling */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #000000;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
}

.btn-white {
    background-color: var(--color-white);
    color: #000000;
}

.btn-white:hover {
    background-color: var(--color-light-bg);
    transform: translateY(-1px);
}

/* Feature/Service Card Styling */
.card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.card h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

/* ==========================================================================
   4. Structural Layout Sections
   ========================================================================== */
.section {
    padding: var(--section-padding-desktop);
}

/* Split Column Layouts (Hero, What We Do, About) */
.grid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Three Column Icon/Stat Banner */
.bg-dark-banner {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 4rem 2rem;
    text-align: center;
}

.bg-dark-banner h1, .bg-dark-banner h2, .bg-dark-banner h3, .bg-dark-banner p {
    color: var(--color-white);
}

.bg-dark-banner h3 {
    font-weight: 300;
    font-size: 1.65rem;
}

.bg-dark-banner p {
    font-weight: 300;
}

.section-icon {
    width: 40px;
    height: 40px;
    stroke: var(--color-white);
    margin: 0 auto 1.25rem;
    display: block;
}

.grid-three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* Four Column Service Block */
.bg-mint-section {
    background-color: var(--color-primary);
    padding: 5rem 2rem;
}

.grid-four-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 layout matching the grid graphic */
    gap: 2rem;
    margin-top: 3rem;
}

/* Testimonial Alternating Block */
.bg-light-section {
    background-color: var(--color-light-bg);
}

.testimonial-block {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.75;
}

.testimonial-author {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    color: var(--color-text-muted);
}

/* Footer / Global CTA Block */
.cta-footer-block {
    display: grid;
    grid-template-columns: 45% 55%;
    align-items: stretch;
}

.cta-left {
    background-color: var(--color-primary);
    padding: 7rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.cta-right-img {
    background-size: cover;
    background-position: center;
    min-height: 650px;
}

/* What We Do — full-bleed image left, text right */
.what-we-do-block {
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: stretch;
    min-height: 650px;
}

.what-we-do-left-img {
    overflow: hidden;
    min-height: 650px;
}

.what-we-do-left-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.what-we-do-right {
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero image — square crop */
.hero-image img {
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
    border-radius: 40px;
}

/* ==========================================================================
   5. Carousel
   ========================================================================== */
.carousel-section {
    padding: 3rem 0;
    overflow: hidden;
}

.carousel-section .container {
    max-width: 100%;
    padding: 0;
}

.carousel {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    max-height: 600px;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 0;
}

.carousel-btn {
    position: absolute;
    z-index: 10;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--color-white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.carousel-prev { left: 1.25rem; }
.carousel-next { right: 1.25rem; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0 0;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--color-text-main);
}

/* ==========================================================================
   6. Accordion (FAQ)
   ========================================================================== */
.accordion {
    border-top: 1px solid #E0E0E0;
}

.accordion-item {
    border-bottom: 1px solid #E0E0E0;
}

.accordion-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text-main);
    cursor: pointer;
    text-align: left;
    gap: 1rem;
}

.accordion-trigger:hover {
    color: #000;
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.accordion-content p {
    padding-bottom: 1.25rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   7. Responsive Breakpoints
   ========================================================================== */

/* Tablet Layout adjustments */
@media (max-width: 992px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.25rem; }
    
    .grid-split {
        gap: 2.5rem;
    }
    
    .grid-three-col {
        gap: 1.5rem;
    }
}

/* Mobile Layout adjustments */
@media (max-width: 768px) {
    .section {
        padding: var(--section-padding-mobile);
    }

    .grid-split,
    .grid-three-col,
    .grid-four-col,
    .cta-footer-block,
    .what-we-do-block {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .what-we-do-left-img {
        min-height: 300px;
    }

    .what-we-do-right {
        padding: 2.5rem 1.5rem;
    }

    .cta-left {
        padding: 3rem 1.5rem;
    }

    .cta-right-img {
        min-height: 300px;
    }

    /* Centers headers slightly more aggressively for clean mobile readability if needed */
    .bg-dark-banner .grid-three-col > div {
        margin-bottom: 1.5rem;
    }
    
    img {
        border-radius: 24px;
    }
}