/* =========================================================
   INFINITI EQUIPMENT v3 — White + Donatoni Blue Theme
   Mobile-first, clean, professional
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Barlow+Condensed:wght@500;600;700;800&display=swap');

/* Nasalization font for Infiniti Equipment brand name */
@font-face {
  font-family: 'Nasalization';
  src: url('https://fonts.cdnfonts.com/s/16573/nasalization-rg.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-brand: 'Nasalization', 'Barlow Condensed', 'Inter', sans-serif;
}

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

:root {
  /* Palette */
  --blue:       #1e3a6e;
  --blue-mid:   #2a4f96;
  --blue-light: #3a6abf;
  --blue-pale:  #e8eef8;
  --blue-xpale: #f3f6fb;
  --red:        #cc2200;
  --white:      #ffffff;
  --off-white:  #f8f9fb;
  --grey-100:   #f1f3f6;
  --grey-200:   #e4e8ee;
  --grey-300:   #c8d0dc;
  --grey-500:   #8a94a6;
  --grey-700:   #4a5568;
  --grey-900:   #1a202c;
  --text:       #1a202c;
  --text-mid:   #4a5568;
  --text-light: #718096;
  --border:     #e4e8ee;

  /* Layout */
  --nav-h:   70px;
  --max:     1200px;
  --radius:  6px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { color: var(--blue); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; text-transform: uppercase; font-size: clamp(42px, 7vw, 80px); letter-spacing: -0.02em; }
h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 4vw, 44px); }
h3 { font-size: clamp(18px, 2.5vw, 22px); font-weight: 600; }
h4 { font-size: 17px; font-weight: 600; }
p  { color: var(--text-mid); line-height: 1.7; }
a  { color: inherit; text-decoration: none; }

/* ---- NAV ---- */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo-img { height: 36px; width: auto; }
.nav-logo-wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-fallback {
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-mark {
  width: 32px; height: 32px; background: var(--blue);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
.nav-logo-text { font-family: var(--font-brand); font-weight: 400; font-size: 15px; text-transform: uppercase; color: var(--blue); letter-spacing: 0.04em; line-height: 1.1; }
.nav-logo-sub  { font-size: 9px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--grey-500); font-weight: 500; }

.nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; flex: 1; justify-content: center; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px;
  font-size: 13.5px; font-weight: 500; color: var(--text-mid);
  padding: 8px 12px; border-radius: var(--radius);
  transition: color .15s, background .15s; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--blue); background: var(--blue-xpale); }
.nav-link.active { font-weight: 600; }
.nav-link svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); min-width: 230px;
  padding: 8px; box-shadow: var(--shadow-lg);
}
.nav-item:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block; padding: 9px 14px; font-size: 13.5px; color: var(--text-mid);
  border-radius: var(--radius); transition: color .12s, background .12s; white-space: nowrap;
}
.nav-dropdown a:hover { color: var(--blue); background: var(--blue-xpale); }
.nav-dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }

.nav-cta {
  background: var(--blue); color: var(--white);
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 10px 20px; border-radius: var(--radius); white-space: nowrap;
  transition: background .15s; flex-shrink: 0;
}
.nav-cta:hover { background: var(--blue-mid); }

.hamburger {
  display: none; cursor: pointer; background: none; border: none; padding: 8px;
  flex-direction: column; gap: 5px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--blue); border-radius: 2px; transition: all .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--white); z-index: 999; overflow-y: auto; padding: 16px 20px 40px;
  flex-direction: column; gap: 2px;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 13px 16px; font-size: 15px; font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--grey-100); display: block; border-radius: var(--radius);
}
.mobile-nav a:hover { background: var(--blue-xpale); color: var(--blue); }
.mob-section {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--grey-500); padding: 18px 16px 6px; font-weight: 600;
}
.mob-cta {
  margin-top: 20px; background: var(--blue); color: var(--white) !important;
  text-align: center; padding: 15px !important; border-radius: var(--radius);
  font-weight: 600 !important; text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: none !important;
}

