/* ═══════════════════════════════════════════
   VIOLA DAI ZOTTI — STYLE SYSTEM
   ═══════════════════════════════════════════ */

/* ── Variables ── */
:root {
    --terracotta: #C4856A;
    --terracotta-light: #D4A08A;
    --terracotta-dark: #A06B52;
    --forest: #2D4A3E;
    --forest-light: #3D6555;
    --forest-dark: #1E332B;
    --cream: #F5F0EB;
    --cream-warm: #F0E8DF;
    --gold: #D4A574;
    --gold-light: #E2BF9A;
    --dark: #2C2C2C;
    --dark-soft: #4A4A4A;
    --white: #FEFCFA;
    --shadow-warm: rgba(196, 133, 106, 0.15);
    --shadow-deep: rgba(44, 44, 44, 0.08);
}

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

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

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    color: var(--dark);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Typography ── */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    line-height: 1.2;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }

h2 em, h1 em { color: var(--terracotta); font-style: italic; }

.section-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-label::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--terracotta);
}

.section-label--center { justify-content: center; }

/* ── Scroll Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.15s; }
.reveal-d2 { transition-delay: 0.3s; }
.reveal-d3 { transition-delay: 0.45s; }

/* ── Container ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s ease;
}

.nav--solid {
    background: rgba(245, 240, 235, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px var(--shadow-deep);
}

.nav.scrolled {
    background: rgba(245, 240, 235, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 2rem;
    box-shadow: 0 2px 30px var(--shadow-deep);
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.05em;
    transition: color 0.5s ease;
}

.nav--solid .nav-logo,
.nav.scrolled .nav-logo { color: var(--dark); }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    transition: color 0.3s;
    position: relative;
}

.nav--solid .nav-links a,
.nav.scrolled .nav-links a { color: var(--dark-soft); }

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--terracotta);
    transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: all 0.3s;
    display: block;
}

.nav--solid .nav-toggle span,
.nav.scrolled .nav-toggle span { background: var(--dark); }

/* ═══════════════════════════════════════════
   HERO (homepage)
   ═══════════════════════════════════════════ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero.loaded .hero-bg { transform: scale(1); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(45, 74, 62, 0.35) 0%,
        rgba(44, 44, 44, 0.3) 40%,
        rgba(196, 133, 106, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 700px;
    padding: 0 2rem;
}

.hero-eyebrow {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s 0.3s forwards;
}

.hero h1 {
    font-weight: 300;
    font-style: italic;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    opacity: 0;
    animation: fadeUp 1s 0.6s forwards;
}

.hero-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    font-style: italic;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.6rem;
    opacity: 0;
    animation: fadeUp 1s 0.9s forwards;
}

.hero-sub {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 1s 1.1s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeUp 1s 1.6s forwards;
}

.hero-scroll span {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s infinite;
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* ═══════════════════════════════════════════
   PAGE HERO (subpages)
   ═══════════════════════════════════════════ */
.page-hero {
    position: relative;
    height: 55vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-hero .hero-bg { background-position: center 30%; }
.page-hero .hero-overlay {
    background: linear-gradient(180deg,
        rgba(45, 74, 62, 0.5) 0%,
        rgba(44, 44, 44, 0.45) 100%);
}

.page-hero .hero-content { padding-top: 4rem; }

.page-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 300;
    font-style: italic;
    color: var(--white);
    margin-bottom: 0.8rem;
}

.page-hero-sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    max-width: 500px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════
   BUTTONS / LINKS
   ═══════════════════════════════════════════ */
.btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    font-size: 0.75rem;
    font-weight: 400;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.4s ease;
    cursor: pointer;
    border: none;
}

.btn--outline {
    border: 1px solid var(--gold-light);
    color: var(--white);
    background: transparent;
}
.btn--outline:hover {
    background: var(--gold-light);
    color: var(--dark);
}

.btn--terracotta {
    background: var(--terracotta);
    color: var(--white);
    border-radius: 8px;
}
.btn--terracotta:hover {
    background: var(--terracotta-dark);
    transform: translateY(-2px);
}

.btn--gold {
    background: var(--gold);
    color: var(--dark);
    border-radius: 8px;
}
.btn--gold:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--terracotta);
    transition: gap 0.3s ease;
}
.arrow-link:hover { gap: 1rem; }
.arrow-link svg { width: 16px; height: 16px; }

/* ═══════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════ */
.card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px var(--shadow-deep);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.5s ease;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px var(--shadow-warm);
}

.card-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.card-body { padding: 2rem; }

