/* ============================================
   Stephen Manasseh — Legal & Financial Advisory
   Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    line-height: 1.7;
    color: #1a3c2a;
    background-color: #faf9f6;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

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

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

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

/* --- Section Eyebrow --- */
.section-eyebrow {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #567749;
    margin-bottom: 16px;
}

/* --- Section Title --- */
.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: #1a3c2a;
    margin-bottom: 24px;
}

.section-desc {
    font-size: 1.0625rem;
    color: #3e5c35;
    max-width: 560px;
    line-height: 1.8;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #1a3c2a;
    color: #f5f2eb;
    border: 1.5px solid #1a3c2a;
}

.btn-primary:hover {
    background-color: #2d4428;
    border-color: #2d4428;
}

.btn-ghost {
    background-color: transparent;
    color: #f5f2eb;
    border: 1.5px solid rgba(245, 242, 235, 0.5);
}

.btn-ghost:hover {
    border-color: #f5f2eb;
    background-color: rgba(245, 242, 235, 0.08);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-icon {
    flex-shrink: 0;
}

/* --- Navigation --- */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(250, 249, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 60, 42, 0.08);
    transition: box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
    box-shadow: 0 1px 20px rgba(26, 60, 42, 0.06);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.nav-logo-mark {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #1a3c2a;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #1a3c2a;
    border-radius: 2px;
}

.nav-logo-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: #1a3c2a;
    letter-spacing: 0.02em;
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #3e5c35;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #1a3c2a;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: #1a3c2a;
}

.nav-cta {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f5f2eb;
    background-color: #1a3c2a;
    padding: 10px 20px;
    border-radius: 2px;
    transition: background-color 0.2s ease;
}

.nav-cta:hover {
    background-color: #2d4428;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: #1a3c2a;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
    }
    .nav-toggle {
        display: none;
    }
}

/* Mobile menu */
@media (max-width: 1023px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #faf9f6;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 999;
    }

    .nav-menu.open {
        opacity: 1;
        pointer-events: all;
    }

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

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #0f2319;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.pexels.com/photos/36733314/pexels-photo-36733314.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 35, 25, 0.92) 0%,
        rgba(26, 60, 42, 0.85) 50%,
        rgba(45, 68, 40, 0.80) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    padding: 120px 24px 80px;
}

.hero-eyebrow {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(245, 242, 235, 0.6);
    margin-bottom: 28px;
}

.hero-heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.25rem, 5.5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.15;
    color: #f5f2eb;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero-accent {
    font-style: italic;
    font-weight: 400;
    color: #a2b894;
}

.hero-sub {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(245, 242, 235, 0.7);
    max-width: 600px;
    margin: 0 auto 44px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 64px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    align-items: center;
}

.hero-trust span {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(245, 242, 235, 0.4);
    padding: 0 16px;
}

.trust-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(245, 242, 235, 0.2);
    flex-shrink: 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-header .section-desc {
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background-color: rgba(26, 60, 42, 0.08);
    border: 1px solid rgba(26, 60, 42, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.service-card {
    background-color: #faf9f6;
    padding: 40px 36px;
    transition: all 0.3s ease;
}

.service-card:hover {
    background-color: #f2f5f0;
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #567749;
    margin-bottom: 24px;
    border: 1px solid rgba(86, 119, 73, 0.25);
    border-radius: 50%;
}

.service-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #1a3c2a;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.75;
    color: #3e5c35;
}

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

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

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

.approach-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: center;
}

.approach-image {
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

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

.approach-content {
    max-width: 520px;
}

.approach-text {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.85;
    color: #3e5c35;
    margin-bottom: 48px;
}

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

.approach-step {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 20px;
}

.step-number {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #a2b894;
    padding-top: 4px;
}

.step-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.375rem;
    font-weight: 500;
    color: #1a3c2a;
    margin-bottom: 6px;
}

.step-desc {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.7;
    color: #3e5c35;
}

@media (min-width: 1024px) {
    .approach-layout {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

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

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

.about-content {
    max-width: 520px;
}

.about-text {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.85;
    color: #3e5c35;
    margin-bottom: 20px;
}

.about-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 40px;
    border-top: 1px solid rgba(26, 60, 42, 0.1);
    padding-top: 32px;
}

.value-item {
    flex: 0 0 auto;
    padding: 0 24px;
    position: relative;
}

.value-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background-color: rgba(26, 60, 42, 0.15);
}

