/* Buckingham Groundworks — preview site design system */

:root {
  --navy-900: #0e1620;
  --navy-800: #14202e;
  --navy-700: #1e3348;
  --navy-600: #2b4863;
  --amber-600: #c97418;
  --amber-500: #e08a2c;
  --amber-400: #f0a94f;
  --stone-600: #5b6472;
  --stone-400: #8a93a1;
  --stone-200: #dde1e6;
  --stone-100: #f2f3f5;
  --off-white: #faf9f7;
  --white: #ffffff;
  --success: #1e7e34;

  --font-head: 'Poppins', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;

  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(14,22,32,0.08), 0 1px 2px rgba(14,22,32,0.06);
  --shadow-md: 0 8px 24px rgba(14,22,32,0.12);
  --shadow-lg: 0 20px 48px rgba(14,22,32,0.18);

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy-900);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy-900);
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--stone-600); }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--white); }
.section--dark {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: var(--white);
}
.section--dark p { color: var(--stone-200); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 12px;
}
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber-500); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--amber-400); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark { background: transparent; border-color: var(--navy-800); color: var(--navy-800); }
.btn-outline-dark:hover { background: var(--navy-800); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--off-white);
  border-bottom: 1px solid var(--stone-200);
}
/* Note: intentionally no backdrop-filter/filter/transform here — any of
   those on an ancestor of .main-nav would create a new containing block
   and break its position:fixed slide-in panel on mobile. */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 9px;
  background: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { font-family: var(--font-head); font-weight: 700; line-height: 1.1; color: var(--navy-900); }
.brand-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber-600); margin-top: 2px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--navy-800);
  position: relative;
  padding: 6px 0;
}
.main-nav a.is-active, .main-nav a:hover { color: var(--amber-600); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; text-decoration: none; color: var(--navy-800); }
.header-phone svg { width: 18px; height: 18px; color: var(--amber-600); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.hero-media { position: relative; min-height: 560px; display: flex; align-items: center; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,22,32,0.94) 10%, rgba(14,22,32,0.72) 60%, rgba(14,22,32,0.48) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; width: 100%; padding-top: 96px; padding-bottom: 96px; max-width: 640px; }
.hero-content .eyebrow { color: var(--amber-400); }
.hero-content h1 { color: var(--white); text-shadow: 0 2px 16px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.4); }
.hero-content p { color: var(--stone-200); font-size: 1.12rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: 32px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--amber-400); }
.hero-stats div span { font-size: 0.82rem; color: var(--stone-200); text-transform: uppercase; letter-spacing: 0.06em; }

.page-hero { position: relative; color: var(--white); }
.page-hero-media { position: relative; min-height: 320px; display: flex; align-items: flex-end; }
.page-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,22,32,0.55), rgba(14,22,32,0.92)); }
.page-hero-content { position: relative; z-index: 2; width: 100%; padding-top: 56px; padding-bottom: 40px; }
.page-hero-content h1 { color: var(--white); text-shadow: 0 2px 16px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.4); }
.breadcrumb { font-size: 0.85rem; color: var(--stone-200); margin-bottom: 10px; }
.breadcrumb a { text-decoration: none; color: var(--stone-200); }
.breadcrumb a:hover { color: var(--amber-400); }

/* Grid / cards */
.grid { display: grid; gap: 28px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--stone-200);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card img { aspect-ratio: 4/3; object-fit: cover; }
.service-card-body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.service-card-body h3 { margin-bottom: 8px; }
.service-card-body p { font-size: 0.94rem; flex: 1; }
.card-link { font-family: var(--font-head); font-weight: 600; font-size: 0.88rem; color: var(--amber-600); display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; color: var(--navy-900); }
.feature-list li svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--amber-500); margin-top: 2px; }

