/* --- Variables for accessible color palette & fonts --- */
:root {
    /* ADA-compliant Dark Green (Backgrounds & Text) */
    --color-green-dark: #103F2A; 
    /* Calming Medium Green */
    --color-green-med: #2E6A49;
    /* Soft, warm terra cotta red for accents (WCAG >4.5:1 on light bg) */
    --color-red-accent: #B03A2E; 
    
    --color-bg-main: #FAF9F6; /* Off-white, easier on eyes than pure white */
    --color-bg-light: #FFFFFF;
    --color-text-main: #1A1A1A; /* Near black for high contrast */
    --color-text-light: #F4F4F4;

    /* Typography */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', serif;
}

/* --- Base & Resets --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-sans);
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
    line-height: 1.6;
    font-size: 18px; /* Slightly larger for readability */
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; }
h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--color-green-dark); }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--color-green-dark); }

a { color: var(--color-green-med); text-decoration: none; transition: color 0.3s ease; }
a:hover, a:focus { color: var(--color-red-accent); text-decoration: underline; }

/* Focus outlines for keyboard navigation (Accessibility) */
*:focus-visible { outline: 3px solid var(--color-red-accent); outline-offset: 4px; }

/* --- Layout Utilities --- */
.container { width: 90%; max-width: 1100px; margin: 0 auto; }
.section { padding: 5rem 0; }
.section-title { text-align: center; margin-bottom: 0.5rem; }
.section-subtitle { text-align: center; margin-bottom: 3rem; color: #555; }
.bg-light { background-color: var(--color-bg-light); }
.bg-secondary { background-color: var(--color-green-dark); }
.text-white, .text-white h2, .text-white p { color: var(--color-text-light) !important; }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px; /* Fully rounded for organic feel */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
    cursor: pointer;
}
.btn-primary {
    background-color: var(--color-red-accent);
    color: var(--color-bg-light);
    box-shadow: 0 4px 15px rgba(176, 58, 46, 0.3);
}
.btn-primary:hover, .btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(176, 58, 46, 0.4);
    background-color: #922f25; /* Slightly darker on hover */
    color: var(--color-bg-light);
}

/* --- Header & Navigation --- */
.site-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); /* Modern glass effect */
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: sticky; top: 0; z-index: 100;
}
.header-container { display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo { display: flex; align-items: center; gap: 10px; z-index: 101; }
.logo-img { height: 50px; width: auto; }
.logo-text { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; color: var(--color-green-dark); }

.nav-actions { display: flex; align-items: center; gap: 1rem; z-index: 101; position: relative; }
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s;
}
.menu-toggle:hover, .menu-toggle:focus-visible {
    background-color: rgba(46, 106, 73, 0.1);
}
.nav-cta {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 1rem;
    background: var(--color-bg-light);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 1.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 99;
}
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.dropdown-links a {
    font-weight: 600;
    color: var(--color-green-dark);
    font-size: 1.05rem;
    display: block;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
}
.dropdown-links a:hover, .dropdown-links a:focus-visible {
    background-color: rgba(46, 106, 73, 0.05);
    color: var(--color-red-accent);
    text-decoration: none;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    background-color: var(--color-green-dark);
    padding: 10rem 0 8rem;
    text-align: center;
    color: white;
    border-bottom-left-radius: 40px; /* Soften the bottom edge */
    border-bottom-right-radius: 40px;
    overflow: hidden;
    margin-bottom: 2rem;
}
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
    opacity: 0.9;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(16, 63, 42, 0.5) 0%, rgba(46, 106, 73, 0.3) 100%); /* Modern gradient overlay */
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-content h1 { color: white; }
.hero-content p { font-size: 1.2rem; margin-bottom: 2rem; color: #EAEAEA; }

/* --- Grids --- */
.grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }

/* Single Card */
.card {
    background: var(--color-bg-light);
    padding: 2.5rem 2rem;
    border-radius: 24px; /* Much less boxy, organic curves */
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border-top: none;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
}
/* Colorful organic accent replacing the harsh top border */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 2rem; right: 2rem;
    height: 4px;
    background: linear-gradient(90deg, var(--color-green-med), var(--color-red-accent));
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.08); }
.card-icon { font-size: 3rem; margin-bottom: 1.5rem; }

/* --- About Section --- */
.about-container {
    display: grid;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 768px) {
    .about-container { grid-template-columns: 1fr 1fr; }
}
.about-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin: 0 auto;
    display: block;
}
.about-text h3 {
    margin-bottom: 1rem;
    color: var(--color-green-med);
    font-size: 1.4rem;
}

/* --- Updates Details --- */
.update-card {
    background: var(--color-bg-light);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: transform 0.3s ease;
}
.update-card:hover { transform: translateY(-5px); }
.update-img { width: 100%; height: 250px; object-fit: cover; } /* Removed harsh bottom border */
.update-info { padding: 2rem; }

/* --- Contact Section --- */
.contact-container {
    display: grid;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 768px) {
    .contact-container { grid-template-columns: 1fr 1fr; }
}
.contact-form {
    background: var(--color-bg-light);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--color-green-dark); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--color-bg-main);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-green-med);
    box-shadow: 0 0 0 3px rgba(46, 106, 73, 0.1);
}

/* --- Substack --- */
.substack-embed {
    max-width: 480px; margin: 2rem auto 0;
}

/* --- Footer --- */
.site-footer {
    background-color: #111; color: #AAA; padding: 3rem 0; text-align: center; font-size: 0.9rem;
}
.footer-logo { height: 40px; margin-bottom: 0.5rem; opacity: 0.8; filter: grayscale(100%) brightness(200%); }
.footer-brand { margin-bottom: 1rem; }

/* Responsive adjustments */
@media (max-width: 600px) {
    h1 { font-size: 2.2rem; }
    
    .logo-text { font-size: 1rem; }
    .logo-img { height: 40px; }
    
    .nav-cta {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .dropdown-menu {
        top: 100%;
        right: 0;
        left: 0;
        margin-top: 1rem;
        min-width: auto;
        border-radius: 12px;
    }
}

/* --- Who I Work With --- */
.who-card {
    border-radius: 16px;
    padding: 2.5rem 2rem;
}

/* --- Process Steps --- */
.process-steps {
    max-width: 800px;
    margin: 0 auto;
}
.process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}
.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 60px;
    bottom: -20px;
    width: 2px;
    background: var(--color-green-light);
    z-index: 1;
}
.step-number {
    width: 50px;
    height: 50px;
    background: var(--color-green-med);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-right: 2rem;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(16, 63, 42, 0.2);
}
.step-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    flex-grow: 1;
}
.step-content h3 {
    color: var(--color-green-dark);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}
.step-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--color-text-main);
}
@media (max-width: 600px) {
    .process-step {
        flex-direction: column;
    }
    .process-step:not(:last-child)::after {
        display: none;
    }
    .step-number {
        margin-bottom: 1rem;
    }
}