/* ---- HERO ---- */
.hero {
  min-height: 100svh; padding-top: var(--nav-h);
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--blue) 0%, #162d5a 60%, #0e1f40 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255,255,255,0.015) 60px, rgba(255,255,255,0.015) 61px),
              repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,0.015) 60px, rgba(255,255,255,0.015) 61px);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto; padding: 80px 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.6); margin-bottom: 20px;
}
.hero-eyebrow::before { content: ''; width: 28px; height: 1px; background: rgba(255,255,255,0.4); }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: #7eb3ff; }
.hero-sub { font-size: 17px; color: rgba(255,255,255,0.72); line-height: 1.75; margin-bottom: 36px; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 20px; margin-top: 48px; flex-wrap: wrap; }
.hero-badge {
  font-size: 11px; color: rgba(255,255,255,0.45); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 8px;
}
.hero-badge::before { content: ''; width: 20px; height: 1px; background: rgba(255,255,255,0.25); }
.hero-image-panel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero-carousel {
  position: relative; width: 100%; max-width: 560px; height: 400px;
}
.hero-carousel img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; opacity: 0;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.4));
  animation: float 6s ease-in-out infinite;
  transition: opacity .9s ease;
}
.hero-carousel img.active { opacity: 1; }
.hero-dots { display: flex; gap: 9px; justify-content: center; margin-top: 22px; }
.hero-dot {
  width: 9px; height: 9px; border-radius: 50%; padding: 0;
  background: rgba(255,255,255,0.35); border: none; cursor: pointer;
  transition: background .2s, transform .2s;
}
.hero-dot:hover { background: rgba(255,255,255,0.6); }
.hero-dot.active { background: #fff; transform: scale(1.2); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 768px) {
  .hero-carousel { height: 260px; }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 12px 26px; border-radius: var(--radius);
  border: none; cursor: pointer; transition: all .15s; font-family: inherit; text-decoration: none;
}
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn-white  { background: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--blue-pale); }
.btn-outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline-white:hover { border-color: white; background: rgba(255,255,255,0.08); }
.btn-blue   { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-mid); }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue-xpale); }
.btn-sm { padding: 8px 18px; font-size: 11px; }

/* ---- LAYOUT ---- */
section { position: relative; }
.section-pad { padding: 88px 24px; }
.section-pad-sm { padding: 56px 24px; }
.container { max-width: var(--max); margin: 0 auto; }

.section-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--blue-light); margin-bottom: 12px;
}
.section-label::before { content: ''; width: 22px; height: 2px; background: var(--blue-light); border-radius: 2px; }

.section-intro { max-width: 600px; margin-bottom: 52px; }
.section-intro h2 { margin-bottom: 14px; }
.section-intro p { font-size: 16px; }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 20px; margin-bottom: 44px;
}

/* ---- BANDS ---- */
.band-grey  { background: var(--off-white); }
.band-blue  { background: var(--blue); }
.band-pale  { background: var(--blue-xpale); }
.divider    { height: 1px; background: var(--border); }

/* ---- STATS BAR ---- */
.stats-bar {
  display: grid; grid-template-columns: repeat(4,1fr);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat-item {
  padding: 28px 20px; text-align: center;
  border-right: 1px solid var(--border); background: var(--white);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Barlow Condensed', sans-serif; font-size: 42px; font-weight: 800;
  color: var(--blue); line-height: 1;
}
.stat-num span { color: var(--blue-light); }
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey-500); margin-top: 4px; font-weight: 500; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: var(--blue);
  padding: calc(var(--nav-h) + 48px) 24px 52px;
}
.page-hero-inner { max-width: var(--max); margin: 0 auto; }
.breadcrumb {
  display: flex; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.5);
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color .15s; }
.breadcrumb a:hover { color: rgba(255,255,255,0.85); }
.breadcrumb span { color: rgba(255,255,255,0.25); }
.page-hero h1 { color: var(--white); font-size: clamp(36px, 6vw, 64px); }
.page-hero p  { color: rgba(255,255,255,0.72); margin-top: 12px; font-size: 16px; max-width: 520px; }
.page-hero .section-label { color: rgba(255,255,255,0.55); }
.page-hero .section-label::before { background: rgba(255,255,255,0.35); }

