/* ================================================================
   SHARED.CSS — Alpha Omega Windows & Doors
   Reset · Tokens · Nav · Footer · Buttons · Section Primitives
================================================================ */

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

:root {
  /* Brand Palette — Official Pantone */
  --brand-navy:        #443e38;   /* P Warm Gray 11 CP — replaces blue navy */
  --brand-navy-mid:    #5a5249;   /* mid warm dark */
  --brand-charcoal:    #1a1a1a;
  --brand-ochre:       #da7134;   /* P 159 C */
  --brand-ochre-light: #e8895a;
  --brand-terracotta:  #9e4936;   /* P 7593 CP */
  --brand-sand:        #c1b4a5;   /* P 7528 CP */
  --warm-white:        #fdfbf8;
  --off-white:         #f4f0ea;
  --light-blue:        #f5f0ea;   /* replaced cool blue with warm off-white */

  /* Semantic aliases */
  --gold:         var(--brand-ochre);
  --gold-light:   var(--brand-ochre-light);
  --bg:           var(--warm-white);
  --bg-alt:       var(--off-white);
  --bg-dark:      var(--brand-navy);
  --text-dark:    #151515;
  --text-mid:     #4a4a4a;
  --text-light:   #7a7a7a;
  --border:       rgba(0,0,0,0.08);
  --border-gold:  rgba(218,113,52,0.25);
  --border-white: rgba(255,255,255,0.07);

  /* Typography */
  --serif: "Playfair Display", Georgia, serif;
  --sans:  "Raleway", system-ui, -apple-system, sans-serif;

  /* Layout */
  --nav-width:     240px;
  --section-pad:   7rem 5rem;
  --section-pad-sm: 4rem 2rem;

  /* Z-index scale */
  --z-nav:      100;
  --z-overlay:   90;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.75;
  overflow-x: hidden;
  padding-right: var(--nav-width);
}

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

a { text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* ── SCROLL REVEAL ────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── NAVIGATION ───────────────────────────────────────── */

nav.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--nav-width);
  z-index: var(--z-nav);
  display: flex;
  flex-direction: column;
  background: var(--brand-navy);
  border-left: 1px solid var(--border-gold);
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-logo-wrap {
  display: flex;
  justify-content: center;
  padding: 2rem 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-white);
  flex-shrink: 0;
}

.nav-logo-wrap a { display: flex; align-items: center; }
.nav-logo-wrap img { height: 42px; width: auto; }

.nav-links {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 0;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  padding: 0.7rem 1.5rem;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, padding-left 0.2s ease,
              border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
  display: block;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-links a:hover {
  color: var(--gold-light);
  padding-left: 2rem;
}

.nav-links a.active {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(230,145,56,0.07);
  padding-left: 2rem;
}

.nav-cta-wrap {
  padding: 1.25rem 1.25rem 2rem;
  border-top: 1px solid var(--border-white);
  flex-shrink: 0;
}

.nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #fff !important;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  min-height: 44px;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  text-align: center;
}

.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* Hamburger (hidden on desktop) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

/* ── FOOTER ───────────────────────────────────────────── */

footer.site-footer {
  background: var(--brand-navy);
  padding: 2.5rem 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-white);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.5;
  flex-shrink: 0;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.32);
  line-height: 1.6;
  max-width: 380px;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  transition: color 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}

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

/* ── BUTTONS ──────────────────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: 4px;
  min-height: 44px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  border: none;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: 4px;
  min-height: 44px;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(15,31,53,0.22);
  color: var(--brand-navy);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: 4px;
  min-height: 44px;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline-dark:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── SECTION PRIMITIVES ───────────────────────────────── */

.section-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1.5px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-label--center {
  justify-content: center;
}

.section-label--center::before { display: none; }

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.2;
  margin-bottom: 1.1rem;
  max-width: 640px;
}

.section-title--white { color: #fff; }
.section-title--center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }

.section-desc {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 580px;
  line-height: 1.95;
  margin-bottom: 3rem;
  font-weight: 300;
}

.section-desc--white { color: rgba(255,255,255,0.62); }
.section-desc--center { max-width: 580px; margin-left: auto; margin-right: auto; text-align: center; }

/* ── PAGE HERO (inner pages) ─────────────────────────── */

