/* ============================================
   Montgomery & Yarbrough — Brand Styles
   Palette: Midnight Blue (#0A1F3F) + Mint (#A7E8D0)
   Fonts: Cormorant Garamond + Inter
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a2e;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ---------- Utility ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 48px;
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 64px;
    }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
    color: #0A1F3F;
}

.section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #0A1F3F;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background-color: #A7E8D0;
}

.section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 300;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 32px;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-primary {
    background-color: #0A1F3F;
    color: #ffffff;
    border-color: #0A1F3F;
}

.btn-primary:hover {
    background-color: #132d54;
    border-color: #132d54;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(10, 31, 63, 0.2);
}

.btn-ghost {
    background-color: transparent;
    color: #0A1F3F;
    border-color: #0A1F3F;
}

.btn-ghost:hover {
    background-color: #0A1F3F;
    color: #ffffff;
}

.btn-large {
    padding: 18px 40px;
    font-size: 13px;
}

.btn-full {
    width: 100%;
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(10, 31, 63, 0.06);
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 1px 20px rgba(10, 31, 63, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    display: block;
    width: 36px;
    height: 36px;
    background-color: #0A1F3F;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
}

.logo-mark::after {
    content: 'M';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    color: #A7E8D0;
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 500;
    color: #0A1F3F;
    letter-spacing: 0.02em;
}

.logo-text .amp {
    font-style: italic;
    font-weight: 300;
    color: #6b8a7a;
}

/* ---------- Navigation ---------- */
.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1a1a2e;
    padding: 8px 16px;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 1px;
    background-color: #A7E8D0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link:focus::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover {
    color: #0A1F3F;
}

.nav-cta {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0A1F3F;
    padding: 10px 20px;
    border: 1px solid rgba(10, 31, 63, 0.2);
    margin-left: 16px;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background-color: #0A1F3F;
    color: #ffffff;
    border-color: #0A1F3F;
}

/* ---------- Mobile Toggle ---------- */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 36px;
    height: 36px;
    position: relative;
}

.hamburger {
    display: block;
    position: relative;
    width: 20px;
    height: 12px;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #0A1F3F;
    transition: all 0.3s ease;
}

.hamburger::before { top: 0; }
.hamburger::after { bottom: 0; }

.hamburger.active::before {
    top: 5px;
    transform: rotate(45deg);
}

.hamburger.active::after {
    bottom: 5px;
    transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(135deg, rgba(167, 232, 208, 0.08) 0%, rgba(10, 31, 63, 0.03) 100%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    padding: 64px 0;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 560px;
}

.hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #6b8a7a;
    margin-bottom: 24px;
    display: block;
}

.hero-eyebrow::before {
    display: none;
}

.hero-headline {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #0A1F3F;
    margin-bottom: 28px;
}

.hero-headline em {
    font-style: italic;
    color: #2d6a5a;
}

.hero-sub {
    font-size: 17px;
    line-height: 1.75;
    color: #4a4a5a;
    margin-bottom: 40px;
    max-width: 480px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 300;
    color: #0A1F3F;
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b8a7a;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(10, 31, 63, 0.12);
}

.hero-image {
    position: relative;
}

.image-frame {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-frame:hover img {
    transform: scale(1.02);
}

.image-accent {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    border: 1px solid #A7E8D0;
    border-radius: 2px;
    z-index: -1;
}

/* ---------- Services ---------- */
.services {
    padding: 120px 0;
    background-color: #fafcfb;
}

.section-header {
    margin-bottom: 64px;
}

.section-header .section-eyebrow {
    margin-bottom: 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.service-card {
    background-color: #ffffff;
    border: 1px solid rgba(10, 31, 63, 0.06);
    padding: 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #0A1F3F, #A7E8D0);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: rgba(10, 31, 63, 0.12);
    box-shadow: 0 8px 32px rgba(10, 31, 63, 0.06);
    transform: translateY(-2px);
}

.service-icon {
    width: 48px;
    height: 48px;
    color: #0A1F3F;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 12px;
    color: #0A1F3F;
}

.service-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #4a4a5a;
    margin-bottom: 20px;
    font-weight: 300;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-list li {
    font-size: 13px;
    color: #6b8a7a;
    padding-left: 16px;
    position: relative;
    font-weight: 300;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 4px;
    height: 1px;
    background-color: #A7E8D0;
}

/* ---------- About ---------- */
.about {
    padding: 120px 0;
    background-color: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-image-accent {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 80px;
    height: 80px;
    border-top: 1px solid #A7E8D0;
    border-left: 1px solid #A7E8D0;
    z-index: -1;
}

.about-content .section-eyebrow {
    margin-bottom: 16px;
}

.about-body {
    font-size: 15px;
    line-height: 1.8;
    color: #4a4a5a;
    margin-bottom: 20px;
    font-weight: 300;
}

.about-values {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 32px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.value-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 400;
    color: #0A1F3F;
    white-space: nowrap;
}

.value-line {
    flex: 1;
    height: 1px;
    background-color: rgba(10, 31, 63, 0.1);
}

/* ---------- Approach ---------- */
.approach {
    padding: 120px 0;
    background-color: #0A1F3F;
    color: #ffffff;
}

.approach .section-eyebrow {
    color: #A7E8D0;
}

.approach .section-eyebrow::before {
    background-color: #A7E8D0;
}

.approach .section-title {
    color: #ffffff;
}

.approach-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    counter-reset: step;
}

.step {
    padding: 40px 0;
    border-bottom: 1px solid rgba(167, 232, 208, 0.12);
    counter-increment: step;
    position: relative;
}

.step:first-child {
    border-top: 1px solid rgba(167, 232, 208, 0.12);
}

.step-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    font-weight: 400;
    color: #A7E8D0;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 12px;
}

.step-title {
    font-size: 28px;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 12px;
}

.step-desc {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.6);
    max-width: 480px;
    font-weight: 300;
}

