/* ---------- BRAND COLORS ---------- */
:root {
  --navy: #0A1A2F;
  --gold: #C7A86D;
  --white: #FFFFFF;
  --muted: #7b8895;
  --card: #f7f7f9;
  --max-width: 1200px;
  --easing: cubic-bezier(.2,.9,.2,1);
}

/* ---------- BASE RESET ---------- */
* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin:0;
  font-family: "Inter", "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #111827;
  background: var(--white);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display:block; }
button { cursor: pointer; font-family: inherit; }

/* ---------- SPLASH SCREEN ---------- */
#splash {
  position: fixed; top:0; left:0; width:100%; height:100%;
  background:#000; display:flex; align-items:center; justify-content:center;
  z-index:9999; opacity:1; transition: opacity 1s ease-out;
}
.splash-logo { width:450px; animation: fadeInScale 2s ease forwards; }
@keyframes fadeInScale {
  0% { opacity:0; transform:scale(0.8); }
  100% { opacity:1; transform:scale(1); }
}

/* ---------- LAYOUT ---------- */
.container { max-width: var(--max-width); margin:0 auto; padding:0 20px; }

/* ---------- HEADER ---------- */
header, .site-header {
  position: sticky; top:0; z-index:80;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.7));
  border-bottom: 1px solid rgba(10,10,10,0.04);
}

.nav {
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:72px;
  gap:18px;
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
}

.logo {
  width:48px; height:48px;
  border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg,var(--navy), #0f2b48);
  color:var(--white);
  font-weight:700;
  font-family:"Montserrat";
}

.brand .title { font-weight:700; color:var(--navy); }

/* Desktop nav */
nav { position: relative; }
nav ul, #navLinks {
  display:flex;
  gap:18px;
  list-style:none;
  margin:0;
  padding:0;
  align-items:center;
}

nav a {
  padding:8px 10px;
  border-radius:8px;
  font-weight:600;
  color:var(--navy);
  transition:all .18s var(--easing);
}
nav a:hover, nav a.active {
  background: rgba(10,26,47,0.04);
  color:var(--navy);
}

/* Hamburger */
.menu-btn {
  display:none;
  border:none;
  background:none;
  font-size:26px;
  cursor:pointer;
  color:var(--navy);
  line-height:1;
  padding:8px 10px;
  border-radius:10px;
}
.menu-btn:hover { background: rgba(10,26,47,0.04); }

/* ---------- HERO ---------- */
.hero {
  display:grid;
  grid-template-columns: 1fr 440px;
  gap:36px;
  align-items:center;
  padding:64px 20px;
  min-height:72vh;
}
.kicker {
  display:inline-block;
  background:var(--gold);
  color:var(--navy);
  padding:6px 12px;
  border-radius:999px;
  font-weight:700;
  font-size:13px;
  margin-bottom:18px;
}
h1 {
  font-family:"Montserrat";
  font-size:40px;
  line-height:1.02;
  color:var(--navy);
  margin:0 0 14px;
}
p.lead { color:var(--muted); margin-bottom:22px; max-width:680px; }
.cta { display:flex; gap:12px; flex-wrap:wrap; }
.btn {
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 18px;
  border-radius:10px;
  font-weight:700;
  box-shadow:0 10px 30px rgba(10,10,10,0.06);
  transition:transform .18s var(--easing);
}
.btn.primary { background:var(--navy); color:var(--white); border:1px solid rgba(0,0,0,0.06); }
.btn.secondary { background:transparent; color:var(--navy); border:1px solid rgba(10,26,47,0.06); }
.btn:hover { transform: translateY(-3px); }

