/* ============================================================
   LEGACY DOORS & HARDWARE — Shared Stylesheet
   Brand: Navy #16223D · Silver #C2CCD8/#9DA9BA · Steel #6A7689 · Paper #ECEDEF
   Font: Archivo (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #16223D;
  --navy-mid:  #1E3054;
  --silver-lt: #F1F5F9;
  --silver:    #C2CCD8;
  --silver-dk: #9DA9BA;
  --steel:     #6A7689;
  --paper:     #ECEDEF;
  --white:     #FFFFFF;
  --text:      #1A2030;
  --text-muted:#4A5568;
  --accent:    #B08A4A;   /* warm gold for subtle highlights */
  --radius:    6px;
  --shadow:    0 2px 12px rgba(22,34,61,.10);
  --shadow-md: 0 6px 28px rgba(22,34,61,.14);
  --transition:180ms ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }

/* ── Typography ── */
h1,h2,h3,h4 { font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--silver-dk);
  margin-bottom: 12px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-mid); border-color: var(--navy-mid); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

/* ── Navigation ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo svg, .nav-logo img { height: 80px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--silver);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(255,255,255,.08); }

.nav-cta {
  background: var(--white) !important;
  color: var(--navy) !important;
  padding: 8px 20px !important;
}
.nav-cta:hover { background: var(--silver-lt) !important; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--silver);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 96px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy);
    padding: 16px 24px 24px;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
}

/* ── Hero ── */
.hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  padding: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 50%, rgba(30,48,84,.7) 0%, transparent 70%),
    linear-gradient(135deg, #0D1726 0%, #16223D 50%, #1E3054 100%);
}

/* Subtle grid texture */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(194,204,216,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(194,204,216,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 100px 0 96px;
}

.hero-text { max-width: 560px; }
.hero-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--silver-dk);
  margin-bottom: 20px;
}
.hero-title { color: var(--white); margin-bottom: 24px; }
.hero-title span { color: var(--silver); }
.hero-subtitle {
  font-size: 1.125rem;
  color: var(--silver);
  margin-bottom: 40px;
  max-width: 440px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-emblem-wrap {
  position: relative;
  width: 280px;
  height: 280px;
}
.hero-emblem-wrap::before {
  content: '';
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  border: 1px solid rgba(194,204,216,.15);
  animation: spin 30s linear infinite;
}
.hero-emblem-wrap::after {
  content: '';
  position: absolute;
  inset: -48px;
  border-radius: 50%;
  border: 1px solid rgba(194,204,216,.08);
  animation: spin 50s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-emblem-wrap svg { width: 100%; height: 100%; }

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; padding: 72px 0 80px; }
  .hero-visual { order: -1; }
  .hero-emblem-wrap { width: 200px; height: 200px; }
}

/* ── Stats Bar ── */
.stats-bar {
  background: var(--paper);
  padding: 0;
  border-bottom: 1px solid var(--silver);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
}

.stat-item {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid var(--silver);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: .825rem;
  color: var(--steel);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

@media (max-width: 640px) {
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}

/* ── Section: About/Overview ── */
.about-section { background: var(--white); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text h2 { color: var(--navy); margin-bottom: 20px; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.about-text p:last-of-type { margin-bottom: 32px; }

.features-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9375rem;
  color: var(--text-muted);
}
.feature-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.feature-icon svg { width: 12px; height: 12px; stroke: var(--white); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.about-visual {
  background: linear-gradient(160deg, var(--navy) 0%, #1E3054 100%);
  border-radius: 12px;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.service-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(194,204,216,.15);
  border-radius: 8px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.service-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: linear-gradient(135deg, #C2CCD8, #9DA9BA);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-card-icon svg { width: 20px; height: 20px; stroke: var(--navy); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-card-text strong { color: var(--white); font-size: .9rem; display: block; margin-bottom: 2px; }
.service-card-text span { color: var(--silver-dk); font-size: .8rem; }

@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* ── Featured Products ── */
.products-section { background: var(--paper); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { color: var(--navy); margin-bottom: 16px; }
.section-header p { color: var(--text-muted); max-width: 520px; margin: 0 auto; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--silver);
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--silver-dk);
}

.product-card-visual {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy) 0%, #1E3054 100%);
  position: relative;
  overflow: hidden;
}
.product-card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(194,204,216,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(194,204,216,.05) 1px, transparent 1px);
  background-size: 20px 20px;
}
.product-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(194,204,216,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.product-card-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--silver);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-card-body { padding: 24px; }
.product-card-body h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.1rem; }
.product-card-body p { color: var(--text-muted); font-size: .875rem; line-height: 1.6; }

.products-footer { text-align: center; margin-top: 48px; }

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

/* ── Why Legacy ── */
.why-section { background: var(--navy); }
.why-section .section-label { color: var(--silver-dk); }
.why-section h2 { color: var(--white); margin-bottom: 16px; }
.why-intro { color: var(--silver); margin-bottom: 56px; max-width: 560px; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 32px;
}

.why-item {
  padding: 32px 28px;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(194,204,216,.12);
  transition: var(--transition);
}
.why-item:hover { background: rgba(255,255,255,.08); }

.why-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--silver-dk);
  opacity: .5;
  line-height: 1;
  margin-bottom: 12px;
}
.why-item h3 { color: var(--white); margin-bottom: 10px; }
.why-item p  { color: var(--silver-dk); font-size: .9rem; }

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

