/* ============================================================
   MILITARY INDUSTRIES SAS — Global Styles
   Fuentes: Barlow Condensed (display) + Barlow (body)
   Paleta: negro carbón, dorado, blancos
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300;400;500;600;700;800;900&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&display=swap');

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  /* Brand core */
  --gold:        #9B7B4A;
  --gold-light:  #C4A47C;
  --gold-pale:   #F0E8DC;
  --dark:        #0D0D0D;
  --dark-2:      #161616;
  --dark-3:      #202020;
  --mid:         #3A3A3A;
  --light:       #F4F2EE;
  --white:       #FFFFFF;
  --muted:       #888888;
  --muted-2:     #555555;

  /* Line themes — overridden per page */
  --line-accent: var(--gold);
  --line-accent-2: var(--gold-light);
  --line-bg:     var(--dark);
  --line-text:   var(--white);

  /* Typography */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-serif:   'Cormorant Garamond', serif;

  /* Spacing */
  --gutter: clamp(1.5rem, 4vw, 4rem);
  --section-py: clamp(4rem, 10vw, 8rem);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--dark); color: var(--white); overflow-x: hidden; cursor: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: none; border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font-family: var(--font-body); }

/* ─── Custom Cursor ─────────────────────────────────────── */
.cursor-dot {
  position: fixed; width: 8px; height: 8px;
  background: var(--gold); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s;
}
.cursor-ring {
  position: fixed; width: 32px; height: 32px;
  border: 1px solid rgba(155,123,74,.5); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease), opacity .3s;
}
.cursor-dot.hovered  { width: 14px; height: 14px; }
.cursor-ring.hovered { width: 52px; height: 52px; }

/* ─── Navigation ────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--gutter);
  transition: background .4s, padding .3s, border-color .4s;
  border-bottom: 1px solid transparent;
}
#navbar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 180px;
  background: linear-gradient(to bottom, rgba(0,0,0,.72) 0%, rgba(0,0,0,.4) 45%, transparent 100%);
  pointer-events: none; z-index: -1; transition: opacity .4s;
}
#navbar.scrolled::before { opacity: 0; }
#navbar.scrolled {
  background: rgba(13,13,13,.96);
  backdrop-filter: blur(16px);
  padding: .9rem var(--gutter);
  border-bottom-color: rgba(155,123,74,.18);
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: .75rem; }
.nav-logo-img { height: 34px; width: auto; flex-shrink: 0; display: block; }
@media (max-width: 600px) { .nav-logo-img { height: 28px; } }

/* Links */
.nav-links {
  display: flex; align-items: center; gap: 2rem;
}
.nav-links > li { position: relative; }
.nav-links a {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.72);
  transition: color .3s; white-space: nowrap;
}
.nav-links a:hover { color: var(--white); }

/* Dropdown */
.nav-item-dropdown::after {
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 1.2rem;
}
.nav-dropdown {
  position: absolute; top: calc(100% + 1.2rem); left: 50%; transform: translateX(-50%);
  background: var(--dark-2); border: 1px solid rgba(155,123,74,.2);
  min-width: 260px; padding: .75rem 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s, transform .25s; transform: translateX(-50%) translateY(-8px);
}
.nav-links li:hover .nav-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dropdown a {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1.25rem; font-size: 11px; letter-spacing: .15em;
  color: rgba(255,255,255,.6); transition: background .2s, color .2s;
}
.nav-dropdown a:hover { background: rgba(155,123,74,.1); color: var(--white); }
.nav-dropdown-icon { width: 22px; height: 22px; flex-shrink: 0; opacity: .7; }
.nav-dropdown-divider { height: 1px; background: rgba(155,123,74,.12); margin: .4rem 0; }

/* CTA */
.nav-cta {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: .25em; text-transform: uppercase;
  background: var(--gold); color: var(--dark);
  padding: .65rem 1.5rem; transition: background .3s, transform .2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { width: 24px; height: 1.5px; background: var(--white); transition: all .3s; display: block; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 1024px) {
  .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--dark-2); flex-direction: column; align-items: center; justify-content: center; gap: 2rem; z-index: 490; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 18px; }
  .nav-item-dropdown::after { content: none; }
  .nav-dropdown { position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto; background: transparent; border: none; padding: 0; min-width: auto; }
  .nav-links li:hover .nav-dropdown { transform: none; }
  .nav-dropdown a { justify-content: center; }
  .nav-toggle { display: flex; }
  #navbar .nav-cta { display: none; }
}

/* ─── Scroll Reveal ─────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }
.reveal.d5 { transition-delay: .5s; }

/* ─── Section Utilities ─────────────────────────────────── */
.section-py { padding-top: var(--section-py); padding-bottom: var(--section-py); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: .35em; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); flex-shrink: 0; }

