/* ==========================================================================
   Horizon Lighting Products — site stylesheet
   Brand: white space, Horizon Blue #2E3640, warm orange accents,
   Expansiva display type, Arial body copy.
   ========================================================================== */

/* Fonts ------------------------------------------------------------------ */

@font-face {
  font-family: 'Expansiva';
  src: url('/assets/fonts/expansiva.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Expansiva';
  src: url('/assets/fonts/expansiva-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

/* Tokens ----------------------------------------------------------------- */

:root {
  --ink: #2E3640;          /* Horizon Blue / Charcoal */
  --ink-90: #3d4650;
  --ink-soft: #5a646f;
  --body: #333333;
  --orange: #EF792F;
  --red-orange: #E43B2F;
  --red: #E33830;
  --gold: #EFB32F;
  --paper: #FFFFFF;
  --paper-alt: #F5F6F7;
  --line: #E3E6E9;
  --gradient: linear-gradient(90deg, var(--gold), var(--orange), var(--red-orange));

  --font-display: 'Expansiva', 'Arial Black', Arial, sans-serif;
  --font-body: Arial, 'Helvetica Neue', Helvetica, sans-serif;

  --container: 1180px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(46, 54, 64, 0.10);
  --header-h: 72px;
}

/* Reset ------------------------------------------------------------------ */

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

a { color: var(--ink); }
a:hover { color: var(--red-orange); }

ul { padding-left: 1.2em; margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow { max-width: 780px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* Buttons & links -------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: var(--red-orange);
  color: #fff;
}

.btn-outline-light {
  border-color: #fff;
  color: #fff;
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--ink);
}

.text-link {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--orange);
}
.text-link:hover { color: var(--red-orange); }

/* Header ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}

.site-header.is-scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.brand-logo { height: 44px; width: auto; }

.site-nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 10px 14px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--red-orange); }

.site-nav a.is-active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(46, 54, 64, 0.92) 0%, rgba(46, 54, 64, 0.55) 55%, rgba(46, 54, 64, 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  width: 100%;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-kicker {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero-heading {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  max-width: 14ch;
  margin-bottom: 20px;
}

.hero-text {
  max-width: 52ch;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero .btn-primary { background: var(--orange); }
.hero .btn-primary:hover { background: var(--red-orange); }

.hero-closer {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 22px 0 30px;
}

/* Sections --------------------------------------------------------------- */

.section { padding: 84px 0; }
.section-tight { padding: 24px 0 60px; }
.section-alt { background: var(--paper-alt); }

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-kicker {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.section-kicker::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 10px;
  background: var(--gradient);
  border-radius: 2px;
}

.section-lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.page-hero {
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 56px;
}

.page-hero h1 { margin-bottom: 0.35em; }

/* Product cards ---------------------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.product-card-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #14181d;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-card:hover .product-card-media img { transform: scale(1.04); }

.product-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-category {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.product-card-name { margin-bottom: 4px; }

.product-card-name a { text-decoration: none; }

.display-family { letter-spacing: 0.02em; }

.display-number { color: var(--orange); }

.product-card-tagline {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}

.product-card-summary {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}

/* Photo band ------------------------------------------------------------- */

.photo-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.photo-band-item {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.photo-band-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.photo-band-item:hover img { transform: scale(1.05); }

.photo-band-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 18px 14px;
  background: linear-gradient(transparent, rgba(20, 24, 29, 0.75));
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Support band ----------------------------------------------------------- */

.support-band {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding: 84px 0;
}

.support-band-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.support-band h2 { color: #fff; max-width: 18ch; }

.support-band-media img {
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

/* Products page ---------------------------------------------------------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-chip {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.filter-chip:hover { border-color: var(--orange); color: var(--red-orange); }

.filter-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.filter-description { color: var(--ink-soft); margin-bottom: 28px; }

.empty-note { color: var(--ink-soft); }

/* Product detail --------------------------------------------------------- */

.product-hero {
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}

.breadcrumb {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--red-orange); }

.product-title { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 6px; }

.product-type {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.product-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}

.product-description { color: var(--body); max-width: 56ch; }

.product-hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.gallery-thumb {
  padding: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: #14181d;
  aspect-ratio: 4 / 3;
}

.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumb.is-active,
.gallery-thumb:hover { border-color: var(--orange); }

/* Features & specs */

.details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.2em;
}

.feature-list li {
  padding: 9px 0 9px 26px;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient);
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table th {
  color: var(--ink);
  font-weight: bold;
  width: 42%;
}

.spec-table tr:nth-child(odd) { background: var(--paper-alt); }

.spec-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 12px;
}

.download-list { list-style: none; padding: 0; }

/* Product CTA */

.product-cta {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 72px 0;
}

.product-cta h2 { color: #fff; }
.product-cta .btn { margin-top: 8px; }
.product-cta .btn-primary { background: var(--orange); }
.product-cta .btn-primary:hover { background: var(--red-orange); }

/* About page ------------------------------------------------------------- */

.about-family {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-family-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.photo-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.photo-duo img {
  border-radius: var(--radius);
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.photo-duo-caption {
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Support page ------------------------------------------------------------ */

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.4em;
}

.contact-list li {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.contact-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  min-width: 90px;
  padding-top: 3px;
}

.form-placeholder {
  background: var(--paper-alt);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding: 64px 24px;
}

.footer-icon { border-radius: 50%; margin-bottom: 14px; }

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  line-height: 1.3;
  margin-bottom: 8px;
}

.footer-wordmark span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.6);
}

.footer-tagline { font-size: 0.9rem; }

.footer-col h3 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li { margin-bottom: 10px; font-size: 0.92rem; }

.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer-col a:hover { color: var(--gold); }

.footer-social { margin-top: 18px; display: flex; gap: 14px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  font-size: 0.82rem;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p { margin: 0; }

.footer-signature {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 960px) {
  .support-band-grid,
  .product-hero-grid,
  .details-grid,
  .about-family,
  .support-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .details-grid { gap: 40px; }
  .footer-grid { gap: 36px; padding: 48px 24px; }
  .photo-band { grid-template-columns: repeat(2, 1fr); }
  .product-hero-grid { gap: 32px; }
  .product-hero-media { order: -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }

  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .site-nav a {
    padding: 14px 24px;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }

  .site-nav a.is-active { border-left-color: var(--orange); }

  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 56px 0; }
  .hero { min-height: 70vh; }
  .photo-duo { grid-template-columns: 1fr; }
  .form-placeholder { padding: 28px; }
}
