/* ============================================================
   Viru-Pro Teenused – uus kujundussüsteem (2026)
   Soe puit: pähkel / merevaik / kreem. Fraunces + Inter.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --walnut: #3e2c20;
    --walnut-900: #241a12;
    --amber: #c8893b;
    --amber-600: #a86a22;
    --amber-300: #e3b878;
    --cream: #f7f1e7;
    --cream-2: #efe5d4;
    --ink: #2a2017;
    --muted: #6e6257;
    --line: #e6dac6;
    --white: #ffffff;
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --maxw: 1180px;
    --radius: 16px;
    --shadow: 0 14px 40px rgba(62, 44, 32, 0.10);
    --shadow-sm: 0 6px 20px rgba(62, 44, 32, 0.08);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--walnut-900); letter-spacing: -0.01em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 5.5rem 0; }
.section.tight { padding: 4rem 0; }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1 !important; transform: none !important; } }

/* Sektsiooni päis */
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--sans); font-weight: 600; font-size: .8rem; letter-spacing: .14em;
    text-transform: uppercase; color: var(--amber-600);
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--amber); display: inline-block; }
.sec-head { max-width: 640px; margin-bottom: 3rem; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow::before { display: none; }
.sec-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: .8rem 0 .6rem; }
.sec-head p { color: var(--muted); font-size: 1.1rem; }

/* Nupud */
.btn {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .9rem 1.6rem; border-radius: 999px; font: 600 1rem/1 var(--sans);
    text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: all .25s var(--ease);
}
.btn-primary { background: var(--amber); color: #fff; box-shadow: 0 10px 24px rgba(200, 137, 59, .32); }
.btn-primary:hover { background: var(--amber-600); transform: translateY(-2px); }
.btn-dark { background: var(--walnut-900); color: var(--cream); }
.btn-dark:hover { transform: translateY(-2px); background: var(--walnut); }
.btn-ghost { background: transparent; color: var(--walnut-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-600); }
.btn-light { background: rgba(255,255,255,.95); color: var(--walnut-900); }
.btn-light:hover { background: #fff; transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(247, 241, 231, 0.82); backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent; transition: all .3s var(--ease);
}
.site-header.scrolled { background: rgba(247, 241, 231, 0.96); border-bottom-color: var(--line); box-shadow: 0 4px 24px rgba(62,44,32,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 74px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.35rem; }
.nav a {
    text-decoration: none; color: var(--ink); font-weight: 500; font-size: .94rem; white-space: nowrap;
    position: relative; padding: .3rem 0; transition: color .2s var(--ease);
}
.nav a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--amber); transition: width .25s var(--ease); }
.nav a:hover, .nav a.active { color: var(--amber-600); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav .btn { margin-left: .4rem; padding: .6rem 1.1rem; font-size: .9rem; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--walnut-900); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; color: #fff; }
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background: url('/Hero1.jpg') center/cover no-repeat;
}
.hero::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(27,19,12,.82) 0%, rgba(27,19,12,.55) 45%, rgba(27,19,12,.25) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 680px; padding: 7rem 24px 5rem; }
.hero .pill {
    display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
    font-size: .82rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 1.4rem;
}
.hero .pill i { color: var(--amber-300); }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 5.4vw, 4.2rem); margin-bottom: 1.2rem; }
.hero h1 em { font-style: italic; color: var(--amber-300); }
.hero .lead { font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: rgba(255,255,255,.92); max-width: 560px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-phone { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.hero-phone i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.14); color: var(--amber-300); }
.hero-phone:hover { color: var(--amber-300); }

/* ---------- Stats ---------- */
.stats { background: var(--walnut-900); color: var(--cream); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 2.6rem 0; }
.stat { text-align: center; padding: .5rem 1rem; }
.stat .n { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--amber-300); font-weight: 600; }
.stat .l { font-size: .95rem; color: rgba(247,241,231,.8); margin-top: .25rem; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.1); }

/* ---------- Services ---------- */
.services { background: var(--cream); }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.svc {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 2.2rem; transition: all .28s var(--ease); position: relative; overflow: hidden;
}
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.svc .ic { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--amber), var(--amber-600)); margin-bottom: 1.2rem; }
.svc h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.svc p { color: var(--muted); margin-bottom: 1.1rem; }
.svc ul { list-style: none; }
.svc li { display: flex; gap: .6rem; align-items: center; padding: .3rem 0; font-size: .95rem; }
.svc li i { color: var(--amber-600); font-size: .85rem; }
.svc .more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.2rem; color: var(--amber-600); font-weight: 600; text-decoration: none; font-size: .95rem; }
.svc .more:hover { gap: .7rem; }

