/* ==========================================================================
   Web Fonts
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,400;0,600;0,700&display=swap');

/* ==========================================================================
   CSS Variables (Corrected to your active Beige/Black theme)
   ========================================================================== */
:root {
    /* Colors */
    --primary-color: #000000;      /* Black buttons/text */
    --primary-hover: #3a3a3a;      /* Dark gray hover */
    --text-dark: #000000;
    --text-light: #ffffff;
    --text-gray: #8b8883;          /* Warm gray for subtext */
    --bg-base: #efebe5;            /* The main beige background */
    --bg-featured: #f7f2ea;        /* Lighter beige for the header menu and footer */
    --border-color: #bfbbb6;
    
    /* Typography */
    --font-primary: "Figtree", system-ui, -apple-system, sans-serif;
    
    /* Layout */
    --container-width: 1500px;
    --spacing-sm: clamp(20px, 4vw, 40px);
    --spacing-md: clamp(30px, 6vw, 60px);
    --spacing-lg: clamp(40px, 8vw, 80px);
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--bg-base); 
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 600;
}

h1 { font-size: clamp(40px, 2.5rem + ((1vw - 3.2px) * 2.727), 64px); margin-bottom: 1.5rem; }
h2 { font-size: clamp(24px, 1.5rem + ((1vw - 3.2px) * 0.909), 32px); margin-bottom: 1.5rem; }
h3 { font-size: clamp(18px, 1.125rem + ((1vw - 3.2px) * 0.227), 20px); margin-bottom: 1rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 600;
    text-align: center;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.button:hover {
    background-color: var(--primary-hover);
    color: var(--text-light);
}

.button.outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.button.outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    background: var(--bg-base);
    padding: 30px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Overlay class forces the header to float transparently over images */
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent; 
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background-color: var(--bg-featured); 
    border-radius: 100px;
    padding: 15px 65px; 
    box-shadow: rgba(0, 0, 0, 0.05) 0px 3px 10px 0px;
}

.logo img {
    max-width: 157px;
}

.main-nav .nav-links {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.main-nav .nav-links a {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 18px; 
}

.main-nav .nav-links a:hover,
.main-nav .nav-links a.active {
    color: var(--text-gray);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* ==========================================================================
   Hero Sections (Home & Internal Pages)
   ========================================================================== */
.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--spacing-sm);
}

.hero {
    background-size: cover;
    background-position: 55% 46%;
    background-color: var(--primary-color); 
    border-radius: 20px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(60px, 12vw, 120px) clamp(10px, 2vw, 20px);
    position: relative;
    overflow: hidden;
}

.page-hero {
    min-height: 400px; 
}

/* Forces the hero to edge-to-edge layout and adds padding for the floating header */
.hero-full-width {
    max-width: 100%;
    border-radius: 0;
    margin: 0;
    padding-top: clamp(140px, 15vw, 200px); 
}

.hero-overlay-light {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.2); 
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--text-light);
    max-width: 750px;
    margin: 0 auto;
}

.hero-content p {
    font-size: clamp(18px, 1.125rem + ((1vw - 3.2px) * 0.227), 20px);
}

/* ==========================================================================
   Internal Page Content Grid (2 Columns)
   ========================================================================== */
.content-section {
    padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-lg);
}

.content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
}

.content-row:first-child {
    border-top: 1px solid var(--border-color);
}

.content-row:last-child {
    border-bottom: none;
}

.content-heading h2 {
    font-size: clamp(24px, 1.5rem + 1vw, 36px);
    margin-bottom: var(--spacing-sm);
}

.content-body p {
    margin-bottom: 1rem;
    font-size: clamp(16px, 1rem + 0.2vw, 18px);
}

.bullet-list {
    margin: var(--spacing-md) 0;
    padding-left: 0;
}

.bullet-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
    font-size: clamp(16px, 1rem + 0.2vw, 18px);
}

.bullet-list li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ==========================================================================
   Services Overview (3 Columns - Home Page)
   ========================================================================== */
.services-overview {
    padding: var(--spacing-sm) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--spacing-md);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-sm);
    align-items: start;
    padding: var(--spacing-sm) 0;
}

.services-list h3 { text-align: center; }
.services-list ul { padding: 0 1rem; }

.services-list li {
    font-size: clamp(18px, 1.125rem + 0.227vw, 20px);
    margin-bottom: 0.8rem;
    margin-left: 50px;
    position: relative;
    padding-left: 1.5rem;
}

.services-list li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.services-image img {
    border-radius: 50%;
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
}

.services-cta {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem;
}

/* ==========================================================================
   Testimonial
   ========================================================================== */
.testimonial {
    padding: var(--spacing-sm) var(--spacing-sm) clamp(50px, 10vw, 100px);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto var(--spacing-sm);
    object-fit: cover;
}

.testimonial blockquote {
    font-size: clamp(18px, 1.125rem + ((1vw - 3.2px) * 0.227), 20px);
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.testimonial cite {
    display: block;
    font-weight: 600;
    color: var(--text-gray);
    font-style: normal;
    font-size: clamp(18px, 1.125rem + ((1vw - 3.2px) * 0.227), 20px);
    margin-bottom: 0.5rem;
}

.testimonial .stars {
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   Contact & Team Page Styles
   ========================================================================== */
.contact-header {
    text-align: center;
    padding: var(--spacing-lg) 0 var(--spacing-sm);
}

.contact-header p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-gray);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-sm);
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.contact-card {
    background-color: var(--bg-featured);
    padding: var(--spacing-md);
    border-radius: 12px;
    text-align: center;
}

.contact-card img {
    margin: 0 auto 1rem;
}

.team-section {
    background-color: var(--bg-featured);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-md);
    max-width: 900px;
    margin: var(--spacing-md) auto 0;
}

.team-member img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1; /* Normalizes the image sizes */
    object-fit: cover;
    object-position: top; /* Ensures faces aren't cropped */
    margin-bottom: 1rem;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 3px 10px 0px;
}

.team-member h3 {
    margin-bottom: 0.2rem;
}

.team-member .title {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.social-link svg {
    fill: var(--text-gray);
    transition: fill 0.2s ease;
}

.social-link:hover svg {
    fill: var(--primary-color);
}

.subheading {
    color: var(--text-gray);
}

.section-desc {
    color: var(--text-gray);
    margin-bottom: var(--spacing-md);
}

.map-section {
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.map-section img {
    border-radius: 12px;
    margin-top: var(--spacing-md);
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--bg-featured);
    padding: var(--spacing-md) var(--spacing-sm) var(--spacing-sm);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-logo img:hover {
    opacity: 1;
}

.footer-copy {
    background-color: var(--bg-base);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    width: 100%;
}

.footer-copy p {
    color: var(--text-gray);
    font-size: 16px;
}

.footer-copy a {
    color: var(--text-gray);
    font-weight: 600;
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--bg-featured);
        padding: var(--spacing-md);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        border-radius: 0 0 20px 20px;
    }
    
    .main-nav .nav-links.active {
        display: flex;
    }

    .header-action {
        display: none; 
    }

    /* Stack Internal Columns on Mobile */
    .content-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .content-row.reverse-mobile .content-body {
        order: 2;
    }
    
    .content-row.reverse-mobile .content-heading {
        order: 1;
    }
}