/* ===================================================
   TIP TOP BAU — Complete Clean Rewrite
   =================================================== */
:root {
  --anthracite: #1c1e21;
  --concrete-dark: #242628;
  --concrete-mid: #2e3033;
  --concrete-light: #3a3d41;
  --text-white: #f0eeeb;
  --text-light: #d5d2cd;
  --text-muted: #8a8884;
  --text-dim: #5e5c58;
  --line: rgba(240,238,235,0.08);
  --line-hover: rgba(240,238,235,0.2);
}

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

/* KILL HORIZONTAL SCROLL */
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--anthracite);
  color: var(--text-light);
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--text-white); color: var(--anthracite); }

body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9998; opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.25rem 3.5rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.4s ease;
}
.nav.scrolled {
  padding: 0.7rem 3.5rem;
  background: rgba(28,30,33,0.95);
  backdrop-filter: blur(20px);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 42px; filter: brightness(0) invert(0.95); transition: height 0.4s; }
.nav.scrolled .nav-logo img { height: 32px; }

.nav-center { display: flex; align-items: center; gap: 0.3rem; list-style: none; }
.nav-center a {
  color: var(--text-light); text-decoration: none;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 0.55rem 1.1rem; transition: all 0.3s;
}
.nav-center a:hover, .nav-center a.active { color: var(--text-white); background: rgba(240,238,235,0.08); }

.nav-phone {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--anthracite); text-decoration: none;
  font-size: 0.82rem; font-weight: 700;
  padding: 0.6rem 1.4rem; background: var(--text-white); transition: all 0.3s;
}
.nav-phone:hover { background: #fff; }
.nav-phone svg { width: 14px; height: 14px; }

.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; padding: 4px; z-index: 1001; }
.hamburger span { display: block; width: 26px; height: 1.5px; background: var(--text-white); }

.mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(28,30,33,0.98);
  z-index: 999; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
  opacity: 0; visibility: hidden; transition: all 0.4s;
}
.mobile-overlay.active { opacity: 1; visibility: visible; }
.mobile-overlay a { font-size: 1.8rem; font-weight: 700; color: var(--text-light); text-decoration: none; }

/* ===== SHARED ===== */
.container { max-width: 1500px; margin: 0 auto; }
section { padding: 6rem 3.5rem; }
.divider { height: 1px; background: var(--line); max-width: 1500px; margin: 0 auto; }

.label {
  font-size: 0.6rem; letter-spacing: 5px; text-transform: uppercase;
  color: var(--text-dim); font-weight: 600; margin-bottom: 2rem;
  display: flex; align-items: center; gap: 1.2rem;
}
.label::before { content: ''; width: 20px; height: 1px; background: var(--text-dim); }

.heading { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; line-height: 1.05; color: var(--text-white); letter-spacing: -1px; }
.heading .light { font-weight: 200; color: var(--text-muted); }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: 'Outfit', sans-serif; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 1rem 2rem;
  text-decoration: none; cursor: pointer; border: none; transition: all 0.3s;
}
.btn-fill { background: var(--text-white); color: var(--anthracite); }
.btn-fill:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--text-light); border: 1px solid var(--line-hover); }
.btn-ghost:hover { border-color: var(--text-light); }

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 10rem 3.5rem 4rem; border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .heading { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 1rem; }
.page-hero p { color: var(--text-muted); font-weight: 300; font-size: 1.05rem; line-height: 1.7; max-width: 550px; }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.gallery-row { display: grid; gap: 4px; grid-column: 1 / -1; }
.gallery-row.feat-left { grid-template-columns: 3fr 2fr; grid-template-rows: 1fr 1fr; height: 500px; }
.gallery-row.feat-left .masonry-item:first-child { grid-row: 1 / 3; }
.gallery-row.feat-right { grid-template-columns: 2fr 3fr; grid-template-rows: 1fr 1fr; height: 500px; }
.gallery-row.feat-right .masonry-item:nth-child(3) { grid-column: 2; grid-row: 1 / 3; }
.gallery-row.feat-right .masonry-item:first-child { grid-column: 1; grid-row: 1; }
.gallery-row.feat-right .masonry-item:nth-child(2) { grid-column: 1; grid-row: 2; }
.gallery-row.trio { grid-template-columns: repeat(3, 1fr); height: 320px; }
.gallery-row.duo { grid-template-columns: 1fr 1fr; height: 360px; }

.masonry-item { position: relative; overflow: hidden; cursor: pointer; }
.masonry-item img, .masonry-item video {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) brightness(0.92); transition: all 0.6s ease;
}
.masonry-item:hover img, .masonry-item:hover video { filter: saturate(1) brightness(1); transform: scale(1.04); }
.masonry-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(28,30,33,0); transition: background 0.4s;
}
.masonry-item:hover .masonry-overlay { background: rgba(28,30,33,0.3); }
.masonry-plus {
  width: 40px; height: 40px; border: 1px solid rgba(240,238,235,0.5);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-white); font-size: 1.2rem; font-weight: 200;
  opacity: 0; transform: scale(0.7); transition: all 0.4s;
}
.masonry-item:hover .masonry-plus { opacity: 1; transform: scale(1); }
.masonry-item .play-icon {
  position: absolute; top: 1rem; left: 1rem; width: 32px; height: 32px;
  background: rgba(28,30,33,0.7); border: 1px solid rgba(240,238,235,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-white); font-size: 0.7rem; z-index: 2; pointer-events: none;
}

