/* ==========================================================================
   Horizon Architectural Films — Site Stylesheet
   ========================================================================== */

:root {
  --navy-950: #070c16;
  --navy-900: #0b1220;
  --navy-800: #10192b;
  --navy-700: #16233b;
  --navy-600: #1c2d4a;
  --blue-600: #2f6fb8;
  --blue-500: #3d84d6;
  --blue-400: #5b9be0;
  --blue-300: #8fc1ec;
  --blue-100: #e3f0fb;
  --ink: #1a2436;
  --gray-600: #4c4d4f;
  --gray-500: #6b7280;
  --gray-200: #e5e8ec;
  --gray-100: #f4f6f9;
  --white: #ffffff;

  --max-width: 1180px;
  --radius: 10px;
  --shadow-sm: 0 2px 10px rgba(11, 18, 32, 0.08);
  --shadow-md: 0 10px 30px rgba(11, 18, 32, 0.16);
  --transition: 0.2s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

section { padding: 72px 0; }

h1, h2, h3, h4 { margin: 0 0 16px; font-weight: 800; letter-spacing: 0.2px; color: var(--navy-900); }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; color: var(--gray-600); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 10px;
}

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .btn-row { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue-500); color: var(--white); }
.btn-primary:hover { background: var(--blue-600); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-dark { background: var(--navy-900); color: var(--white); }
.btn-dark:hover { background: var(--navy-700); }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 52px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-900);
  position: relative;
  padding: 6px 0;
}
.nav-links a.active,
.nav-links a:hover { color: var(--blue-500); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--blue-500);
}

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.95rem;
}
.nav-phone svg { width: 18px; height: 18px; color: var(--blue-500); flex-shrink: 0; }

.header-social { display: flex; align-items: center; gap: 12px; }
.header-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
}
.header-social a:hover { color: var(--blue-500); }
.header-social svg { width: 19px; height: 19px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--navy-900); border-radius: 2px; }

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 12px 0; border-top: 1px solid var(--gray-100); }
  .nav-phone span.phone-text { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { gap: 12px; }
  .header-social { gap: 8px; }
  .header-social svg { width: 17px; height: 17px; }
}

@media (max-width: 560px) {
  .header-social { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-800) 100%);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.55;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,12,22,0.88) 0%, rgba(7,12,22,0.72) 45%, rgba(7,12,22,0.95) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 110px 0 90px;
  max-width: 720px;
}
.hero h1 { color: var(--white); }
.hero h1 span { color: var(--blue-300); }
.hero p.lead { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 560px; }

.page-hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-950), var(--navy-700));
  padding: 96px 0 64px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 620px; margin: 0 auto; }

/* ---------- Benefit icons row ---------- */
.benefits-strip {
  background: var(--navy-900);
  color: var(--white);
  padding: 40px 0;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
}
.benefit-item svg { width: 34px; height: 34px; color: var(--blue-400); margin-bottom: 10px; }
.benefit-item span { display: block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.3px; color: rgba(255,255,255,0.9); }

@media (max-width: 800px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}

/* ---------- Cards ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-media { height: 200px; overflow: hidden; background: var(--navy-800); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; }
.tag {
  display: inline-block;
  background: var(--blue-500);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.icon-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.icon-card svg { width: 32px; height: 32px; color: var(--blue-500); margin-bottom: 14px; }
.icon-card h3 { margin-bottom: 8px; }
.icon-card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
  color: var(--ink);
  font-weight: 500;
}
.checklist li:last-child { border-bottom: none; }
.checklist svg { width: 20px; height: 20px; color: var(--blue-500); flex-shrink: 0; margin-top: 2px; }

/* ---------- Dark section ---------- */
.section-dark {
  background: var(--navy-900);
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.72); }
.section-dark .checklist li { color: rgba(255,255,255,0.9); border-bottom-color: rgba(255,255,255,0.14); }
.section-dark .icon-card { background: var(--navy-800); border-color: rgba(255,255,255,0.12); }
.section-dark .icon-card h3 { color: var(--white); }
.section-dark .icon-card p { color: rgba(255,255,255,0.72); }

/* ---------- Process steps ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.process-step { text-align: center; position: relative; }
.process-step .num {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blue-500);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin: 0 auto 14px;
}
.process-step svg { width: 26px; height: 26px; }
.process-step h4 { font-size: 0.95rem; margin-bottom: 6px; color: var(--navy-900); }
.process-step p { font-size: 0.85rem; margin-bottom: 0; }
.section-dark .process-step h4 { color: var(--white); }

@media (max-width: 900px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Split / feature rows ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: auto; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

/* Caps display width for lower-resolution source photos so they aren't
   stretched wider than they can support without looking soft. */
.img-frame { max-width: 340px; margin: 0 auto; }
.img-frame img { width: 100%; height: auto; }

/* Simple stat row used in place of an image when no suitable photo exists */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--gray-100);
  border-radius: var(--radius);
}
.stat-item svg { width: 26px; height: 26px; color: var(--blue-500); flex-shrink: 0; }
.stat-item span { font-weight: 700; font-size: 0.92rem; color: var(--navy-900); }
@media (max-width: 700px) {
  .stat-row { grid-template-columns: 1fr; }
}

/* ---------- Stat / info boxes ---------- */
.info-box {
  border: 1.5px solid var(--blue-500);
  border-radius: var(--radius);
  padding: 26px;
}
.info-box svg { width: 30px; height: 30px; color: var(--blue-400); margin-bottom: 10px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--blue-600), var(--navy-700));
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 26px; }
.cta-banner .btn-row { justify-content: center; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-800);
  box-shadow: var(--shadow-sm);
}
/* Images show at their own natural aspect ratio — no forced cropping. */
.gallery-item img { display: block; width: 100%; height: auto; }
.gallery-item .label {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(7,12,22,0.85));
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 26px 16px 12px;
}
.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gray-500);
  border: 2px dashed var(--gray-200);
  text-align: center;
  font-size: 0.85rem;
  padding: 20px;
}
.gallery-placeholder svg { width: 30px; height: 30px; color: var(--gray-500); }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.contact-item:last-child { border-bottom: none; }
.contact-item svg { width: 22px; height: 22px; color: var(--blue-400); flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; color: var(--white); margin-bottom: 2px; }
.contact-item span, .contact-item a { color: rgba(255,255,255,0.75); font-size: 0.95rem; }
.contact-item a:hover { color: var(--blue-300); }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--navy-900); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1.5px solid var(--gray-200);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--gray-100);
  transition: border-color var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.82rem; color: var(--gray-500); margin-top: 10px; }
.form-success {
  display: none;
  background: var(--blue-100);
  border: 1.5px solid var(--blue-400);
  color: var(--navy-900);
  padding: 14px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.form-success.show { display: block; }
.form-error {
  display: none;
  background: #fdeceb;
  border: 1.5px solid #e0776b;
  color: #7a2c22;
  padding: 14px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.form-error.show { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
.footer-grid img.footer-logo {
  height: 48px;
  margin-bottom: 14px;
  background: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
  display: inline-block;
}
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--blue-300); }
.social-links { display: flex; gap: 8px; margin-top: 16px; }
.social-links a {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: rgba(255,255,255,0.85);
  transition: background 0.2s ease, color 0.2s ease;
}
.social-links a:hover { background: var(--blue-500); color: var(--white); }
.social-links svg { width: 14px; height: 14px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.82rem;
}
.footer-badge {
  background: var(--blue-600);
  color: var(--white);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-left: 8px;
}

/* ---------- utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
