/* ============================================================
   CENT FACTORY — styles.css
   ხის და MDF/DSP ავეჯის ცეხი. თბილი, მყუდრო, დახვეწილი იერი.

   შინაარსი:
   0. დიზაინ-ტოკენები (ცვლადები)
   1. რესეტი და ბაზისი
   2. ტიპოგრაფია / დამხმარე კლასები
   3. ღილაკები
   4. ფოტო-placeholder (ფოტოს ადგილი)
   5. ჰედერი / ნავიგაცია
   6. Hero
   7. ჩვენ შესახებ
   8. სერვისები (bento)
   9. გალერეა + lightbox
   10. პროცესი
   11. კონტაქტი + ფორმა
   12. ფუტერი
   13. დამხმარე UI (to-top, reveal ანიმაცია)
   14. რესპონსივი (mobile-first → დიდი ეკრანებზე გაფართოება)
   ============================================================ */

/* ---------- 0. დიზაინ-ტოკენები ---------- */
:root {
    /* ფერები — ბრენდის პალიტრა (თბილი, ხის ტონები) */
    --brown:      #2E2823;   /* ლოგოს / მთავარი მუქი ფერი */
    --brown-soft: #4A4039;   /* ოდნავ ღია მუქი */
    --cream:      #F5F1EA;   /* მთავარი ფონი */
    --cream-2:    #EFE8DD;   /* მონაცვლე სექციის ფონი / ბარათი */
    --cream-3:    #E6DCCC;   /* ფოტო-placeholder-ის ბაზა */
    --wood:       #A67C52;   /* აქცენტი — ბუნებრივი ხე */
    --wood-dark:  #8A6541;   /* აქცენტის მუქი (hover) */
    --wood-soft:  #C8A47B;   /* აქცენტის ღია ტონი */

    --text:   #2E2823;       /* ძირითადი ტექსტი */
    --muted:  #6E6256;       /* მეორეხარისხოვანი ტექსტი */
    --line:   rgba(46, 40, 35, 0.12);  /* ჰეარლაინები / საზღვრები */

    /* თბილი, რბილი ჩრდილები (შავი არასდროს, ყავისფერ ტონზე) */
    --shadow-sm: 0 4px 14px rgba(46, 40, 35, 0.06);
    --shadow-md: 0 14px 36px rgba(46, 40, 35, 0.10);
    --shadow-lg: 0 28px 70px rgba(46, 40, 35, 0.16);

    /* მომრგვალებული კუთხეები — ერთიანი სისტემა:
       ღილაკები = pill, ზედაპირები/ფილები = 20px, ინფუთები = 12px */
    --r-lg: 20px;
    --r-md: 14px;
    --r-sm: 12px;
    --r-pill: 999px;

    /* შრიფტი */
    --font: "Noto Sans Georgian", "Segoe UI", system-ui, -apple-system, sans-serif;

    /* განლაგება */
    --maxw: 1200px;
    --gutter: clamp(20px, 5vw, 48px);

    /* გადასვლები (ნელი, დახვეწილი) */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --t-fast: 0.25s var(--ease);
    --t-med: 0.45s var(--ease);
    --t-slow: 0.7s var(--ease);

    --nav-h: 72px;
}

/* ---------- 1. რესეტი და ბაზისი ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    /* sticky ნავიგაციის გასათვალისწინებლად — ანქორებზე გადასვლისას */
    scroll-padding-top: calc(var(--nav-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-weight: 400;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ფოკუსის ხილვადი მონიშვნა — წვდომადობა */
:focus-visible {
    outline: 2px solid var(--wood-dark);
    outline-offset: 3px;
    border-radius: 4px;
}

/* skip-link */
.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    background: var(--brown);
    color: var(--cream);
    padding: 10px 18px;
    border-radius: var(--r-pill);
    transition: top var(--t-fast);
}
.skip-link:focus { top: 16px; }

/* კონტეინერი */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* სექციის ვერტიკალური რიტმი (ბევრი whitespace) */
.section {
    padding-block: clamp(64px, 11vw, 140px);
}

/* ---------- 2. ტიპოგრაფია / დამხმარე ---------- */
.section__title {
    margin: 0;
    font-weight: 600;
    font-size: clamp(1.9rem, 5.2vw, 3.1rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--brown);
}

.section__head { margin-bottom: clamp(36px, 6vw, 64px); max-width: 56ch; }

.section__lead {
    margin: 16px 0 0;
    font-size: clamp(1rem, 2.4vw, 1.15rem);
    color: var(--muted);
    max-width: 52ch;
}

/* eyebrow — პატარა, განიერი ასოთაშორისი დაშორებით.
   გამოიყენება მცირედ (max 1 ყოველ 3 სექციაზე). */
.eyebrow {
    margin: 0 0 14px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--wood-dark);
}

