/* ============================================
   Studio Flandana — CSS
   Colors: Black #0D1313, Gold #B69745, Warmgrey #F5F0EB
   Fonts: Space Grotesk (headings), Inter (body)
   ============================================ */

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

:root {
    --black: #0D1313;
    --gold: #B69745;
    --gold-light: #D4B86A;
    --gold-dark: #8B7235;
    --warmgrey: #F5F0EB;
    --white: #FFFFFF;
    --text: #1A1A1A;
    --text-light: #6B6B6B;
    --border: #E0DCD7;
    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text);
    background: var(--warmgrey);
    -webkit-font-smoothing: antialiased;
    touch-action: manipulation;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); text-align: center; margin-bottom: 16px; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.gold { color: var(--gold); }
.light { color: var(--white); }
.section-sub { text-align: center; color: var(--text-light); max-width: 600px; margin: 0 auto 48px; font-size: 1.1rem; }
.section-sub.light { color: rgba(255,255,255,0.7); }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; border-radius: 8px; font-family: var(--font-heading);
    font-weight: 600; font-size: 1rem; border: 2px solid transparent;
    cursor: pointer; transition: all 0.25s; text-decoration: none;
}
.btn-gold { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--black); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; width: 100%; }

/* --- Navigation --- */
#main-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(13,19,19,0.95); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(182,151,69,0.15);
    height: 72px;
    display: flex;
    align-items: center;
}
.nav-container {
    max-width: 1200px; margin: 0 auto; width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px;
    height: 100%;
}
.nav-logo { display: flex; align-items: center; height: 100%; }
.nav-logo img { width: 160px; height: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.8); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--gold); }

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
    display: block; width: 24px; height: 2px; background: var(--white);
    margin: 5px 0; transition: 0.25s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero (cinematic, text-driven) --- */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroBgZoom {
    from { opacity: 0; transform: scale(1.12); }
    to { opacity: 0.25; transform: scale(1); }
}

#hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: var(--black); color: var(--white); text-align: center;
    padding: 120px 24px 80px; position: relative; overflow: hidden;
}
#hero::before {
    content: ''; position: absolute; inset: 0;
    background: url('/assets/img/hero.png') center/cover no-repeat;
    animation: heroBgZoom 2.5s ease forwards;
}
#hero::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, transparent 20%, rgba(13,19,19,0.8) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-content h1 { font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 0; }

.hero-line {
    display: block;
    opacity: 0;
    animation: heroFadeUp 0.7s ease forwards;
}
.hero-line:nth-child(1) { animation-delay: 0.4s; }
.hero-line:nth-child(2) { animation-delay: 0.7s; }
.hero-line:nth-child(3) { animation-delay: 1.0s; }

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255,255,255,0.55);
    margin: 32px 0 40px; max-width: 540px; margin-left: auto; margin-right: auto;
    opacity: 0; animation: heroFadeUp 0.6s ease 1.3s forwards;
}
.hero-actions {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    opacity: 0; animation: heroFadeUp 0.6s ease 1.5s forwards;
}

/* --- Sections --- */
section { padding: 100px 0; }
.bg-dark {
    background: var(--black);
    position: relative;
}
.bg-dark::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(182,151,69,0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* --- Services --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; margin-top: 48px; }
.service-card {
    background: var(--white); border-radius: 16px; padding: 40px 32px;
    border: 1px solid var(--border); transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.service-img { margin: -40px -32px 24px; border-radius: 16px 16px 0 0; overflow: hidden; }
.service-img img { width: 100%; height: 200px; object-fit: cover; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--text-light); margin-bottom: 20px; }
.service-features { list-style: none; }
.service-features li {
    padding: 8px 0; border-top: 1px solid var(--border);
    font-size: 0.95rem; color: var(--text);
    padding-left: 24px; position: relative;
}
.service-features li::before {
    content: ''; position: absolute; left: 0; top: 50%;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--gold); transform: translateY(-50%);
}

