/* =========================================================
   VARIABLES
========================================================= */

:root {
    --primary: #8a7466;
    --primary-dark: #6f5b50;

    --dark: #30302e;
    --text: #555451;
    --muted: #77746f;

    --cream: #f7f4f0;
    --white: #ffffff;

    --border: #e7e1db;

    --serif: "Playfair Display", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
}


/* =========================================================
   GENERAL
========================================================= */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    background: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dark);
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.2;
}

h2 {
    margin-bottom: 25px;
    font-size: clamp(2.2rem, 4vw, 2.8rem);
}

h3 {
    margin-bottom: 15px;
    font-size: 1.55rem;
}

p {
    margin-bottom: 20px;
}

a {
    color: inherit;
}

.section {
    padding: 110px 0;
}

.section-label {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    line-height: 1.4;
    text-transform: uppercase;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    padding: 20px 0;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar-brand {
    color: var(--white);
    font-family: var(--serif);
    font-size: 1.55rem;
    font-weight: 500;
}

.navbar .nav-link {
    margin-left: 20px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover {
    color: var(--white);
}

.navbar-scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.06);
}

.navbar-scrolled .navbar-brand,
.navbar-scrolled .nav-link {
    color: var(--dark);
}

.navbar-scrolled .nav-link:hover {
    color: var(--primary);
}

.btn-nav {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 3px;
    color: var(--white);
    font-size: 0.85rem;
}

.btn-nav:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--dark);
}

.navbar-scrolled .btn-nav {
    border-color: var(--primary);
    color: var(--primary);
}

