/* ============================================
   EESTI PUIT - CSS
   Stiil: must-valge, kasepuit-inspireeritud
   Mõjutused: Merko (range/professionaalne),
              Gymshark (kategooriate kuva)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Värvid - kase-inspireeritud */
    --black: #0a0a0a;
    --ink: #1a1a1a;
    --charcoal: #2a2a2a;
    --graphite: #4a4a4a;
    --stone: #8a8a8a;
    --ash: #c4c4c4;
    --bone: #e8e6e1;
    --paper: #f4f2ed;
    --cream: #faf8f3;
    --white: #ffffff;

    /* Aktsendid - väga peenelt */
    --birch: #d4cab8;
    --bark: #6b5d4f;
    --moss: #5a6b4f;

    /* Tüpograafia */
    --font-display: 'Fraunces', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;

    /* Mõõdud */
    --max-width: 1440px;
    --gutter: clamp(1.25rem, 4vw, 3rem);

    /* Üleminekud */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.55;
    font-size: 16px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s var(--ease);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   TÜPOGRAAFIA
   ============================================ */

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--black);
}

.display-xl {
    font-size: clamp(3.5rem, 9vw, 8.5rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 0.9;
}

.display-lg {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    letter-spacing: -0.03em;
}

.display-md {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.display-sm {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 500;
}

.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--graphite);
}

.body-lg {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--charcoal);
}

/* ============================================
   HEADER / NAVIGATSIOON
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 243, 0.78);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: all 0.3s var(--ease);
}

.site-header.scrolled {
    background: rgba(250, 248, 243, 0.95);
    border-bottom-color: var(--bone);
}

.site-header__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.1rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: var(--black);
}

.brand__mark {
    width: 30px;
    height: 30px;
    display: block;
}

.brand__name {
    line-height: 1;
}

.brand__name small {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--stone);
    margin-top: 3px;
    font-weight: 500;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink);
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: -0.005em;
}

.nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 0;
    background: var(--black);
    transition: width 0.3s var(--ease);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__dropdown {
    position: relative;
}

.nav__dropdown-menu {
    position: absolute;
    top: 100%;
    left: -1rem;
    min-width: 240px;
    background: var(--white);
    border: 1px solid var(--bone);
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s var(--ease);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

.nav__dropdown:hover .nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__dropdown-menu a {
    display: block;
    padding: 0.7rem 0.9rem;
    font-size: 0.875rem;
    color: var(--charcoal);
    transition: background 0.15s var(--ease);
}

.nav__dropdown-menu a:hover {
    background: var(--paper);
    color: var(--black);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-phone {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.header-phone::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--moss);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.menu-toggle {
    display: none;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--black);
    transition: all 0.3s var(--ease);
}

/* ============================================
   NUPUD
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.65rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    border-radius: 0;
    transition: all 0.25s var(--ease);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn--primary {
    background: var(--black);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--charcoal);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--black);
    border-color: var(--black);
}

.btn--ghost:hover {
    background: var(--black);
    color: var(--white);
}

.btn--light {
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--bone);
}

.btn--light:hover {
    background: var(--paper);
    border-color: var(--ash);
}

.btn--full {
    width: 100%;
}

.btn--lg {
    padding: 1.15rem 2.1rem;
    font-size: 0.95rem;
}

.btn__arrow {
    transition: transform 0.25s var(--ease);
}

.btn:hover .btn__arrow {
    transform: translateX(3px);
}

/* ============================================
   HERO
   ============================================ */

.hero {
    padding: 9rem var(--gutter) 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: end;
    margin-bottom: 4rem;
}

.hero__content {
    max-width: 720px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 2rem;
}

.hero__eyebrow-line {
    width: 32px;
    height: 1px;
    background: var(--graphite);
}

.hero__title {
    margin-bottom: 1.75rem;
}

.hero__title em {
    font-style: italic;
    font-weight: 300;
    color: var(--bark);
}