/* --- Portfolio --- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 48px; }
.portfolio-item {
    border-radius: 12px; overflow: hidden; aspect-ratio: 4/3;
    border: 1px solid rgba(182,151,69,0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    cursor: pointer;
}
.portfolio-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 50px rgba(182,151,69,0.15), 0 8px 20px rgba(0,0,0,0.4);
    border-color: rgba(182,151,69,0.4);
}
.portfolio-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1a2020 0%, #0D1313 100%);
    border-radius: 12px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5); padding: 24px; text-align: center;
    transition: background 0.4s ease;
}
.portfolio-item:hover .portfolio-placeholder {
    background: linear-gradient(135deg, #1e2828 0%, #141e1e 100%);
}
.portfolio-placeholder span { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; color: rgba(255,255,255,0.8); }
.portfolio-placeholder small { margin-top: 8px; font-size: 0.85rem; }
.portfolio-has-img { position: relative; }
.portfolio-has-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, filter 0.5s ease; }
.portfolio-has-img:hover img { transform: scale(1.06); filter: brightness(1.1); }
.portfolio-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 16px 20px;
    background: linear-gradient(transparent, rgba(13,19,19,0.85));
    display: flex; flex-direction: column;
    transition: padding-bottom 0.4s ease;
}
.portfolio-has-img:hover .portfolio-caption { padding-bottom: 24px; }
.portfolio-caption span { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--white); }
.portfolio-caption small { margin-top: 4px; font-size: 0.8rem; color: rgba(255,255,255,0.6); }

/* --- Steps --- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-top: 48px; }
.step { text-align: center; }
.step-number {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--gold); color: var(--black);
    font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.step h3 { margin-bottom: 12px; }
.step p { color: var(--text-light); }

/* --- Contact Form --- */
.contact-form { max-width: 640px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: rgba(255,255,255,0.8); font-size: 0.95rem; font-weight: 500; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 14px 16px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05);
    color: var(--white); font-family: var(--font-body); font-size: 1rem;
    transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--gold);
}
.form-group select { cursor: pointer; }
.form-group select option { background: var(--black); color: var(--white); }

/* File Upload */
.file-label {
    display: flex; flex-direction: column; align-items: center; padding: 24px;
    border: 2px dashed rgba(255,255,255,0.2); border-radius: 12px;
    cursor: pointer; transition: border-color 0.2s; text-align: center;
}
.file-label:hover { border-color: var(--gold); }
.file-label-text { color: var(--gold); font-weight: 600; }
.file-label small { color: rgba(255,255,255,0.4); margin-top: 4px; }
.file-input { display: none; }
.file-preview { margin-top: 12px; }
.file-preview img { max-height: 120px; border-radius: 8px; margin: 0 auto; }
.file-preview .file-name { color: rgba(255,255,255,0.6); font-size: 0.9rem; text-align: center; }

/* Turnstile */
.turnstile-wrapper { margin-bottom: 20px; display: flex; justify-content: center; }

/* Form Status */
.form-privacy { color: rgba(255,255,255,0.4); font-size: 0.8rem; margin-top: 12px; text-align: center; }
.form-privacy a { color: rgba(255,255,255,0.6); text-decoration: underline; }
.form-status { margin-top: 16px; text-align: center; padding: 12px; border-radius: 8px; display: none; }
.form-status.success { display: block; background: rgba(76,175,80,0.15); color: #81c784; }
.form-status.error { display: block; background: rgba(244,67,54,0.15); color: #e57373; }

/* --- Footer --- */
#footer { background: var(--black); color: rgba(255,255,255,0.6); padding: 48px 0 0; border-top: 1px solid rgba(182,151,69,0.15); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; align-items: start; }
.footer-brand img { width: 120px; height: auto; }
.footer-brand p { margin-top: 12px; font-size: 0.9rem; line-height: 1.5; }
#footer h4 { color: var(--gold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
#footer ul { list-style: none; }
#footer ul li { margin-bottom: 8px; font-size: 0.9rem; }
#footer a { color: rgba(255,255,255,0.6); }
#footer a:hover { color: var(--gold); }
.footer-contact p { font-size: 0.9rem; line-height: 1.6; }
.footer-bottom { margin-top: 40px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.08); text-align: center; font-size: 0.85rem; }

/* --- Mobile --- */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed; top: 0; padding-top: 100px; left: 0; right: 0; bottom: 0;
        background: rgba(13,19,19,0.98); flex-direction: column;
        justify-content: center; gap: 24px; padding: 40px;
        transform: translateX(100%); transition: transform 0.25s;
    }
    .nav-links.active { transform: translateX(0); }
    .nav-links a { font-size: 1.2rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 320px; }
    section { padding: 64px 0; }
}