/* ── CTA Band ── */
.cta-band {
  background: var(--paper);
  border-top: 1px solid var(--silver);
  border-bottom: 1px solid var(--silver);
  padding: 72px 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band-text h2 { color: var(--navy); margin-bottom: 10px; }
.cta-band-text p  { color: var(--text-muted); }
.cta-band-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Full Products Page ── */
.page-hero {
  background: var(--navy);
  padding: 72px 0;
}
.page-hero h1 { color: var(--white); }
.page-hero p  { color: var(--silver); margin-top: 16px; max-width: 560px; font-size: 1.1rem; }

.category-section { padding: 64px 0; border-bottom: 1px solid var(--silver); }
.category-section:last-of-type { border-bottom: none; }

.category-header { margin-bottom: 40px; }
.category-header h2 { color: var(--navy); }
.category-header p  { color: var(--text-muted); margin-top: 10px; }

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

.product-item {
  border: 1px solid var(--silver);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
  transition: var(--transition);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.product-item:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow);
}
.product-item-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--paper);
  border: 1px solid var(--silver);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-item-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.product-item h4 { color: var(--navy); margin-bottom: 6px; }
.product-item p  { font-size: .85rem; color: var(--text-muted); }

/* ── Contact Page ── */
.contact-hero { background: var(--navy); padding: 72px 0; }
.contact-hero h1 { color: var(--white); }
.contact-hero p  { color: var(--silver); margin-top: 16px; max-width: 520px; font-size: 1.1rem; }

.contact-section { background: var(--white); padding: 80px 0; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-info h3 { color: var(--navy); margin-bottom: 20px; }
.contact-info p  { color: var(--text-muted); margin-bottom: 32px; line-height: 1.75; }

.contact-methods { display: flex; flex-direction: column; gap: 20px; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid var(--silver);
  border-radius: 8px;
  transition: var(--transition);
}
.contact-method:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.contact-method-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-method-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-method-text strong {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--steel);
  margin-bottom: 4px;
}
.contact-method-text a {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  transition: var(--transition);
}
.contact-method-text a:hover { color: var(--navy-mid); }

.service-area {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--paper);
  border-radius: 8px;
  border-left: 3px solid var(--navy);
}
.service-area strong { color: var(--navy); display: block; margin-bottom: 4px; font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; }
.service-area p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* Contact card on right */
.contact-card {
  background: var(--paper);
  border-radius: 12px;
  padding: 40px;
  border: 1px solid var(--silver);
}
.contact-card h3 { color: var(--navy); margin-bottom: 12px; }
.contact-card > p { color: var(--text-muted); margin-bottom: 28px; font-size: .9375rem; }

.info-group { margin-bottom: 24px; }
.info-group label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--steel);
  margin-bottom: 6px;
}
.info-value {
  font-size: .9375rem;
  color: var(--text);
  font-weight: 500;
}

.hours-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.hours-table td { padding: 6px 0; color: var(--text-muted); }
.hours-table td:first-child { font-weight: 600; color: var(--text); width: 140px; }
.hours-divider { border: none; border-top: 1px solid var(--silver); margin: 28px 0; }

@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: var(--silver);
  padding: 64px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p {
  color: var(--silver-dk);
  font-size: .9rem;
  margin-top: 20px;
  max-width: 320px;
  line-height: 1.75;
}
.footer-logo { height: 70px; width: auto; }

.footer-col h4 {
  color: var(--white);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  color: var(--silver-dk);
  font-size: .875rem;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
  color: var(--silver-dk);
  margin-bottom: 12px;
}
.footer-contact-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--silver-dk);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.footer-contact-item a { color: var(--silver-dk); transition: var(--transition); }
.footer-contact-item a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  font-size: .8rem;
  color: var(--silver-dk);
  opacity: .65;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}

/* ── Utilities ── */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.navy-bg { background: var(--navy); }
.paper-bg { background: var(--paper); }

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--silver);
  border: none;
  margin: 0;
}