.hero__lead {
    font-size: clamp(1.05rem, 1.5vw, 1.225rem);
    line-height: 1.55;
    color: var(--charcoal);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero__actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.hero__meta {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 1rem;
}

.hero__stat {
    border-top: 1px solid var(--bone);
    padding-top: 1rem;
}

.hero__stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--black);
    margin-bottom: 0.35rem;
}

.hero__stat-label {
    font-size: 0.8125rem;
    color: var(--graphite);
    line-height: 1.4;
}

.hero__visual {
    margin-top: 2rem;
    border-top: 1px solid var(--bone);
    padding-top: 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.hero__visual-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.8125rem;
    color: var(--graphite);
}

.hero__visual-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ============================================
   TOOTEKATEGOORIAD - GYMSHARK STIIL
   ============================================ */

.categories {
    padding: 6rem var(--gutter) 5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.section-head__title {
    max-width: 620px;
}

.section-head__title h2 {
    margin-top: 0.85rem;
}

.section-head__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--black);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--black);
}

.section-head__link:hover {
    gap: 0.8rem;
}

.categories__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.cat-card {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--bone);
    cursor: pointer;
    display: block;
    color: var(--white);
}

.cat-card--wide {
    grid-column: span 2;
    aspect-ratio: 6/4;
}

.cat-card--tall {
    grid-row: span 2;
    aspect-ratio: 3/8;
}

.cat-card__bg {
    position: absolute;
    inset: 0;
    background: var(--charcoal);
    transition: transform 0.7s var(--ease-out);
}

.cat-card:hover .cat-card__bg {
    transform: scale(1.05);
}

.cat-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.cat-card__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cat-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cat-card__num {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.05em;
}

.cat-card__arrow {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
}

.cat-card:hover .cat-card__arrow {
    background: var(--white);
    color: var(--black);
    transform: rotate(-45deg);
}

.cat-card__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.65rem;
}

.cat-card__sub {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: -0.005em;
    margin-bottom: 0.5rem;
}

