/*
 Theme Name: Div8Pro Theme
 Theme URI: https://div8pro.com
 Author: GoBagel
 GitHub Theme URI: GoBagel/div8pro-theme
 Description: Minimal, business-first theme for Division 8 Windows & Doors Ltd.
 Version: 1.0.5
 Text Domain: div8pro-theme
*/

:root {
  --color-bg: #070b0f;
  --color-surface: #11161d;
  --color-accent: #1e88e5;
  --color-accent-soft: #1e88e522;
  --color-text: #f5f7fa;
  --color-muted: #a0acbd;
  --color-border: #242c38;

  /* Replace this with actual heading font from current site */
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-soft: 0 18px 40px rgba(0,0,0,0.45);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: radial-gradient(circle at top left, #141b24, #05070a 60%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

/* Basic layout */

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

/* Top bar */

.top-bar {
  background: #000000aa;
  color: var(--color-muted);
  font-size: 0.85rem;
  padding: 0.35rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ffffff11;
}

@media (max-width: 840px) {
  .top-bar {
    display: none;
  }
}

.top-bar__left {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.top-bar__right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.top-bar__link {
  color: var(--color-muted);
  text-decoration: none;
}

.top-bar__link strong {
  color: var(--color-text);
}

/* Header */

.site-header {
  background: transparent;
  padding: 1.25rem 1.75rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text);
  text-decoration: none;
}

.site-tagline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.19em;
  color: var(--color-muted);
}

.site-navigation ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.site-navigation a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.site-navigation a:hover,
.site-navigation .current-menu-item > a {
  color: var(--color-text);
}

/* CTA button in header if needed */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn--accent {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn--accent:hover {
  background: #2196f3;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: #ffffff33;
}

.btn--ghost:hover {
  border-color: var(--color-accent);
}

/* Hero */

.hero {
  padding: 3rem 1.75rem 2.5rem;
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 3rem;
  align-items: center;
}

.hero__inner {
  grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr);
}


.hero__eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw + 1rem, 3rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 1.25rem;
}

.hero__subtitle {
  color: var(--color-muted);
  font-size: 0.98rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

/* Hero bullets (conversion-focused pain points) */
.hero__bullets {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;

  display: grid;
  gap: 0.55rem;

  max-width: 36rem;
  color: var(--color-text);
  opacity: 0.92;
  font-size: 0.92rem;
}

.hero__bullets li {
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.35;

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 0.45rem 0.65rem 0.45rem 1.6rem;
}

.hero__bullets li::before {
  content: "✓";
  position: absolute;
  left: 0.65rem;
  top: 0.52rem;

  color: var(--color-accent);
  font-weight: 700;
}

/* Tighten hero spacing on small screens */
@media (max-width: 640px) {
  .hero {
    padding: 2.25rem 1.2rem 2rem;
  }

  .hero__subtitle {
    margin-bottom: 0.75rem;
  }

  .hero__bullets {
    font-size: 0.9rem;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
}


.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-muted);
  margin-top: 1rem;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero__panel {
  background: radial-gradient(circle at top, #1b2635, #070b0f);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.hero__panel-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}

.hero__panel-body {
  font-size: 0.9rem;
  color: var(--color-text);
  opacity: 0.9;
}

.hero__image-panel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  min-height: 260px;
  background: radial-gradient(circle at top, #1b2635, #05070a);
}

.hero__image-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.hero__image-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
}

/* Services strip */

.services {
  padding: 0 1.75rem 3rem;
}

.services__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.3rem 1.3rem;
  border: 1px solid var(--color-border);
}

.service-card__eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}

.service-card__title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.55rem;
}

.service-card__body {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.75rem 1.75rem 2rem;
  background: #05070aee;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.2fr;
  gap: 2rem;
  font-size: 0.86rem;
}

.footer__title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-muted);
  margin-bottom: 0.7rem;
}

.footer__brand {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.footer__legal {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__list li + li {
  margin-top: 0.25rem;
}

.footer__link {
  color: var(--color-muted);
  text-decoration: none;
}

.footer__link:hover {
  color: var(--color-text);
}

/* Content pages */

.page-header {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  padding: 2rem 1.75rem 0;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 0.75rem;
}

.page-content-wrap {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1.75rem 3rem;
}

.page-content-wrap p {
  line-height: 1.6;
  color: var(--color-muted);
}

/* Global content links */
.page-content-wrap a,
.contact-card a,
.contact-list a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--color-accent-soft);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.page-content-wrap a:hover,
.contact-card a:hover,
.contact-list a:hover {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

.contact-card a[href^="mailto:"],
.contact-card a[href^="tel:"] {
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Responsive */

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0,1fr);
  }
  .services__grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .site-navigation ul {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .services__grid {
    grid-template-columns: minmax(0,1fr);
  }
  .footer__inner {
    grid-template-columns: 1fr;
  }
}

/* Contact page layout */

.contact {
  padding: 0 1.75rem 3rem;
}

.contact__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
}