/* ტექსტ-ბმული ხაზგასმით */
.text-link {
    display: inline-block;
    margin-top: 28px;
    font-weight: 600;
    color: var(--brown);
    border-bottom: 1.5px solid var(--wood);
    padding-bottom: 3px;
    transition: color var(--t-fast), border-color var(--t-fast);
}
.text-link:hover { color: var(--wood-dark); border-color: var(--wood-dark); }

/* ---------- 3. ღილაკები ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: var(--r-pill);
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: transform var(--t-fast), background var(--t-fast),
                color var(--t-fast), box-shadow var(--t-fast);
}
.btn--primary {
    background: var(--brown);
    color: var(--cream);
    box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
    background: var(--wood-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.btn--primary:active { transform: translateY(0) scale(0.98); }

.btn--ghost {
    background: transparent;
    color: var(--cream);
    border: 1.5px solid rgba(245, 241, 234, 0.55);
}
.btn--ghost:hover {
    background: rgba(245, 241, 234, 0.12);
    border-color: var(--cream);
    transform: translateY(-2px);
}
.btn--block { width: 100%; }

/* ---------- 4. ფოტო-placeholder ---------- */
/* თბილი, დახვეწილი ადგილი ფოტოსთვის. ხის ტონის გრადიენტი + ნაზი ფაქტურა.
   data-cap ატრიბუტი ჩნდება წარწერად. რეალური ფოტო: README.md */
.photo-ph {
    position: relative;
    display: block; /* span-შიც (გალერეა) რომ აიღოს ზომები */
    width: 100%;
    height: 100%;
    min-height: 180px;
    border-radius: inherit;
    background:
        linear-gradient(135deg, var(--cream-3) 0%, #DCCFB9 100%);
    overflow: hidden;
    isolation: isolate;
}
/* ნაზი ხის ფაქტურის მინიშნება — დიაგონალური ხაზები */
.photo-ph::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        115deg,
        rgba(46, 40, 35, 0.045) 0px,
        rgba(46, 40, 35, 0.045) 1px,
        transparent 1px,
        transparent 11px
    );
    z-index: -1;
}
/* პატარა წარწერა — რა ფოტო ჩაჯდება აქ */
.photo-ph::after {
    content: attr(data-cap);
    position: absolute;
    inset: auto 0 0 0;
    padding: 14px 16px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--brown-soft);
    opacity: 0.62;
}

/* როცა რეალური ფოტოა ჩასმული — ფაქტურა და წარწერა იმალება.
   (დროებითი ფოტოები; რეალურით ჩასანაცვლებლად იხილე README.md) */
.photo-ph--img {
    background-color: var(--cream-3); /* fallback ფოტოს ჩატვირთვამდე */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.photo-ph--img::before,
.photo-ph--img::after { content: none; }

/* ---------- 5. ჰედერი / ნავიგაცია ---------- */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: transparent;
    transition: background var(--t-med), box-shadow var(--t-med),
                backdrop-filter var(--t-med);
}
/* scroll-ის შემდეგ — ბუნდოვანი კრემისფერი ფონი */
.header.scrolled {
    background: rgba(245, 241, 234, 0.88);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    box-shadow: 0 1px 0 var(--line);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--cream); }
/* hero-ზე ლოგო ღიაა; scroll-ის შემდეგ მუქდება */
.header.scrolled .logo { color: var(--brown); }

/* რეალური ლოგო — თეთრ badge-ად (ლოგოს თეთრი ფონი badge-ში ერწყმის),
   ჩანს მუქ hero-ზეც, კრემისფერ header-ზეც და მუქ footer-ზეც */
