/* =========================================
   1. VARIABLES & RESET
   ========================================= */
   :root {
    /* Quiet Luxury Palette */
    --bg-sand: #EDE9E2; 
    --bg-stone: #E6E2db;  
    --bg-light: #F9F7F2; 
    
    --text-dark: #0f2a4a;
    --text-grey: #4a5466; 
    --accent-red: #A42E2B;  
    --border-color: #D9D2C2;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --spacing-md: 3rem;
    --spacing-lg: 4rem;
    --max-width: 1140px;
    --read-width: 70ch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { 
    scroll-behavior: smooth; 
    font-size: 16px;
    scroll-padding-top: 90px; 
}

body {
    background-color: var(--bg-sand);
    color: var(--text-dark);
    font-family: var(--font-sans);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}


h1, h2, h3, h4, .section-title {
    text-wrap: balance; 
}

p {
    text-wrap: pretty; 
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* Optimization: Ensure images respect aspect ratio even with explicit width/height */
img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

ul { list-style: none; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Accessibility: Visible Focus Ring for Keyboard Navigation */
:focus-visible {
    outline: 2px solid var(--accent-red);
    outline-offset: 4px;
}

/* =========================================
   2. TYPOGRAPHY UTILS
   ========================================= */
.overline {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent-red);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.section-intro {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 100%;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* =========================================
   3. HEADER
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    background: rgba(237, 233, 226, 0.98); 
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.header-layout {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper img {
    height: 65px; 
    width: auto;
    display: block;
}

.desktop-nav ul { display: flex; gap: 40px; }
.desktop-nav a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-red);
    transition: width 0.3s;
}
.desktop-nav a:hover::after { width: 100%; }
.desktop-nav a:focus { outline: 2px solid var(--accent-red); outline-offset: 4px; }

/* Mobile toggle converted to button, styles adapted */
.mobile-toggle { 
    display: none; 
    cursor: pointer; 
    flex-direction: column; 
    gap: 6px; 
    border: none;
    background: transparent;
    padding: 5px;
}

.bar { width: 24px; height: 2px; background: var(--text-dark); }

/* =========================================
   4. HERO SECTION
   ========================================= */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: white;
}

.hero-bg { position: absolute; inset: 0; z-index: 1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.50));
}
.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.hero-content h1, .hero-content h2 {
    font-family: var(--font-sans);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-content h2 { font-weight: 300; opacity: 0.95; margin-bottom: 2rem; }

.hero-sub { 
    font-size: 1.25rem; 
    max-width: 60ch; 
    opacity: 1; 
    font-weight: 300; 
}

.animate-up { opacity: 0; transform: translateY(20px); animation: fadeInUp 0.8s forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* =========================================
   5. ABOUT US (EDITORIAL LAYOUT)
   ========================================= */
#about {
    padding: var(--spacing-lg) 0;
}

.editorial-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 80px;
    margin-bottom: 80px;
    align-items: center;
}

.editorial-text {
    padding-right: 20px;
}

.lead-paragraph {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 400;
    max-width: 100%; 
}

.bio-content p {
    margin-bottom: 1.2rem;
    color: var(--text-grey);
    max-width: 100%; 
}

.founder-signature {
    margin-top: 2rem;
    border-left: 2px solid var(--accent-red);
    padding-left: 1rem;
}

.founder-signature .name {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-dark);
}

.founder-signature .title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-grey);
}

/* Visual Styles */
.image-wrapper {
    position: relative;
    z-index: 1;
    box-shadow: 20px 20px 0px rgba(0,0,0,0.05); 
}

.image-wrapper img {
    width: 100%;
}
.photo-credit {
    margin-top: 6px;
    font-size: 0.7rem;
    color: #888;
    text-align: right;
}

/* Mission Manifesto Block */
.mission-manifesto {
    background-color: var(--bg-light); 
    padding: 30px 40px; 
    position: relative;
    border-top: 1px solid var(--border-color);
}

.manifesto-label {
    position: absolute;
    top: -12px;
    left: 40px;
    background: var(--bg-sand);
    padding: 0 15px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-red);
    font-weight: 600;
}

.manifesto-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.manifesto-content p {
    font-size: 1rem;
    color: var(--text-dark);
    max-width: 100%; 
}

.highlight-text {
    grid-column: span 2;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-top: 20px;
    font-style: italic;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 30px;
    max-width: 100%;
}

/* =========================================
   6. INVESTMENT APPROACH
   ========================================= */
#investment {
    position: relative;
    padding: var(--spacing-lg) 0;
    overflow: hidden;
}

.bg-layer { position: absolute; inset: 0; z-index: 1; }
.bg-layer img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 42, 74, 0.95) 0%, rgba(15, 42, 74, 0.85) 100%);
}