.page-hero {
  background: var(--brand-navy);
  padding: 5.5rem 5rem 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://alphaomegapropertyservices.com/wp-content/uploads/2020/07/hero-bg.jpg")
    center/cover no-repeat;
  opacity: 0.07;
}

/* Decorative corner accent */
.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 180px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 1.5rem;
}

.page-breadcrumb a {
  color: rgba(255,255,255,0.38);
  transition: color 0.2s;
}

.page-breadcrumb a:hover { color: var(--gold); }

.page-breadcrumb-sep {
  opacity: 0.5;
  font-size: 0.8rem;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.page-hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}

.page-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.58);
  max-width: 520px;
  line-height: 1.9;
  font-weight: 300;
}

/* ── CONTACT STRIP ────────────────────────────────────── */

.contact-strip {
  background: var(--brand-navy-mid);
  padding: 4rem 5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.contact-strip-info h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #fff;
  margin-bottom: 1.5rem;
}

.contact-details {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-value {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
}

.contact-value a {
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}

.contact-value a:hover { color: var(--gold); }

/* ── CTA STRIP ────────────────────────────────────────── */

.cta-strip {
  background: var(--gold);
  padding: 4.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.cta-strip-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.cta-strip-text p {
  font-size: 0.96rem;
  color: rgba(255,255,255,0.82);
  font-weight: 300;
}

.btn-cta-strip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--brand-charcoal);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  min-height: 44px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-cta-strip:hover {
  background: var(--warm-white);
  transform: translateY(-2px);
  color: var(--brand-charcoal);
}

/* ── TRUST BAR ────────────────────────────────────────── */

.trust-bar {
  background: var(--off-white);
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 2rem 5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

.trust-item + .trust-item {
  border-left: 1px solid rgba(0,0,0,0.08);
  padding-left: 1.5rem;
}

.trust-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(230,145,56,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
}

.trust-text-wrap { min-width: 0; }

.trust-value {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.1;
}

.trust-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-top: 1px;
}

/* ── RESPONSIVE ───────────────────────────────────────── */

@media (max-width: 900px) {
  body {
    padding-right: 0;
    padding-top: 68px;
  }

  nav.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: auto;
    width: 100%;
    height: 68px;
    flex-direction: row;
    align-items: center;
    padding: 0 1.5rem;
    border-left: none;
    border-bottom: 1px solid var(--border-gold);
    overflow: visible;
  }

  .nav-logo-wrap {
    padding: 0;
    border-bottom: none;
    flex: 1;
  }

  .nav-logo-wrap img { height: 34px; }

  .nav-hamburger {
    display: flex;
    position: static;
    transform: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--brand-navy);
    border-bottom: 1px solid var(--border-gold);
    padding: 0.75rem 0;
    z-index: var(--z-overlay);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    flex: unset;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 0.85rem 2rem;
    font-size: 0.8rem;
  }

  /* Move CTA out of the top bar — show only in open dropdown */
  .nav-cta-wrap {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    padding: 0.85rem 1.5rem 1.25rem;
    background: var(--brand-navy);
    border-top: 1px solid var(--border-white);
    border-bottom: 1px solid var(--border-gold);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: var(--z-overlay);
  }

  nav.site-nav.menu-open .nav-links { box-shadow: none; border-bottom: none; }
  nav.site-nav.menu-open .nav-cta-wrap { display: block; }

  .trust-bar {
    grid-template-columns: 1fr 1fr;
    padding: 2rem 1.5rem;
    gap: 1rem;
  }

  .trust-item + .trust-item {
    border-left: none;
    padding-left: 0;
  }

  .trust-item:nth-child(odd) {
    border-right: 1px solid rgba(0,0,0,0.08);
    padding-right: 1rem;
  }

  .contact-strip {
    grid-template-columns: 1fr;
    padding: var(--section-pad-sm);
  }

  .cta-strip {
    grid-template-columns: 1fr;
    padding: var(--section-pad-sm);
  }

  .cta-strip-text { text-align: center; }

  footer.site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
  }

  .footer-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .page-hero {
    padding: 4rem 1.5rem 3.5rem;
  }
}

@media (max-width: 480px) {
  .trust-bar {
    grid-template-columns: 1fr;
  }

  .trust-item:nth-child(odd) {
    border-right: none;
    padding-right: 0;
  }
}