/* ===== SERVICES ===== */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.svc-card { background: var(--concrete-dark); position: relative; overflow: hidden; }
.svc-card-visual { width: 100%; aspect-ratio: 16/9; object-fit: cover; filter: brightness(0.7) saturate(0.85); transition: all 0.7s; }
.svc-card:hover .svc-card-visual { filter: brightness(0.8) saturate(1); transform: scale(1.04); }
.svc-card-body { padding: 2.5rem; border-top: 1px solid var(--line); }
.svc-card-num { font-size: 0.55rem; letter-spacing: 3px; color: var(--text-dim); margin-bottom: 0.75rem; }
.svc-card-title { font-size: 1.6rem; font-weight: 700; color: var(--text-white); margin-bottom: 1rem; }
.svc-card-text { font-size: 0.9rem; line-height: 1.7; color: var(--text-muted); font-weight: 300; }
.svc-card-line { width: 24px; height: 1px; background: var(--text-dim); margin-top: 1.5rem; transition: width 0.4s; }
.svc-card:hover .svc-card-line { width: 50px; background: var(--text-white); }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; }
.contact-row { display: flex; align-items: flex-start; gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.contact-row:first-child { border-top: 1px solid var(--line); }
.contact-icon { width: 38px; height: 38px; flex-shrink: 0; border: 1px solid var(--line-hover); display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.contact-label { font-size: 0.6rem; letter-spacing: 3px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.35rem; }
.contact-value { font-size: 1.05rem; color: var(--text-white); }
.contact-value a { color: var(--text-white); text-decoration: none; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: span 2; }
.field label { font-size: 0.6rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); }
.field input, .field textarea, .field select {
  background: var(--anthracite); border: 1px solid var(--line);
  padding: 0.85rem 1rem; color: var(--text-white);
  font-family: 'Outfit', sans-serif; font-size: 0.9rem; font-weight: 300;
  outline: none; width: 100%; transition: border-color 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--text-dim); }
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url('data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%238a8884%22 stroke-width=%222%22><path d=%22M6 9l6 6 6-6%22/></svg>');
  background-repeat: no-repeat; background-position: right 1rem center;
}
.field select option { background: var(--concrete-dark); }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 10000; background: rgba(28,30,33,0.97);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.4s; cursor: zoom-out;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img, .lightbox video { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 2rem; right: 2rem; width: 44px; height: 44px;
  background: none; border: 1px solid var(--line-hover); color: var(--text-muted);
  font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(25px); transition: all 0.7s ease; }
.reveal.vis { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: 0.1s; }
.rd2 { transition-delay: 0.2s; }
.rd3 { transition-delay: 0.3s; }

/* ===== STICKY CTA ===== */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: rgba(28,30,33,0.95); border-top: 1px solid var(--line);
  padding: 0.6rem 3.5rem;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  transform: translateY(100%); transition: transform 0.4s ease;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta-phone {
  display: flex; align-items: center; gap: 0.5rem;
  background: #22c55e; color: #fff; text-decoration: none;
  padding: 0.7rem 1.5rem; font-family: 'Outfit', sans-serif;
  font-size: 0.82rem; font-weight: 700; white-space: nowrap;
}
.sticky-cta-phone svg { width: 16px; height: 16px; }
.sticky-cta-msg {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--text-white); color: var(--anthracite); text-decoration: none;
  padding: 0.7rem 1.5rem; font-family: 'Outfit', sans-serif;
  font-size: 0.82rem; font-weight: 700; white-space: nowrap;
}
body.has-sticky { padding-bottom: 60px; }


/* ===========================================================
   MOBILE — one block, no conflicts
   =========================================================== */
