/* ============================================
   SIROCCO - Private Investment Firm
   Design System & Styles
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Color System */
    --navy: #0a1628;
    --navy-deep: #060f1d;
    --navy-light: #142238;
    --cream: #f7f5f0;
    --cream-dark: #ebe8e1;
    --cream-pure: #faf8f4;
    --brass: #a89968;
    --brass-muted: #8a7d55;

    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 10rem;

    /* Layout */
    --max-width: 1200px;
    --margin-side: clamp(1.5rem, 5vw, 6rem);

    /* Transitions */
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;
}

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

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    color: var(--navy);
    background-color: var(--cream);
}

::selection {
    background-color: var(--navy);
    color: var(--cream);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

h4 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    letter-spacing: 0;
}

p {
    margin-bottom: 1.5em;
    max-width: 65ch;
}

p:last-child {
    margin-bottom: 0;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 300;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

/* ---------- Layout ---------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--margin-side);
}

.section {
    padding: var(--space-xl) 0;
}

.section-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.section-label {
    position: sticky;
    top: var(--space-lg);
}

.label-text {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brass);
    display: block;
    margin-bottom: var(--space-sm);
}

.label-line {
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--brass-muted);
    opacity: 0.5;
}

.section-content {
    max-width: 720px;
}

/* ---------- Section Variants ---------- */
.section-cream {
    background-color: var(--cream);
}

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

.section-label-light .label-text {
    color: var(--brass);
}

.section-label-light .label-line {
    background-color: var(--brass);
}

.section-content-light p {
    color: rgba(247, 245, 240, 0.8);
}

.section-content-light h3 {
    color: var(--cream);
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-md) 0;
    background: transparent;
    transition: background var(--transition-base);
}

.nav.scrolled {
    background: var(--navy-deep);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--margin-side);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--cream);
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-md);
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(247, 245, 240, 0.7);
    letter-spacing: 0.02em;
    transition: color var(--transition-base);
}

.nav-links a:hover {
    color: var(--cream);
}

/* ---------- Hero Section ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--navy);
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    color: var(--cream);
    padding: var(--space-xl) var(--margin-side);
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease 0.3s forwards;
}

.hero-subline {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: rgba(247, 245, 240, 0.6);
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease 0.6s forwards;
}

.hero-texture {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(20, 34, 56, 0.8) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(10, 22, 40, 0.6) 0%, transparent 50%);
    z-index: 1;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Section Ornament Divider ---------- */
.section-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg) 0;
    background-color: var(--cream);
}

.ornament-wing {
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--brass));
}

.ornament-wing:last-child {
    background: linear-gradient(to left, transparent, var(--brass));
}

.ornament-symbol {
    font-size: 0.75rem;
    color: var(--brass);
    margin: 0 1rem;
    opacity: 0.8;
}

/* ---------- About Section ---------- */
#about {
    padding-top: var(--space-xl);
}

.section-title {
    color: var(--navy);
    margin-bottom: var(--space-lg);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--brass), transparent);
}

#about p {
    color: rgba(10, 22, 40, 0.75);
}

#about .lead {
    color: var(--navy);
    margin-bottom: var(--space-md);
}

/* Drop Cap */
.drop-cap::first-letter {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 500;
    float: left;
    line-height: 0.8;
    margin-right: 0.75rem;
    margin-top: 0.1em;
    color: var(--navy);
}

/* ---------- Investment Mandate ---------- */
.section-fancy {
    position: relative;
    overflow: hidden;
}

.section-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image:
        radial-gradient(circle at 20% 30%, var(--cream) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, var(--cream) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.pillars {
    display: grid;
    gap: var(--space-lg);
    position: relative;
}

.pillar {
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(247, 245, 240, 0.1);
    padding-left: var(--space-lg);
    position: relative;
}

.pillar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, var(--brass), transparent);
}

.pillar:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pillar-number {
    font-family: var(--font-serif);
    font-size: 0.875rem;
    color: var(--brass);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: var(--space-xs);
    opacity: 0.8;
}

.pillar h3 {
    font-size: 1.375rem;
}

.pillar p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ---------- Philosophy Section ---------- */
.section-header-fancy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.header-line {
    flex: 1;
    max-width: 200px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--brass));
}

.header-line:last-child {
    background: linear-gradient(to left, transparent, var(--brass));
}

.header-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--navy);
    margin: 0;
    letter-spacing: 0.05em;
}

.philosophy-grid-fancy {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-card {
    background: var(--cream-pure);
    border: 1px solid rgba(10, 22, 40, 0.08);
    padding: var(--space-lg);
    position: relative;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.philosophy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--brass), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.philosophy-card:hover {
    border-color: rgba(168, 153, 104, 0.3);
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.06);
}

.philosophy-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 1.25rem;
    color: var(--brass);
    margin-bottom: var(--space-sm);
    opacity: 0.7;
}