.card-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta);
    background: rgba(196, 133, 106, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.card-body h3 { color: var(--forest); margin-bottom: 0.8rem; }
.card-body p {
    font-size: 0.88rem;
    color: var(--dark-soft);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* ═══════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════ */
.section { padding: 7rem 0; }
.section--cream-warm { background: var(--cream-warm); }
.section--forest { background: var(--forest); color: var(--cream); }
.section--dark { background: var(--forest-dark); }

/* Divider quote */
.divider-quote {
    padding: 5rem 2rem;
    text-align: center;
    background: var(--forest);
    color: var(--cream);
    position: relative;
    overflow: hidden;
}

.divider-quote::before {
    content: '\201C';
    position: absolute;
    top: -0.5rem; left: 50%;
    transform: translateX(-50%);
    font-family: 'Cormorant Garamond', serif;
    font-size: 12rem;
    color: rgba(212, 165, 116, 0.1);
    line-height: 1;
}

.divider-quote blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-style: italic;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════
   HOMEPAGE: Preview sections
   ═══════════════════════════════════════════ */
.home-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.home-about-img {
    position: relative;
}

.home-about-img img {
    width: 85%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 200px 200px 20px 20px;
    box-shadow: 20px 20px 60px var(--shadow-warm);
}

.home-about-img .img-accent {
    position: absolute;
    bottom: -2rem; right: 0;
    width: 45%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--cream);
    box-shadow: 10px 10px 40px var(--shadow-warm);
}

.home-about-text h2 { color: var(--forest); margin-bottom: 0.5rem; }
.home-about-text .subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--terracotta);
    margin-bottom: 2rem;
}
.home-about-text p {
    color: var(--dark-soft);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ═══════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item--tall { aspect-ratio: auto; grid-row: span 2; }

/* ═══════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════ */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.testimonial {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 8px 40px var(--shadow-deep);
}

.testimonial::before {
    content: '\201C';
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--terracotta-light);
    opacity: 0.3;
    position: absolute;
    top: 1rem; left: 1.5rem;
}

.testimonial p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--dark-soft);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    margin-top: 1.2rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--terracotta);
}

/* ═══════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.channel {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}
.channel:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--gold);
}

.channel-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(212, 165, 116, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.channel-icon svg { width: 18px; height: 18px; fill: var(--gold); }

.channel-label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
}
.channel-value { font-size: 0.9rem; color: var(--cream); }

.contact-form {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 2.5rem;
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: var(--cream);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    transition: border-color 0.3s;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(245, 240, 235, 0.3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4A574' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
}
.form-group select option { background: var(--forest); color: var(--cream); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ═══════════════════════════════════════════
   SERVICE PAGE CONTENT
   ═══════════════════════════════════════════ */
.service-content {
    padding: 5rem 0;
}

.service-intro {
    max-width: 750px;
    margin: 0 auto 4rem;
    text-align: center;
}

.service-intro p {
    font-size: 1.05rem;
    color: var(--dark-soft);
    line-height: 1.9;
}

.service-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.service-details img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 15px 15px 50px var(--shadow-warm);
}

.service-features {
    list-style: none;
    margin: 1.5rem 0 2rem;
}

.service-features li {
    padding: 0.7rem 0;
    padding-left: 1.8rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--dark-soft);
    border-bottom: 1px solid rgba(196, 133, 106, 0.1);
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0; top: 1.1rem;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--terracotta);
    opacity: 0.6;
}

/* ═══════════════════════════════════════════
   CTA BAND
   ═══════════════════════════════════════════ */
.cta-band {
    padding: 5rem 2rem;
    background: var(--forest);
    text-align: center;
    color: var(--cream);
}

.cta-band h2 {
    color: var(--cream);
    margin-bottom: 1rem;
}

.cta-band p {
    color: rgba(245, 240, 235, 0.7);
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* ═══════════════════════════════════════════
   PILLARS (about page)
   ═══════════════════════════════════════════ */
.pillars {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.pillar {
    text-align: center;
    flex: 0 0 120px;
}

.pillar-icon {
    width: 60px; height: 60px;
    margin: 0 auto 0.8rem;
    border-radius: 50%;
    background: var(--cream-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--terracotta);
    border: 1px solid rgba(196, 133, 106, 0.2);
}

.pillar-icon svg { width: 24px; height: 24px; stroke: var(--terracotta); fill: none; stroke-width: 1.5; }

.pillar span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--forest);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
    padding: 3rem 2rem 2rem;
    background: var(--forest-dark);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin-bottom: 1.5rem;
}

.footer-links a {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.5);
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }

.footer-copy {
    font-size: 0.72rem;
    color: rgba(245, 240, 235, 0.3);
}
.footer-copy a { color: var(--gold); }

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

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: rgba(45, 74, 62, 0.97);
        backdrop-filter: blur(20px);
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 999;
    }
    .nav-links.open a { color: var(--cream) !important; font-size: 1rem; }

    .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

    .home-about-grid,
    .service-details,
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }

    .home-about-img { max-width: 400px; margin: 0 auto; }

    .services-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }

    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-item--tall { grid-row: span 1; }

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

    .footer-links { flex-wrap: wrap; gap: 1rem; }
}

@media (max-width: 600px) {
    .section { padding: 5rem 0; }
    .container { padding: 0 1.5rem; }
    .card-img { height: 220px; }
    .gallery-grid { gap: 0.6rem; }
    .contact-form { padding: 1.5rem; }
    .testimonial { padding: 1.8rem; }
    .pillars { gap: 1rem; }
    .pillar { flex: 0 0 80px; }
}