@media (max-width: 768px) {
  section { padding: 2.5rem 1rem; }
  .heading { font-size: 1.7rem !important; }
  .btn { padding: 0.75rem 1.2rem; font-size: 0.78rem; min-height: 44px; }

  /* Nav — not sticky on mobile */
  .nav { padding: 0.6rem 1rem; position: absolute; }
  .nav.scrolled { position: absolute; padding: 0.6rem 1rem; background: none; border-bottom: none !important; box-shadow: none; backdrop-filter: none; }
  .nav-logo img { height: 34px; }
  .nav.scrolled .nav-logo img { height: 34px; }
  .nav-center, .nav-phone { display: none; }
  .hamburger { display: flex; }
  .mobile-overlay { display: flex; }

  /* Hero — mobile: different bg, compact */
  .hero {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
  }
  .hero-desktop { display: none !important; }
  .hero-mobile { display: block !important; }
  .hero-gradient {
    background: linear-gradient(180deg,
      rgba(28,30,33,0) 0%,
      rgba(28,30,33,0.6) 50%,
      rgba(28,30,33,1) 75%) !important;
  }
  .hero-wrap {
    padding: 0 1rem 1.5rem !important;
  }
  .hero-wrap > div:first-child { font-size: 0.5rem !important; margin-bottom: 0.3rem !important; }
  .hero-wrap h1 { font-size: 1.8rem !important; margin-bottom: 0.5rem !important; line-height: 1.05 !important; }
  .hero-wrap > div:last-child { flex-direction: column !important; align-items: stretch !important; gap: 0.75rem !important; }
  .hero-wrap > div:last-child > p { font-size: 0.82rem !important; line-height: 1.5 !important; max-width: 100% !important; }
  .hero-wrap > div:last-child > div { width: 100% !important; gap: 0.75rem !important; align-items: center !important; }
  .hero-wrap > div:last-child > div > img { height: 55px !important; }
  .hero-wrap > div:last-child > div > div { display: flex !important; width: 100% !important; gap: 0.5rem !important; flex-wrap: wrap !important; }
  .hero-wrap > div:last-child > div > div .btn { justify-content: center !important; padding: 0.75rem 0.5rem !important; font-size: 0.72rem !important; letter-spacing: 1px !important; }
  .hero-wrap > div:last-child > div > div .btn:first-child { flex: 1 1 100% !important; font-size: 0.9rem !important; padding: 0.9rem 1rem !important; }
  .hero-wrap > div:last-child > div > div .btn:nth-child(2),
  .hero-wrap > div:last-child > div > div .btn:nth-child(3) { flex: 1 1 45% !important; }

  /* Page hero */
  .page-hero { padding: 6rem 1rem 2rem; }
  .page-hero .heading { font-size: 1.8rem !important; }

  /* About */
  .about-photos { grid-template-columns: 1fr 1fr !important; height: 250px !important; }
  .about-photos > div:nth-child(3) { display: none; }
  .about-stats { grid-template-columns: 1fr 1fr !important; }
  .about-stats > div { padding: 1.5rem 1rem !important; }
  .about-stats > div > div:first-child { font-size: 1.8rem !important; }
  .about-text-section { padding: 2.5rem 1rem !important; }
  .about-text-section .container { grid-template-columns: 1fr !important; gap: 2rem !important; }

  /* Svc preview */
  .svc-preview { grid-template-columns: 1fr 1fr !important; }
  .svc-preview > a { padding: 1rem 0.75rem !important; }
  .svc-preview > a > div:nth-child(2) { font-size: 0.82rem !important; }
  .svc-preview > a > div:last-child { font-size: 0.7rem !important; }

  /* Svc cards */
  .svc-grid { grid-template-columns: 1fr !important; }
  .svc-card-body { padding: 1.5rem !important; }
  .svc-card-title { font-size: 1.2rem !important; }

  /* Gallery — simple uniform 2-col, fixed aspect ratio */
  .gallery-row, .gallery-row.feat-left, .gallery-row.feat-right, .gallery-row.trio, .gallery-row.duo {
    grid-template-columns: 1fr 1fr !important; grid-template-rows: auto !important; height: auto !important;
  }
  .gallery-row .masonry-item {
    grid-column: auto !important; grid-row: auto !important;
    aspect-ratio: 4/3;
    min-height: 0;
  }
  .gallery-row .masonry-item img,
  .gallery-row .masonry-item video {
    width: 100%; height: 100%; object-fit: cover;
  }
  /* 3rd item in trio = orphan, span full width */
  .gallery-row.trio .masonry-item:nth-child(3),
  .gallery-row.feat-left .masonry-item:nth-child(3),
  .gallery-row.feat-right .masonry-item:nth-child(3) {
    grid-column: 1 / -1 !important;
    aspect-ratio: 21/9;
  }

  /* Contact */
  .contact-cards { grid-template-columns: 1fr !important; }
  .contact-form-grid, .contact-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .form-grid { grid-template-columns: 1fr !important; }
  .field.full, [style*="grid-column:span 2"] { grid-column: span 1 !important; }

  /* Map */
  .map-section { height: 200px !important; }
  .map-label { display: none !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; }

  /* Sticky */
  .sticky-cta { padding: 0.5rem; gap: 0.4rem; }
  .sticky-cta-phone, .sticky-cta-msg { padding: 0.7rem 0.5rem; font-size: 0.78rem; flex: 1; max-width: none; justify-content: center; }
  body.has-sticky { padding-bottom: 55px; }
}

@media (max-width: 400px) {
  .svc-preview { grid-template-columns: 1fr !important; }
  .hero-wrap h1 { font-size: 1.5rem !important; }
}