.cat-card__price {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Card BG patterns - simulate wood textures using gradients */
.cat-bg--prussid {
    background:
        repeating-linear-gradient(0deg,
            #3d3530 0px, #3d3530 6px,
            #2d2622 6px, #2d2622 7px),
        linear-gradient(135deg, #4a3f35 0%, #2a221b 100%);
}

.cat-bg--ehituslauad {
    background:
        repeating-linear-gradient(90deg,
            #6b5d4f 0px, #6b5d4f 50px,
            #5a4f43 50px, #5a4f43 53px),
        linear-gradient(135deg, #7a6b5a 0%, #4a3f35 100%);
}

.cat-bg--valisvoodri {
    background:
        repeating-linear-gradient(180deg,
            #d4cab8 0px, #d4cab8 18px,
            #b8ad99 18px, #b8ad99 20px),
        linear-gradient(135deg, #c2b8a3 0%, #8a7f6b 100%);
    color: var(--black);
}

.cat-bg--sisevoodri {
    background:
        repeating-linear-gradient(90deg,
            #ebe4d4 0px, #ebe4d4 22px,
            #d4cab8 22px, #d4cab8 24px),
        linear-gradient(135deg, #e8e0cf 0%, #b8ad99 100%);
    color: var(--black);
}

.cat-bg--tuulekast {
    background:
        repeating-linear-gradient(45deg,
            #a89880 0px, #a89880 8px,
            #8a7960 8px, #8a7960 10px),
        linear-gradient(135deg, #9a8870 0%, #6b5d4a 100%);
}

.cat-bg--porandalauad {
    background:
        repeating-linear-gradient(90deg,
            #8a6f50 0px, #8a6f50 80px,
            #6b5440 80px, #6b5440 82px,
            #8a6f50 82px),
        linear-gradient(135deg, #a08768 0%, #5a4530 100%);
}

.cat-bg--terrass {
    background:
        repeating-linear-gradient(90deg,
            #5a3f28 0px, #5a3f28 65px,
            #3f2a18 65px, #3f2a18 68px),
        linear-gradient(135deg, #6b4a30 0%, #2a1c10 100%);
}

.cat-bg--kaubaalused {
    background:
        repeating-linear-gradient(0deg,
            #8a7560 0px, #8a7560 14px,
            transparent 14px, transparent 32px),
        repeating-linear-gradient(90deg,
            #6b5848 0px, #6b5848 14px,
            transparent 14px, transparent 28px),
        linear-gradient(135deg, #95826b 0%, #5a4838 100%);
}

.cat-bg--kutte {
    background:
        radial-gradient(circle at 30% 40%, #6b4530 0%, transparent 25%),
        radial-gradient(circle at 70% 60%, #5a3a26 0%, transparent 30%),
        radial-gradient(circle at 50% 80%, #4a2f1e 0%, transparent 28%),
        linear-gradient(135deg, #7a5340 0%, #2a1810 100%);
}

.cat-bg--aialipid {
    background:
        repeating-linear-gradient(0deg,
            #8a7a5a 0px, #8a7a5a 4px,
            #6b5d44 4px, #6b5d44 6px,
            transparent 6px, transparent 24px),
        linear-gradient(180deg, #a8987a 0%, #4a3f30 100%);
}

/* ============================================
   PARTNERLUS RIBBON
   ============================================ */

.partner-bar {
    background: var(--black);
    color: var(--white);
    padding: 1.25rem var(--gutter);
    overflow: hidden;
    position: relative;
}

.partner-bar__track {
    display: flex;
    gap: 4rem;
    animation: marquee 38s linear infinite;
    white-space: nowrap;
    align-items: center;
}

.partner-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.partner-bar__dot {
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    opacity: 0.5;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============================================
   PROTSESS / TELLIMINE
   ============================================ */

.process {
    padding: 7rem var(--gutter);
    max-width: var(--max-width);
    margin: 0 auto;
}

.process__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 4rem;
    border-top: 1px solid var(--bone);
    border-bottom: 1px solid var(--bone);
}

.process__step {
    padding: 2.5rem 2rem 2.5rem 0;
    border-right: 1px solid var(--bone);
    position: relative;
}

.process__step:last-child {
    border-right: none;
}

.process__num {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--graphite);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.process__num::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--graphite);
}

.process__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 0.85rem;
    color: var(--black);
}

.process__desc {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--charcoal);
}

/* ============================================
   KOHTUMIS / KOHA RIBA
   ============================================ */

.location-strip {
    padding: 5rem var(--gutter);
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.location-strip__image {
    aspect-ratio: 5/4;
    background:
        linear-gradient(135deg, rgba(0,0,0,0.2) 0%, transparent 50%),
        repeating-linear-gradient(0deg,
            #6b5d4f 0px, #6b5d4f 9px,
            #5a4f43 9px, #5a4f43 10px),
        linear-gradient(135deg, #95826b 0%, #5a4838 100%);
    position: relative;
    overflow: hidden;
}

.location-strip__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.15) 0%, transparent 50%);
}

.location-strip__text h2 {
    margin: 0.85rem 0 1.5rem;
}

.location-strip__text p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--charcoal);
    margin-bottom: 2rem;
}

.location-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bone);
}

.location-meta__label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.location-meta__value {
    font-size: 0.95rem;
    color: var(--ink);
    line-height: 1.5;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--black);
    color: var(--bone);
    padding: 5rem var(--gutter) 2rem;
}

.footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
    max-width: 360px;
}

.footer__brand h3 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.footer__brand p {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.6);
}

.footer__col h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
}

.footer__col ul {
    list-style: none;
}

.footer__col li {
    margin-bottom: 0.7rem;
}

.footer__col a {
    font-size: 0.9375rem;
    color: var(--bone);
    transition: color 0.2s var(--ease);
}

.footer__col a:hover {
    color: var(--white);
}

.footer__bottom {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer__bottom a:hover {
    color: var(--white);
}

/* ============================================
   PEALEHE TOOTELEHE STIIL
   ============================================ */

.page-hero {
    padding: 9rem var(--gutter) 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.breadcrumbs {
    display: flex;
    gap: 0.6rem;
    font-size: 0.8125rem;
    color: var(--stone);
    margin-bottom: 2.5rem;
    letter-spacing: -0.005em;
}

.breadcrumbs a {
    color: var(--graphite);
}

.breadcrumbs a:hover {
    color: var(--black);
}

.breadcrumbs__sep {
    color: var(--ash);
}

.page-hero__title {
    max-width: 880px;
    margin-bottom: 1.5rem;
}

.page-hero__lead {
    max-width: 720px;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--charcoal);
}

/* Product page content */
.product-section {
    padding: 3rem var(--gutter) 5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 5rem;
    align-items: start;
}

.product-content > * + * {
    margin-top: 2rem;
}

.product-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.85rem;
    color: var(--black);
}

.product-content p {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--charcoal);
}

.product-content ul {
    list-style: none;
    padding: 0;
}

.product-content li {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--bone);
    font-size: 0.9375rem;
    color: var(--charcoal);
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.product-content li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--bark);
    border-radius: 50%;
    flex-shrink: 0;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 0.9375rem;
}

.price-table th {
    text-align: left;
    padding: 1rem 1.25rem;
    background: var(--paper);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--graphite);
    border-bottom: 1px solid var(--bone);
}

.price-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--bone);
    color: var(--ink);
}

.price-table tbody tr:hover {
    background: var(--paper);
}

.price-table td:last-child {
    font-weight: 500;
    color: var(--black);
}

.product-sidebar {
    position: sticky;
    top: 6rem;
    background: var(--white);
    border: 1px solid var(--bone);
    padding: 2rem;
}

.product-sidebar h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-sidebar p {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}

.sidebar-contact {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--bone);
    border-bottom: 1px solid var(--bone);
    margin-bottom: 1.5rem;
}

.sidebar-contact__item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sidebar-contact__label {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stone);
    font-weight: 500;
}

.sidebar-contact__value {
    font-size: 0.9375rem;
    color: var(--black);
    font-weight: 500;
}

/* ============================================
   KALKULAATOR (pur-projekt.ee stiil)
   ============================================ */

.calc-page {
    padding: 9rem var(--gutter) 5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.calc-head {
    text-align: center;
    margin-bottom: 4rem;
}

.calc-head h1 {
    margin-bottom: 1rem;
}

.calc-head p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.0625rem;
    color: var(--charcoal);
    line-height: 1.6;
}

.calc-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: start;
}