.heading-xl {
  font-family: var(--font-display); font-size: clamp(40px, 7vw, 80px);
  font-weight: 800; line-height: .95; letter-spacing: -.01em; text-transform: uppercase;
}
.heading-lg {
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 60px);
  font-weight: 700; line-height: 1; letter-spacing: -.01em; text-transform: uppercase;
}
.heading-md {
  font-family: var(--font-display); font-size: clamp(22px, 3vw, 36px);
  font-weight: 700; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em;
}
.accent { color: var(--gold); }

.body-text { font-size: 15px; font-weight: 300; line-height: 1.8; color: rgba(255,255,255,.6); }

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: .25em; text-transform: uppercase; padding: .85rem 2rem;
  transition: all .3s; white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--dark); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline { border: 1px solid rgba(155,123,74,.5); color: var(--gold); }
.btn-outline:hover { border-color: var(--gold); background: rgba(155,123,74,.1); }
.btn-white { background: var(--white); color: var(--dark); }
.btn-white:hover { background: var(--gold-pale); }
.btn svg { width: 14px; height: 14px; transition: transform .3s; }
.btn:hover svg { transform: translateX(3px); }

/* ─── Footer ────────────────────────────────────────────── */
footer {
  background: #080808; border-top: 1px solid rgba(155,123,74,.15);
}
.footer-main {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem;
  padding: 4rem var(--gutter);
}
.footer-logo-img { height: 22px; width: auto; display: block; margin-bottom: 1.1rem; }
.footer-tagline {
  font-family: var(--font-display); font-size: 9px; font-weight: 500;
  letter-spacing: .3em; color: var(--muted); text-transform: uppercase; margin-bottom: 1.25rem;
}
.footer-brand-desc { font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.7; }
.footer-col-title {
  font-family: var(--font-display); font-size: 10px; font-weight: 700;
  letter-spacing: .3em; color: var(--gold); text-transform: uppercase; margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { font-size: 13px; font-weight: 300; color: var(--muted); transition: color .3s; }
.footer-links a:hover { color: var(--white); }
.footer-line-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 12px; font-weight: 300; color: var(--muted); transition: color .3s;
  margin-bottom: .5rem;
}
.footer-line-badge:hover { color: var(--white); }
.footer-line-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.5rem var(--gutter);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.footer-copy { font-family: var(--font-display); font-size: 10px; letter-spacing: .15em; color: var(--muted); }
.footer-social { display: flex; gap: 1.5rem; }
.footer-social a {
  font-family: var(--font-display); font-size: 10px; font-weight: 600;
  letter-spacing: .2em; color: var(--muted); text-transform: uppercase; transition: color .3s;
}
.footer-social a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─── Form shared ───────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-label {
  font-family: var(--font-display); font-size: 10px; font-weight: 600;
  letter-spacing: .25em; text-transform: uppercase; color: var(--muted);
}
.form-input, .form-select, .form-textarea {
  background: rgba(255,255,255,.04); border: 1px solid rgba(155,123,74,.2);
  color: var(--white); padding: .85rem 1rem; font-family: var(--font-body);
  font-size: 14px; font-weight: 300; outline: none; transition: border-color .3s;
  -webkit-appearance: none; resize: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--gold); }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(255,255,255,.25); }
.form-select option { background: var(--dark-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ─── Card shared ───────────────────────────────────────── */
.product-card {
  background: var(--dark-2); border: 1px solid rgba(155,123,74,.12);
  overflow: hidden; transition: border-color .3s, transform .3s;
}
.product-card:hover { border-color: rgba(155,123,74,.4); transform: translateY(-4px); }
.product-card-img { aspect-ratio: 4/3; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-body { padding: 1.25rem; }
.product-card-tag {
  font-family: var(--font-display); font-size: 9px; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem;
}
.product-card-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: .5rem; }
.product-card-desc { font-size: 13px; font-weight: 300; color: rgba(255,255,255,.5); line-height: 1.6; margin-bottom: 1rem; }

/* ─── Page hero shared ──────────────────────────────────── */
.page-hero {
  min-height: 65vh; display: flex; align-items: flex-end;
  padding: 0 var(--gutter) 5rem; position: relative; overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--dark) 0%, rgba(13,13,13,.6) 60%, transparent 100%); }
.page-hero-content { position: relative; z-index: 1; max-width: 700px; }
.page-hero-eyebrow { margin-bottom: 1rem; }
.page-hero-h1 { margin-bottom: 1rem; }
.page-hero-desc { font-size: 16px; font-weight: 300; color: rgba(255,255,255,.65); line-height: 1.7; margin-bottom: 2rem; max-width: 520px; }

/* ─── Divider ───────────────────────────────────────────── */
.divider { width: 100%; height: 1px; background: rgba(155,123,74,.15); }

/* ─── Misc ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 500px) { .grid-4 { grid-template-columns: 1fr; } }

/* ─── Section separators (diagonal) ────────────────────── */
.clip-top    { clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%); margin-top: -40px; }
.clip-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%); }
