/* ============================================================
   Ivco — Modern site styles
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #0b0b0d;
  --bg-2: #101013;
  --surface: #16161a;
  --surface-2: #1d1d22;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f4;
  --text-2: #c7c7cc;
  --muted: #9c9ca5;
  --accent: #d8a94e;
  --accent-2: #ecc271;
  --accent-ink: #1a1206;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --container: 1200px;
  --accent-rgb: 216, 169, 78;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Inter", sans-serif;
  --nav-color: #c7c7cc;
  --nav-color-hover: #ffffff;
  --nav-phone-color: #ffffff;
  --nav-lang-color: #9c9ca5;
  --footer-logo-filter: none;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Layout helpers ---------- */
.container { width: min(var(--container), 100% - 3rem); margin-inline: auto; }
.section { padding: 6.5rem 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.78rem; font-weight: 600; color: var(--accent-2);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-top: 0.8rem; }
.section-sub { color: var(--muted); margin-top: 1rem; font-size: 1.02rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.95rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, border-color 0.3s;
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 12px 32px rgba(var(--accent-rgb), 0.26);
}
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(var(--accent-rgb), 0.4); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.28); color: #fff; background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.45); transform: translateY(-3px); }

/* ---------- Skip link ---------- */
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 300; background: var(--accent); color: var(--accent-ink); padding: 0.7rem 1.1rem; border-radius: 8px; font-weight: 600; transition: top 0.3s; }
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 1.15rem 0; transition: background 0.35s, box-shadow 0.35s, padding 0.35s; }
.site-header.scrolled { background: rgba(11, 11, 13, 0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--border); padding: 0.7rem 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand-logo { height: 42px; width: auto; }
.main-nav { display: flex; gap: 2rem; }
.main-nav a { position: relative; color: var(--nav-color); font-weight: 500; font-size: 0.95rem; padding: 0.3rem 0; transition: color 0.25s; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--accent); transition: width 0.3s var(--ease); }
.main-nav a:hover, .main-nav a.is-active { color: var(--nav-color-hover); }
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-phone { font-weight: 600; font-size: 0.95rem; color: var(--nav-phone-color); }
.lang { color: var(--nav-lang-color); font-weight: 600; font-size: 0.9rem; padding: 0.3rem 0.5rem; }
.lang:hover { color: var(--accent-2); }
.btn-nav { padding: 0.7rem 1.3rem; font-size: 0.9rem; }