.hero-card { border-radius:14px; padding:18px; background: linear-gradient(180deg,var(--card), #fff); }
.hero-card img { width:100%; height:320px; object-fit:cover; border-radius:10px; }

/* ---------- SECTIONS ---------- */
section { padding:72px 0; }
.section-title {
  font-family:"Montserrat";
  font-size:20px;
  color:var(--navy);
  margin-bottom:10px;
  display:flex;
  align-items:center;
  gap:12px;
}
.section-sub { color:var(--muted); margin-bottom:24px; }

/* ---------- SERVICES ---------- */
.services-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:18px; }
.service {
  background:linear-gradient(180deg,#fff,#fbfbfb);
  border-radius:12px;
  padding:18px;
  border:1px solid rgba(0,0,0,0.04);
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.service .icon {
  flex:0 0 48px;
  height:48px;
  border-radius:8px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, rgba(10,26,47,0.08), rgba(199,168,109,0.06));
  color:var(--navy);
  font-weight:700;
}

/* ---------- PORTFOLIO ---------- */
.portfolio-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:14px; }
.port-item {
  position:relative;
  border-radius:10px;
  overflow:hidden;
  cursor:pointer;
  display:flex;
  align-items:flex-end;
  background:#eee;
  min-height:200px;
  flex-direction:column;
}
.port-item img { width:100%; height:100%; object-fit:cover; transition:transform .45s var(--easing); }
.port-item:hover img { transform: scale(1.04); }
.port-caption {
  position:absolute;
  left:14px;
  bottom:14px;
  background:linear-gradient(90deg, rgba(0,0,0,0.65), rgba(0,0,0,0.35));
  color:#fff;
  padding:8px 12px;
  border-radius:8px;
  font-weight:700;
  font-size:13px;
}

/* ---------- LIGHTBOX ---------- */
#lightbox {
  display:none;
  position:fixed;
  inset:0;
  z-index:9999;
  background: rgba(0,0,0,0.85);
  align-items:center;
  justify-content:center;
  padding:20px;
}
#lightbox .panel { max-width:900px; width:100%; background:var(--white); border-radius:12px; overflow:hidden; }
.lb-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 16px;
  border-bottom:1px solid rgba(0,0,0,0.04);
}
.lb-header button { border:none; background:none; font-size:22px; cursor:pointer; }
.lb-body { padding:16px; text-align:center; }
#lb-img { width:100%; max-height:520px; object-fit:cover; }
.lb-controls { display:flex; justify-content:space-between; margin-top:12px; }
.lb-controls button {
  background:var(--navy);
  color:var(--white);
  border:none;
  padding:8px 16px;
  font-size:18px;
  border-radius:6px;
  cursor:pointer;
}
.lb-controls button:hover { opacity:0.8; }

/* ---------- CONTACT ---------- */
.contact-grid { display:grid; grid-template-columns: 1fr 380px; gap:22px; align-items:start; }
input, textarea, button {
  font-family:inherit;
  font-size:15px;
  padding:12px;
  border-radius:8px;
  border:1px solid rgba(0,0,0,0.08);
  width:100%;
}
textarea { min-height:140px; resize:vertical; }

/* ---------- FOOTER ---------- */
footer { padding:28px 0; border-top:1px solid rgba(0,0,0,0.04); color:var(--muted); }

/* ---------- WHATSAPP ---------- */
.whatsapp {
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:999;
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:var(--gold);
  color:var(--navy);
  padding:12px 14px;
  border-radius:999px;
  font-weight:800;
  box-shadow:0 10px 30px rgba(199,168,109,0.18);
  text-decoration:none;
  border:2px solid rgba(0,0,0,0.04);
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal { opacity:0; transform: translateY(18px); transition: all .6s var(--easing); }
.reveal.show { opacity:1; transform:none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width:1000px){
  .hero { grid-template-columns: 1fr; padding:40px 20px; }
  .portfolio-grid, .services-grid, .process { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width:640px){
  /* show hamburger */
  .menu-btn { display:block; }

  /* MOBILE MENU DROPDOWN (this is the fix) */
  #navLinks {
    display:none;                /* hidden by default */
    position:absolute;
    right:0;
    top:62px;                    /* below the header row */
    flex-direction:column;
    gap:10px;
    background:#fff;
    padding:14px 14px;
    border-radius:14px;
    box-shadow:0 10px 30px rgba(0,0,0,0.12);
    min-width: 200px;
    border: 1px solid rgba(10,10,10,0.06);
    align-items:stretch;
  }

  #navLinks.open { display:flex; }  /* shown when JS toggles */

  #navLinks a { padding:10px 10px; }

  .services-grid, .portfolio-grid, .process, .test-grid { grid-template-columns: 1fr; }
  h1 { font-size:28px; }
  .nav { height:64px; gap:8px; }
  .brand .title { font-size:14px; }
  .hero-card img { height:220px; }
  #lightbox img { height:280px; }
}