/* ============================================
   valuator.dev - Art-Deco Minimalism
   Palette: Warm neutrals with golden accents
   ============================================ */

/* --- Design Palette Reference ---
   #F7F5F2 - Primary Background (cream)
   #1A1815 - Text Dominant (near-black)
   #D4AF37 - Accent Gold
   #8B7355 - Secondary Accent (warm taupe)
   #E8E4DE - Tertiary (soft greige)
   #2D5A2D - Data Highlight (forest green)
   #4D7A6F - Muted Teal (categorical)
   #7A4D4D - Muted Burgundy (categorical)
--- */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: #1A1815;
    background-color: #F7F5F2;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* --- Diagonal Hatching Overlay --- */
#hatching-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 19px,
        #E8E4DE 19px,
        #E8E4DE 20px
    );
}

/* --- Navigation --- */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(247, 245, 242, 0.95);
    transition: background-color 0.6s ease;
    border-bottom: 1px solid #E8E4DE;
}

#main-nav.scrolled {
    background-color: rgba(232, 228, 222, 0.95);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: 0.06em;
    color: #1A1815;
}

.nav-brand-accent {
    color: #D4AF37;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8B7355;
    text-decoration: none;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #D4AF37;
    letter-spacing: 0.14em;
}

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

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

/* --- Sections --- */
.section {
    position: relative;
    z-index: 1;
    padding: 120px 40px;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: #D4AF37;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 4rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1A1815;
    margin-bottom: 40px;
    line-height: 1.15;
}

.section-intro {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    color: #8B7355;
    max-width: 600px;
    margin-bottom: 60px;
    line-height: 1.8;
}

.section-divider-line {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    height: 1px;
    background-color: #E8E4DE;
    position: relative;
    z-index: 1;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-child {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-deco-pattern {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    height: 400px;
    opacity: 0.6;
    z-index: 0;
}

#hero-deco-left {
    left: 5%;
}

#hero-deco-right {
    right: 5%;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-overline {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #8B7355;
    margin-bottom: 32px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 5.2rem);
    letter-spacing: 0.06em;
    line-height: 1.15;
    color: #1A1815;
    margin-bottom: 32px;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.divider-line {
    display: inline-block;
    width: 80px;
    height: 1px;
    background-color: #D4AF37;
}

.divider-diamond {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #D4AF37;
    transform: rotate(45deg);
}

.hero-subtitle {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #8B7355;
}

/* --- Philosophy Section --- */
.two-column {
    display: grid;
    grid-template-columns: 1.618fr 1fr;
    gap: 80px;
    align-items: center;
}

.body-text {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1A1815;
    margin-bottom: 24px;
}

.body-text:last-child {
    margin-bottom: 0;
}

.philosophy-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.deco-svg {
    width: 100%;
    max-width: 280px;
}

/* --- Methodology Section --- */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.method-card {
    padding: 40px;
    border: 1px solid #E8E4DE;
    background-color: rgba(247, 245, 242, 0.6);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.method-card:hover {
    border-color: #D4AF37;
    transform: translateY(-3px);
}

.method-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
}

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

.method-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    color: #1A1815;
    margin-bottom: 16px;
}

.method-desc {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #8B7355;
}

/* --- Metrics Section --- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.metric-item {
    text-align: center;
    padding: 40px 20px;
}

.metric-value {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 3rem;
    color: #1A1815;
    display: inline;
}

.metric-unit {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 1.2rem;
    color: #D4AF37;
    margin-left: 4px;
    vertical-align: super;
}

.metric-divider {
    width: 40px;
    height: 2px;
    background-color: #D4AF37;
    margin: 16px auto;
}

.metric-label {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8B7355;
    display: block;
}

/* --- Principles Section --- */
.principles-list {
    max-width: 800px;
}

.principle-item {
    display: flex;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid #E8E4DE;
    align-items: flex-start;
}

.principle-item:last-child {
    border-bottom: none;
}

.principle-number {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 2rem;
    color: #D4AF37;
    min-width: 60px;
    line-height: 1;
    padding-top: 4px;
}

.principle-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    color: #1A1815;
    margin-bottom: 12px;
}

.principle-text {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #8B7355;
}

/* --- Spiral / Quote Section --- */
.section-dark {
    background-color: #1A1815;
    padding: 160px 40px;
}

.spiral-container {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.spiral-svg {
    width: 100%;
    max-width: 500px;
}

.spiral-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.spiral-quote {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-style: italic;
    line-height: 1.6;
    color: #E8E4DE;
    border: none;
    padding: 0;
    margin-bottom: 24px;
}

.spiral-attribution {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: #D4AF37;
    text-transform: uppercase;
}

/* --- Contact Section --- */
.contact-content {
    max-width: 600px;
}

.contact-intro {
    margin-bottom: 40px;
}

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

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

.form-label {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8B7355;
}

.form-input {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #1A1815;
    background: transparent;
    border: none;
    border-bottom: 1px solid #E8E4DE;
    padding: 12px 0;
    outline: none;
    transition: border-color 0.3s ease;
    line-height: 1.6;
}

.form-input:focus {
    border-bottom: 2px solid #D4AF37;
}

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

.form-submit {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1A1815;
    background-color: transparent;
    border: 1px solid #1A1815;
    padding: 16px 40px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    align-self: flex-start;
    margin-top: 8px;
}

.form-submit:hover {
    background-color: #E8E4DE;
    color: #D4AF37;
    border-color: #D4AF37;
}

.form-submit.submitted {
    border-color: #2D5A2D;
    color: #2D5A2D;
}

/* --- Footer --- */
#site-footer {
    position: relative;
    z-index: 1;
    padding: 80px 40px 40px;
    text-align: center;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    color: #1A1815;
}

.footer-tagline {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8B7355;
}

.footer-bottom {
    padding-top: 16px;
}

.footer-copy {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: #E8E4DE;
}

/* --- Data Categorical Colors (per DESIGN.md) --- */
.data-teal {
    color: #4D7A6F;
}

.data-burgundy {
    color: #7A4D4D;
}

.metric-item:nth-child(1) .metric-value {
    color: #2D5A2D;
}

.metric-item:nth-child(3) .metric-value {
    color: #4D7A6F;
}

.metric-item:nth-child(4) .metric-value {
    color: #7A4D4D;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .hero-deco-pattern {
        display: none;
    }

    .section {
        padding: 80px 24px;
    }

    .section-dark {
        padding: 120px 24px;
    }

    .principle-item {
        gap: 24px;
    }

    .principle-number {
        min-width: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .metric-value {
        font-size: 2.4rem;
    }

    .nav-inner {
        padding: 16px 24px;
    }
}
