/* ============================================
   STAUNCH — Master Stylesheet
   Palette: Alpine Ember
   Mode: Mixed (dark hero/nav, light content)
   Fonts: DM Sans + Outfit
   ============================================ */

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

:root {
  /* Alpine Ember Palette */
  --bg-dark: #141612;
  --surface-dark: #1E2420;
  --bg-light: #F2EDE8;
  --surface-light: #FFFFFF;
  --evergreen: #2D7A52;
  --evergreen-soft: #358C5F;
  --evergreen-glow: rgba(45, 122, 82, 0.12);
  --copper: #D4873F;
  --copper-soft: #DFA05E;
  --copper-glow: rgba(212, 135, 63, 0.12);
  --text-light: #F2EDE8;
  --text-dark: #141612;
  --text-muted-light: rgba(242, 237, 232, 0.72);
  --text-muted-dark: #5C5C58;
  --border-dark: rgba(255,255,255,0.06);
  --border-light: rgba(0,0,0,0.07);

  /* Typography */
  --font-heading: 'DM Sans', sans-serif;
  --font-body: 'Outfit', sans-serif;

  /* Layout */
  --max-width: 1160px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
body.nav-open { overflow: hidden; }

/* Focus styles for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}
.nav-links a:focus-visible,
.nav-cta:focus-visible {
  outline-color: var(--copper);
}
.btn:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; }

p { font-size: 1.02rem; line-height: 1.75; }

.label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 14px;
}
.label-green { color: var(--evergreen); }
.label-copper { color: var(--copper); }
.section-dark .label-green { color: #4CAF7D; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 15px 32px;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-copper {
  background: var(--copper);
  color: var(--bg-dark);
}
.btn-copper:hover {
  background: var(--copper-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(212, 135, 63, 0.25);
}
.btn-outline-light {
  background: transparent;
  border: 1.5px solid rgba(242, 237, 232, 0.2);
  color: var(--text-light);
}
.btn-outline-light:hover {
  border-color: var(--copper);
  color: var(--copper);
  transform: translateY(-2px);
}
.btn-arrow::after {
  content: '→';
  transition: transform var(--transition);
}
.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: rgba(20, 22, 18, 0.98);
  border-bottom: 1px solid var(--border-dark);
  transition: padding var(--transition);
}
.nav.scrolled { padding: 12px 0; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* Nav Logo — Icon + Wordmark */
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img { height: 28px; width: auto; }
.footer .nav-logo img { height: 22px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted-light);
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-light); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0; right: 0;
  height: 2px;
  background: var(--copper);
  border-radius: 2px;
}

.nav-links a.nav-cta {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 22px;
  background: var(--copper);
  color: var(--bg-dark);
  border-radius: 60px;
  transition: var(--transition);
}
.nav-links a.nav-cta:hover {
  background: var(--copper-soft);
  color: var(--bg-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: var(--transition);
}

/* === DARK SECTIONS (hero, nav, footer) === */
.section-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}
.section-dark p { color: var(--text-muted-light); }

/* === LIGHT SECTIONS (content) === */
.section-light {
  background: var(--bg-light);
  color: var(--text-dark);
}
.section-light p { color: var(--text-muted-dark); }

/* === HERO (shared) === */
.hero, .page-hero {
  position: relative;
  overflow: hidden;
}

/* Home hero */
.hero { padding: 140px 0 80px; }

.hero-content { max-width: 680px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.hero-content h1 { margin-bottom: 24px; }
.hero-content h1 .accent {
  display: block;
  background: linear-gradient(135deg, var(--copper), var(--copper-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  font-size: 1.15rem;
  max-width: 520px;
  margin: 0 auto 36px;
  color: var(--text-muted-light);
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Page hero (inner pages) */
.page-hero { padding: 140px 0 60px; }
.page-hero h1 { margin-bottom: 14px; position: relative; }
.page-hero p {
  font-size: 1.1rem;
  max-width: 580px;
  color: var(--text-muted-light);
  position: relative;
}

/* === SECTION SPACING === */
.section-pad { padding: 88px 0; }
.section-pad-sm { padding: 64px 0; }

.section-header { margin-bottom: 52px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 540px; font-size: 1.05rem; }

/* Transition strip between dark and light */
.transition-strip {
  height: 4px;
  background: linear-gradient(90deg, var(--evergreen), var(--copper));
}

/* === SERVICE CARDS === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 40px 34px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--evergreen);
  opacity: 0;
  transition: var(--transition);
}
.service-card:nth-child(even)::before { background: var(--copper); }
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 1.4rem;
}
.icon-green { background: var(--evergreen-glow); }
.icon-copper { background: var(--copper-glow); }

.service-card h3 { margin-bottom: 10px; color: var(--text-dark); }
.service-card p { font-size: 0.94rem; color: var(--text-muted-dark); }
.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--evergreen);
  margin-top: 18px;
  transition: var(--transition);
}
.service-card:nth-child(even) .card-link { color: var(--copper); }
.service-card .card-link:hover { gap: 10px; }

/* === STATS BAR === */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 48px 0;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-number.green { color: var(--evergreen); }
.stat-number.copper { color: var(--copper); }
.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted-dark);
}

/* === TESTIMONIALS === */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 28px;
}
.testimonial-card {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 38px 34px;
  position: relative;
}
.quote-mark {
  font-family: Georgia, serif;
  font-size: 4.5rem;
  line-height: 0.5;
  color: var(--copper);
  opacity: 0.25;
  position: absolute;
  top: 28px; right: 34px;
}
.testimonial-card blockquote {
  font-size: 1rem;
  color: var(--text-muted-dark);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--evergreen-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--evergreen);
}
.author-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
}
.author-role {
  font-size: 0.8rem;
  color: var(--text-muted-dark);
}

