/* =====================================
   Glitter Pine Renewables — style.css
   Industrial Modern aesthetic (dark, metallic, urban)
   Mobile-first • Flexbox-only • High contrast • Brand-aligned
   ===================================== */

/* ------------------------------
   0) RESET & BASELINE
------------------------------ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { margin: 0 0 16px; padding-left: 20px; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
:focus { outline: 2px solid #E3A91A; outline-offset: 2px; }

/* ------------------------------
   1) DESIGN TOKENS (with fallbacks)
------------------------------ */
:root {
  --color-bg: #0E1215;             /* deep charcoal */
  --color-panel: #14191D;          /* panel charcoal */
  --color-text: #E6EAED;           /* near-white */
  --color-text-muted: #B9C0C6;     /* soft gray */
  --color-metal: #6F767D;          /* metallic line */
  --color-metal-light: #8A9299;    /* lighter metallic */
  --color-primary: #0B4F3A;        /* brand green */
  --color-secondary: #E3A91A;      /* brand amber */
  --color-accent: #F3FAF6;         /* light accent for testimonials */
  --shadow-1: 0 6px 20px rgba(0,0,0,0.35);
  --shadow-2: 0 2px 10px rgba(0,0,0,0.25);
  --radius-1: 10px;
  --radius-2: 6px;
  --container-max: 1180px;
}

/* ------------------------------
   2) TYPOGRAPHY
------------------------------ */
body {
  font-family: Verdana, Geneva, Segoe UI, Roboto, Arial, sans-serif; /* brand body */
  background: #0E1215; background: var(--color-bg);
  color: #E6EAED; color: var(--color-text);
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Trebuchet MS", Tahoma, Segoe UI, Arial, sans-serif; /* brand display */
  margin: 0 0 12px;
  line-height: 1.2;
  color: #FFFFFF;
  letter-spacing: 0.5px;
}

h1 { font-size: 36px; }
h2 { font-size: 28px; margin-bottom: 16px; }
h3 { font-size: 20px; margin-top: 8px; }
h4 { font-size: 18px; }