.navbar-scrolled .btn-nav:hover {
    background: var(--primary);
    color: var(--white);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;

    background-image: url("../images/hero-counselling.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
            linear-gradient(
                    90deg,
                    rgba(48, 34, 24, 0.78) 0%,
                    rgba(90, 65, 50, 0.58) 38%,
                    rgba(130, 95, 75, 0.16) 75%,
                    rgba(130, 95, 75, 0.08) 100%
            );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 50px;
    padding-bottom: 50px;
}

.eyebrow {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 750px;
    margin-bottom: 30px;
    color: var(--white);
    font-size: clamp(3.2rem, 6vw, 5.5rem);
}

.hero-text {
    max-width: 650px;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 1.1rem;
    line-height: 1.75;
}


/* Hero entrance animation */

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

.eyebrow,
.hero h1,
.hero-text,
.hero-content .btn-primary-custom {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.eyebrow { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.25s; }
.hero-text { animation-delay: 0.45s; }
.hero-content .btn-primary-custom { animation-delay: 0.65s; }


/* =========================================================
   BUTTONS
========================================================= */

.btn-primary-custom {
    padding: 13px 28px;
    border: 1px solid var(--primary);
    border-radius: 3px;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    transition: all 0.25s ease;
}

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


/* =========================================================
   SCROLL REVEAL
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered cascade for the "How I Can Help" cards */
.help-section .row > *:nth-child(1) .reveal { transition-delay: 0s; }
.help-section .row > *:nth-child(2) .reveal { transition-delay: 0.08s; }
.help-section .row > *:nth-child(3) .reveal { transition-delay: 0.16s; }
.help-section .row > *:nth-child(4) .reveal { transition-delay: 0.24s; }
.help-section .row > *:nth-child(5) .reveal { transition-delay: 0.32s; }
.help-section .row > *:nth-child(6) .reveal { transition-delay: 0.4s; }

/* Staggered cascade for the "What to Expect" list */
.expect-list .expect-item:nth-child(1) { transition-delay: 0s; }
.expect-list .expect-item:nth-child(2) { transition-delay: 0.1s; }
.expect-list .expect-item:nth-child(3) { transition-delay: 0.2s; }
.expect-list .expect-item:nth-child(4) { transition-delay: 0.3s; }

/* Slight offset for two-column reveal pairs (About, Contact) */
.about-section .row > *:nth-child(2).reveal,
.contact-section .row > *:nth-child(2).reveal {
    transition-delay: 0.15s;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .eyebrow,
    .hero h1,
    .hero-text,
    .hero-content .btn-primary-custom,
    .reveal {
        transition: none !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

}


/* =========================================================
   INTRO
========================================================= */

.intro-section {
    background: var(--white);
}

.intro-section p:not(.section-label) {
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
}


/* =========================================================
   HOW I CAN HELP
========================================================= */

.help-section {
    background: var(--cream);
}

.section-heading {
    max-width: 850px;
    margin: 0 auto 70px;
}

.help-item {
    height: 100%;
}

.feature-icon {
    display: block;
    margin-bottom: 25px;
    color: var(--primary);
    font-size: 2.8rem;
    line-height: 1;
}

.help-item h3 {
    margin-bottom: 15px;
}

.help-item p {
    margin-bottom: 0;
}


/* =========================================================
   APPROACH
========================================================= */

.approach-section {
    background: var(--white);
}

.approach-section p:not(.section-label):not(.approach-highlight) {
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
}

.approach-highlight {
    max-width: 760px;
    margin: 45px auto 0;
    padding-top: 35px;
    border-top: 1px solid var(--border);

    color: var(--dark);
    font-family: var(--serif);
    font-size: 1.45rem;
    line-height: 1.6;
}


/* =========================================================
   WHAT TO EXPECT
========================================================= */

.expect-section {
    background: var(--cream);
}

.expect-list {
    margin-top: 70px;
}

.expect-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 25px;

    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.expect-item:last-child {
    border-bottom: 1px solid var(--border);
}

.expect-icon {
    color: var(--primary);
    font-size: 2.4rem;
    line-height: 1;
}

.expect-item p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section {
    background: var(--white);
}

.contact-section h2 {
    margin-bottom: 25px;
}

.contact-links {
    margin-top: 40px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 20px;

    margin-bottom: 25px;
    padding: 5px 0;

    color: var(--text);
    text-decoration: none;

    transition: color 0.2s ease;
}

.contact-link i {
    width: 45px;
    color: var(--primary);
    font-size: 2rem;
    line-height: 1;
}

.contact-link span {
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

.contact-link strong {
    margin-bottom: 3px;
    color: var(--dark);
    font-weight: 600;
}

.contact-link:hover {
    color: var(--primary);
}

.contact-form {
    padding: 45px;
    border-radius: 6px;
    background: var(--cream);
}

.contact-form h3 {
    margin-bottom: 30px;
    font-size: 2rem;
}

.form-label {
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.form-control {
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--white);
    color: var(--dark);
    font-family: var(--sans);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(138, 116, 102, 0.12);
}

.form-control::placeholder {
    color: #aaa6a1;
}


/* =========================================================
   ABOUT
========================================================= */

.about-section {
    background: var(--cream);
}

.about-image {
    overflow: hidden;
    height: 600px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding: 35px 0;
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.footer p {
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--white);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991.98px) {

    .navbar {
        background: rgba(255, 255, 255, 0.97);
    }

    .navbar-brand {
        color: var(--dark);
    }

    .navbar .nav-link {
        margin-left: 0;
        padding: 10px 0;
        color: var(--dark);
    }

    .navbar .nav-link:hover {
        color: var(--primary);
    }

    .navbar-toggler {
        border: 0;
        padding: 5px;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .btn-nav {
        display: inline-block;
        margin-top: 10px;
        color: var(--primary);
        border-color: var(--primary);
    }

    .hero-content {
        padding-top: 100px;
    }

    .contact-form {
        padding: 35px;
    }

}


@media (max-width: 767.98px) {

    .section {
        padding: 80px 0;
    }

    .hero {
        min-height: 850px;
        background-position: 75% center;
    }

    .hero-overlay {
        background:
                linear-gradient(
                        90deg,
                        rgba(48, 34, 24, 0.78) 0%,
                        rgba(90, 65, 50, 0.5) 100%
                );
    }

    .hero h1 {
        font-size: clamp(2.8rem, 12vw, 4rem);
    }

    .hero-text {
        font-size: 1rem;
    }

    .section-heading {
        margin-bottom: 50px;
    }

    .feature-icon {
        margin-bottom: 20px;
    }

    .expect-list {
        margin-top: 50px;
    }

    .expect-item {
        grid-template-columns: 50px 1fr;
        gap: 15px;
        padding: 35px 0;
    }

    .expect-icon {
        font-size: 2rem;
    }

    .contact-form {
        padding: 30px 25px;
    }

    .about-image {
        height: 450px;
    }

    .footer-links {
        justify-content: flex-start;
        margin-top: 20px;
    }

}