/* ---- MACHINE CARDS ---- */
.machine-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.machine-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.machine-card-visual {
  height: 210px; background: var(--grey-100);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border); overflow: hidden; padding: 16px;
}
.machine-card-visual img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .3s;
}
.machine-card:hover .machine-card-visual img { transform: scale(1.04); }
.machine-card-series {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--blue-light); padding: 16px 20px 0;
}
.machine-card-body { padding: 8px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.machine-card-name {
  font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 700;
  color: var(--blue); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 8px;
}
.machine-card-desc { font-size: 13.5px; color: var(--text-light); line-height: 1.6; flex: 1; }
.machine-card-specs { margin-top: 14px; border-top: 1px solid var(--border); }
.spec-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--grey-100); font-size: 12px; }
.spec-row:last-child { border-bottom: none; }
.spec-key { color: var(--grey-500); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.spec-val { color: var(--text); font-weight: 600; text-align: right; }
.machine-card-footer { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--grey-100); }
.machine-card-link {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--blue); display: flex; align-items: center; gap: 6px; transition: gap .15s;
}
.machine-card-link:hover { gap: 10px; }
.machine-card-link::after { content: '→'; }

/* ---- CATEGORY CARDS ---- */
.cat-card {
  display: flex; flex-direction: column; padding: 28px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: all .2s;
  text-decoration: none; box-shadow: var(--shadow-sm);
}
.cat-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-icon {
  width: 48px; height: 48px; margin-bottom: 18px;
  background: var(--blue-pale); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.cat-icon svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 1.6; }
.cat-title { font-size: 17px; font-weight: 700; color: var(--blue); font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.cat-desc  { font-size: 13.5px; color: var(--text-light); line-height: 1.6; flex: 1; }
.cat-arrow { margin-top: 18px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--blue-light); display: flex; align-items: center; gap: 6px; transition: gap .15s; }
.cat-card:hover .cat-arrow { gap: 10px; }
.cat-arrow::after { content: '→'; }

/* ---- GRIDS ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ---- USED EQUIPMENT ---- */
.used-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.used-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
}
.used-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.used-card-img {
  position: relative;
  height: 190px; background: var(--grey-100);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border); overflow: hidden; padding: 16px;
}
.used-card-img img { width: 100%; height: 100%; object-fit: contain; }
.used-card-img .img-placeholder { font-size: 36px; opacity: 0.25; }
.used-img-dots {
  position: absolute; bottom: 8px; left: 0; right: 0; z-index: 2;
  display: flex; gap: 5px; justify-content: center; pointer-events: none;
}
.used-img-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.6); box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.used-img-dot.active { background: var(--blue); }