p { margin: 0 0 14px; color: #E6EAED; }
.small-print { font-size: 12px; color: #B9C0C6; }

/* Emphasize industrial character via subtle uppercase for meta elements */
.tagline { text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; color: #B9C0C6; }

/* Links */
a { color: #E3A91A; transition: color 0.2s ease; }
a:hover { color: #F1BD3F; }

/* Lists with clean spacing, improved readability */
ul > li, ol > li { margin-bottom: 10px; }

/* Inline badge text */
strong { color: #FFFFFF; }

/* ------------------------------
   3) LAYOUT CONTAINERS (Flexbox only)
------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;                 /* Flexbox only */
  flex-direction: column;        /* Mobile-first */
  align-items: stretch;
  gap: 20px;
}

.content-wrapper {
  display: flex;                 /* Flexbox only */
  flex-direction: column;        /* Mobile-first */
  align-items: flex-start;
  gap: 16px;
}

section { padding: 40px 0; border-bottom: 1px solid #232A30; }

/* Mandatory spacing and alignment patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ------------------------------
   4) HEADER & NAVIGATION
------------------------------ */
.site-header { background: #14191D; border-bottom: 1px solid #2B3238; position: relative; z-index: 20; }
.site-header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }

.branding { display: flex; flex-direction: row; align-items: center; gap: 12px; }
.branding img { height: 36px; width: auto; }

.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a {
  color: #E6EAED;
  padding: 8px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover { background: #0E1215; border-color: #2B3238; }

.header-ctas { display: none; align-items: center; gap: 10px; }

/* Mobile hamburger */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: #0E1215;
  color: #E6EAED;
  border: 1px solid #2B3238;
  border-radius: 6px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.mobile-menu-toggle:hover { transform: translateY(-2px); background: #10161A; border-color: #3A444C; }

/* Mobile menu overlay (slides in) */
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; left: auto;
  width: 100%; max-width: 360px; height: 100vh;
  background: #0F1418;
  border-left: 1px solid #2B3238;
  box-shadow: var(--shadow-1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex; flex-direction: column; gap: 16px;
  padding: 16px;
  z-index: 9999;
}
.mobile-menu.open, .mobile-menu.active { transform: translateX(0); }

.mobile-menu-close {
  align-self: flex-end;
  width: 38px; height: 38px;
  background: #14191D;
  border: 1px solid #2B3238; border-radius: 6px;
}
.mobile-nav { display: flex; flex-direction: column; gap: 10px; }
.mobile-nav a {
  display: flex;
  align-items: center;
  padding: 12px 10px;
  border-radius: 6px;
  font-size: 15px;
  color: #E6EAED;
  background: #12171B;
  border: 1px solid #222A30;
}
.mobile-nav a:hover { background: #161C21; }

/* ------------------------------
   5) HERO SECTIONS
------------------------------ */
.hero { background: #0F1418; border-bottom: 1px solid #2B3238; }
.hero .container { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.hero .content-wrapper { padding-top: 8px; padding-bottom: 8px; }
.hero h1 { font-size: 32px; text-transform: none; letter-spacing: 0.02em; }
.hero p { color: #C9D0D6; }

.trust-badges { color: #B9C0C6; font-size: 13px; padding: 10px 12px; border: 1px dashed #384049; border-radius: 8px; background: #11161A; }

/* ------------------------------
   6) BUTTONS & CTAs
------------------------------ */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: #E3A91A; color: #0E1215; border-color: #E3A91A;
  box-shadow: 0 8px 14px rgba(227,169,26,0.25);
}
.btn-primary:hover { background: #F1BD3F; border-color: #F1BD3F; color: #0E1215; }

.btn-secondary {
  background: transparent; color: #E6EAED; border-color: #3A444C;
}
.btn-secondary:hover { background: #12171B; border-color: #4A5560; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------
   7) TEXT SECTIONS, CARDS, LISTS
------------------------------ */
/* Card-like text blocks to reflect industrial panels */
.content-wrapper > .text-section {
  display: flex; flex-direction: column; gap: 6px;
  width: 100%;
  background: #14191D;
  border: 1px solid #2B3238;
  border-left: 4px solid #0B4F3A; /* brand primary as structural accent */
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--shadow-2);
}
.content-wrapper > .text-section h3 { color: #FFFFFF; font-size: 18px; }
.content-wrapper > .text-section p { color: #C9D0D6; }

/* Icon lists alignment */
ul li img { width: 18px; height: 18px; margin-right: 8px; flex: 0 0 auto; }
ul li { display: flex; align-items: flex-start; gap: 10px; }

/* Metrics/summary lists inside darker panels */
.content-wrapper > ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-left: 20px; }
.content-wrapper > ol { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-left: 20px; }

/* Generic card pattern */
.card {
  background: #14191D;
  border: 1px solid #2B3238;
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--shadow-2);
}

/* ------------------------------
   8) TESTIMONIALS (light background, dark text)
------------------------------ */
.testimonial-card {
  background: #F3FAF6;           /* brand accent light */
  color: #0E1215;                /* dark text for contrast */
  border: 1px solid #DCE6E0;
  border-left: 4px solid #0B4F3A; /* subtle brand signal */
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}
.testimonial-card p { color: #0E1215; margin: 0; }
.testimonial-card strong { color: #0B4F3A; }

/* ------------------------------
   9) FOOTER
------------------------------ */
.site-footer { background: #10151A; border-top: 1px solid #2B3238; }
.site-footer .content-wrapper { gap: 10px; }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.footer-nav a {
  color: #C9D0D6;
  padding: 6px 8px; border-radius: 4px; border: 1px solid transparent;
  text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px;
}
.footer-nav a:hover { border-color: #2B3238; background: #0E1215; }

/* ------------------------------
   10) COOKIE CONSENT BANNER & MODAL
------------------------------ */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: #0F1418;
  color: #E6EAED;
  border-top: 1px solid #2B3238;
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px 16px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 9998;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 8px; border: 1px solid #3A444C; color: #E6EAED; }
.cookie-btn.primary { background: #E3A91A; color: #0E1215; border-color: #E3A91A; }
.cookie-btn.primary:hover { background: #F1BD3F; border-color: #F1BD3F; }
.cookie-btn.reject { background: #14191D; }
.cookie-btn.settings { background: transparent; }

/* Cookie modal with overlay and slide-in */
.cookie-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 9997;
}
.cookie-overlay.open { opacity: 1; pointer-events: auto; }

.cookie-modal {
  position: fixed; top: 0; right: 0; height: 100vh; width: 100%; max-width: 520px;
  background: #11161A; color: #E6EAED; border-left: 1px solid #2B3238;
  transform: translateX(100%); transition: transform 0.3s ease;
  display: flex; flex-direction: column; gap: 16px; padding: 16px; z-index: 9999;
}
.cookie-modal.open { transform: translateX(0); }
.cookie-modal h3 { margin-top: 4px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border: 1px solid #2B3238; border-radius: 8px; background: #0F1418; }
.cookie-toggle { position: relative; width: 44px; height: 24px; border-radius: 20px; background: #3A444C; border: 1px solid #2B3238; display: flex; align-items: center; padding: 2px; }
.cookie-toggle::after { content: ""; display: block; width: 18px; height: 18px; background: #F3FAF6; border-radius: 50%; transform: translateX(0); transition: transform 0.2s ease; }
.cookie-toggle.on { background: #0B4F3A; border-color: #0B4F3A; }
.cookie-toggle.on::after { transform: translateX(20px); }

/* ------------------------------
   11) RESPONSIVE RULES
------------------------------ */
@media (min-width: 768px) {
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  h3 { font-size: 20px; }

  /* Header */
  .main-nav { display: flex; }
  .header-ctas { display: flex; }
  .mobile-menu-toggle { display: none; }

  /* Hero alignment */
  .hero .container { flex-direction: row; align-items: center; }

  /* Turn text-sections into a flexible row of cards */
  .content-wrapper { gap: 18px; }
  .content-wrapper > h2, .content-wrapper > h3, .content-wrapper > p, .content-wrapper > ul, .content-wrapper > ol, .content-wrapper > .cta-row { width: 100%; }
  .content-wrapper > .text-section {
    flex: 1 1 280px;
    max-width: 100%;
  }

  /* Text-image section rule (if used) */
  .text-image-section { flex-direction: row; }
}

@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  .site-header .container { padding-top: 14px; padding-bottom: 14px; }
}

/* ------------------------------
   12) ACCESSIBLE STATES & MICRO-INTERACTIONS
------------------------------ */
.btn:active { transform: translateY(0); }
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(227,169,26,0.35); }
.main-nav a:focus-visible, .mobile-nav a:focus-visible { box-shadow: 0 0 0 3px rgba(227,169,26,0.35); }

/* ------------------------------
   13) INDUSTRIAL DETAILING (subtle lines, metallic accents)
------------------------------ */
/* Section headers get an underline bar */
.content-wrapper > h2 {
  position: relative;
  padding-bottom: 8px;
}
.content-wrapper > h2::after {
  content: "";
  display: block;
  width: 64px; height: 3px;
  background: #6F767D; /* metallic */
  margin-top: 8px;
}

/* Panels get a faint top divider */
.content-wrapper { border-top: 1px solid #1D2328; }

/* ------------------------------
   14) UTILITY & MISC
------------------------------ */
.hide { display: none !important; }
.center { display: flex; align-items: center; justify-content: center; }

/* Ensure adequate spacing between sequential blocks */
.content-wrapper > * + * { margin-top: 6px; }

/* Make sure no overlapping and breathing room */
section + section { margin-top: 10px; }

/* ------------------------------
   15) PRINT BASICS
------------------------------ */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-overlay, .cookie-modal { display: none !important; }
  body { background: #FFFFFF; color: #000000; }
}