.stat-card {
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.stat-card strong { display: block; font-family: var(--font-head); font-size: 2.1rem; color: var(--navy-800); }
.stat-card span { font-size: 0.85rem; color: var(--stone-600); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); cursor: zoom-in; }
.gallery-item img { aspect-ratio: 4/3; object-fit: cover; transition: transform 0.35s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(0deg, rgba(14,22,32,0.85), rgba(14,22,32,0));
  color: var(--white);
  font-size: 0.78rem;
  font-family: var(--font-head);
}
.gallery-filter { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.filter-btn {
  border: 1px solid var(--stone-200);
  background: var(--white);
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--navy-800);
}
.filter-btn.is-active, .filter-btn:hover { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }

.notice-banner {
  background: var(--amber-500);
  color: var(--navy-900);
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 16px;
  letter-spacing: 0.02em;
}
.notice-banner strong { text-transform: uppercase; letter-spacing: 0.08em; }

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-sm);
}
.testimonial-stars { color: var(--amber-500); font-size: 0.95rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-name { font-family: var(--font-head); font-weight: 600; margin-top: 14px; color: var(--navy-900); }
.testimonial-loc { font-size: 0.82rem; color: var(--stone-400); }

/* Forms */
.form-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--stone-200);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; color: var(--navy-900); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--stone-200);
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--off-white);
  color: var(--navy-900);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--amber-500);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-hint { font-size: 0.78rem; color: var(--stone-400); margin-top: 4px; }
.form-success {
  display: none;
  background: #eafaf0;
  border: 1px solid #b7e8c6;
  color: var(--success);
  padding: 16px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  margin-top: 18px;
}
.form-success.is-visible { display: block; }
.form-disclaimer { font-size: 0.76rem; color: var(--stone-400); margin-top: 10px; }

.contact-info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-list .ci-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--navy-800);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-list .ci-icon svg { width: 20px; height: 20px; color: var(--amber-400); }
.contact-info-list strong { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.contact-info-list a { text-decoration: none; color: var(--stone-600); }
.contact-info-list a:hover { color: var(--amber-600); }

.map-placeholder {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stone-200);
  aspect-ratio: 16/9;
  background: repeating-linear-gradient(135deg, var(--stone-100), var(--stone-100) 10px, var(--white) 10px, var(--white) 20px);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--stone-600);
  font-family: var(--font-head);
  font-size: 0.85rem;
  padding: 20px;
}

/* CTA band */
.cta-band {
  background: var(--navy-800);
  color: var(--white);
  border-radius: 20px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: var(--stone-200); margin: 0; }

/* Footer */
.site-footer { background: var(--navy-900); color: var(--stone-200); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: var(--white); font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: var(--stone-200); font-size: 0.92rem; }
.site-footer a:hover { color: var(--amber-400); }
.footer-brand p { color: var(--stone-400); font-size: 0.9rem; max-width: 320px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--amber-500); border-color: var(--amber-500); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; color: var(--stone-400); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 8px 14px; border-radius: 999px;
  font-size: 0.8rem; font-family: var(--font-head); font-weight: 600;
}
.section--alt .badge, .form-card .badge {
  background: var(--stone-100); border-color: var(--stone-200); color: var(--navy-800);
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .main-nav { position: fixed; top: 73px; left: 0; right: 0; bottom: 0; background: var(--off-white); flex-direction: column; align-items: flex-start; padding: 28px 24px; gap: 6px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--stone-200); font-size: 1.05rem; }
  .nav-toggle { display: block; }
  .header-phone span { display: none; }
  /* The quote button + phone icon + hamburger don't all fit on narrow
     phones, which was pushing the hamburger off-screen entirely.
     Drop the header quote button on mobile — the hamburger menu links
     to Contact, and every page has its own prominent quote CTA. */
  .header-actions > .btn-primary { display: none; }
  .form-row, .grid-2 { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  .cta-band .btn { width: 100%; justify-content: center; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { padding-top: 64px; padding-bottom: 64px; }
  .hero-stats { gap: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-card { padding: 24px; }
  .cta-band { padding: 32px 24px; }
}