/* === CTA BANNER === */
.cta-banner {
  background: var(--bg-dark);
  border-radius: 22px;
  padding: 64px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner .label { position: relative; }
.cta-banner h2 { color: var(--text-light); margin-bottom: 12px; position: relative; }
.cta-banner p { color: var(--text-muted-light); font-size: 1.05rem; margin-bottom: 32px; position: relative; }
.cta-banner .btn { position: relative; }

/* === ABOUT STORY === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 14px; }

.about-visual {
  background: var(--bg-dark);
  border-radius: 22px;
  padding: 52px;
  text-align: center;
}
.big-year {
  font-family: var(--font-heading);
  font-size: 7rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--evergreen), var(--copper));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -0.05em;
}
.year-label {
  font-size: 0.95rem;
  color: var(--text-muted-light);
  margin-top: 8px;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.value-item {
  padding: 32px 28px;
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  transition: var(--transition);
}
.value-item:hover { border-color: var(--evergreen); }
.value-num {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--copper);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.value-item h4 { margin-bottom: 8px; color: var(--text-dark); }
.value-item p { font-size: 0.9rem; color: var(--text-muted-dark); }

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 52px;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { margin-bottom: 36px; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.detail-icon {
  width: 44px; height: 44px;
  min-width: 44px;
  background: var(--evergreen-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.detail-label {
  font-size: 0.75rem;
  color: var(--text-muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}
.detail-value {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.98rem;
}
a.detail-value:hover { color: var(--copper); }

.contact-map {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  overflow: hidden;
  min-height: 360px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: none;
  display: block;
}

/* === INDUSTRY PAGE FEATURES === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-item {
  padding: 32px 28px;
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  transition: var(--transition);
}
.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.06);
}
.feature-item h4 { margin-bottom: 8px; }
.feature-item p { font-size: 0.92rem; color: var(--text-muted-dark); }

/* === FAQ === */
.faq-list {
  max-width: 720px;
}
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
}
.faq-question {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--copper);
  flex-shrink: 0;
  transition: var(--transition);
}
.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer {
  max-height: 600px;
}
.faq-answer p {
  padding-top: 14px;
  font-size: 0.95rem;
  color: var(--text-muted-dark);
}

/* === FOOTER === */
.footer {
  background: var(--bg-dark);
  padding: 56px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted-light);
  max-width: 260px;
  margin-top: 12px;
}
.footer-links .footer-heading {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted-light);
  margin-bottom: 14px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-size: 0.9rem;
  color: rgba(242, 237, 232, 0.6);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--copper); }

.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted-light);
  transition: var(--transition);
}
.footer-socials a:hover {
  background: var(--copper-glow);
  border-color: rgba(212, 135, 63, 0.3);
  color: var(--copper);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-dark);
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(242, 237, 232, 0.3);
}

/* === LEGAL / POLICY PAGES === */
.legal-content {
  max-width: 780px;
}
.legal-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 48px;
  margin-bottom: 16px;
}
.legal-content h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal-content p {
  font-size: 0.95rem;
  color: var(--text-muted-dark);
  line-height: 1.8;
  margin-bottom: 16px;
}
.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-content li {
  font-size: 0.95rem;
  color: var(--text-muted-dark);
  line-height: 1.8;
  margin-bottom: 6px;
}
.legal-content strong {
  color: var(--text-dark);
  font-weight: 600;
}
.legal-content a {
  color: var(--evergreen);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover {
  color: var(--copper);
}
.legal-content hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 32px 0;
}
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.9rem;
}
.legal-content th,
.legal-content td {
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  color: var(--text-muted-dark);
  line-height: 1.6;
}
.legal-content th {
  background: var(--surface-light);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-dark);
}
/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up {
  opacity: 0;
  animation: fadeUp 0.65s ease-out forwards;
}
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.3s; }

/* === UTILITY CLASSES (replacing inline styles) === */
.bg-white { background: #fff; }
.no-underline { text-decoration: none; }
.grid-auto-sm { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-single { grid-template-columns: 1fr; }

/* FAQ question keyboard styles */
.faq-question:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
  border-radius: 4px;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dark);
  padding: 20px 0;
}
.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cookie-inner p {
  font-size: 0.88rem;
  color: var(--text-muted-light);
  margin: 0;
  line-height: 1.5;
}
.cookie-inner a {
  color: var(--copper);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-buttons .btn {
  padding: 10px 20px;
  font-size: 0.82rem;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-dark);
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 999;
  }
  .nav-links.open a { font-size: 1.2rem; color: var(--text-light); }

  .hero, .page-hero { padding-top: 120px; }
  .section-pad { padding: 64px 0; }
  .section-pad-sm { padding: 48px 0; }

  .services-grid,
  .testimonials-grid,
  .features-grid { grid-template-columns: 1fr; }

  .stats-bar { grid-template-columns: 1fr; gap: 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .cta-banner { padding: 44px 24px; }
}

@media (max-width: 680px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; gap: 20px; }
  .cookie-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