.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
}

.contact-card__title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-muted);
  margin-bottom: 0.8rem;
}

.contact-card__body {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.6;
}

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

.contact-list li + li {
  margin-top: 0.4rem;
}

/* Stack contact layout on small screens */
@media (max-width: 840px) {
  .contact__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero--parallax {
  position: relative;
  min-height: 80vh;
  background-color: #111;

  /* Base image */
  background-image: url('assets/images/multidoors.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Desktop parallax */
  background-attachment: scroll; /* JS will do the parallax */
  background-position: center 0px;
  will-change: background-position;
}

@media (max-width: 900px) {
  .hero--parallax {
    background-attachment: scroll;
    /* JS will set background-position-y; keep x centered */
    background-position: center 0px;
    will-change: background-position;
  }
}

.hero--parallax::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55));
  z-index: 0;
}

.hero--parallax > * {
  position: relative;
  z-index: 1;
}

/* =========================
   STICKY HEADER + MOBILE NAV
   ========================= */

/* Sticky header (header only, not top-bar) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;

  /* prevent wrap that drops burger below branding */
  flex-wrap: nowrap;
}

/* Branding can shrink without pushing burger away */
.site-branding {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

/* Keep branding on one line each */
.site-title,
.site-tagline {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Desktop nav stays inline */
.site-navigation ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

/* Burger hidden by default (desktop) */
.nav-toggle {
  display: none;
  margin-left: auto;
  flex-shrink: 0;

  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;

  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  border-radius: 10px;
  cursor: pointer;
}

/* Burger icon */
.nav-toggle__icon {
  display: inline-block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
}
.nav-toggle__icon::before { top: -7px; }
.nav-toggle__icon::after  { top: 7px; }

/* ===== MOBILE ===== */
@media (max-width: 840px) {
  /* Show burger top-right */
  .nav-toggle {
    display: inline-flex;
  }

  /* Hide desktop inline menu */
  .site-navigation ul {
    display: none;
  }

  /*
    Slide-down panel:
    - We’ll animate max-height + opacity for a smooth "drop down"
    - Needs wrapper styling on the <nav> itself
  */
  .site-navigation {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 999;

    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);

    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 220ms ease, opacity 160ms ease, transform 220ms ease;
  }

  /* When open, reveal panel */
  .site-header.is-menu-open .site-navigation {
    max-height: 70vh; /* plenty of room */
    opacity: 1;
    transform: translateY(0);
  }

  /* Menu list inside panel */
  .site-navigation .primary-menu,
  .site-navigation ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 14px 12px;
    margin: 0;
  }

  .site-navigation a {
    display: block;
    padding: 12px 10px;
    border-radius: 10px;
  }

  .site-navigation a:hover,
  .site-navigation .current-menu-item > a {
    color: var(--color-text);
    background: var(--color-accent-soft);
  }

  /* IMPORTANT: override your earlier 640px rule that made header column */
  .site-header {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
}

/* Optional: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .site-navigation {
    transition: none;
  }
}

@media (max-width: 840px) {
  .mobile-nav-contact {
    padding: 10px 14px 16px;
    border-top: 1px solid var(--color-border);
    display: grid;
    gap: 10px;
  }

  .mobile-nav-contact__item {
    text-decoration: none;
    color: var(--color-muted);
    padding: 12px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
  }

  .mobile-nav-contact__item strong {
    color: var(--color-text);
    margin-right: 6px;
  }
}

/* Hide mobile-only contact block on desktop */
.mobile-nav-contact {
  display: none;
}

@media (max-width: 840px) {
  .mobile-nav-contact {
    display: grid; /* or flex */
  }
}

/* Stack phone label and number on mobile only */
@media (max-width: 640px) {
  .top-bar__right .top-bar__link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
  }

  .top-bar__right .top-bar__link strong {
    display: block;
  }
}

/* Desktop: never show the mobile contact block */
.mobile-nav-contact { display: none; }

/* Mobile: show it (usually inside the opened nav) */
@media (max-width: 900px) {
  .mobile-nav-contact { display: grid; gap: 10px; margin-top: 16px; }
}
.hero__logo {
    max-width: 55%;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .hero__logo {
    max-width: 40%;
    margin-bottom: 1rem;
  }
}