/* ==========================================================================
   SG Partneri — styles
   Idea: the page is built like a kitchen front. Flat panels, thin "reveal"
   gaps between them, and one red accent that behaves like a door handle.
   ========================================================================== */

:root {
  --graphite: #1c1d1f;      /* matte lacquer */
  --deep: #0f1011;          /* shadow gap between panels */
  --lacquer: #f3f3f1;       /* white lacquer */
  --fog: #e6e6e2;
  --line: rgba(28, 29, 31, .16);
  --muted: #5d5f63;
  --red: #da251c;           /* from the logo */
  --red-bright: #ff5147;    /* same red, tuned for dark backgrounds */

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --maxw: 1480px;
  --gap: 4px;               /* the reveal between panels */
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-stretch: 100%;
  font-size: clamp(16px, .35vw + 15px, 18px);
  line-height: 1.65;
  color: var(--graphite);
  background: var(--lacquer);
  -webkit-font-smoothing: antialiased;
  hyphens: auto;
  overflow-wrap: break-word;
}

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

h1, h2, h3 {
  margin: 0;
  font-weight: 300;
  font-stretch: 125%;
  letter-spacing: -.015em;
  line-height: 1.12;
}

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}

.wrap      { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.wrap-wide { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 30px;
  font: inherit; font-weight: 500; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; border: 1px solid transparent; border-radius: 2px;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #b51d16; }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { color: inherit; border-color: rgba(243, 243, 241, .5); }
.btn-ghost:hover { border-color: var(--lacquer); background: rgba(243, 243, 241, .09); }
.btn-dark { color: var(--graphite); border-color: rgba(28, 29, 31, .5); background: transparent; }
.btn-dark:hover { border-color: var(--graphite); background: rgba(28, 29, 31, .06); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad)));
  color: var(--lacquer);
  transition: background-color .3s, padding .3s;
}
.site-header.scrolled {
  background: rgba(28, 29, 31, .95);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.brand svg { height: 28px; width: auto; display: block; }
.brand span {
  font-weight: 500; font-stretch: 125%; font-size: .78rem;
  letter-spacing: .34em; text-transform: uppercase;
}

.nav { display: flex; gap: clamp(20px, 2.6vw, 44px); margin-left: auto; font-size: .93rem; }
.nav a {
  text-decoration: none; opacity: .88; padding: 6px 0;
  text-decoration-line: underline; text-decoration-color: transparent;
  text-decoration-thickness: 2px; text-underline-offset: 8px;
  transition: text-decoration-color .2s, opacity .2s;
}
.nav a:hover { opacity: 1; text-decoration-color: var(--red-bright); }

.header-tools { display: flex; align-items: center; gap: 20px; }
.lang { display: flex; gap: 2px; font-size: .85rem; }
.lang button {
  background: none; border: 0; color: inherit; font: inherit; font-weight: 500;
  padding: 6px 8px; cursor: pointer; opacity: .55;
  border-bottom: 2px solid transparent;
}
.lang button[aria-pressed="true"] { opacity: 1; border-bottom-color: var(--red-bright); }
.lang button:hover { opacity: 1; }

.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; color: inherit; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .25s, top .25s; }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--lacquer); background: var(--graphite); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 16, 17, .66) 0%, rgba(15, 16, 17, .10) 34%, rgba(15, 16, 17, .90) 100%),
    linear-gradient(90deg, rgba(15, 16, 17, .55) 0%, rgba(15, 16, 17, 0) 62%),
    url("hero.webp") center 38% / cover no-repeat,
    var(--graphite);
}
.hero-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 150px var(--pad) clamp(56px, 11vh, 120px);
}
.hero h1 {
  max-width: 15em;
  font-size: clamp(2rem, 5.2vw, 4.9rem);
  text-wrap: balance;
}
.lead {
  max-width: 34em; margin: 28px 0 0;
  font-size: clamp(1rem, .5vw + .9rem, 1.2rem);
  color: rgba(243, 243, 241, .86);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* ---------- About ---------- */
.about { padding: clamp(80px, 13vw, 180px) 0; background: var(--lacquer); }
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 7vw, 120px); align-items: start; }
.about h2 { font-size: clamp(1.7rem, 3.4vw, 3.1rem); }
.about-text p { margin: 0 0 1.3em; max-width: 36em; color: #34363a; }
.about-text p:last-child { margin-bottom: 0; }

/* ---------- Category panels ---------- */
.panels-sec { background: var(--deep); color: var(--lacquer); padding-top: clamp(64px, 9vw, 120px); }
.panels-sec h2 { font-size: clamp(1.5rem, 2.6vw, 2.4rem); margin-bottom: clamp(28px, 4vw, 52px); }
.panels { display: flex; gap: var(--gap); height: clamp(440px, 72vh, 760px); }
.panel {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  display: block; text-decoration: none; color: var(--lacquer);
  background: #2a2b2e;
}
.panel-kitchens { flex: 2 1 0; }
.panel-media { position: absolute; inset: 0; }
.panel-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.panel:hover .panel-media img { transform: scale(1.03); }
.panel-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 4px;
  padding: 100px clamp(16px, 1.8vw, 30px) clamp(20px, 2.4vw, 34px);
  background: linear-gradient(180deg, transparent, rgba(15, 16, 17, .86));
}
.panel-label strong { font-weight: 500; font-stretch: 112%; font-size: clamp(1rem, 1.35vw, 1.4rem); line-height: 1.2; }
.panel-label span { font-size: .86rem; opacity: .82; max-width: 22em; line-height: 1.45; }
/* the red "handle" */
.handle {
  position: absolute; top: 50%; right: 14px; width: 3px; height: 84px;
  background: var(--red); transform: translateY(-50%) scaleY(.55);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.panel:hover .handle, .panel:focus-visible .handle { transform: translateY(-50%) scaleY(1); }

/* ---------- Portfolio ---------- */
.portfolio { padding: clamp(72px, 10vw, 140px) 0; background: var(--lacquer); }
.portfolio-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.portfolio h2 { font-size: clamp(1.7rem, 3.4vw, 3.1rem); }
.filters { display: flex; gap: clamp(16px, 2.2vw, 30px); overflow-x: auto; max-width: 100%; padding-bottom: 2px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: none; background: none; border: 0; border-bottom: 2px solid transparent;
  font: inherit; font-size: .95rem; color: var(--muted);
  padding: 8px 0; cursor: pointer; white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.filters button:hover { color: var(--graphite); }
.filters button[aria-pressed="true"] { color: var(--graphite); border-bottom-color: var(--red); font-weight: 500; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: clamp(28px, 4vw, 52px); }
.tile {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3;
  margin: 0; padding: 0; border: 0; overflow: hidden;
  background: #2a2b2e; color: var(--lacquer);
  text-align: left; font: inherit; cursor: zoom-in;
}
.tile:disabled { cursor: default; }
.tile-media { position: absolute; inset: 0; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.tile:not(.is-empty):hover .tile-media img { transform: scale(1.035); }
.tile-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: 64px 20px 16px;
  background: linear-gradient(180deg, transparent, rgba(15, 16, 17, .8));
}
.tile-title { font-weight: 500; font-size: 1rem; line-height: 1.3; }
.tile-meta { display: flex; justify-content: space-between; gap: 12px; font-size: .82rem; opacity: .8; }
.tile::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: var(--red); transition: width .4s cubic-bezier(.2, .7, .2, 1);
}
.tile:not(.is-empty):hover::after, .tile:not(.is-empty):focus-visible::after { width: 100%; }
.more-wrap { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 56px); }

