/* ==========================================================================
   CUSTOMIZABLE VARIABLES
   Change colors, text alignments, and fonts right here!
   ========================================================================== */
:root {
    /* Color Palette (original scheme, retained) */
    --primary-color: #366251;       /* Deep slate green (used for headers, links, buttons) */
    --primary-dark: #284a3d;        /* Darker green for header / footer / hover depth */
    --background-light: #fcf5ef;    /* Warm, minimalist cream backdrop */
    --background-white: #ffffff;    /* Clear white container backgrounds */
    --text-dark: #2d2d2d;           /* Soft charcoal for optimal readability */
    --text-muted: #5a5a5a;          /* Lighter text for secondary captions */
    --accent-color: #cd965f;        /* Soft gold/tan accent color */
    --cream-on-green: #f3ece3;      /* Cream text used on the green sections */

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', Arial, sans-serif;

    /* Layout */
    --max-width: 1180px;
    --narrow-width: 820px;
    --header-height: 76px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--background-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.container.narrow {
    max-width: var(--narrow-width);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 500;
    line-height: 1.12;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.25s ease;
}

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

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

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--background-white);
    padding: 0.95rem 2.2rem;
    border-radius: 2px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.btn:hover {
    background-color: var(--background-white);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    background-color: var(--primary-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--header-height);
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    color: var(--background-white);
}

.logo:hover { color: var(--background-white); }

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 1.9rem;
    list-style: none;
    flex-wrap: wrap;
}

.main-nav a {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.main-nav a:hover {
    color: var(--accent-color);
}

.main-nav .nav-cta {
    color: var(--primary-dark);
    background-color: var(--accent-color);
    padding: 0.5rem 1.1rem;
    border-radius: 2px;
}

.main-nav .nav-cta:hover {
    background-color: var(--background-white);
    color: var(--primary-dark);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    min-height: calc(100vh - var(--header-height));
    max-height: 760px;
}

.hero-panel {
    background-color: var(--primary-color);
    color: var(--cream-on-green);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem clamp(2rem, 5vw, 5.5rem);
}

.kicker {
    font-size: 0.78rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.hero-panel h1 {
    color: var(--background-white);
    font-size: clamp(3rem, 7vw, 5.6rem);
    font-weight: 600;
    margin-bottom: 1.6rem;
}

.hero-lead {
    font-size: 1.15rem;
    max-width: 30ch;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 2.4rem;
}

.hero-media {
    background-color: var(--primary-dark);  /* fallback if image is missing */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat; 
}

/* ==========================================================================
   SECTION SCAFFOLD (alternating color blocks)
   ========================================================================== */
.section {
    padding: clamp(4rem, 9vw, 8rem) 0;
}

.section--cream {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.section--green {
    background-color: var(--primary-color);
    color: var(--cream-on-green);
}

.section-head {
    margin-bottom: 2.6rem;
}

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

.section-head .rule {
    display: block;
    width: 56px;
    height: 2px;
    background-color: var(--accent-color);
    margin-bottom: 1.3rem;
}

.section-head.center .rule {
    margin-left: auto;
    margin-right: auto;
}

.section-head h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

/* Headings & links recolor on the dark green sections */
.section--green h2,
.section--green h3,
.section--green h4 {
    color: var(--background-white);
}

.section--green a {
    color: var(--background-white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.section p {
    margin-bottom: 1.4rem;
}

.lead-text {
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ==========================================================================
   ABOUT & EDUCATION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.about-media img {
    width: 100%;
    border-radius: 3px;
    background-color: var(--primary-dark);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
}

.about-bio p {
    font-size: 1.05rem;
}

.about-bio blockquote {
    margin-top: 2rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--accent-color);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.15rem;
    color: #ffffff;
}

.about-bio blockquote p {
    margin-bottom: 1.1rem;
}

.education {
    margin-top: clamp(3rem, 6vw, 5rem);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 3rem;
}

.education > h3 {
    font-size: 1.7rem;
    margin-bottom: 2rem;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1.5fr));
    gap: 2rem 3rem;
}

.education-item h4 {
    font-family: var(--font-body);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 0.35rem;
}

.education-school {
    font-size: 0.95rem;
    color: var(--accent-color);
    margin-bottom: 0.7rem !important;
}

.education-item ul {
    list-style: none;
    padding-left: 0;
}

.education-item li {
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: 0.45rem;
    font-size: 0.97rem;
    color: rgba(255, 255, 255, 0.9);
}

.education-item li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-color);
}

.getting-started-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.getting-started-media img {
    width: 100%;
    border-radius: 3px;
    background-color: var(--primary-dark);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.2rem;
}

.service-card {
    background-color: var(--background-white);
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: 3px;
    border-top: 3px solid var(--accent-color);
    box-shadow: 0 14px 40px rgba(40, 74, 61, 0.08);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.3rem;
}

.service-card p {
    font-size: 1rem;
}

.note-label {
    margin-top: 0.5rem;
    margin-bottom: 0.8rem !important;
}

.note-list {
    list-style: none;
    padding-left: 0;
}

.note-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.5rem;
    font-size: 0.97rem;
    color: var(--text-muted);
}

.note-list li::before {
    content: "\2014";  /* em dash */
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.contact-info p {
    font-size: 1.05rem;
    margin-bottom: 1.3rem;
}

.contact-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 0.2rem;
}

.crisis-disclaimer {
    margin-top: 2.2rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-form {
    background-color: var(--background-white);
    padding: clamp(1.8rem, 4vw, 2.6rem);
    border-radius: 3px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.contact-form label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    display: block;
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.7rem 0.85rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: var(--background-light);
    border: 1px solid #e3d9cd;
    border-radius: 2px;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(205, 150, 95, 0.18);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn {
    margin-top: 0.4rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--primary-dark);
    padding: 2.4rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   SCROLL-REVEAL (progressive enhancement; no-JS shows everything)
   ========================================================================== */
.js .section,
.js .hero-panel,
.js .service-card,
.js .education-item {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .hero-panel {
    transform: translateY(0);
    opacity: 1;
    animation: heroIn 0.9s ease both;
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.js .section.in,
.js .service-card.in,
.js .education-item.in {
    opacity: 1;
    transform: translateY(0);
}

.service-card,
.education-item {
    transition-delay: 0.08s;
}

@media (prefers-reduced-motion: reduce) {
    .js .section,
    .js .hero-panel,
    .js .service-card,
    .js .education-item {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    html { scroll-behavior: auto; }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-media {
        max-width: 320px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .getting-started-grid {
        grid-template-columns: 1fr;
    }
    .getting-started-media {
        max-width: 320px;
    }
}

@media (max-width: 820px) {
    .hero {
        grid-template-columns: 1fr;
        max-height: none;
        min-height: 0;
    }
    .hero-panel {
        padding: 4rem 2rem;
        text-align: center;
        align-items: center;
    }
    .hero-lead {
        max-width: 42ch;
    }
    .hero-media {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .main-nav ul {
        justify-content: center;
        gap: 1rem 1.3rem;
    }
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}