/* ---------- Process ---------- */
.process { background: var(--cream-2); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; }
.step { position: relative; padding-top: 1rem; }
.step .num { font-family: var(--serif); font-size: 3rem; color: var(--amber); opacity: .5; line-height: 1; }
.step h3 { font-size: 1.25rem; margin: .4rem 0 .5rem; }
.step p { color: var(--muted); font-size: .96rem; }

/* ---------- Kvaliteet / premium ---------- */
.quality { background: var(--walnut); color: var(--cream); }
.quality .eyebrow { color: var(--amber-300); }
.quality .eyebrow::before { background: var(--amber-300); }
.quality h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: .8rem 0 1rem; }
.quality p { color: rgba(247,241,231,.85); font-size: 1.1rem; margin-bottom: 1.6rem; }
.quality-inner { display: grid; grid-template-columns: 1.3fr .9fr; gap: 3rem; align-items: center; }
.quality-points { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.9rem; }
.quality-points div { display: flex; align-items: center; gap: .7rem; font-weight: 600; }
.quality-points i { color: var(--amber-300); width: 22px; text-align: center; }
.quality-card { background: linear-gradient(135deg, var(--amber), var(--amber-600)); border-radius: var(--radius); padding: 2.8rem; box-shadow: var(--shadow); }
.quality-card .qq { font-family: var(--serif); font-style: italic; font-size: 1.55rem; line-height: 1.4; color: #fff; }
.quality-card .qby { margin-top: 1.2rem; font-size: .95rem; color: rgba(255,255,255,.85); font-weight: 600; }
@media (max-width: 992px) { .quality-inner { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Works strip ---------- */
.works { background: var(--walnut); color: var(--cream); }
.works .sec-head h2 { color: #fff; }
.works .sec-head p { color: rgba(247,241,231,.8); }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.work-tile { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/3; background: #000; }
.work-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.work-tile:hover img { transform: scale(1.06); }
.work-tile .cap { position: absolute; inset: auto 0 0 0; padding: 1.4rem 1rem .9rem; font-weight: 600; font-size: .95rem; background: linear-gradient(transparent, rgba(0,0,0,.72)); }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.why { text-align: left; padding: 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.why i { font-size: 1.6rem; color: var(--amber-600); margin-bottom: .8rem; }
.why h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.why p { color: var(--muted); font-size: .95rem; }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(135deg, var(--walnut-900), var(--walnut)); color: var(--cream); text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: .8rem; }
.cta-band p { color: rgba(247,241,231,.85); font-size: 1.15rem; margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--walnut-900); color: rgba(247,241,231,.75); padding: 4rem 0 1.8rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.site-footer h4 { color: var(--cream); font-size: 1.1rem; margin-bottom: 1.1rem; }
.site-footer img { height: 40px; margin-bottom: 1rem; }
.site-footer a { color: rgba(247,241,231,.75); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--amber-300); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .55rem; display: flex; align-items: center; gap: .55rem; }
.site-footer li i { color: var(--amber); width: 16px; }
.foot-social { display: flex; gap: .7rem; margin-top: 1rem; }
.foot-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--cream); }
.foot-social a:hover { background: var(--amber); color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; }

/* ---------- Page hero (alalehed) ---------- */
.page-hero { padding: 8.5rem 0 3rem; background: var(--cream-2); border-bottom: 1px solid var(--line); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }
.crumbs a { color: var(--amber-600); text-decoration: none; }
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: .5rem; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 620px; }

/* ---------- Content cards (tööd / tooted) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.pcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: all .28s var(--ease); }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.pcard .body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.pcard h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.pcard .meta { color: var(--amber-600); font-weight: 600; font-size: .88rem; margin-bottom: .6rem; }
.pcard .price { align-self: flex-start; background: var(--cream-2); color: var(--amber-600); font-weight: 700; padding: .25rem .8rem; border-radius: 999px; font-size: .9rem; margin-bottom: .7rem; }
.pcard p { color: var(--muted); font-size: .96rem; flex: 1; }
.pcard .more { margin-top: 1rem; }
.empty-note { text-align: center; color: var(--muted); padding: 3rem 1rem; grid-column: 1/-1; }

/* ---------- Teenuste detailkaardid ---------- */
.svc-full { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.4rem; margin-bottom: 1.5rem; display: grid; grid-template-columns: auto 1fr; gap: 1.8rem; align-items: start; scroll-margin-top: 90px; }
.svc-full .ic { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, var(--amber), var(--amber-600)); }
.svc-full h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.svc-full > div > p { color: var(--muted); }
.svc-full .feat { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.2rem; margin-top: 1.1rem; }
.svc-full .feat span { display: flex; gap: .5rem; align-items: center; font-size: .95rem; }
.svc-full .feat i { color: var(--amber-600); font-size: .85rem; }
@media (max-width: 640px) { .svc-full { grid-template-columns: 1fr; gap: 1rem; } .svc-full .feat { grid-template-columns: 1fr; } }