.calc-step {
    background: var(--white);
    border: 1px solid var(--bone);
    padding: 2rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.25s var(--ease);
}

.calc-step.active {
    border-color: var(--black);
}

.calc-step__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.calc-step__num {
    width: 32px;
    height: 32px;
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 500;
    flex-shrink: 0;
}

.calc-step__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--black);
}

.calc-step__body {
    padding-left: 3rem;
}

/* Product selector */
.calc-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.calc-product {
    position: relative;
    border: 1.5px solid var(--bone);
    padding: 1.25rem 1rem;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    text-align: left;
    background: var(--cream);
}

.calc-product:hover {
    border-color: var(--graphite);
    background: var(--white);
}

.calc-product.selected {
    border-color: var(--black);
    background: var(--white);
}

.calc-product.selected::after {
    content: '✓';
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 22px;
    height: 22px;
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.calc-product__icon {
    width: 36px;
    height: 36px;
    margin-bottom: 0.75rem;
    color: var(--bark);
}

.calc-product__name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.calc-product__price {
    font-size: 0.8125rem;
    color: var(--graphite);
}

/* Form controls */
.calc-field {
    margin-bottom: 1.25rem;
}

.calc-field:last-child {
    margin-bottom: 0;
}

.calc-field__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.calc-field__row--3 {
    grid-template-columns: repeat(3, 1fr);
}

.calc-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.5rem;
    letter-spacing: -0.005em;
}

.calc-input,
.calc-select,
.calc-textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--black);
    background: var(--cream);
    border: 1px solid var(--bone);
    border-radius: 0;
    transition: all 0.2s var(--ease);
}