/* ---------- CTA Section ---------- */
.cta-section {
    padding: 120px 0;
    background-color: #fafcfb;
    text-align: center;
}

.cta-content {
    max-width: 640px;
    margin: 0 auto;
}

.cta-content .section-eyebrow {
    justify-content: center;
}

.cta-content .section-eyebrow::before {
    display: none;
}

.cta-title {
    margin-bottom: 20px;
}

.cta-text {
    font-size: 17px;
    line-height: 1.75;
    color: #4a4a5a;
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* ---------- Contact ---------- */
.contact {
    padding: 120px 0;
    background-color: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
}

.contact-info .section-eyebrow {
    margin-bottom: 16px;
}

.contact-desc {
    font-size: 15px;
    line-height: 1.75;
    color: #4a4a5a;
    margin-bottom: 40px;
    font-weight: 300;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: #0A1F3F;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6b8a7a;
    font-weight: 500;
}

.contact-text a,
.contact-text span {
    font-size: 15px;
    color: #1a1a2e;
    line-height: 1.6;
    font-weight: 300;
}

.contact-text a:hover {
    color: #0A1F3F;
    text-decoration: underline;
    text-decoration-color: #A7E8D0;
    text-underline-offset: 4px;
}

/* ---------- Form ---------- */
.contact-form-wrap {
    background-color: #fafcfb;
    padding: 40px;
    border: 1px solid rgba(10, 31, 63, 0.06);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b8a7a;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #1a1a2e;
    background-color: #ffffff;
    border: 1px solid rgba(10, 31, 63, 0.12);
    padding: 12px 16px;
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0A1F3F;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0a0b0;
}

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

.form-note {
    font-size: 12px;
    color: #8a8a9a;
    font-weight: 300;
    text-align: center;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background-color: rgba(167, 232, 208, 0.15);
    border: 1px solid rgba(167, 232, 208, 0.4);
    font-size: 14px;
    color: #2d6a5a;
    font-weight: 400;
}

.form-success svg {
    width: 20px;
    height: 20px;
    color: #2d6a5a;
    flex-shrink: 0;
}

/* ---------- Footer ---------- */
.footer {
    background-color: #0A1F3F;
    color: #ffffff;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 64px;
}

.footer-brand .logo-text {
    color: #ffffff;
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 16px;
    line-height: 1.7;
    font-weight: 300;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #A7E8D0;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-contact p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 4px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #A7E8D0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 300;
}

.footer-legal {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.25) !important;
}

/* ---------- Scroll Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        padding: 48px 0;
    }

    .hero-image {
        order: -1;
        max-width: 480px;
        margin: 0 auto;
    }

    .hero-stats {
        gap: 24px;
    }

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

    .about-image-wrap {
        max-width: 480px;
    }

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

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

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(255, 255, 255, 0.98);
        padding: 40px 24px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .nav.open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-link {
        padding: 16px 0;
        font-size: 13px;
        border-bottom: 1px solid rgba(10, 31, 63, 0.06);
    }

    .nav-link::after {
        display: none;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 24px;
        text-align: center;
        display: block;
        padding: 14px 20px;
        border: 1px solid rgba(10, 31, 63, 0.2);
    }

    .mobile-toggle {
        display: block;
    }

    .hero-headline {
        font-size: clamp(32px, 8vw, 48px);
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

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

    .service-card {
        padding: 28px;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .approach-steps {
        gap: 0;
    }

    .step {
        padding: 28px 0;
    }

    .step-title {
        font-size: 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 28px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 4px;
    }
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .approach-steps {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }

    .step {
        border-bottom: none;
        border-right: 1px solid rgba(167, 232, 208, 0.12);
    }

    .step:nth-child(2),
    .step:nth-child(4) {
        border-right: none;
    }

    .step:last-child {
        border-bottom: 1px solid rgba(167, 232, 208, 0.12);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .approach-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }

    .step {
        border-right: 1px solid rgba(167, 232, 208, 0.12);
    }

    .step:last-child {
        border-right: none;
    }

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

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