/* ---------- Values ---------- */
.values { padding: clamp(72px, 10vw, 140px) 0; background: var(--fog); }
.values h2 { font-size: clamp(1.5rem, 2.8vw, 2.6rem); margin-bottom: clamp(36px, 5vw, 72px); }
.values-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.values-list li { position: relative; padding: 30px clamp(14px, 2vw, 30px) 0 0; }
.values-list li::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 3px; background: var(--red); }
.values-list h3 { font-size: 1.12rem; font-weight: 500; font-stretch: 110%; margin-bottom: 10px; }
.values-list p { margin: 0; color: #3a3c40; font-size: .95rem; max-width: 22em; }

/* ---------- Contact ---------- */
.contact { padding: clamp(80px, 11vw, 160px) 0; background: var(--graphite); color: var(--lacquer); }
.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact h2 { font-size: clamp(1.7rem, 3.4vw, 3.1rem); }
.contact-intro p { margin: 26px 0 0; max-width: 28em; color: rgba(243, 243, 241, .8); }
.contact-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list li > span:first-child { font-size: .82rem; color: rgba(243, 243, 241, .6); }
.contact-list a { text-decoration: none; font-size: 1.1rem; }
.contact-list a:hover { text-decoration: underline; text-decoration-color: var(--red-bright); text-underline-offset: 6px; }
.contact-list li > span:last-child { font-size: 1.1rem; }

.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 26px; }
.field label { font-size: .86rem; color: rgba(243, 243, 241, .7); }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; color: var(--lacquer);
  font: inherit; font-size: 1.02rem;
  border: 0; border-bottom: 1px solid rgba(243, 243, 241, .38); border-radius: 0;
  padding: 10px 0; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select option { color: #111; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--red-bright); box-shadow: 0 1px 0 var(--red-bright);
}
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: var(--red-bright); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: rgba(243, 243, 241, .78); cursor: pointer; margin-bottom: 30px; }
.consent input { accent-color: var(--red); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.form-status { margin: 0; font-size: .95rem; min-height: 1.5em; }
.form-status[data-state="ok"] { color: var(--lacquer); }
.form-status[data-state="error"] { color: var(--red-bright); }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: rgba(243, 243, 241, .75); padding: clamp(44px, 6vw, 72px) 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.footer-logo { height: 72px; width: auto; color: var(--lacquer); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: .93rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--lacquer); text-decoration: underline; text-decoration-color: var(--red-bright); text-underline-offset: 6px; }
.copy { margin: 0; font-size: .85rem; width: 100%; padding-top: 24px; border-top: 1px solid rgba(243, 243, 241, .12); }

