/* ═══════════════════════════════════════════════════════════
   The Peachey Group — Design System
   Fonts: Raleway (headings) · Open Sans (body)
   ═══════════════════════════════════════════════════════════ */

:root {
  --color-primary: #1B365D;
  --color-primary-dark: #0F2340;
  --color-primary-light: #2A4F82;
  --color-secondary: #C8A961;
  --color-secondary-light: #D4BB7C;
  --color-accent: #1B365D;
  --color-bg: #F8F9FA;
  --color-bg-alt: #EEF1F5;
  --color-surface: #FFFFFF;
  --color-text: #2C3E50;
  --color-text-light: #5A6A7A;
  --color-text-muted: #8A99A8;
  --color-border: #D1D9E2;
  --color-hero-overlay: rgba(15, 35, 64, 0.6);

  --font-heading: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --max-width: 1200px;
  --radius: 3px;
  --radius-lg: 6px;
  --shadow: 0 1px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.1);
  --transition: 0.2s ease;
}

/* ── Reset & Base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-light); }
ul, ol { list-style: none; }

/* ── Typography ──────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: 2.5rem; margin-bottom: var(--space-md); letter-spacing: -0.5px; }
h2 { font-size: 2rem; margin-bottom: var(--space-sm); }
h3 { font-size: 1.35rem; margin-bottom: var(--space-xs); }
h4 { font-size: 1.1rem; }
p { margin-bottom: var(--space-sm); }

/* ── Layout ──────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-md); }
.section { padding: var(--space-2xl) 0; }
.section--alt { background: var(--color-bg-alt); }
.section--dark { background: var(--color-primary); color: #fff; }
.section--dark h2, .section--dark h3, .section--dark p { color: #fff; }
.section--navy { background: var(--color-primary-dark); color: #fff; }
.section--navy h2, .section--navy h3, .section--navy p { color: #fff; }
.grid { display: grid; gap: var(--space-lg); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.text-center { text-align: center; }

/* ── Header ──────────────────────────────────────────── */
.site-header {
  background: var(--color-surface);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.header-top {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  padding: 6px 0;
}
.header-top .container {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-md);
}
.header-top a { color: rgba(255,255,255,0.7); }
.header-top a:hover { color: #fff; }
.site-header .header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.site-logo svg { width: 44px; height: 44px; }
.site-logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-primary);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.site-logo-text small {
  display: block;
  font-size: 0.65rem;
  color: var(--color-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* ── Navigation ──────────────────────────────────────── */
.main-nav ul { display: flex; gap: 0; align-items: center; }
.main-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  padding: var(--space-sm) var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--space-md);
  right: var(--space-md);
  height: 2px;
  background: var(--color-secondary);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a:hover { color: var(--color-primary); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 28px; height: 28px; fill: var(--color-primary); }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-hero-overlay);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: 3rem; max-width: 700px; font-weight: 800; }
.hero p { font-size: 1.15rem; max-width: 580px; opacity: 0.92; margin-bottom: var(--space-lg); }
.hero .badge {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-primary-dark);
  padding: 6px 16px;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-md);
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  text-decoration: none;
}
.btn--primary { background: var(--color-secondary); color: var(--color-primary-dark); }
.btn--primary:hover { background: var(--color-secondary-light); color: var(--color-primary-dark); }
.btn--outline { border: 2px solid #fff; color: #fff; background: transparent; }
.btn--outline:hover { background: #fff; color: var(--color-primary); }
.btn--dark { background: var(--color-primary); color: #fff; }
.btn--dark:hover { background: var(--color-primary-light); color: #fff; }

/* ── Stats Bar ───────────────────────────────────────── */
.stats-bar {
  background: var(--color-primary);
  padding: var(--space-lg) 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); text-align: center; }
.stat { color: #fff; }
.stat__number { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 800; color: var(--color-secondary); line-height: 1; }
.stat__label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.7); margin-top: var(--space-xs); }

/* ── Cards ───────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--color-border);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--color-secondary); }
.card__image { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card__body { padding: var(--space-md); }
.card__title { font-size: 1.1rem; margin-bottom: var(--space-xs); }
.card__text { color: var(--color-text-light); font-size: 0.95rem; }
.card__meta { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: var(--space-xs); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Service Cards ───────────────────────────────────── */
.service-card {
  padding: var(--space-lg);
  text-align: center;
  border-top: 3px solid transparent;
}
.service-card:hover { border-top-color: var(--color-secondary); }
.service-card svg { width: 48px; height: 48px; fill: var(--color-primary); margin-bottom: var(--space-sm); }
.service-card h3 { font-size: 1.15rem; }
.service-card p { font-size: 0.93rem; color: var(--color-text-light); }
.service-card .btn { margin-top: var(--space-sm); }

/* ── Timeline ────────────────────────────────────────── */
.timeline { position: relative; padding-left: 44px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}
.timeline__item { position: relative; margin-bottom: var(--space-lg); }
.timeline__item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-secondary);
  border: 3px solid var(--color-bg);
}
.timeline__year { font-family: var(--font-heading); font-size: 1rem; color: var(--color-secondary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.timeline__title { font-size: 1.05rem; font-weight: 700; color: var(--color-primary); }

/* ── Testimonials ────────────────────────────────────── */
.testimonial {
  background: var(--color-surface);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
  border-bottom: 3px solid var(--color-secondary);
}
.testimonial__quote {
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  line-height: 1.8;
  font-style: italic;
}
.testimonial__quote::before { content: '\201C'; font-family: var(--font-heading); font-size: 3rem; color: var(--color-secondary); position: absolute; top: 16px; left: 20px; line-height: 1; }
.testimonial__author { font-weight: 700; color: var(--color-primary); }
.testimonial__role { font-size: 0.85rem; color: var(--color-text-muted); }

/* ── Values grid ─────────────────────────────────────── */
.value-item { text-align: center; padding: var(--space-md); }
.value-item h3 { color: var(--color-primary); margin-top: var(--space-sm); font-size: 1.1rem; }

/* ── Feature list ────────────────────────────────────── */
.feature-list { list-style: none; padding: 0; }
.feature-list li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}
.feature-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 700;
}
.feature-list li:last-child { border-bottom: none; }

