/* ============================================================
   Praesto Window Furnishings — Main Stylesheet
   ============================================================ */

/* ── Design Tokens ── */
:root {
  --brand:        #1a1a5e;   /* deep navy — hero, dark sections */
  --brand-mid:    #4A6BA8;   /* warm steel blue — buttons, links */
  --accent:       #8B5E3C;   /* warm brown — highlights, hover */
  --surface:      #FFFFFF;
  --surface-alt:  #F5F4F1;   /* warm beige — section backgrounds */
  --border:       #E5E2DC;   /* warm beige border */
  --text:         #1C1C1E;   /* near black */
  --text-muted:   #78716C;   /* warm grey */

  --font: 'Inter', system-ui, -apple-system, sans-serif;

  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --radius:    4px;
  --max-w:     1160px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-mid); text-decoration: underline; }
a:hover { color: var(--brand); }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-top: 3px solid var(--brand);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  padding-block: var(--space-md);
  min-height: 80px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  gap: var(--space-sm);
}
.site-logo__img {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.site-logo__text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  text-decoration: none;
}

/* Nav */
.site-nav { display: flex; align-items: center; gap: 0; list-style: none; }
.site-nav a {
  display: block;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.site-nav a:hover,
.site-nav a.active { color: var(--brand-mid); }

/* Nav CTA button */
.site-nav .nav-cta a {
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  margin-left: var(--space-sm);
}
.site-nav .nav-cta a:hover { background: var(--brand-mid); color: #fff; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brand);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.2s;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; flex-direction: column; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-md) var(--space-lg);
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; font-size: 0.85rem; }
  .site-nav .nav-cta a { margin-left: 0; margin-top: var(--space-sm); }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  margin-top: var(--space-2xl);
  font-size: 0.9rem;
  color: var(--text);
}

.footer-main {
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  gap: var(--space-2xl);
  padding-block: var(--space-2xl);
  align-items: start;
}

.footer-logo { text-decoration: none; display: inline-block; }
.footer-logo__img { height: 42px; width: auto; object-fit: contain; }
.footer-logo__text {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand);
}
.footer-tagline {
  margin-top: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 200px;
}

.footer-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

/* Newsletter subscribe */
.footer-subscribe {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.footer-subscribe input {
  flex: 1;
  padding: 0.6rem var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font);
  outline: none;
}
.footer-subscribe input:focus { border-color: var(--brand-mid); }
.footer-subscribe button {
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
}
.footer-subscribe button:hover { background: #b07e22; }

/* Quick links */
.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--brand-mid); }

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: var(--space-md);
}
.footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 580px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom__inner { flex-direction: column; gap: var(--space-sm); }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.75rem 1.75rem;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-primary:hover { background: var(--brand-mid); border-color: var(--brand-mid); color: #fff; }

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover { background: #b07e22; border-color: #b07e22; color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-outline:hover { background: var(--brand); color: #fff; }

.btn-bright {
  background: #4A6BA8;
  color: #fff;
  border-color: #4A6BA8;
}
.btn-bright:hover { background: #3a5a94; border-color: #3a5a94; color: #fff; }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ============================================================
   Section utilities
   ============================================================ */
.section { padding-block: var(--space-3xl); }
.section--sm { padding-block: var(--space-2xl); }
.section--alt { background: var(--surface-alt); }
.section--dark { background: var(--brand); color: #fff; }
.section--dark .section-eyebrow { color: rgba(255,255,255,0.5); }
.section--dark .section-title { color: #fff; }
.section--dark .section-lead { color: rgba(255,255,255,0.75); }
.section--dark p { color: rgba(255,255,255,0.75); }

.section-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--brand);
  margin-bottom: var(--space-md);
}
.section-lead {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: var(--space-lg);
}

/* ── 2-col split ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.split--wide { grid-template-columns: 3fr 2fr; }
.split--narrow { grid-template-columns: 2fr 3fr; }
@media (max-width: 768px) {
  .split, .split--wide, .split--narrow { grid-template-columns: 1fr; }
}

/* ── Card grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

/* ── Stats row ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  text-align: center;
}
@media (max-width: 600px) { .stats-row { grid-template-columns: 1fr; } }

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: var(--space-xs);
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Page hero ── */
.page-hero {
  background: var(--brand);
  color: #fff;
  padding-top: var(--space-3xl);
  padding-bottom: 0;
  position: relative;
}
.page-hero__inner {
  padding-bottom: var(--space-lg);
}
.page-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: var(--space-md);
}
.page-hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
}
/* Wave — gentle curve at the bottom edge of the hero */
.page-hero__wave {
  display: block;
  width: 100%;
  height: 48px;
  margin-bottom: -2px;
}

/* ── Pill / badge ── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.badge--accent { background: var(--accent); color: #fff; }
.badge--brand  { background: var(--brand);  color: #fff; }

/* ── Fabric card ── */
.fabric-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.2s, transform 0.2s;
}
.fabric-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  color: var(--text);
}
.fabric-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.fabric-card__body { padding: var(--space-md) var(--space-lg); }
.fabric-card__name { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.fabric-card__meta { font-size: 0.8rem; color: var(--text-muted); }

/* ── CTA split bar ── */
.cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.cta-bar__text {}
.cta-bar__text h2 { color: #fff; margin-bottom: 0.25rem; }
.cta-bar__text p  { color: rgba(255,255,255,0.72); }

/* ── Commitment / feature card ── */
.feature-card { padding: var(--space-lg); }
.feature-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  color: var(--accent);
}
.feature-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}
.feature-card__body { font-size: 0.9rem; color: var(--text-muted); }
.section--dark .feature-card__body { color: rgba(255,255,255,0.65); }
.section--dark .feature-card__title { color: #fff; }

/* ── 4-col grid ── */
.col-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
@media (max-width: 900px) { .col-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .col-4 { grid-template-columns: 1fr; } }

/* ── Text utilities ── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-white { color: #fff; }
.text-white-dim { color: rgba(255,255,255,0.72); }
.mt-sm  { margin-top: var(--space-sm);  }
.mt-md  { margin-top: var(--space-md);  }
.mt-lg  { margin-top: var(--space-lg);  }
.mt-xl  { margin-top: var(--space-xl);  }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-md  { margin-bottom: var(--space-md);  }
.mb-lg  { margin-bottom: var(--space-lg);  }
.mb-xl  { margin-bottom: var(--space-xl);  }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.flex   { display: flex; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
