/*
 * FAVO site styles — brand tokens, layout and components shared by both language pages
 * (index.html = Georgian, en/index.html = English). No build step: edit and reload.
 */

:root {
  --bordeaux: #7B1B38;
  --bordeaux-deep: #5E1429;
  --camel: #B88A5E;
  --camel-light: #D9B48C;
  --espresso: #3A2420;
  --cream: #F6F0E8;
  --sand: #EFE6DA;
  --silver: #CBC7C1;
  --white: #FFFFFF;
  --text: var(--espresso);
  --text-soft: #6E5A54;
  --line: rgba(58, 36, 32, 0.1);
  /* Montserrat has no Georgian glyphs — the browser falls back to Noto Sans Georgian per character */
  --font: 'Montserrat', 'Noto Sans Georgian', system-ui, sans-serif;
  --radius: 10px;
  --wrap: 1160px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
:focus-visible { outline: 2px solid var(--camel); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 50;
  padding: 10px 14px; border-radius: 8px;
  background: var(--espresso); color: var(--cream); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 8px; border: 1.5px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn-primary { background: var(--bordeaux); color: var(--cream); }
.btn-primary:hover { background: var(--bordeaux-deep); }
.btn-accent { background: var(--camel); color: var(--espresso); }
.btn-accent:hover { background: var(--camel-light); }
.btn-outline { border-color: var(--cream); color: var(--cream); }
.btn-outline:hover { background: rgba(246, 240, 232, 0.12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--cream); border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; gap: 22px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--bordeaux); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-word { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 24px; letter-spacing: 0.04em; }

.main-nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 500; }
.main-nav a { text-decoration: none; }
.main-nav a:hover { color: var(--bordeaux); }

.lang-switch {
  padding: 4px 9px; border: 1px solid currentColor; border-radius: 6px;
  font-size: 13px; font-weight: 600; text-decoration: none;
}
.lang-switch:hover { color: var(--bordeaux); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bordeaux); color: var(--cream); }
.hero .wrap { position: relative; padding-top: 96px; padding-bottom: 104px; }
.hero-mark {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: 420px; height: 420px; color: var(--cream);
  /* opacity on the whole mark — the filled cell has its own fill color, so a translucent `color` would not fade it */
  opacity: 0.12;
}
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: var(--camel-light); }
.hero h1 { max-width: 780px; margin-top: 16px; font-size: clamp(32px, 5vw, 54px); font-weight: 700; }
.hero p { max-width: 620px; margin: 20px 0 0; font-size: 18px; color: rgba(246, 240, 232, 0.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-white { background: var(--white); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; color: var(--bordeaux); }
.section-head p { margin: 12px 0 0; font-size: 17px; color: var(--text-soft); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.service { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.service-icon { width: 30px; height: 32px; margin-bottom: 18px; color: var(--bordeaux); }
.service h3 { font-size: 18px; font-weight: 600; }
.service p { margin: 10px 0 0; font-size: 15px; color: var(--text-soft); }

/* ---------- Project gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.project-media {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3;
  padding: 0; border: 0; overflow: hidden; background: var(--sand); cursor: pointer;
}
div.project-media { cursor: default; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.project-media:hover img { transform: scale(1.03); }
.project-badge {
  position: absolute; left: 12px; top: 12px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--cream); color: var(--espresso); font-size: 12px; font-weight: 600;
}
.project-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--bordeaux); font-size: 14px; font-weight: 500;
}
.project-placeholder svg { width: 54px; height: 54px; }
.project-body { padding: 16px 18px 18px; }
.project-body h3 { font-size: 17px; font-weight: 600; }
.project-meta { margin: 4px 0 0; font-size: 14px; color: var(--text-soft); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--bordeaux); color: var(--cream); font-weight: 700;
}
.step h3 { font-size: 17px; font-weight: 600; }
.step p { margin: 8px 0 0; font-size: 15px; color: var(--text-soft); }

/* ---------- Designer ---------- */
.designer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.designer-photo {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius);
  background: var(--sand); color: var(--bordeaux);
}
.designer-photo img { width: 100%; height: 100%; object-fit: cover; }
.designer-photo svg { width: 96px; height: 96px; }
.designer h2 { font-size: 30px; font-weight: 700; color: var(--bordeaux); }
.designer-role { margin: 6px 0 0; font-weight: 600; color: var(--camel); }
.designer-bio { margin: 18px 0 0; font-size: 17px; }

/* Visible marker for content that is still missing — must not reach launch */
.pending { padding: 12px 14px; border: 1.5px dashed var(--camel); border-radius: 8px; color: var(--text-soft); font-style: italic; }

/* ---------- Contact ---------- */
.contact { background: var(--bordeaux); color: var(--cream); }
.contact .section-head h2 { color: var(--cream); }
.contact .section-head p { color: rgba(246, 240, 232, 0.85); }
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.contact-item {
  display: block; padding: 22px; text-decoration: none;
  border: 1px solid rgba(246, 240, 232, 0.18); border-radius: var(--radius);
  background: rgba(246, 240, 232, 0.08);
}
a.contact-item:hover { background: rgba(246, 240, 232, 0.14); }
.contact-label { display: block; font-size: 13px; font-weight: 600; color: var(--camel-light); }
.contact-value { display: block; margin-top: 6px; font-size: 20px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: rgba(246, 240, 232, 0.8); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.site-footer .brand { color: var(--cream); }
.site-footer .brand-mark { width: 28px; height: 28px; }
.site-footer .brand-word { font-size: 20px; }

/* ---------- Mobile call bar (shown only on phones) ---------- */
.call-bar { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { width: 100%; max-width: min(1100px, 94vw); padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(28, 16, 14, 0.9); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: 76vh; object-fit: contain; border-radius: 8px; background: #000; }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 15px; color: var(--cream); }
.lightbox-kind { font-weight: 600; color: var(--camel-light); }
.lightbox-controls { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; color: var(--cream); }
.lightbox-counter { margin-right: auto; font-size: 14px; }
.lightbox button {
  padding: 9px 14px; border: 1px solid rgba(246, 240, 232, 0.3); border-radius: 8px;
  background: rgba(246, 240, 232, 0.12); color: var(--cream); font: inherit; font-size: 14px; cursor: pointer;
}
.lightbox button:hover { background: rgba(246, 240, 232, 0.22); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .lang-switch { margin-left: auto; }
  .services, .gallery, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .step { min-height: 40px; padding-top: 0; padding-left: 60px; }
  .designer { grid-template-columns: 1fr; gap: 28px; }
  .designer-photo { max-width: 420px; }
}

@media (max-width: 640px) {
  body { padding-bottom: 54px; }
  .header-cta { display: none; }
  .hero .wrap { padding-top: 64px; padding-bottom: 72px; }
  .hero-mark { top: auto; bottom: -50px; right: -90px; transform: none; width: 260px; height: 260px; }
  .section { padding: 64px 0; }
  .services, .gallery, .contact-grid { grid-template-columns: 1fr; }
  .call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; }
  .call-bar a { padding: 15px; text-align: center; font-weight: 600; text-decoration: none; }
  .call-bar .call-phone { background: var(--bordeaux); color: var(--cream); }
  .call-bar .call-whatsapp { background: var(--camel); color: var(--espresso); }
}