.logo-img {
    width: 40px; height: 40px;
    flex-shrink: 0;
    object-fit: contain;
    background: #fff;
    border-radius: 9px;
    border: 1px solid rgba(46, 40, 35, 0.08);
    transition: transform var(--t-fast);
}
.logo:hover .logo-img { transform: rotate(-3deg) scale(1.04); }
.logo__name {
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: 0.22em;
}

.nav { display: none; align-items: center; gap: clamp(20px, 3vw, 38px); }
.nav__link {
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--cream);
    padding-block: 6px;
    transition: color var(--t-fast);
}
.header.scrolled .nav__link { color: var(--brown-soft); }
/* ხაზი ქვემოთ — hover / active */
.nav__link::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1.5px;
    background: var(--wood);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-med);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.header.scrolled .nav__link:hover { color: var(--brown); }

/* ჰამბურგერი */
.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 10px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--cream);
    transition: transform var(--t-fast), opacity var(--t-fast), background var(--t-med);
}
.header.scrolled .nav-toggle span,
body.menu-open .nav-toggle span { background: var(--brown); }
/* აქტიური (X) მდგომარეობა */
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. HERO ---------- */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-h);
    overflow: hidden;
}
/* ფონური ფოტოს ადგილი — ჩასვი background-image აქ */
.hero__bg {
    position: absolute;
    inset: 0;
    background-color: #2E2823; /* fallback ფოტოს ჩატვირთვამდე */
    /* ფონური ქავერ-ფოტო (ლოკალური) + მუქი overlay ტექსტის კითხვადობისთვის.
       სხვა ფოტოთი ჩასანაცვლებლად: შეცვალე images/hero.png (იხ. README.md) */
    background-image:
        linear-gradient(120deg, rgba(36,31,26,0.58) 0%, rgba(36,31,26,0.30) 55%, rgba(36,31,26,0.16) 100%),
        url("images/hero.png");
    background-size: cover;
    background-position: center;
    z-index: -2;
}
/* მუქი scrim — ტექსტის კითხვადობისთვის */
.hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(36,31,26,0.82) 0%, rgba(36,31,26,0.55) 48%, rgba(36,31,26,0.20) 100%);
    z-index: -1;
}

.hero__content { color: var(--cream); max-width: 760px; }
.hero__eyebrow { color: var(--wood-soft); }
.hero__title {
    margin: 0;
    font-weight: 600;
    /* max შემცირებულია, რომ hero-ს სათაური 2 ხაზში დაეტიოს desktop-ზე */
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    line-height: 1.06;
    letter-spacing: 0.02em;
    color: var(--cream);
}
.hero__subtitle {
    margin: 24px 0 0;
    max-width: 46ch;
    font-size: clamp(1.02rem, 2.6vw, 1.22rem);
    color: rgba(245, 241, 234, 0.82);
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

/* ---------- 7. ჩვენ შესახებ ---------- */
.about { background: var(--cream); }
.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(36px, 6vw, 72px);
    align-items: center;
}
.about__lead {
    margin: 24px 0 18px;
    font-size: clamp(1.1rem, 2.6vw, 1.3rem);
    font-weight: 500;
    color: var(--brown);
    max-width: 40ch;
}
.about__body { margin: 0; color: var(--muted); max-width: 52ch; }
.about__body + .about__body { margin-top: 16px; } /* ზედიზედ პარაგრაფებს შორის */

.about__photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about__photo .photo-ph { min-height: clamp(280px, 50vw, 460px); }

/* ---------- 8. სერვისები (bento) ---------- */
.services { background: var(--cream-2); }

.bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.srv {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--cream);
    box-shadow: var(--shadow-sm);
    min-height: 240px;
    display: flex;
    transition: transform var(--t-med), box-shadow var(--t-med);
}
.srv:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.srv__photo {
    position: absolute;
    inset: 0;
    min-height: 0;
    border-radius: 0;
}
.srv__photo::after { content: none; } /* bento-ში წარწერა არ გვჭირდება */