/* ── Page Header ─────────────────────────────────────── */
.page-header {
  background: var(--color-primary);
  padding: var(--space-xl) 0 var(--space-lg);
  color: #fff;
}
.page-header h1 { color: #fff; margin-bottom: var(--space-xs); }
.page-header p { color: rgba(255,255,255,0.75); }

/* ── Breadcrumbs ─────────────────────────────────────── */
.breadcrumb {
  font-size: 0.82rem;
  padding: var(--space-sm) 0;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.breadcrumb a { color: var(--color-primary); }
.breadcrumb span { margin: 0 6px; color: var(--color-text-muted); }

/* ── Blog ────────────────────────────────────────────── */
.blog-post { max-width: 760px; margin: 0 auto; }
.blog-post__date { color: var(--color-secondary); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.blog-post__content p { margin-bottom: var(--space-md); }

/* ── Contact Form ────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
.form-group { margin-bottom: var(--space-md); }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--color-primary); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.3px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-surface);
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27,54,93,0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success { padding: var(--space-xl); text-align: center; background: rgba(27,54,93,0.05); border-radius: var(--radius-lg); }
.form-success h3 { color: var(--color-primary); margin-bottom: var(--space-xs); }

/* ── Map ─────────────────────────────────────────────── */
.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: 350px; border: 0; }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.75);
  padding: var(--space-xl) 0 var(--space-md);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: var(--space-xl); margin-bottom: var(--space-xl); }
.footer-col h4 { color: #fff; font-family: var(--font-heading); margin-bottom: var(--space-sm); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col p { font-size: 0.88rem; line-height: 1.7; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.88rem; }
.footer-col a:hover { color: var(--color-secondary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.social-links { display: flex; gap: 12px; }
.social-links a { color: rgba(255,255,255,0.5); }
.social-links a:hover { color: var(--color-secondary); }
.social-links svg { width: 20px; height: 20px; fill: currentColor; }

/* ── Cookie Banner ───────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  padding: var(--space-md) var(--space-lg);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 0.88rem; color: var(--color-text-light); flex: 1; margin: 0; }
.cookie-banner a { color: var(--color-primary); text-decoration: underline; }

/* ── Back to Top ─────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 99;
  box-shadow: var(--shadow-lg);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--color-secondary); }
.back-to-top svg { width: 18px; height: 18px; fill: currentColor; }

/* ── Utility ─────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.intro-text { font-size: 1.1rem; color: var(--color-text-light); max-width: 700px; }
.section-subtitle { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2.5px; color: var(--color-secondary); font-weight: 700; margin-bottom: var(--space-xs); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 992px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.4rem; }
}
@media (max-width: 768px) {
  .header-top { display: none; }
  .main-nav ul { display: none; }
  .main-nav.open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open a { padding: 12px var(--space-md); }
  .main-nav.open a::after { display: none; }
  .nav-toggle { display: block; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 400px; }
  .hero h1 { font-size: 1.8rem; }
  .section { padding: var(--space-xl) 0; }
  .cookie-banner { flex-direction: column; text-align: center; }
}

/* ── Print ───────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .cookie-banner, .back-to-top, .nav-toggle, .header-top { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
  .hero { min-height: auto; padding: var(--space-lg) 0; background: none !important; color: #000; }
  .hero::before { display: none; }
  .hero h1, .hero p { color: #000; }
  .section { padding: var(--space-md) 0; }
  .stats-bar { background: #eee; }
  .stat__number { color: #000; }
}
