/* =========================================================
   Sevilir Kauçuk — Design System
   Minimal, premium, monochrome
   ========================================================= */

:root {
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --gray-900: #2a2a2a;
  --gray-700: #4a4a4a;        /* darker for AA contrast on white */
  --gray-600: #6b6b6b;        /* new: secondary body text */
  --gray-500: #767676;        /* darker muted — passes AA at 14px+ */
  --gray-400: #a0a0a0;        /* decorative only */
  --gray-300: #d4d4d4;
  --gray-200: #e5e5e5;
  --gray-100: #f4f4f4;
  --gray-50:  #fafafa;
  --paper:    #ffffff;
  --line:     #ececec;

  --font-display: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', Menlo, monospace;

  --container: 1480px;        /* unified — header + sections share same edge */
  --gutter: clamp(20px, 4vw, 56px);

  --radius: 999px;
  --radius-lg: 12px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* No-JS fallback: keep .reveal content visible if JS fails */
.no-js .reveal { opacity: 1 !important; transform: none !important; }

/* Reduced motion: skip reveal animations */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Focus-visible: clear keyboard focus ring on all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Better paragraph wrapping — fewer orphans */
p { text-wrap: pretty; }

/* Backdrop-filter fallback for older browsers */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: #ffffff !important; }
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-color: var(--ink) transparent;
  scrollbar-width: thin;
}

/* Webkit scrollbar (Chrome, Safari, Edge) */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--ink);
  border-radius: var(--radius);
}
::-webkit-scrollbar-thumb:hover { background: var(--gray-900); }

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

/* ---------- Layout ---------- */

.container,
.container-wide {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(80px, 10vw, 140px);
}

.section-sm {
  padding-top: clamp(60px, 7vw, 96px);
  padding-bottom: clamp(60px, 7vw, 96px);
}

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.display-1 {
  font-size: clamp(40px, 6.2vw, 84px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.display-2 {
  font-size: clamp(36px, 5.2vw, 68px);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.h-section {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.h-card {
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--gray-500);
}

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--gray-700);
  text-wrap: pretty;
  max-width: 60ch;
}

.body-text {
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.65;
  text-wrap: pretty;
  max-width: 62ch;
}

.muted { color: var(--gray-600); }
.mono { font-family: var(--font-mono); }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--radius);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1;
}
.btn-sm {
  padding: 12px 20px;
  font-size: 14px;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--gray-900);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--gray-300);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--gray-100);
  color: var(--ink);
}
.cta-band-actions .btn-ghost:hover {
  color: var(--ink) !important;
  border-color: var(--paper);
  background: var(--paper);
}

/* Arrow nudge on hover for any .btn */
.btn .arrow-svg { transition: transform .25s var(--ease); }
.btn:hover .arrow-svg { transform: translate(2px, -2px); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: gap .25s var(--ease);
}
.btn-link:hover { gap: 14px; }

.arrow-svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
  margin: 3px auto 0;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.lang-link {
  color: var(--gray-400);
  transition: color .2s var(--ease);
  padding: 4px 2px;
}
.lang-link:hover { color: var(--ink); }
.lang-link.is-active {
  color: var(--ink);
  font-weight: 500;
}
.lang-sep { color: var(--gray-300); font-size: 11px; }

/* Mobile CTA clone — hidden by default, shown only inside open mobile menu */
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: background .2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Hamburger → X */
.nav-toggle.is-active span { background: transparent; }
.nav-toggle.is-active span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-active span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    height: calc(100vh - 88px);
    height: calc(100dvh - 88px);
    z-index: 49;
    flex-direction: column;
    gap: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 16px var(--gutter) 24px;
    animation: slideDown .3s var(--ease);
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .nav-links.is-open li {
    width: 100%;
    text-align: center;
  }
  .nav-links.is-open a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    text-align: center;
  }
  .nav-links.is-open a.active::after { display: none; }
  /* Show CTA inside open menu */
  .nav-links.is-open .nav-cta-mobile {
    display: block;
    padding: 24px 0 0;
    border-bottom: 0;
  }
  .nav-links.is-open .nav-cta-mobile .btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    background: var(--ink);
    color: var(--paper);
    border: none;
  }
  .nav-links.is-open .nav-cta-mobile .btn:hover {
    background: var(--gray-900);
    color: var(--paper);
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--gray-300);
  padding: 80px 0 40px;
  margin-top: 0;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
}
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 20px;
}
.site-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer a {
  color: var(--gray-300);
  font-size: 14px;
  transition: color .2s var(--ease);
}
.site-footer a:hover { color: var(--paper); }
.site-footer .brand-block img {
  height: 42px;
  width: auto;
  margin-bottom: 24px;
}
.site-footer .brand-block p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-500);
  max-width: 36ch;
}
.site-footer-bottom {
  border-top: 1px solid #2a2a2a;
  margin-top: 64px;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--gray-500);
}

@media (max-width: 880px) {
  .site-footer .container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .site-footer .brand-block { grid-column: 1 / -1; }
  .site-footer-bottom { flex-direction: column; gap: 12px; }
}

/* ---------- Cards & utilities ---------- */

.kicker {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 64px;
}
.kicker-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-500);
  letter-spacing: 0.08em;
}

/* WhatsApp floating */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  transition: transform .25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s var(--ease);
}
.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover { background: var(--gray-900); }
.scroll-top svg { width: 18px; height: 18px; stroke: var(--paper); fill: none; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Product visuals — real photo frames */
.product-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--gray-100);
  overflow: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .4s var(--ease);
}
.product-visual.is-photo {
  background: var(--gray-100);
  padding: 0;
}
.product-visual.is-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8%;
  transition: transform .6s var(--ease);
}
/* Dark renders already include their own bg — fill edge-to-edge with no padding */
.product-visual.is-photo.bg-dark img {
  object-fit: cover;
  padding: 0;
}
.product-card:hover .product-visual.is-photo img {
  transform: scale(1.06);
}
.product-visual.is-photo.bg-dark { background: var(--ink); }
.product-visual.is-photo.bg-cream { background: #e8e6e2; }

/* Product card — elevated, clearly clickable */
.product-card {
  display: block;
  cursor: pointer;
  position: relative;
  transition: transform .4s var(--ease);
}
.product-card:hover { transform: translateY(-4px); }
.product-card:hover .product-visual { background: var(--gray-200); }
.product-card:hover .product-visual.bg-dark { background: #1a1a1a; }
.product-card:hover .product-visual.bg-cream { background: #ddd9d2; }
