/* ====== RESET ====== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg:        #f7f4ef;
    --bg-2:      #efe9e1;
    --bg-dark:   #1a1815;
    --fg:        #1a1815;
    --fg-light:  #f7f4ef;
    --muted:     #7a7368;
    --accent:    #9c7d5a;
    --accent-d:   #7a6044;
    --accent-l:   #c4a98a;
    --card:      #ffffff;
    --border:    #d9d0c4;
    --radius:    6px;
    --maxw:      1200px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Jost', sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 300;
}

/* ====== UTILITY ====== */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }
.section-label {
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.3em;
    color: var(--accent); margin-bottom: 1rem; font-weight: 500; text-align: center;
}
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem); font-weight: 500;
    letter-spacing: -0.01em; margin-bottom: 3rem; text-align: center;
}
.section-title em { font-style: italic; color: var(--accent); }

/* ====== BUTTONS ====== */
.btn {
    padding: 0.9rem 2.5rem; border-radius: 0;
    font-size: 0.8rem; font-weight: 500; letter-spacing: 0.15em;
    text-transform: uppercase; text-decoration: none;
    transition: all 0.3s ease; cursor: pointer;
    border: 1px solid var(--accent); display: inline-block;
}
.btn-primary { background: var(--accent); color: var(--fg-light); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-d); border-color: var(--accent-d); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: var(--fg-light); }
.btn-dark { background: var(--bg-dark); color: var(--fg-light); border-color: var(--bg-dark); }
.btn-dark:hover { background: #2a2520; border-color: #2a2520; }

/* ====== NAV ====== */
nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(247, 244, 239, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 1.2rem 2rem;
    display: flex; align-items: center; justify-content: space-between;
}
.logo {
    font-family: 'Cormorant Garamond', serif; font-weight: 600;
    font-size: 1.5rem; letter-spacing: 0.02em;
    color: var(--fg); text-decoration: none;
}
.logo em { font-style: italic; color: var(--accent); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
    color: var(--muted); text-decoration: none;
    font-size: 0.82rem; font-weight: 400; letter-spacing: 0.1em;
    text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--fg); }

/* ====== HERO ====== */
.hero {
    position: relative; min-height: 88vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    background: linear-gradient(160deg, var(--bg-2) 0%, var(--bg) 60%, var(--bg-2) 100%);
    overflow: hidden;
}
.hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--accent); opacity: 0.3; }
.hero-content { position: relative; z-index: 2; padding: 2rem; max-width: 800px; }
.hero-label {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.35em;
    color: var(--accent); margin-bottom: 1.5rem; font-weight: 500;
}
.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 500;
    line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p {
    font-size: 1.1rem; color: var(--muted);
    max-width: 540px; margin: 0 auto 2.5rem; font-weight: 300;
}
.hero-cta { display: inline-flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ====== PAGE HEADER (inner pages) ====== */
.page-header {
    background: var(--bg-dark); color: var(--fg-light);
    text-align: center; padding: 5rem 2rem 4rem;
}
.page-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 500;
    margin-bottom: 0.8rem;
}
.page-header h1 em { font-style: italic; color: var(--accent-l); }
.page-header p { color: var(--muted); font-size: 1rem; max-width: 500px; margin: 0 auto; }
.breadcrumb {
    margin-top: 1.5rem; font-size: 0.78rem; text-transform: uppercase;
    letter-spacing: 0.15em; color: var(--accent-l);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-l); }
.breadcrumb span { margin: 0 0.5rem; color: var(--muted); }

/* ====== SECTIONS ====== */
section { max-width: var(--maxw); margin: 0 auto; padding: 6rem 2rem; }

/* ====== SERVICES ====== */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem;
}
.service-card {
    background: var(--card); border: 1px solid var(--border);
    padding: 2.5rem 2rem; transition: all 0.3s; text-align: center;
}
.service-card:hover {
    box-shadow: 0 12px 40px rgba(156, 125, 90, 0.12); transform: translateY(-6px);
}
.service-number {
    font-family: 'Cormorant Garamond', serif; font-size: 2.5rem;
    font-style: italic; color: var(--accent-l); margin-bottom: 1rem; display: block;
}
.service-card h3 {
    font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; margin-bottom: 0.8rem;
}
.service-card p { color: var(--muted); font-size: 0.92rem; font-weight: 300; }
.service-card a { color: var(--accent); text-decoration: none; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 1rem; display: inline-block; }
.service-card a:hover { color: var(--accent-d); }