/* Hamburger */
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.18); align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 90; background: rgba(11, 11, 13, 0.97); backdrop-filter: blur(12px); padding: 7rem 1.5rem 2rem; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu a { padding: 1rem 0.25rem; font-size: 1.4rem; font-weight: 600; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media img { animation: heroZoom 20s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,13,0.62) 0%, rgba(11,11,13,0.28) 45%, rgba(11,11,13,0.94) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 860px; padding-top: 4rem; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); font-weight: 800; line-height: 1.04; margin: 1.1rem 0 1.3rem; color: #fff; }
.text-gradient { background: linear-gradient(90deg, var(--accent-2), var(--accent) 60%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: rgba(255, 255, 255, 0.85); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 560px; }
.hero-panel {
  background: rgba(11, 11, 13, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 1.6rem 1.8rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.scroll-hint { position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.5); border-radius: 14px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: var(--accent-2); border-radius: 2px; animation: scrollHint 1.8s infinite; }
@keyframes scrollHint { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ---------- Stats ---------- */
.stats { background: var(--bg-2); border-block: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2.2rem 1rem; text-align: center; display: flex; flex-direction: column; gap: 0.2rem; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-value { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: var(--accent-2); }
.stat-label { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about-badge { position: absolute; left: -1rem; bottom: 2rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.4rem; display: flex; align-items: baseline; gap: 0.5rem; box-shadow: var(--shadow); }
.about-badge span { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--accent-2); }
.about-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 0.8rem 0 1.2rem; }
.about-copy p { color: var(--muted); margin-bottom: 1rem; }
.check-list { margin: 1.4rem 0 2rem; display: grid; gap: 0.6rem; }
.check-list li { display: flex; align-items: center; gap: 0.7rem; color: var(--text-2); font-weight: 500; }
.check-list li::before { content: "✓"; color: var(--accent-2); font-weight: 700; }

/* ---------- Services ---------- */
.services { background: var(--bg-2); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.6rem; transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s; }
.card:hover { transform: translateY(-8px); border-color: rgba(var(--accent-rgb), 0.4); background: var(--surface-2); }
.card svg { width: 34px; height: 34px; color: var(--accent-2); margin-bottom: 1.2rem; }
.card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Gallery ---------- */
.gallery-grid { columns: 4; column-gap: 1.1rem; }
.gallery-item { position: relative; display: block; break-inside: avoid; margin: 0 0 1.1rem; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.gallery-item img { width: 100%; height: auto; transition: transform 0.6s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-zoom { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.55)); opacity: 0; transition: opacity 0.35s; }
.gallery-item:hover .gallery-zoom { opacity: 1; }
.gallery-zoom > span { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; transform: scale(0.7); transition: transform 0.35s var(--ease); }
.gallery-item:hover .gallery-zoom > span { transform: scale(1); }
.gallery-zoom > span::before { content: "+"; font-size: 1.7rem; font-weight: 600; line-height: 1; }

/* ---------- Reviews ---------- */
.reviews { background: var(--bg-2); }
.reviews-grid { columns: 3; column-gap: 1.2rem; }
.review { break-inside: avoid; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; margin-bottom: 1.2rem; }
.review .quote-mark { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--accent); }
.review p { color: var(--text-2); margin: 0.8rem 0 1.4rem; }
.review footer { display: flex; align-items: center; gap: 0.9rem; }
.review .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; }
.review .name { font-weight: 600; }
.review .stars { color: var(--accent-2); font-size: 0.85rem; letter-spacing: 0.1em; }

/* ---------- Contact / Quote form ---------- */
.contact { background: var(--bg-2); border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: start; }
.contact-info h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin: 0.8rem 0 1.1rem; }
.contact-info > p { color: var(--muted); margin-bottom: 1.6rem; }
.contact-phone { display: inline-flex; align-items: center; gap: 1rem; padding: 1rem 1.3rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: border-color 0.25s, transform 0.25s; }
.contact-phone:hover { border-color: rgba(var(--accent-rgb), 0.5); transform: translateY(-2px); }
.contact-phone svg { width: 26px; height: 26px; color: var(--accent-2); flex-shrink: 0; }
.contact-phone span { display: flex; flex-direction: column; line-height: 1.25; }
.contact-phone small { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.contact-phone strong { font-size: 1.15rem; }
.contact-meta { margin-top: 1.6rem; display: grid; gap: 0.6rem; }
.contact-meta li { display: flex; align-items: center; gap: 0.6rem; color: var(--text-2); }
.contact-meta li::before { content: "✓"; color: var(--accent-2); font-weight: 700; }

.quote-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.field { margin-bottom: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-2); margin-bottom: 0.4rem; letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); padding: 0.8rem 1rem; font: inherit; font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #6b6b73; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18); }
.field input.invalid, .field textarea.invalid { border-color: #e5484d; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239c9ca5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.btn-block { width: 100%; }
.form-status { margin-top: 0.9rem; font-size: 0.9rem; min-height: 1.4em; }
.form-status.success { color: #6ee7a0; }
.form-status.error { color: #f1a5a8; }
.form-note { margin-top: 0.5rem; font-size: 0.78rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 4rem 0 2rem; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand img { height: 44px; margin-bottom: 1rem; filter: var(--footer-logo-filter); }
.footer-brand p { color: var(--muted); font-size: 0.95rem; max-width: 300px; }
.footer-col h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.1rem; color: var(--text); }
.footer-col a, .footer-col span { display: block; color: var(--muted); padding: 0.3rem 0; font-size: 0.95rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }
.socials { display: flex; gap: 0.7rem; }
.socials a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-2); transition: 0.25s; }
.socials a:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.socials svg { width: 18px; height: 18px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 5, 7, 0.94); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox-figure { max-width: min(1100px, 100%); max-height: 82vh; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.lightbox-figure img { max-width: 100%; max-height: 74vh; object-fit: contain; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox-figure figcaption { display: flex; gap: 1rem; align-items: center; color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }
#lightbox-caption { color: #fff; font-weight: 500; }
#lightbox-counter { color: rgba(255, 255, 255, 0.55); }
.lightbox-close { position: absolute; top: 1.4rem; right: 1.4rem; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.08); color: #fff; font-size: 1.8rem; line-height: 1; display: grid; place-items: center; transition: 0.25s; }
.lightbox-close:hover { background: var(--accent); color: var(--accent-ink); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.08); color: #fff; font-size: 2rem; display: grid; place-items: center; transition: 0.25s; }
.lightbox-nav:hover { background: var(--accent); color: var(--accent-ink); }
.lightbox-prev { left: 1.4rem; }
.lightbox-next { right: 1.4rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Misc ---------- */
body.no-scroll { overflow: hidden; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { columns: 3; }
  .reviews-grid { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .nav-phone, .btn-nav { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2), .stat:nth-child(3), .stat:nth-child(4) { border-left: none; }
}
@media (max-width: 600px) {
  .section { padding: 4.5rem 0; }
  .hero-panel { padding: 1.25rem; }
  .gallery-grid { columns: 2; column-gap: 0.8rem; }
  .gallery-item { margin-bottom: 0.8rem; }
  .reviews-grid { columns: 1; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .lightbox { padding: 1rem; }
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

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