/* ---------- Photo viewer ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; color: var(--lacquer); }
.lightbox::backdrop { background: rgba(10, 10, 11, .95); }
.lightbox[open] { display: block; }
.lb-inner { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px clamp(16px, 6vw, 88px) 24px; }
.lb-img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; }
.lb-cap { margin: 16px 0 0; font-size: .92rem; opacity: .88; text-align: center; white-space: pre-wrap; }
.lb-btn { position: absolute; background: none; border: 0; color: var(--lacquer); font: inherit; cursor: pointer; line-height: 1; padding: 12px 16px; opacity: .8; }
.lb-btn:hover { opacity: 1; }
.lb-btn[hidden] { display: none; }
.lb-close { top: 10px; right: 10px; font-size: 2.4rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 3.4rem; }
.lb-prev { left: 4px; }
.lb-next { right: 4px; }

/* ---------- Opening doors (the one deliberate animation) ---------- */
.intro { position: fixed; inset: 0; z-index: 200; pointer-events: none; animation: intro-hide 0s linear 2.1s forwards; }
.door { position: absolute; top: 0; bottom: 0; width: 50.2%; background: var(--graphite); will-change: transform; }
.door-l { left: 0;  border-right: 3px solid var(--red); animation: door-l 1.15s cubic-bezier(.77, 0, .18, 1) .9s forwards; }
.door-r { right: 0; animation: door-r 1.15s cubic-bezier(.77, 0, .18, 1) .9s forwards; }
.intro-logo { position: absolute; left: 50%; top: 50%; width: min(260px, 52vw); height: auto; color: var(--lacquer); transform: translate(-50%, -50%); animation: logo-out .35s ease .55s forwards; }
@keyframes door-l { to { transform: translateX(-101%); } }
@keyframes door-r { to { transform: translateX(101%); } }
@keyframes logo-out { to { opacity: 0; } }
@keyframes intro-hide { to { visibility: hidden; } }
.no-intro .intro { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .values-list { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .panels { flex-direction: column; height: auto; }
  .panel { flex: none; height: 260px; }
  .panel-kitchens { height: 360px; }
}

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0; padding: 8px var(--pad) 24px;
    background: rgba(28, 29, 31, .98); font-size: 1.1rem;
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(243, 243, 241, .1); }
  .site-header.menu-open { background: rgba(28, 29, 31, .98); }
  .site-header.menu-open .nav { display: flex; }
}

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .values-list { grid-template-columns: 1fr; row-gap: 32px; }
  .brand span { letter-spacing: .26em; }
  .hero-cta .btn { flex: 1 1 100%; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; font-size: 2.6rem; }
  .lb-cap { margin-bottom: 40px; }
}

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