/* ---------- Galerii ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter-btn { background: var(--white); border: 1px solid var(--line); color: var(--ink); padding: .55rem 1.1rem; border-radius: 999px; font: 600 .9rem var(--sans); cursor: pointer; transition: all .2s var(--ease); }
.filter-btn:hover { border-color: var(--amber); color: var(--amber-600); }
.filter-btn.active { background: var(--amber); border-color: var(--amber); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.gallery-item { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/3; background: #000; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .gallery-overlay { position: absolute; inset: auto 0 0 0; padding: 1.5rem .9rem .8rem; background: linear-gradient(transparent, rgba(0,0,0,.74)); }
.gallery-item .gallery-overlay h3 { color: #fff; font-size: .95rem; font-weight: 600; margin: 0; font-family: var(--sans); }
.gallery-item .gallery-overlay p { color: rgba(255,255,255,.8); font-size: .82rem; }
.loading { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 3rem 1rem; }

/* ---------- Teade ---------- */
.notice { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; margin-top: 1.6rem; }
.notice h3 { font-size: 1.15rem; margin-bottom: .8rem; display: flex; align-items: center; gap: .5rem; }
.notice ul { list-style: none; }
.notice li { display: flex; gap: .6rem; align-items: flex-start; padding: .3rem 0; color: var(--muted); }
.notice li i { color: var(--amber-600); margin-top: .35rem; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow-sm); max-width: 820px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .95rem; }
.field .req { color: var(--amber-600); }
.field input, .field select, .field textarea {
    width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px;
    font: inherit; background: var(--cream); transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.alert { padding: 1rem; border-radius: 12px; margin-bottom: 1.2rem; display: none; }
.alert.show { display: block; }
.alert.ok { background: #e7f0e0; color: #3f5a2c; border: 1px solid #b7cc9c; }
.alert.err { background: #f6e3cf; color: #8a4a1a; border: 1px solid #e0b878; }

/* ---------- Info / contact cards ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.info { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; }
.info .ic { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; background: var(--cream-2); color: var(--amber-600); font-size: 1.4rem; }
.info h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.info p { color: var(--muted); }
.info a { color: var(--amber-600); font-weight: 600; text-decoration: none; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 820px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.6rem; }
.prose h2 { font-size: 1.4rem; margin: 2rem 0 .8rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); line-height: 1.8; }
.prose ul { margin: .6rem 0 .6rem 1.4rem; }
.prose a { color: var(--amber-600); font-weight: 600; }
.prose .updated { font-size: .9rem; color: var(--muted); margin-bottom: 1.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .nav-toggle { display: block; }
    .nav {
        position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: flex-start;
        background: var(--cream); padding: 1.5rem 24px 2rem; gap: 1.1rem;
        border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        transform: translateY(-120%); transition: transform .3s var(--ease); max-height: calc(100vh - 74px); overflow-y: auto;
    }
    .nav.open { transform: translateY(0); }
    .nav .btn { margin-left: 0; }
    .svc-grid, .steps, .why-grid, .works-grid, .foot-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .stat:nth-child(3) { border-left: 0; }
}
@media (max-width: 640px) {
    .section { padding: 3.6rem 0; }
    .svc-grid, .steps, .why-grid, .works-grid, .foot-grid, .form-row, .stats-grid { grid-template-columns: 1fr; }
    .stat + .stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.2rem; }
    .hero-inner { padding: 6rem 24px 4rem; }
    .foot-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto; } }
