:root {

    --green-accent: #2e604f;
    --green-accent-light: #5ba489;
    --dark-grey: rgb(103, 110, 113);
}

@font-face {
    font-family: 'Fanwood-Italic';
    src: url('../fonts/fanwood_text_italic-webfont.eot') format('woff2eot'),
         url('../fonts/fanwood_text_italic-webfont.ttf') format('ttf'),
         url('../fonts/fanwood_text_italic-webfont.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}


@font-face {
    font-family: 'Fanwood';
    src: url('../fonts/fanwood-webfont.eot') format('woff2eot'),
         url('../fonts/fanwood-webfont.ttf') format('ttf'),
         url('../fonts/fanwood-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fanwood', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    font-size: calc(1.2rem + 0.2vw);
    background-color: rgba(251, 248, 243, 0.1);
}

.nav-list {
    background-color: rgba(251, 248, 243, 0.5);
    font-size: calc(1rem + 0.15vw);
}

/* Announcement Banner */
.announcement {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    padding: 12px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: calc(1rem + 0.15vw);
}

.announcement p {
    margin: 0;
    font-weight: 500;
    color: #495057;
}

/* Single button style */
.btn, button {
    background-color: var(--green-accent);
    color: white !important;
    padding: 16px 32px 14px 32px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-family: inherit;
    font-size: 1.1rem;
    transition: background-color 0.2s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    line-height: 1;
    vertical-align: middle;
}

.btn:hover, button:hover {
    background-color: var(--green-accent-light);
    color: white !important;
}

/* Google Calendar appointment button styling */
.appointment-button button {
    background-color: var(--green-accent) !important;
    color: white !important;
    padding: 12px 32px 10px 32px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    font-family: 'Fanwood', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    font-size: 1.1rem !important;
    transition: background-color 0.2s ease !important;
    line-height: 1 !important;
}

.appointment-button button:hover {
    background-color: var(--green-accent-light) !important;
}

/* Mobile/desktop appointment booking visibility */
.desktop-only {
    display: inline;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: inline-block;
    }

    /* Center mobile button wrapper */
    .mobile-button-wrapper {
        display: block;
        text-align: center;
        margin-top: 10px;
        margin-left: -1.5rem;
    }

    .form-section button[type="submit"] {
        display: block;
        margin: 0 auto;
    }

    /* Contact form mobile styles */
    .form-section {
        padding: 20px 20px;
        font-size: 1.3rem !important;
    }

    .form-section h2 {
        font-size: 2rem;
    }

    .form-section p,
    .form-section li {
        font-size: 1.3rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Hamburger Menu - Hidden by default on desktop */
.nav-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 10px 20px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--green-accent);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Navigation Bar */
header ul {
    list-style: none;
    display: flex;
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 0 20px;
    flex-wrap: wrap;
    justify-content: center;
}

header ul li {
    margin: 0;
    position: relative;
}

header ul li a {
    display: block;
    padding: 15px 20px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

header ul li a:hover {
    color: var(--green-accent-light);
    border-bottom-color: var(--green-accent-light);
}

/* Dropdown Menu Styles */
.has-dropdown {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 12em;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    border-top: none;
    z-index: 1000;
}

.dropdown li {
    display: block;
}

.dropdown li a {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95em;
}

.dropdown li:last-child a {
    border-bottom: none;
}

.dropdown li a:hover {
    background-color: rgba(46, 96, 79, 0.05);
    border-bottom-color: #f0f0f0;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.has-dropdown > a {
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .announcement {
        padding: 10px 15px;
        font-size: 1.1rem;
    }

    .announcement p {
        text-align: center;
        font-size: 1rem;
    }

    .announcement .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .nav-list {
        font-size: 1.1rem;
    }

    /* Show hamburger on mobile */
    .hamburger {
        display: flex;
    }

    /* Hide navigation by default on mobile */
    header ul {
        display: none;
        flex-direction: column;
        padding: 0;
        position: relative;  /* Changed from absolute */
        background-color: #fff;
        border-top: 1px solid #e9ecef;
    }

    /* Show navigation when checkbox is checked */
    .nav-toggle:checked ~ ul {
        display: flex;
    }

    /* Animate hamburger to X when checked */
    .nav-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    header ul li a {
        padding: 10px 15px;
        text-align: center;
        font-size: 1.1rem;
    }

    /* Mobile dropdown styles */
    .dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background-color: #f8f9fa;
    }

    .dropdown li a {
        padding-left: 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .announcement {
        padding: 8px 12px;
        font-size: 1rem;
    }

    .announcement p {
        font-size: 0.9rem;
    }

    .nav-list {
        font-size: 1rem;
    }

    header ul li a {
        padding: 8px 12px;
        font-size: 1rem;
    }

    .dropdown li a {
        font-size: 0.95rem;
    }

    /* Contact form 480px mobile styles */
    .form-section {
        font-size: 1.2rem !important;
    }

    .form-section h2 {
        font-size: 1.8rem;
    }

    .form-section p,
    .form-section li {
        font-size: 1.2rem;
    }
}

@media (min-width: 769px) {
    .announcement {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main > div:not(.hero) {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-with-hero {
    max-width: calc(800px + 15vw) !important;
}

/* Contact Form Styles */
.form-section-wrapper {
    flex: 0 0 auto;
    background-color: rgba(251, 248, 243, 0.895);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    width: 100%;
    margin-bottom: 0 !important;
}

.form-section {
    max-width: calc(800px + 15vw);
    padding: 20px 80px;
    width: 100%;
    font-size: calc(1rem + 0.15vw);
}

.form-section h2 {
    margin-bottom: 1rem;
    color: #333;
}

.form-section p {
    margin-bottom: 2rem;
    color: #555;
}

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

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Fanwood', serif;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: calc(1rem + 0.1vw);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #638e7f;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
}

/* Taller hero for content pages with hero images */
.hero:has(.hero-content-gradient) {
    min-height: 700px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Remove dark overlay for content page heroes */
.hero:has(.hero-content-gradient)::before {
    display: none;
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-text h1 {
    font-size: calc(2rem + 1vw);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Fanwood-Italic';
    font-style: italic;
}

.hero-text p {
    font-size: calc(1rem + 0.3vw);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0);
    color: white;
}

/* Hero content gradient overlay */
.hero-content-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.2) 65%,
        rgba(255, 255, 255, 0.6) 80%,
        rgba(255, 255, 255, 0.9) 92%,
        rgba(255, 255, 255, 1) 100%);
    z-index: 1;
}

/* Callout Section */
.callout {
    background-color: #f8f9fa;
    border-left: 5px solid var(--green-accent);
    padding: 30px;
    font-size: 1.1rem;
    font-style: italic;
    text-align: center;
    margin: 0;
}

/* Content Sections */
main > div h2 {
    color: #333;
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-style: italic;
}

main > div p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #555;
}

/* Who I Help Section with Headshot */
.who-i-help-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 20px;
}

.text-content p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #555;
}

.headshot {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.headshot img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.headshot img:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Service Cards */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 40px 20px !important;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card h3 {
    color: var(--green-accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.9em;
}

/* Contact Form */
.contact {
    background-color: #f8f9fa;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
}

.contact label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    transition: border-color 0.2s ease;
}

.contact input:focus,
.contact textarea:focus {
    outline: none;
    border-color: var(--green-accent);
}

.contact textarea {
    height: 120px;
    resize: vertical;
}

.contact button {
    width: 100%;
    padding: 15px;
    background-color: var(--green-accent);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.contact button:hover {
    background-color: var(--green-accent-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Base font size for mobile */
    body {
        font-size: 1.3rem;
    }

    main > div:not(.hero) {
        padding: 30px 20px;
    }

    /* Content page specific adjustments */
    .content-with-hero {
        padding: 30px 25px !important;
    }

    .content-with-hero h1 {
        font-size: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .callout {
        padding: 20px;
        font-size: 1rem;
    }

    .card-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 15px !important;
    }

    /* Mobile layout for Who I Help section */
    .who-i-help-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .headshot {
        order: -1;
        justify-content: center;
    }

    .headshot img {
        max-width: 250px;
    }

    /* Content page floating image on mobile */
    .content-with-hero img[style*="float: right"] {
        float: none !important;
        display: block;
        width: 100% !important;
        max-width: 400px;
        margin: 20px auto !important;
    }
}

@media (max-width: 480px) {
    /* Even smaller for phones */
    body {
        font-size: 1.2rem;
    }

    .content-with-hero h1 {
        font-size: 1.8rem;
    }

    main > div h2 {
        font-size: 1.5rem;
    }
}

a {
    color: var(--green-accent);
}

a:hover {
    color: var(--green-accent-light);
}

/* Code blocks */
pre, code {
    font-family: inherit;
}