.value-label {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #1a3c2a;
    letter-spacing: 0.02em;
}

.about-image {
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

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

@media (min-width: 1024px) {
    .about-layout {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

/* --- Quote --- */
.quote-section {
    padding: 100px 0;
    background-color: #1a3c2a;
    text-align: center;
}

.quote-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    color: #f5f2eb;
    max-width: 800px;
    margin: 0 auto 32px;
}

.quote-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.quote-author {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #a2b894;
}

.quote-role {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: rgba(162, 184, 148, 0.6);
}

/* --- CTA --- */
.cta {
    padding: 100px 0;
    background-color: #0f2319;
    text-align: center;
}

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

.cta-desc {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(245, 242, 235, 0.6);
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    justify-content: center;
}

.text-light {
    color: #f5f2eb;
}

.text-muted-light {
    color: rgba(245, 242, 235, 0.6);
}

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

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

.contact-info {
    max-width: 480px;
}

.contact-address {
    font-style: normal;
    margin-top: 32px;
}

.address-line {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: #3e5c35;
    margin-bottom: 16px;
}

.address-icon {
    flex-shrink: 0;
    margin-top: 4px;
    color: #567749;
}

.address-link {
    color: #1a3c2a;
    font-weight: 400;
    transition: color 0.2s ease;
}

.address-link:hover {
    color: #567749;
}

.contact-map {
    margin-top: 32px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(26, 60, 42, 0.08);
}

/* Form */
.contact-form-wrap {
    max-width: 520px;
}

.form-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 500;
    color: #1a3c2a;
    margin-bottom: 8px;
}

.form-desc {
    font-size: 0.9375rem;
    font-weight: 300;
    color: #3e5c35;
    margin-bottom: 32px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3e5c35;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 300;
    color: #1a3c2a;
    background-color: #f5f2eb;
    border: 1px solid rgba(26, 60, 42, 0.12);
    border-radius: 2px;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(62, 92, 53, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #567749;
    background-color: #f2f5f0;
}

.form-group select {
    cursor: pointer;
}

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

.form-note {
    font-size: 0.8125rem;
    font-weight: 300;
    color: rgba(62, 92, 53, 0.5);
    margin-top: 16px;
    text-align: center;
}

.form-success {
    text-align: center;
    padding: 48px 24px;
}

.form-success svg {
    color: #567749;
    margin-bottom: 16px;
}

.success-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #1a3c2a;
    margin-bottom: 8px;
}

.success-text {
    font-size: 0.9375rem;
    font-weight: 300;
    color: #3e5c35;
    line-height: 1.7;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

/* --- Footer --- */
.footer {
    background-color: #0f2319;
    padding: 72px 0 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-mark {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #f5f2eb;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(245, 242, 235, 0.4);
    border-radius: 2px;
}

.footer-logo-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: #f5f2eb;
    letter-spacing: 0.02em;
}

.footer-tagline {
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(245, 242, 235, 0.5);
}

.footer-heading {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(245, 242, 235, 0.4);
    margin-bottom: 20px;
}

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

.footer nav a {
    font-size: 0.9375rem;
    font-weight: 300;
    color: rgba(245, 242, 235, 0.7);
    transition: color 0.2s ease;
}

.footer nav a:hover {
    color: #a2b894;
}

.footer address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer address p {
    font-size: 0.9375rem;
    font-weight: 300;
    color: rgba(245, 242, 235, 0.7);
    line-height: 1.7;
}

.footer address a {
    color: rgba(245, 242, 235, 0.7);
    transition: color 0.2s ease;
}

.footer address a:hover {
    color: #a2b894;
}

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

.footer-bottom p {
    font-size: 0.8125rem;
    font-weight: 300;
    color: rgba(245, 242, 235, 0.35);
    line-height: 1.7;
}

.footer-disclaimer {
    font-size: 0.75rem !important;
    color: rgba(245, 242, 235, 0.25) !important;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.revealed {
        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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
