/* =========================================================
   DSA RESOURCE CAPITAL
   ONE-PAGE WEBSITE
========================================================= */

:root {
    --navy: #102033;
    --navy-dark: #08131f;
    --ivory: #f4f1e9;
    --ivory-alt: #ebe7dc;
    --gold: #b39452;
    --gold-light: #c6a968;
    --charcoal: #2b2b2b;
    --grey: #666666;
    --white: #ffffff;

    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Inter", Arial, sans-serif;
    --container: 1220px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--ivory);
    color: var(--charcoal);
    line-height: 1.65;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(90%, var(--container));
    margin: 0 auto;
}

#home,
#approach,
#focus,
#about,
#contact {
    scroll-margin-top: 84px;
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.05;
}

h1 {
    font-size: clamp(3.3rem, 6.5vw, 6.5rem);
}

h2 {
    font-size: clamp(2.4rem, 4.5vw, 4.4rem);
}

h3 {
    font-size: clamp(1.6rem, 2.3vw, 2.25rem);
}

.eyebrow {
    margin-bottom: 1.1rem;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* HEADER */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 19, 31, 0.90);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-container {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo {
    height: 60px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: var(--white);
    font-size: 0.76rem;
    font-weight: 500;
}

.main-nav a {
    position: relative;
    padding: 0.5rem 0;
    opacity: 0.80;
    transition: opacity 0.25s ease;
}

.main-nav a:hover {
    opacity: 1;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.25s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
}

/* HERO */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    background:
        linear-gradient(
            90deg,
            rgba(5, 15, 25, 0.94) 0%,
            rgba(5, 15, 25, 0.78) 42%,
            rgba(5, 15, 25, 0.30) 74%,
            rgba(5, 15, 25, 0.10) 100%
        ),
        url("../images/hero-home.jpg");
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 15, 25, 0.35), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 155px;
    padding-bottom: 90px;
}

.hero h1 {
    max-width: 980px;
    margin-bottom: 2rem;
}

.hero-text {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

.hero-text-main {
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    line-height: 1.7;
}

.hero-title span {
    display: block;
}

/* GENERAL SECTIONS */

.section {
    padding: 120px 0;
}

.section-light {
    background: var(--ivory);
}

.section-dark {
    background: var(--navy);
    color: var(--white);
}

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

.two-column {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 110px;
    align-items: start;
}

.section-title h2 {
    color: var(--navy);
}

.section-copy {
    max-width: 700px;
}

.section-copy > p {
    margin-bottom: 1.4rem;
    color: var(--grey);
}

.section-copy h3 {
    margin-bottom: 1.5rem;
    color: var(--navy);
}

/* APPROACH */

.approach-intro {
    max-width: 920px;
    margin-bottom: 70px;
}

.approach-intro h2 {
    max-width: 900px;
    margin-bottom: 2.2rem;
    color: var(--white);
}

.approach-copy {
    max-width: 820px;
}

.approach-copy p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.72);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.approach-item {
    min-height: 390px;
    padding: 42px 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.approach-item:last-child {
    border-right: 0;
}

.number {
    display: block;
    margin-bottom: 2.2rem;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.approach-item h3 {
    margin-bottom: 1rem;
}

.approach-item p {
    color: rgba(255, 255, 255, 0.67);
    font-size: 0.91rem;
}

.approach-closing {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 55px;
    text-align: center;
}

.approach-closing p {
    font-family: var(--serif);
    color: var(--gold-light);
    font-size: clamp(1.55rem, 2.5vw, 2.3rem);
    line-height: 1.3;
}

/* FOCUS */

.focus-copy h3 {
    font-size: clamp(2rem, 3vw, 3rem);
}

/* CONTACT */

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

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    gap: 110px;
    align-items: start;
}

.contact-info h2 {
    max-width: 560px;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.contact-info > p:not(.eyebrow) {
    color: var(--grey);
}

.company-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 2.5rem;
    color: var(--grey);
}

.company-details strong {
    color: var(--navy);
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 0.4rem;
    color: var(--navy);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-bottom: 1.6rem;
    padding: 0.9rem 0.1rem;
    border: 0;
    border-bottom: 1px solid rgba(16, 32, 51, 0.35);
    outline: none;
    background: transparent;
    color: var(--charcoal);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: var(--gold);
}

.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border: 1px solid transparent;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.button-navy {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.button-navy:hover {
    background: var(--gold);
    border-color: var(--gold);
}

.contact-form .button {
    align-self: flex-start;
    margin-top: 0.5rem;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form-status {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.form-status.success {
    color: #496849;
}

.form-status.error {
    color: #8a3f3f;
}

.contact-form-wrapper {
    width: 100%;
}

.contact-form .button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.contact-form .button.message-sent {
    background: #777777;
    border-color: #777777;
    color: #ffffff;
    cursor: default;
}

/* FOOTER */

.site-footer {
    padding: 70px 0 25px;
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.60);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 55px;
    padding-bottom: 55px;
}

.footer-logo {
    margin-bottom: 0.35rem;
    font-family: var(--serif);
    color: var(--white);
    font-size: 1.65rem;
    letter-spacing: 0.06em;
}

.footer-tagline {
    margin-top: 1.3rem;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 1.15rem;
    font-style: italic;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.78rem;
}

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

.footer-meta {
    line-height: 1.7;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 0.68rem;
}

/* TABLET */

@media (max-width: 1050px) {
    .main-nav {
        gap: 1.2rem;
        font-size: 0.7rem;
    }

    .two-column,
    .contact-grid {
        gap: 65px;
    }

    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .approach-item {
        min-height: 330px;
    }

    .approach-item:nth-child(2) {
        border-right: 0;
    }

    .approach-item:nth-child(1),
    .approach-item:nth-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
}

/* MOBILE / TABLET */

@media (max-width: 850px) {
    .nav-container {
        min-height: 78px;
    }

    .menu-toggle {
        position: relative;
        z-index: 1100;
        display: block;
    }

    .main-nav {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 1.8rem;
        padding: 100px 7% 50px;
        background: var(--navy-dark);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        font-family: var(--serif);
        font-size: 1.8rem;
    }

    .hero {
        min-height: 820px;
        background-position: 62% center;
    }

    .section {
        padding: 90px 0;
    }

    .two-column,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .approach-grid {
        grid-template-columns: 1fr;
    }

    .approach-item {
        min-height: auto;
        padding: 38px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .approach-item:last-child {
        border-bottom: 0;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-main > div:first-child {
        grid-column: 1 / -1;
    }
}

/* PHONE */

@media (max-width: 600px) {
    .container {
        width: 88%;
    }

    .header-logo {
        height: 46px;
    }

    .hero {
        min-height: 720px;
        background-position: 65% center;
    }

    .hero-content {
        padding-top: 125px;
        padding-bottom: 55px;
    }

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

    h2 {
        font-size: clamp(2.3rem, 10vw, 3.4rem);
    }

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

    .section {
        padding: 70px 0;
    }

    .approach-intro {
        margin-bottom: 45px;
    }

    .approach-item {
        padding: 30px 0;
    }

    .number {
        margin-bottom: 1.2rem;
    }

    .contact-form .button {
        width: 100%;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-main > div:first-child {
        grid-column: auto;
    }
}