.calc-input:focus,
.calc-select:focus,
.calc-textarea:focus {
    outline: none;
    border-color: var(--black);
    background: var(--white);
}

.calc-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%231a1a1a' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.calc-textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

.calc-radio-group {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.calc-radio {
    flex: 1;
    min-width: 100px;
    position: relative;
}

.calc-radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.calc-radio label {
    display: block;
    padding: 0.85rem 1rem;
    text-align: center;
    border: 1.5px solid var(--bone);
    background: var(--cream);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--graphite);
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.calc-radio input:checked + label {
    border-color: var(--black);
    background: var(--white);
    color: var(--black);
}

.calc-radio label:hover {
    border-color: var(--graphite);
}

/* Summary sidebar */
.calc-summary {
    position: sticky;
    top: 6rem;
    background: var(--black);
    color: var(--white);
    padding: 2.25rem;
}

.calc-summary h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9375rem;
    gap: 1rem;
}

.summary-line__label {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.summary-line__value {
    color: var(--white);
    text-align: right;
    font-weight: 500;
}

.summary-line--total {
    margin-top: 1.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: none;
    font-family: var(--font-display);
    font-size: 1.05rem;
}

.summary-line--total .summary-line__label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.summary-total-amount {
    font-size: 2.5rem;
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0.5rem 0 0.25rem;
    color: var(--white);
}

.summary-vat-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.75rem;
}

.summary-btn {
    width: 100%;
    background: var(--white);
    color: var(--black);
    padding: 1.15rem;
    font-size: 0.9375rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: background 0.2s var(--ease);
}

.summary-btn:hover {
    background: var(--bone);
}

.summary-btn:disabled {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

.summary-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    padding: 1.5rem 0;
}

/* Successive submit */
.calc-success {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border: 1px solid var(--bone);
}

.calc-success__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.5rem;
    background: var(--moss);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.calc-success h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.calc-success p {
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .categories__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cat-card--wide {
        grid-column: span 2;
    }

    .cat-card--tall {
        grid-row: span 1;
        aspect-ratio: 3/4;
    }

    .process__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process__step:nth-child(2n) {
        border-right: none;
    }

    .process__step:nth-child(-n+2) {
        border-bottom: 1px solid var(--bone);
    }

    .footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav,
    .header-phone {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding-top: 7rem;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero__visual {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

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

    .cat-card--wide {
        grid-column: span 1;
        aspect-ratio: 4/3;
    }

    .cat-card {
        aspect-ratio: 4/3;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .location-strip {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .location-meta {
        grid-template-columns: 1fr;
    }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .product-sidebar {
        position: static;
    }

    .calc-layout {
        grid-template-columns: 1fr;
    }

    .calc-summary {
        position: static;
    }

    .calc-step__body {
        padding-left: 0;
    }

    .calc-field__row,
    .calc-field__row--3 {
        grid-template-columns: 1fr;
    }

    .price-table {
        font-size: 0.8125rem;
    }

    .price-table th,
    .price-table td {
        padding: 0.7rem;
    }

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

    .process__step {
        border-right: none;
        border-bottom: 1px solid var(--bone);
    }

    .process__step:last-child {
        border-bottom: none;
    }
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--cream);
    z-index: 999;
    padding: 6rem var(--gutter) 2rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu a {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    padding: 0.5rem 0;
    color: var(--black);
    border-bottom: 1px solid var(--bone);
}

.mobile-menu__sub {
    padding-left: 1.25rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.mobile-menu__sub a {
    font-size: 1.1rem;
    color: var(--charcoal);
    border-bottom: none;
    padding: 0.4rem 0;
}

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

.fade-up {
    animation: fadeUp 0.8s var(--ease-out) both;
}

.fade-up-1 { animation-delay: 0.05s; }
.fade-up-2 { animation-delay: 0.15s; }
.fade-up-3 { animation-delay: 0.25s; }
.fade-up-4 { animation-delay: 0.35s; }
.fade-up-5 { animation-delay: 0.45s; }
.fade-up-6 { animation-delay: 0.55s; }
