/* ============================================================
   HALO HOLIDAY LIGHTING — STYLESHEET
   Organized top to bottom:
   1. Variables & resets
   2. Base typography
   3. Layout helpers (container, grid, buttons)
   4. Header & nav
   5. Hero
   6. Services
   7. How it works
   8. About
   9. Service area
   10. Quote form
   11. Contact
   12. Footer
   13. Mobile CTA bar
   14. Responsive breakpoints

   TIP FOR BEGINNERS: Colors and fonts are defined once at the
   top under ":root" — change a value there and it updates
   everywhere on the site.
============================================================ */

/* ---------- 1. VARIABLES & RESETS ---------- */
:root {
  --color-bg: #0a1631;          /* deep navy background */
  --color-bg-alt: #0e1d3f;      /* slightly lighter navy for alternating sections */
  --color-bg-card: #122347;     /* card backgrounds */
  --color-border: #24345f;

  --color-gold: #d4af37;        /* primary gold accent */
  --color-gold-light: #f0d078;  /* lighter gold for hover/highlights */
  --color-gold-dark: #a9822a;

  --color-white: #f7f4ec;       /* warm white for headings/text on dark bg */
  --color-text: #dbe0ee;        /* body text on dark bg */
  --color-text-muted: #a9b2cc;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --max-width: 1180px;

  --header-height: 76px;
}

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

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; } /* safety net: prevents any stray element from causing horizontal scroll on mobile */

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 64px; /* room for mobile CTA bar */
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-white);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p { margin: 0 0 1em; color: var(--color-text); }

/* Focus states for accessibility/keyboard nav */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-gold-light);
  outline-offset: 2px;
}

/* ---------- 3. LAYOUT HELPERS ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section--alt { background: var(--color-bg-alt); }

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 0.75em;
}
.eyebrow--center { display: block; text-align: center; }

.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-title--center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }

.section-intro {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.grid { display: grid; gap: 28px; }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-dark));
  color: #16223f;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}
.btn--primary:hover { box-shadow: 0 10px 28px rgba(212, 175, 55, 0.5); }

.btn--secondary {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(247, 244, 236, 0.5);
}
.btn--secondary:hover { border-color: var(--color-gold-light); color: var(--color-gold-light); }

.btn--large { padding: 18px 34px; font-size: 1rem; }
.btn--full { width: 100%; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- 4. HEADER & NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 49, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-white);
  flex-shrink: 0;
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav__list a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: color 0.15s ease;
}
.main-nav__list a:hover { color: var(--color-gold-light); }

.main-nav__cta {
  background: var(--color-gold);
  color: #16223f !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700 !important;
}
.main-nav__cta:hover { background: var(--color-gold-light); }

.site-header__actions { display: flex; align-items: center; gap: 20px; }

.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--color-gold-light);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. HERO ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--color-white);
}

.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 13, 30, 0.55) 0%, rgba(6, 13, 30, 0.75) 55%, rgba(6, 13, 30, 0.95) 100%);
}

.hero__content { position: relative; z-index: 1; max-width: 720px; padding-top: 60px; padding-bottom: 60px; }

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 0.4em;
}

.hero__subhead {
  font-size: 1.15rem;
  color: rgba(247, 244, 236, 0.9);
  max-width: 560px;
  margin-bottom: 2em;
}

/* ---------- 6. SERVICE CARDS ---------- */
.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--color-gold); }

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  color: var(--color-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-card__icon svg { width: 24px; height: 24px; }

.service-card h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.service-card p { color: var(--color-text-muted); margin: 0; font-size: 0.95rem; }

/* ---------- 7. HOW IT WORKS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 3rem;
}

.step { text-align: center; padding: 0 12px; }

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  color: var(--color-gold-light);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.step h3 { font-size: 1.1rem; }
.step p { color: var(--color-text-muted); font-size: 0.92rem; margin: 0; }

/* ---------- 8. ABOUT ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about__image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.checklist { margin-top: 1.5em; display: grid; gap: 12px; }
.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 500;
}
.checklist li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
  flex-shrink: 0;
}

/* ---------- 9. SERVICE AREA ---------- */
.service-area__cities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.city-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-gold-light);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
}

.service-area__note {
  text-align: center;
  color: var(--color-text-muted);
}
.service-area__note a { color: var(--color-gold-light); font-weight: 600; text-decoration: underline; }

/* ---------- 10. QUOTE FORM ---------- */
.quote-section { background: var(--color-bg-alt); }

.quote__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.quote__intro { position: sticky; top: calc(var(--header-height) + 24px); }

.quote__contact-quick { margin-top: 2rem; }
.quote__phone-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--color-gold-light);
}

.quote-form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-soft);
}

.form-row { margin-bottom: 22px; }
.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-row label,
.quote-form legend {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-white);
  font-size: 0.95rem;
}

.optional-tag { font-weight: 400; color: var(--color-text-muted); font-size: 0.85em; }

.quote-form input[type="text"],
.quote-form input[type="tel"],
.quote-form input[type="email"],
.quote-form input[type="file"],
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
}

.quote-form textarea { resize: vertical; }

.quote-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'><path d='M4 6l4 4 4-4' stroke='%23d4af37' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.quote-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400 !important;
  color: var(--color-text) !important;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
}
.checkbox-item input { width: 18px; height: 18px; accent-color: var(--color-gold); flex-shrink: 0; }

.field-hint { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 8px; margin-bottom: 0; }

.form-status {
  margin-top: 16px;
  margin-bottom: 0;
  font-weight: 600;
  min-height: 1.4em;
}
.form-status--success { color: #7fd99a; }
.form-status--error { color: #e88b8b; }

/* ---------- 11. CONTACT ---------- */
.contact__inner { text-align: center; max-width: 640px; }
.contact__details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin: 2rem 0 2.5rem;
}
.contact__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-white);
}
.contact__item svg { color: var(--color-gold-light); }
.contact__item:hover { color: var(--color-gold-light); }

/* ---------- 12. FOOTER ---------- */
.site-footer {
  background: #060d1e;
  padding: 48px 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
}
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.brand--footer { margin-bottom: 6px; }
.site-footer p { color: var(--color-text-muted); margin: 0; }
.site-footer__meta a { color: var(--color-gold-light); font-weight: 600; }
.site-footer__copyright { font-size: 0.85rem; margin-top: 10px !important; }

/* ---------- 13. MOBILE CTA BAR ---------- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #060d1e;
  border-top: 1px solid var(--color-border);
  padding: 10px 12px;
  gap: 10px;
}
.mobile-cta-bar__btn {
  flex: 1;
  text-align: center;
  padding: 14px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}
.mobile-cta-bar__btn--call {
  border: 2px solid var(--color-gold);
  color: var(--color-gold-light);
}
.mobile-cta-bar__btn--quote {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-dark));
  color: #16223f;
}

/* ---------- 14. RESPONSIVE ---------- */
@media (max-width: 980px) {
  .about__grid,
  .quote__grid { grid-template-columns: 1fr; }
  .quote__intro { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.is-open { max-height: 400px; }
  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 24px;
    gap: 6px;
  }
  .main-nav__list a {
    display: block;
    padding: 12px 6px;
    border-bottom: 1px solid var(--color-border);
  }
  .main-nav__cta { text-align: center; margin-top: 8px; }

  .nav-toggle { display: flex; }
  .header-phone span { display: none; }
  .header-phone { padding: 8px; }

  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 74px; }

  .section { padding: 64px 0; }
  .form-row--split { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .hero { min-height: 92vh; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .quote-form { padding: 24px; }
}