/* ტექსტი ფოტოს ზემოდან — წაკითხვადი scrim-ით */
.srv__body {
    position: relative;
    z-index: 1;
    margin-top: auto;
    width: 100%;
    padding: 22px 22px 24px;
    color: var(--cream);
    background: linear-gradient(0deg, rgba(36,31,26,0.86) 0%, rgba(36,31,26,0.45) 60%, transparent 100%);
}
.srv__title {
    margin: 0;
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    font-weight: 600;
    letter-spacing: 0.02em;
}
.srv__desc {
    margin: 8px 0 0;
    font-size: 0.92rem;
    color: rgba(245, 241, 234, 0.82);
    max-width: 34ch;
}

/* ---------- 9. გალერეა + lightbox ---------- */
.gallery { background: var(--cream); }

/* Masonry — CSS columns. თითო ფოტო ბუნებრივი პროპორციით, დაუჭრელად */
.gallery__grid {
    column-count: 2;      /* მობილური */
    column-gap: 14px;
}
/* ცარიელი მდგომარეობა — სანამ ახალი ფოტოები აიტვირთება */
.gallery__empty {
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border: 1px dashed var(--line, #e0d6c6);
    border-radius: var(--r-md);
    color: var(--wood-soft, #8a7a66);
    font-size: 1.02rem;
    letter-spacing: 0.02em;
    text-align: center;
    padding: 24px;
}
.gallery__item {
    display: block;
    width: 100%;
    margin: 0 0 14px;                 /* ვერტიკალური gap სვეტში */
    break-inside: avoid;              /* ფოტო არ გაიხლიჩოს სვეტებს შორის */
    -webkit-column-break-inside: avoid;
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    padding: 0;
    transition: transform var(--t-med), box-shadow var(--t-med);
}
/* ნამდვილი <img> — ბუნებრივი პროპორცია, არაფერი იჭრება */
.gallery__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--r-md);
}
.gallery__item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--r-md);
    background: rgba(46, 40, 35, 0);
    transition: background var(--t-fast);
    pointer-events: none;
}
.gallery__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery__item:hover::after { background: rgba(46, 40, 35, 0.10); }

/* lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(36, 31, 26, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-med), visibility var(--t-med);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__content {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.96);
    transition: transform var(--t-med);
}
.lightbox.open .lightbox__content { transform: scale(1); }
/* სრული ფოტო — დაუჭრელად, ეკრანში ჩამტევად (contain) */
.lightbox__content img {
    display: block;
    max-width: min(92vw, 1200px);
    max-height: 86vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
}

.lightbox__close, .lightbox__nav {
    position: absolute;
    color: var(--cream);
    font-size: 2rem;
    line-height: 1;
    width: 54px; height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-pill);
    background: rgba(245, 241, 234, 0.10);
    transition: background var(--t-fast);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(245, 241, 234, 0.22); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- 10. პროცესი ---------- */
.process { background: var(--brown); color: var(--cream); }
.process .section__title { color: var(--cream); }
.process .eyebrow { color: var(--wood-soft); }

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.step {
    position: relative;
    padding: 28px 4px 28px 56px;
    border-top: 1px solid rgba(245, 241, 234, 0.14);
}
.step:last-child { border-bottom: 1px solid rgba(245, 241, 234, 0.14); }
.step__num {
    position: absolute;
    left: 0; top: 28px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--wood-soft);
    letter-spacing: 0.1em;
}
.step__title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: clamp(1.15rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--cream);
}
.step__badge {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brown);
    background: var(--wood-soft);
    padding: 4px 10px;
    border-radius: var(--r-pill);
}
.step__desc {
    margin: 10px 0 0;
    color: rgba(245, 241, 234, 0.72);
    max-width: 48ch;
}

/* ---------- 11. კონტაქტი + ფორმა ---------- */
.contact { background: var(--cream); }
.contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(40px, 7vw, 80px);
    align-items: start;
}
.contact__lead {
    margin: 18px 0 32px;
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 40ch;
}

.contact__list { display: grid; gap: 16px; margin-bottom: 32px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-size: 1.05rem; }
.contact__list a:hover { color: var(--wood-dark); }

.ico {
    width: 22px; height: 22px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--wood-dark);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact__socials { display: flex; flex-wrap: wrap; gap: 12px; }