/* ---- ADMIN PHOTO UPLOAD SLOTS ---- */
.photo-slots { display: flex; gap: 10px; flex-wrap: wrap; }
.photo-slot {
  position: relative; width: 72px; height: 72px; border-radius: var(--radius);
  border: 1.5px dashed var(--border); background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; transition: border-color .15s;
}
.photo-slot:hover { border-color: var(--blue-light); }
.photo-slot input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 1;
}
.photo-slot-img { width: 100%; height: 100%; object-fit: cover; display: none; }
.photo-slot-img.show { display: block; }
.photo-slot-placeholder { font-size: 22px; color: var(--grey-500); }
.photo-slot-placeholder.hide { display: none; }
.photo-slot-remove {
  position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,0.65); color: #fff; border: none; font-size: 12px; line-height: 1;
  cursor: pointer; display: none; z-index: 2; align-items: center; justify-content: center;
}
.photo-slot-remove.show { display: flex; }
.photo-slot.uploading { opacity: 0.5; pointer-events: none; }
.photo-slot.uploading::after {
  content: '\2026'; position: absolute; font-size: 20px; color: var(--grey-500); z-index: 2;
}
.used-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 3px 10px; border-radius: 40px; margin: 14px 16px 0;
}
.status-available { background: #dcfce7; color: #166534; }
.status-sold      { background: #fee2e2; color: #991b1b; }
.status-hold      { background: #fef3c7; color: #92400e; }
.used-card-body { padding: 10px 16px 16px; }
.used-brand { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue-light); font-weight: 700; margin-bottom: 4px; }
.used-name  { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 4px; }
.used-year  { font-size: 12px; color: var(--grey-500); font-weight: 500; margin-bottom: 10px; }
.used-specs { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.used-spec  { display: flex; gap: 8px; font-size: 12px; }
.used-spec-key { color: var(--grey-500); flex: 0 0 80px; }
.used-spec-val { color: var(--text); font-weight: 500; }
.used-price { font-family: 'Barlow Condensed', sans-serif; font-size: 26px; font-weight: 800; color: var(--blue); }
.used-card-footer { padding: 12px 16px; border-top: 1px solid var(--border); background: var(--grey-100); }

/* Admin */
.admin-bar {
  background: var(--blue-pale); border: 1px solid var(--blue-light);
  border-radius: var(--radius-lg); padding: 16px 20px;
  margin-bottom: 28px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.admin-bar-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue); font-weight: 700; flex-shrink: 0; }
.admin-bar-export { margin-left: auto; }
@media (max-width: 768px) {
  .admin-bar { flex-direction: column; align-items: flex-start; }
  .admin-bar-export { margin-left: 0; width: 100%; }
  .admin-bar-export .btn { width: 100%; justify-content: center; }
}

/* Filter */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 7px 18px; border-radius: 40px; border: 1.5px solid var(--border);
  background: transparent; color: var(--text-light); cursor: pointer; transition: all .15s; font-family: inherit;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-detail { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--blue-pale); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 18px; height: 18px; stroke: var(--blue); fill: none; stroke-width: 1.8; }
.contact-detail-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey-500); font-weight: 600; }
.contact-detail-value { font-size: 15px; color: var(--text); margin-top: 2px; }
.contact-detail-value a { color: var(--text); }
.contact-detail-value a:hover { color: var(--blue); }
.contact-form {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey-500); font-weight: 600; margin-bottom: 5px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; background: var(--off-white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 10px 14px; color: var(--text);
  font-size: 14px; font-family: inherit; outline: none; transition: border-color .15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--blue); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-success {
  display: none; background: #dcfce7; border: 1px solid #86efac;
  border-radius: var(--radius); padding: 12px 16px;
  color: #166534; font-size: 13px; margin-top: 12px; text-align: center;
}

/* ---- FOOTER ---- */
#site-footer {
  background: var(--blue); color: rgba(255,255,255,0.7);
  padding: 64px 24px 32px;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-mark { width: 26px; height: 26px; background: rgba(255,255,255,0.9); clip-path: polygon(50% 0%, 100% 100%, 0% 100%); }
.footer-logo-text { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 18px; text-transform: uppercase; color: var(--white); letter-spacing: 0.04em; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.65; margin-bottom: 16px; }
.footer-donatoni { font-size: 12px; color: rgba(255,255,255,0.4); }
.footer-donatoni strong { color: rgba(255,255,255,0.65); }
.footer-col h5 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--white); font-weight: 600; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer-col ul a { font-size: 13px; color: rgba(255,255,255,0.55); transition: color .15s; }
.footer-col ul a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding-top: 20px; font-size: 12px; color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* ---- COOKIE BANNER ---- */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--white); border-top: 2px solid var(--blue);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  padding: 18px 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 240px; font-size: 13px; color: var(--text-mid); line-height: 1.6; }
.cookie-text a { color: var(--blue); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept { background: var(--blue); color: var(--white); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 9px 20px; border-radius: var(--radius); border: none; cursor: pointer; font-family: inherit; transition: background .15s; }
.cookie-accept:hover { background: var(--blue-mid); }
.cookie-decline { background: transparent; color: var(--text-light); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding: 9px 16px; border-radius: var(--radius); border: 1.5px solid var(--border); cursor: pointer; font-family: inherit; transition: all .15s; }
.cookie-decline:hover { border-color: var(--grey-500); color: var(--text); }

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 9998;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25); transition: transform .15s, box-shadow .15s;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 8px 26px rgba(0,0,0,0.32); }
@media (max-width: 768px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  #cookie-banner ~ .whatsapp-float { bottom: 16px; }
}