.relative-content { position: relative; z-index: 2; }
.white-text h2, .white-text p, .white-text span { color: white; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.96);
    padding: 30px; 
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255,255,255,0.1);
    height: 100%; 
    display: flex;
    flex-direction: column;
}

.glass-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-number {
    font-family: var(--font-serif);
    font-size: 2.5rem; 
    color: rgba(15, 42, 74, 0.15);
    line-height: 1;
    margin-bottom: 15px;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.glass-card p { 
    color: var(--text-grey); 
    font-size: 1rem; 
    line-height: 1.7;
    max-width: 100%;
}

.divider { height: 1px; background: #eee; margin: 15px 0; }
.card-footer-text { font-weight: 500; color: var(--text-dark) !important; }

/* =========================================
   7. TEAM SECTION
   ========================================= */
#team {
    padding: var(--spacing-lg) 0;
    background-color: var(--bg-stone);
}

.process-row {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 60px;
}

.process-card {
    background: #FFFFFF;
    padding: 40px 30px;
    flex: 1;
    border-top: 3px solid transparent; 
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.process-card:hover { 
    border-top-color: var(--accent-red); 
    transform: translateY(-3px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.process-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.icon-header { 
    font-size: 1.5rem; 
    color: var(--accent-red); 
    margin-bottom: 0; 
    line-height: 1;
}

.process-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0; 
    color: var(--text-dark);
    font-weight: 600;
}

.process-card p { 
    font-size: 0.95rem; 
    color: var(--text-grey); 
    line-height: 1.6;
}

.team-summary-box {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 30px;
    font-size: 1.1rem;
    color: var(--text-dark);
    max-width: 100%; 
    width: 100%;
}

/* =========================================
   8. FOOTER (DARK CONTRAST)
   ========================================= */
footer {
    background-color: #0b1623; 
    color: #e0e0e0;
    padding: var(--spacing-lg) 0 30px 0;
    position: relative;
    overflow: hidden;
}

.footer-watermark {
    position: absolute;
    top: -50px;
    right: -100px;
    pointer-events: none;
    width: 500px;
    z-index: 0;
}

.footer-watermark img { 
    width: 100%; 
    opacity: 0.05;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.footer-brand { max-width: 450px; }
.manifesto { 
    font-size: 1.4rem; 
    font-family: var(--font-serif); 
    color: white; 
    line-height: 1.4;
    max-width: 35ch; 
}

.footer-info { text-align: right; }
.address-block h5 { font-size: 1rem; color: white; margin-bottom: 0.5rem; letter-spacing: 0.05em; }
.address-block p { font-size: 0.9rem; opacity: 0.75; margin-bottom: 2rem; }

.contact-links {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.icon-circle {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
}

.icon-circle:hover { 
    background: var(--accent-red); 
    border-color: var(--accent-red);
    transform: scale(1.05);
}

.icon-circle:focus {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

.footer-legal {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    position: relative;
    z-index: 2;
}

.legal-link:hover { color: white; text-decoration: underline; }

/* =========================================
   9. MODAL & RESPONSIVE
   ========================================= */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 22, 35, 0.9);
    z-index: 1000;
    overflow-y: auto;
}

.modal-window {
    background: var(--bg-sand);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    margin: 5vh auto;
    padding: 50px;
    position: relative;
    color: var(--text-dark);
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    background: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-dark);
}

.modal-close:focus {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

.mobile-nav {
    display: block; 
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    background: var(--bg-sand);
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    z-index: 99;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.mobile-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav a { 
    display: block; 
    font-size: 1.5rem; 
    margin-bottom: 1.5rem; 
    color: var(--text-dark); 
    font-weight: 500;
}

/* Mobile & Tablet Styles */
@media (max-width: 1024px) {
    .editorial-grid { 
        grid-template-columns: 1fr 0.6fr; 
        gap: 50px; 
    }
    
    .cards-grid { gap: 20px; }
}

@media (max-width: 900px) {
    .container { padding: 0 20px; }
    
    /* Header */
    .desktop-nav { display: none; }
    .mobile-toggle { display: flex; }
    
    /* Typography */
    .section-title { font-size: 2.2rem; }
    
    /* About Us Stack */
    .editorial-grid { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
    .editorial-visual { order: -1; }
    
    .manifesto-content { grid-template-columns: 1fr; gap: 20px; }
    .highlight-text { grid-column: span 1; }
    .mission-manifesto { padding: 30px; }
    
    .cards-grid { grid-template-columns: 1fr; }
    .process-row { flex-direction: column; }
    
    .footer-grid { flex-direction: column; gap: 40px; }
    .footer-info { text-align: left; }
    .contact-links { justify-content: flex-start; }
}

@media (max-width: 600px) {
    .section-title { font-size: 1.8rem; }
    .hero-content h1, .hero-content h2 { font-size: 2rem; }
    .modal-window { padding: 30px; }
}

/* Accessibility: User Preference for Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .animate-up, .glass-card, .process-card, .desktop-nav a::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}