.social {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    border-radius: var(--r-pill);
    border: 1.5px solid var(--line);
    background: var(--cream);
    font-size: 0.92rem;
    font-weight: 500;
    transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.social .ico { width: 18px; height: 18px; }
.social:hover { transform: translateY(-2px); border-color: var(--wood); }
.social--wa:hover { border-color: #25D366; }

/* ფორმა */
.contact__form {
    display: grid;
    gap: 18px;
    padding: clamp(26px, 4vw, 40px);
    background: var(--cream-2);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--brown); }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 13px 16px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--cream);
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #9a8f82; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--wood);
    box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.16);
}
/* ვალიდაციის შეცდომა */
.field.invalid input, .field.invalid select { border-color: #b5482f; }
.field__error {
    display: none;
    font-size: 0.82rem;
    color: #b5482f;
}
.field.invalid .field__error { display: block; }

.form__note {
    margin: 4px 0 0;
    font-size: 0.92rem;
    min-height: 1.2em;
}
.form__note.success { color: #4f7a3a; font-weight: 600; }
.form__note.error { color: #b23a2f; font-weight: 600; }

/* მრავალარჩევანიანი chip-checkbox-ები (მიმართულება) */
.field__hint { font-weight: 400; font-size: 0.82rem; color: var(--wood-soft); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice__chip {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--cream);
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.choice__chip:hover { border-color: var(--wood); transform: translateY(-2px); }
.choice input:checked + .choice__chip {
    background: var(--wood);
    border-color: var(--wood);
    color: var(--cream);
}
.choice input:focus-visible + .choice__chip { outline: 2px solid var(--wood); outline-offset: 2px; }

/* ---------- 12. ფუტერი ---------- */
.footer { background: var(--brown); color: var(--cream); padding-block: clamp(48px, 8vw, 72px); }
.footer__inner { display: grid; gap: 18px; text-align: center; justify-items: center; }
.footer__brand { display: inline-flex; align-items: center; gap: 12px; color: var(--cream); }
.footer__brand .logo-img { width: 48px; height: 48px; }
.footer__name { font-weight: 700; letter-spacing: 0.22em; }
.footer__tagline { margin: 0; color: var(--wood-soft); font-size: 0.95rem; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 26px; }
.footer__nav a { font-size: 0.94rem; color: rgba(245,241,234,0.78); transition: color var(--t-fast); }
.footer__nav a:hover { color: var(--cream); }
.footer__contact {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px;
    margin: 0; font-size: 0.95rem; color: rgba(245,241,234,0.82);
}
.footer__contact a:hover { color: var(--wood-soft); }
.footer__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--wood); }
.footer__copy { margin: 6px 0 0; font-size: 0.82rem; color: rgba(245,241,234,0.5); }

/* ---------- 13. დამხმარე UI ---------- */
/* scroll-reveal — ნელი, ნაზი გამოჩენა */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--t-slow), transform var(--t-slow);
    will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* to-top ღილაკი */
.to-top {
    position: fixed;
    right: 22px; bottom: 22px;
    z-index: 90;
    width: 48px; height: 48px;
    border-radius: var(--r-pill);
    background: var(--brown);
    color: var(--cream);
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--t-med), transform var(--t-med), visibility var(--t-med), background var(--t-fast);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--wood-dark); }