/* ---- SCROLL ANIMATIONS ---- */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.fade-up.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-bar { grid-template-columns: repeat(2,1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-image-panel { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-badges { justify-content: center; }
  /* Collapse any ad-hoc inline two-column layouts (page intros, teasers) to a single stacked column */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:1.1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 768px) {
  :root { --nav-h: 62px; }
  .nav-menu, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .section-pad { padding: 64px 20px; }
  .section-pad-sm { padding: 44px 20px; }
  .page-hero { padding-left: 20px; padding-right: 20px; }
  #site-footer { padding: 48px 20px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .used-grid { grid-template-columns: repeat(2,1fr); }
  .form-row { grid-template-columns: 1fr; }
  #cookie-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .used-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-inner { padding: 48px 20px 60px; }
  .nav-inner { padding: 0 16px; }
  .cookie-actions { width: 100%; }
  .cookie-accept, .cookie-decline { flex: 1; text-align: center; }
}

/* ---- GALLERY ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.gallery-item {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--grey-100);
  aspect-ratio: 4/3; cursor: zoom-in; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.gallery-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(10,20,40,0.82), transparent);
  color: white; font-size: 12px; font-weight: 600; padding: 20px 12px 10px;
  letter-spacing: 0.02em;
}
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 3000;
  background: rgba(10,14,26,0.92); align-items: center; justify-content: center; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox-caption { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.8); font-size: 13px; }
.lightbox-close {
  position: absolute; top: 20px; right: 28px; background: none; border: none;
  color: white; font-size: 30px; cursor: pointer; line-height: 1; opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none; color: white;
  width: 44px; height: 44px; border-radius: 50%; font-size: 20px; cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ---- USEFUL LINKS ---- */
.link-card {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: all .15s;
}
.link-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.link-card-icon {
  width: 44px; height: 44px; flex-shrink: 0; background: var(--blue-pale); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.link-card-body { flex: 1; }
.link-card-title { font-weight: 600; color: var(--blue); font-size: 15px; margin-bottom: 2px; }
.link-card-desc { font-size: 13px; color: var(--text-light); }
.link-card-arrow { color: var(--blue-light); font-size: 16px; flex-shrink: 0; }

/* ---- STEP LIST ---- */
.step-list { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.step-row { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; gap: 14px; align-items: flex-start; }
.step-row:last-child { border-bottom: none; }
.step-num { font-family: 'Barlow Condensed', sans-serif; font-size: 30px; color: var(--blue-light); font-weight: 800; line-height: 1; flex-shrink: 0; }
.step-title { font-weight: 600; color: var(--blue); margin-bottom: 3px; }
.step-desc { font-size: 13.5px; }

@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .lightbox-nav { width: 38px; height: 38px; }
}

/* ---- NASALIZATION BRAND OVERRIDES ---- */
/* Page hero h1 uses Nasalization for Infiniti branding */
.page-hero h1 {
  font-family: var(--font-brand);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
/* Footer logo layout */
.footer-logo {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.footer-logo img { height: 36px; width: auto; }
/* Mobile: keep logo legible at small sizes */
@media (max-width: 400px) {
  .nav-logo-img { height: 32px; }
  .nav-logo-text { font-size: 12px; }
}