.philosophy-card h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: var(--space-sm);
}

.philosophy-card p {
    font-size: 0.9375rem;
    color: rgba(10, 22, 40, 0.7);
    margin-bottom: 0;
    line-height: 1.7;
}

.philosophy-card-featured {
    grid-column: 1 / -1;
    text-align: center;
    background: var(--navy);
    border-color: var(--navy);
}

.philosophy-card-featured h4 {
    color: var(--cream);
}

.philosophy-card-featured p {
    color: rgba(247, 245, 240, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

.philosophy-card-featured .card-icon {
    color: var(--brass);
}

.philosophy-card-featured::before {
    background: linear-gradient(to right, transparent, var(--brass), transparent);
}

.philosophy-card-featured:hover {
    border-color: var(--navy-light);
}

/* ---------- Statement Section ---------- */
.section-statement {
    background-color: var(--cream-dark);
    padding: var(--space-2xl) 0;
    position: relative;
}

.section-statement::before,
.section-statement::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--brass));
}

.section-statement::before {
    top: 0;
}

.section-statement::after {
    bottom: 0;
    background: linear-gradient(to top, transparent, var(--brass));
}

.statement-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.statement-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: var(--space-lg);
}

.statement-ornament:last-child {
    margin-bottom: 0;
    margin-top: var(--space-lg);
}

.statement-flourish {
    width: 60px;
    height: 1px;
}

.statement-flourish.left {
    background: linear-gradient(to right, transparent, var(--brass));
}

.statement-flourish.right {
    background: linear-gradient(to left, transparent, var(--brass));
}

.statement-icon {
    font-size: 1rem;
    color: var(--brass);
    opacity: 0.6;
}

.statement-quote {
    margin: 0;
    padding: 0 var(--space-md);
    position: relative;
}

.statement-text {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    line-height: 1.8;
    color: var(--navy);
    font-weight: 400;
    font-style: italic;
}

/* ---------- Contact Section ---------- */
.section-contact {
    padding: var(--space-xl) 0;
}

.contact-content {
    padding: var(--space-lg) 0;
}

.contact-note {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: rgba(247, 245, 240, 0.5);
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.contact-email {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--cream);
    border-bottom: 1px solid rgba(247, 245, 240, 0.3);
    padding-bottom: 0.25em;
    transition: border-color var(--transition-base);
}

.contact-email:hover {
    border-color: var(--brass);
}

/* ---------- Footer ---------- */
.footer {
    background-color: var(--navy-deep);
    padding: var(--space-xl) 0 var(--space-md);
    border-top: 1px solid rgba(247, 245, 240, 0.05);
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-xl);
    padding-bottom: var(--space-lg);
    align-items: start;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--cream);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(247, 245, 240, 0.4);
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-nav {
    display: flex;
    gap: var(--space-xl);
    justify-content: flex-end;
}

.footer-column {
    min-width: 140px;
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brass);
    margin-bottom: var(--space-md);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links li:last-child {
    margin-bottom: 0;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(247, 245, 240, 0.5);
    transition: color var(--transition-base);
}

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

.footer-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: var(--space-md);
    padding: var(--space-sm) 0;
}

.divider-wing {
    flex: 1;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(168, 153, 104, 0.3) 20%,
        rgba(168, 153, 104, 0.3) 80%,
        transparent
    );
}

.divider-wing:last-child {
    background: linear-gradient(
        to left,
        transparent,
        rgba(168, 153, 104, 0.3) 20%,
        rgba(168, 153, 104, 0.3) 80%,
        transparent
    );
}

.divider-center {
    width: 8px;
    height: 8px;
    border: 1px solid var(--brass);
    transform: rotate(45deg);
    opacity: 0.6;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: rgba(247, 245, 240, 0.3);
    line-height: 1.7;
    max-width: 720px;
    margin-bottom: 0;
}

.footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 0.75rem;
    color: rgba(247, 245, 240, 0.35);
}

.footer-location {
    font-size: 0.6875rem;
    color: rgba(247, 245, 240, 0.25);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ---------- Responsive Design ---------- */
@media (max-width: 900px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .section-label {
        position: static;
    }

    .nav-links {
        display: none;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-brand {
        max-width: none;
    }

    .footer-nav {
        gap: var(--space-lg);
        justify-content: flex-start;
    }

    .philosophy-grid-fancy {
        grid-template-columns: 1fr;
    }

    .philosophy-card-featured {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    :root {
        --space-xl: 4rem;
        --space-2xl: 6rem;
    }

    .hero {
        min-height: 90vh;
    }

    h1 br {
        display: none;
    }

    .statement-text {
        text-align: left;
    }

    .footer-nav {
        flex-direction: column;
        gap: var(--space-md);
    }

    .footer-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero h1,
    .hero-subline {
        animation: none;
        opacity: 1;
        transform: none;
    }

    * {
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --navy: #000;
        --cream: #fff;
    }
}