/* floating "დაგვიკავშირდი" ღილაკი — ყოველთვის ხილული */
.contact-fab {
    position: fixed;
    right: 22px;
    bottom: 82px;              /* to-top (48px) ზემოთ, 12px დაშორებით */
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 20px;
    min-height: 44px;          /* კომფორტული tap-target მობილურზე */
    border-radius: var(--r-pill);
    background: var(--brown);
    color: var(--cream);
    /* დახვეწილი ჩარჩო — რომ მუქ სექციებზეც (პროცესი, footer) გამოიკვეთოს */
    border: 1px solid rgba(245, 241, 234, 0.18);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
/* .ico-ს ნაგულისხმევი მუქი stroke მუქ ფონზე არ ჩანს — currentColor-ზე გადავიყვანთ */
.contact-fab .ico { width: 18px; height: 18px; stroke: currentColor; }
.contact-fab:hover {
    background: var(--wood-dark);
    border-color: rgba(245, 241, 234, 0.32);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.contact-fab:active { transform: translateY(0) scale(0.98); }

/* მობილურზე ოდნავ კომპაქტური, მაგრამ კომფორტულად დასაჭერი */
@media (max-width: 480px) {
    .contact-fab { padding: 11px 16px; font-size: 0.88rem; gap: 7px; }
    .contact-fab .ico { width: 16px; height: 16px; }
}

/* ============================================================
   14. რესპონსივი — mobile-first, შემდეგ გაფართოება
   ============================================================ */

/* ≥ 600px — გალერეა (masonry) 3 სვეტი */
@media (min-width: 600px) {
    .gallery__grid { column-count: 3; }
}
/* ≥ 1100px — დესკტოპი 4 სვეტი */
@media (min-width: 1100px) {
    .gallery__grid { column-count: 4; }
}

/* ≥ 768px — ნავიგაცია გამოჩნდება, 2-სვეტიანი განლაგებები */
@media (min-width: 768px) {
    .nav { display: flex; }
    .nav-toggle { display: none; }

    .about__grid { grid-template-columns: 1.05fr 0.95fr; }

    /* პროცესი — 2x2 ბადე */
    .steps { grid-template-columns: 1fr 1fr; gap: 0 48px; }

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

    .footer__inner { grid-template-columns: auto 1fr auto; text-align: left; justify-items: start; align-items: center; }
    .footer__brand { grid-row: 1; }
    .footer__tagline { grid-column: 1; }
    .footer__nav { grid-column: 2 / 4; grid-row: 1; justify-content: center; }
    .footer__contact { grid-column: 3; grid-row: 1; justify-content: flex-end; }
    .footer__copy { grid-column: 1 / -1; text-align: center; border-top: 1px solid rgba(245,241,234,0.1); padding-top: 22px; width: 100%; }
}

/* ≥ 900px — bento desktop განლაგება (ცვალებადი ზომის ფილები) */
@media (min-width: 900px) {
    .bento {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 215px;
        gap: 18px;
        grid-template-areas:
            "kitchen kitchen wardrobe wardrobe"
            "kitchen kitchen bed      door"
            "table   table   shelf    shelf";
    }
    .srv--kitchen  { grid-area: kitchen; }
    .srv--wardrobe { grid-area: wardrobe; }
    .srv--bed      { grid-area: bed; }
    .srv--door     { grid-area: door; }
    .srv--table    { grid-area: table; }
    .srv--shelf    { grid-area: shelf; }
    .srv { min-height: 0; }

    /* პროცესი — 4 სვეტი, ჰორიზონტალური ხაზით */
    .steps { grid-template-columns: repeat(4, 1fr); gap: 0; }
    .step {
        padding: 0;
        padding-top: 64px;
        border-top: 1px solid rgba(245, 241, 234, 0.14);
        border-bottom: none;
        padding-right: 24px;
    }
    .step:last-child { border-bottom: none; }
    .step__num { top: 26px; left: 0; }
    /* ხაზზე პატარა მარკერი */
    .step::before {
        content: "";
        position: absolute;
        top: -5px; left: 0;
        width: 9px; height: 9px;
        border-radius: 50%;
        background: var(--wood);
    }
}

/* ≥ 1024px — hero ტიპოგრაფიის სუნთქვა */
@media (min-width: 1024px) {
    .hero__content { max-width: 800px; }
}

/* მობილური მენიუ — overlay პანელი (< 768px) */
@media (max-width: 767px) {
    .nav {
        position: fixed;
        inset: var(--nav-h) 0 auto 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 12px var(--gutter) 28px;
        background: rgba(245, 241, 234, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        transition: transform var(--t-med);
    }
    body.menu-open .nav { transform: translateY(0); }
    .nav__link {
        width: 100%;
        color: var(--brown-soft);
        padding: 16px 0;
        border-bottom: 1px solid var(--line);
        font-size: 1.05rem;
    }
    .nav__link::after { display: none; }
}

/* ============================================================
   prefers-reduced-motion — მოძრაობის შემცირება (წვდომადობა)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
