/* ===========================================================
   SSV Agencies — Design System
   Palette: Navy #0A1F3D, Gold #D4A62E, Off-white #FAF9F6
   Signature: rainbow spectrum divider (echoes logo mark)
   =========================================================== */

:root {
  --navy: #0A1F3D;
  --navy-light: #12315C;
  --gold: #D4A62E;
  --gold-light: #E8C563;
  --ink: #1A1F2B;
  --paper: #FAF9F6;
  --paper-dim: #F0EEE7;
  --line: #E3DFD4;
  --white: #FFFFFF;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 10px;
  --shadow: 0 8px 24px rgba(10, 31, 61, 0.08);
  --shadow-lg: 0 16px 40px rgba(10, 31, 61, 0.14);

  --spectrum: linear-gradient(90deg, #4A6CF7 0%, #7B4AF7 25%, #E14AA8 50%, #F79B2C 75%, #4CC96B 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Signature spectrum divider */
.spectrum-bar {
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: var(--spectrum);
  margin: 14px 0 0;
}
.spectrum-bar.center { margin-left: auto; margin-right: auto; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); transform: translateY(-2px); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); }

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn-whatsapp:hover { background: #1EBE5A; transform: translateY(-2px); }

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.form-actions .btn {
  flex: 1;
  justify-content: center;
  min-width: 160px;
}

/* ===================== HEADER / NAV ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 44px; width: auto; border-radius: 6px; }
.brand-text {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.brand-text span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--white); }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-phone {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero {
  background:
    radial-gradient(ellipse at top right, rgba(212,166,46,0.14), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, #081729 100%);
  color: var(--white);
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-tag {
  color: var(--gold-light);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  margin: 14px 0 18px;
}
.hero h1 em {
  font-style: normal;
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(2px);
}
.hero-visual img { border-radius: 10px; }
.hero-visual-caption {
  margin-top: 14px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

/* ===================== SECTIONS ===================== */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 8px; }
.section-head p { color: #565f70; margin-top: 14px; font-size: 1.02rem; }

.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy .eyebrow { color: var(--white); }
.bg-navy .eyebrow { color: var(--gold-light); }
.bg-navy .section-head p { color: rgba(255,255,255,0.72); }
.bg-dim { background: var(--paper-dim); }

/* Product / category grid */
.grid-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--paper-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.4rem;
}
.cat-card h3 { font-size: 1rem; margin-bottom: 4px; }
.cat-card p { font-size: 0.85rem; color: #6b7280; }

/* Feature / highlight cards */
.grid-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.feature-card .num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
.feature-card h3 { margin: 10px 0 8px; font-size: 1.15rem; }
.feature-card p { color: #5b6472; font-size: 0.95rem; }

/* Brand partner logo grid */
.brand-logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.brand-logo-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.brand-logo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.brand-logo-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.brand-logo-card .brand-name {
  display: none;
}

/* Brand partner strip */
.brand-strip {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.brand-chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
}

/* CTA band */
.cta-band {
  background: var(--navy);
  border-radius: 20px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--spectrum);
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.72); }

/* Footer */
.site-footer {
  background: #081729;
  color: rgba(255,255,255,0.7);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 40px; margin-bottom: 12px; border-radius: 6px; }
.footer-brand p { font-size: 0.9rem; max-width: 30ch; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.footer-col li { margin-bottom: 9px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===================== PAGE HEADER (interior pages) ===================== */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 60px 0 52px;
  text-align: center;
}
.page-header .eyebrow { color: var(--gold-light); }
.page-header h1 { color: var(--white); margin-top: 10px; font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.page-header p { color: rgba(255,255,255,0.7); margin-top: 12px; max-width: 52ch; margin-left: auto; margin-right: auto; }

/* ===================== ABOUT PAGE ===================== */
.about-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-split img { border-radius: 16px; box-shadow: var(--shadow-lg); }

.proprietor-split { grid-template-columns: 0.7fr 1.3fr; }

.proprietor-photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
  position: relative;
}
.proprietor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 0;
}
.proprietor-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(10,31,61,0.08);
}
.about-split h2 { margin-top: 8px; }
.about-split p { color: #565f70; margin-top: 16px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}
.value-card { text-align: left; }
.value-card .cat-icon { margin: 0 0 14px; }
.value-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.value-card p { font-size: 0.92rem; color: #5b6472; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-row.stats-row-5 { grid-template-columns: repeat(5, 1fr); }
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--gold);
}
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* ===================== PRODUCTS PAGE ===================== */
.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--gold); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ===================== CONTACT PAGE ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 16px;
  padding: 36px 32px;
}
.contact-info-card h3 { color: var(--white); margin-bottom: 20px; }
.info-row {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.info-row .icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(212,166,46,0.16);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.info-row strong { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.6); font-weight: 500; }
.info-row span { font-size: 0.98rem; }

.social-row { display: flex; gap: 10px; margin-top: 24px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.social-row a:hover { background: var(--gold); color: var(--navy); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 7px;
  color: var(--navy);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,166,46,0.18);
}
.form-error {
  color: #C0392B;
  font-size: 0.8rem;
  margin-top: 6px;
  min-height: 16px;
}
.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { color: #1E7E34; }

.map-embed {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 24px;
}
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

.qr-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.ig-qr-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.ig-qr-card img {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--line);
}
.ig-qr-card h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 6px;
}
.ig-qr-card p {
  font-size: 0.88rem;
  color: #5b6472;
}
.ig-qr-card p a {
  color: var(--gold);
  font-weight: 600;
}

/* ===================== GALLERY PAGE ===================== */
.video-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  max-width: 640px;
}
.video-frame video {
  width: 100%;
  display: block;
  max-height: 70vh;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-dim);
  padding: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: "🔍";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(10,31,61,0.7);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.gallery-item:hover::after { opacity: 1; }

.gallery-item.is-hidden { display: none; }

.gallery-placeholder-note {
  display: none;
  text-align: center;
  color: #6b7280;
  font-size: 0.95rem;
  padding: 48px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  margin-top: 8px;
}
.gallery-placeholder-note.show { display: block; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 23, 41, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 88vw;
  max-height: 84vh;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--white);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav.prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-categories { grid-template-columns: repeat(2, 1fr); }
  .grid-features { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-logo-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 720px) {
  .nav-links, .nav-phone { display: none; }
  .hamburger { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--navy);
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .grid-categories { grid-template-columns: 1fr 1fr; }
  .brand-logo-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-band { flex-direction: column; text-align: center; }
  .cta-band::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .grid-categories { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .hero { padding: 64px 0 72px; }
  .contact-form, .contact-info-card { padding: 26px 22px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .lightbox-nav { display: none; }
  .ig-qr-card { flex-direction: column; text-align: center; }
  .brand-logo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