/* ====== PORTFOLIO ====== */
.portfolio { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.portfolio-wrap { max-width: var(--maxw); margin: 0 auto; padding: 6rem 2rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.project { position: relative; aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer; background: var(--bg-dark); text-decoration: none; }
.project-bg {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-style: italic;
    color: var(--accent-l); opacity: 0.6; transition: opacity 0.4s;
}
.project:nth-child(1) .project-bg { background: linear-gradient(135deg, #3a3530, #1a1815); }
.project:nth-child(2) .project-bg { background: linear-gradient(135deg, #6d5d4a, #2a2520); }
.project:nth-child(3) .project-bg { background: linear-gradient(135deg, #8a7a65, #3a3530); }
.project:nth-child(4) .project-bg { background: linear-gradient(135deg, #4a4540, #2a2520); }
.project:nth-child(5) .project-bg { background: linear-gradient(135deg, #9c7d5a, #4a3d2e); }
.project:nth-child(6) .project-bg { background: linear-gradient(135deg, #5a5048, #1a1815); }
.project-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(26,24,21,0.88) 0%, transparent 60%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 2rem; opacity: 0; transition: opacity 0.4s;
}
.project:hover .project-overlay { opacity: 1; }
.project:hover .project-bg { opacity: 0.4; transform: scale(1.05); }
.project-overlay .tag {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent-l); margin-bottom: 0.5rem;
}
.project-overlay h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 500; color: var(--fg-light); }

/* ====== PORTFOLIO FILTER ====== */
.filter-bar { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.filter-btn {
    padding: 0.5rem 1.5rem; border: 1px solid var(--border); background: transparent;
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--muted); cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.filter-btn:hover, .filter-btn.active { background: var(--accent); color: var(--fg-light); border-color: var(--accent); }

/* ====== ABOUT ====== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-image {
    aspect-ratio: 4 / 5; background: linear-gradient(135deg, var(--accent-d), var(--bg-dark));
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-style: italic;
    color: var(--accent-l); opacity: 0.5;
}
.about-text .section-label, .about-text .section-title { text-align: left; }
.about-text p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.2rem; font-weight: 300; }
.about-text strong { color: var(--fg); font-weight: 500; }
.stats { display: flex; gap: 3rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 600; color: var(--accent); display: block; }
.stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); }

/* ====== TEAM ====== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.team-card { text-align: center; }
.team-avatar {
    aspect-ratio: 1; border-radius: 50%; margin: 0 auto 1.5rem;
    max-width: 200px; background: linear-gradient(135deg, var(--accent-d), var(--bg-dark));
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--accent-l);
}
.team-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; }
.team-role { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent); margin-bottom: 0.8rem; }
.team-card p { color: var(--muted); font-size: 0.9rem; font-weight: 300; }

/* ====== PROCESS ====== */
.process-list { display: grid; gap: 0; max-width: 760px; margin: 0 auto; }
.process-step {
    display: grid; grid-template-columns: 80px 1fr; gap: 2rem;
    padding: 2rem 0; border-bottom: 1px solid var(--border); align-items: start;
}
.process-step:last-child { border-bottom: none; }
.process-num { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-style: italic; color: var(--accent-l); font-weight: 500; }
.process-step h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; margin-bottom: 0.5rem; }
.process-step p { color: var(--muted); font-size: 0.95rem; font-weight: 300; }

/* ====== TESTIMONIAL ====== */
.testimonial { background: var(--bg-dark); color: var(--fg-light); text-align: center; }
.testimonial-wrap { max-width: 700px; margin: 0 auto; padding: 6rem 2rem; }
.testimonial-quote {
    font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-style: italic;
    font-weight: 400; line-height: 1.5; margin-bottom: 2rem; color: var(--fg-light);
}
.testimonial-quote::before { content: '"'; color: var(--accent-l); font-size: 3rem; }
.testimonial-quote::after  { content: '"'; color: var(--accent-l); font-size: 3rem; }
.testimonial-author { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--accent-l); }

/* ====== TESTIMONIALS GRID ====== */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card { background: var(--card); border: 1px solid var(--border); padding: 2.5rem 2rem; }
.testimonial-card .quote { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-style: italic; color: var(--muted); margin-bottom: 1.5rem; line-height: 1.6; }
.testimonial-card .author { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent); }
.testimonial-card .role { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }

/* ====== CONTACT ====== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info p { color: var(--muted); margin-bottom: 1rem; }
.contact-info strong { color: var(--fg); font-weight: 500; display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 0.3rem; }
.contact-info a { color: var(--accent); text-decoration: none; font-size: 1.05rem; }
.contact-info a:hover { text-decoration: underline; }
.contact-form { display: grid; gap: 1rem; }
.contact-form input, .contact-form textarea, .contact-form select {
    background: var(--card); border: 1px solid var(--border); padding: 0.9rem 1rem;
    color: var(--fg); font-family: 'Jost', sans-serif; font-size: 0.92rem; font-weight: 300;
    transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ====== MAP ====== */
.map-embed { width: 100%; height: 350px; border: 1px solid var(--border); margin-top: 3rem; background: var(--bg-2); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.9rem; }

/* ====== FAQ ====== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
    width: 100%; text-align: left; background: none; border: none; padding: 1.5rem 0;
    font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600;
    color: var(--fg); cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-q::after { content: '+'; font-size: 1.5rem; color: var(--accent); transition: transform 0.3s; }
.faq-q.open::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--muted); font-size: 0.95rem; font-weight: 300; }
.faq-a.open { max-height: 200px; padding-bottom: 1.5rem; }

/* ====== CTA BANNER ====== */
.cta-banner {
    background: var(--accent); color: var(--fg-light); text-align: center; padding: 4rem 2rem;
}
.cta-banner h2 { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 500; margin-bottom: 1rem; }
.cta-banner h2 em { font-style: italic; }
.cta-banner p { margin-bottom: 2rem; font-weight: 300; opacity: 0.9; }
.cta-banner .btn { border-color: var(--fg-light); color: var(--fg-light); }
.cta-banner .btn:hover { background: var(--fg-light); color: var(--accent); }

/* ====== FOOTER ====== */
footer { background: var(--bg-dark); color: var(--fg-light); padding: 4rem 2rem 2rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 600; margin-bottom: 1rem; }
.footer-logo em { font-style: italic; color: var(--accent-l); }
.footer-tagline { color: var(--muted); font-size: 0.9rem; font-weight: 300; max-width: 300px; }
.footer-col h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent-l); margin-bottom: 1rem; font-weight: 500; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent-l); }
.footer-bottom {
    padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center; color: var(--muted); font-size: 0.8rem;
}
.footer-bottom span { color: var(--accent-l); }
.footer-bottom a { color: var(--muted); text-decoration: none; margin: 0 0.5rem; }
.footer-bottom a:hover { color: var(--accent-l); }

/* ====== PROJECT DETAIL ====== */
.project-detail-hero {
    background: var(--bg-dark); color: var(--fg-light); text-align: center; padding: 6rem 2rem 4rem;
}
.project-detail-hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 500; margin-bottom: 0.8rem; }
.project-detail-hero h1 em { font-style: italic; color: var(--accent-l); }
.project-detail-meta { display: flex; justify-content: center; gap: 3rem; margin-top: 2rem; flex-wrap: wrap; }
.project-detail-meta div { text-align: center; }
.project-detail-meta strong { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent-l); margin-bottom: 0.3rem; }
.project-detail-meta span { color: var(--muted); font-size: 0.9rem; }
.project-detail-img {
    width: 100%; max-width: 900px; margin: 3rem auto; aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--accent-d), var(--bg-dark));
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-style: italic; color: var(--accent-l); opacity: 0.4;
}
.project-detail-text { max-width: 760px; margin: 0 auto; }
.project-detail-text p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.5rem; font-weight: 300; }
.project-detail-text h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600; margin: 2rem 0 1rem; }
.project-nav { display: flex; justify-content: space-between; max-width: 760px; margin: 4rem auto 0; gap: 2rem; }
.project-nav a { color: var(--accent); text-decoration: none; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.project-nav a:hover { color: var(--accent-d); }

/* ====== 404 ====== */
.notfound { text-align: center; padding: 8rem 2rem; }
.notfound h1 { font-family: 'Cormorant Garamond', serif; font-size: 5rem; font-weight: 600; color: var(--accent); }
.notfound h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; margin-bottom: 1rem; }
.notfound p { color: var(--muted); margin-bottom: 2rem; }

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg); padding: 1rem 2rem; gap: 1rem; border-bottom: 1px solid var(--border); }
    .nav-links.show { display: flex; }
    .nav-toggle { display: block; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .stats { flex-wrap: wrap; gap: 1.5rem; }
    section { padding: 4rem 1.5rem; }
    .hero { min-height: 78vh; }
    .process-step { grid-template-columns: 60px 1fr; gap: 1rem; }
    .project-detail-meta { gap: 1.5rem; }
}

/* ====== ANIMATIONS ====== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.hero-label, .hero h1, .hero p, .hero-cta { animation: fadeUp 0.9s ease-out backwards; }
.hero-label { animation-delay: 0.1s; }
.hero h1    { animation-delay: 0.25s; }
.hero p     { animation-delay: 0.4s; }
.hero-cta   { animation-delay: 0.55s; }
