/* =========================================================
   Phoenix Recycling - site.css
   Single-source stylesheet (no patchwork)
   ========================================================= */

/* ---------- CSS Variables ---------- */
:root{
  --bg: #ffffff;
  --text: #0f1720;
  --muted: #5b6774;
  --border: rgba(15, 23, 32, 0.10);

  --brand: #223445;          /* deep slate */
  --brand-2: #2b4257;        /* slate alt */
  --accent: #c63a3a;         /* subtle industrial red accent (not loud) */

  --surface: #f6f7f9;
  --surface-2: #eef1f4;

  --shadow: 0 10px 30px rgba(15, 23, 32, 0.10);
  --shadow-soft: 0 8px 20px rgba(15, 23, 32, 0.08);

  --radius: 14px;
  --radius-sm: 10px;

  --container: 1140px;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Base Reset ---------- */
*,
*::before,
*::after{
  box-sizing: border-box;
}

html, body{
  height: 100%;
}

body{
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img{
  max-width: 100%;
  height: auto;
  display: block;
}

a{
  color: inherit;
  text-decoration: none;
}

button{
  font-family: inherit;
}

/* ---------- Utilities ---------- */
.container{
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section{
  padding: 72px 0;
}

.section-tight{
  padding: 48px 0;
}

.kicker{
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hr{
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

.visually-hidden{
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4{
  margin: 0 0 12px 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p{
  margin: 0 0 14px 0;
  color: var(--muted);
}

.lead{
  font-size: 18px;
  color: var(--muted);
  max-width: 70ch;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.btn-primary{
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover{
  background: #1a2936;
  transform: translateY(-1px);
}

.btn-secondary{
  background: rgba(255,255,255,0.75);
  color: var(--brand);
  border-color: rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
}

.btn-secondary:hover{
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}

.btn-ghost{
  background: transparent;
  color: var(--brand);
  border-color: rgba(15, 23, 32, 0.14);
}

.btn-ghost:hover{
  background: rgba(15, 23, 32, 0.04);
  transform: translateY(-1px);
}

/* =========================================================
   HEADER / NAV  (UPDATED — ONLY SECTION CHANGED)
   header.php uses: .container.header-row, .brand-logo, .brand-text,
   .brand-name, .brand-tagline, .desktop-nav, .nav-link, .nav-utility,
   .mobile-nav, .mobile-nav-button, .mobile-nav-panel, .mobile-link
   ========================================================= */

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 18px rgba(15, 23, 32, 0.06);
}

/* header row: slightly taller */
.header-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  min-height: 68px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

/* Larger logo */
.brand-logo{
  width: 54px;
  height:54px;
  object-fit: contain;
}

.brand-text{
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

/* Larger + slightly heavier */
.brand-name{
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

/* Tagline a touch larger */
.brand-tagline{
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* Desktop nav: slightly larger links + larger click targets */
.desktop-nav{
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link{
  font-size: 16px;
  font-weight: 600;
  color: rgba(15, 23, 32, 0.80);
  padding: 10px 12px;
  border-radius: 11px;
  transition: background .18s ease, color .18s ease;
}

.nav-link:hover{
  background: rgba(15, 23, 32, 0.05);
  color: rgba(15, 23, 32, 0.95);
}

.nav-link.is-active{
  color: var(--brand);
  background: rgba(34, 52, 69, 0.10);
}

/* Optional utility link ("My Phoenix") — slightly more button-like */
.nav-utility{
  margin-left: 6px;
  border: 1px solid rgba(34, 52, 69, 0.20);
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(34, 52, 69, 0.03);
}

/* Mobile nav (details/summary - no JS) */
.mobile-nav{
  display: none;
  position: relative;
}

.mobile-nav-button{
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(34, 52, 69, 0.18);
  background: rgba(34, 52, 69, 0.04);
  color: rgba(15, 23, 32, 0.86);
  user-select: none;
}

.mobile-nav-button::-webkit-details-marker{ display:none; }

.burger{
  width: 18px;
  height: 2px;
  background: rgba(15, 23, 32, 0.72);
  position: relative;
  display: inline-block;
  border-radius: 999px;
}
.burger::before,
.burger::after{
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: rgba(15, 23, 32, 0.72);
  border-radius: 999px;
}
.burger::before{ top: -6px; }
.burger::after{ top: 6px; }

.mobile-nav-panel{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(320px, calc(100vw - 48px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 10px;
}

.mobile-link{
  display: block;
  padding: 11px 10px;
  border-radius: 12px;
  font-size: 15px;
  color: rgba(15, 23, 32, 0.86);
}
.mobile-link:hover{
  background: rgba(15, 23, 32, 0.05);
}
.mobile-link.is-active{
  background: rgba(34, 52, 69, 0.08);
  color: var(--brand);
}
.mobile-divider{
  height: 1px;
  background: rgba(15, 23, 32, 0.08);
  margin: 8px 6px;
}
.mobile-utility{
  border: 1px solid rgba(34, 52, 69, 0.18);
  border-radius: 999px;
  padding: 10px 12px;
}

/* Header responsive */
@media (max-width: 860px){
  .desktop-nav{ display: none; }
  .mobile-nav{ display: block; }
  .brand{ min-width: auto; }
  .header-row{ gap: 12px; padding: 14px 0; min-height: 64px; }
  .brand-logo{ width: 36px; height: 36px; }
  .brand-name{ font-size: 17px; }
}

/* ---------- Hero ---------- */

/*
  Assumes HTML like:

  <section class="hero-industrial" style="--hero-image:url('/images/hero-weima.jpg')">
    <div class="hero-overlay"></div>
    <div class="container hero-content">
      <h1 class="hero-title">...</h1>
      <p class="hero-subtitle">...</p>
      <div class="hero-services">...</div>
      <div class="hero-actions">...</div>
    </div>
  </section>
*/

.hero-industrial{
  position: relative;
  isolation: isolate;

  background: url('/images/hero-weima.jpg') 62% 45% / cover no-repeat;

  padding: 118px 0 96px;
}

/* If you prefer not using inline CSS variable, you can hardcode:
.hero-industrial{ background: url('/images/hero-weima.jpg') center/cover no-repeat; }
*/

.hero-overlay{
  position: absolute;
  inset: 0;
  /* Softer than before; readable but not "movie-dark" */
  background: linear-gradient(
    to right,
    rgba(15, 25, 35, 0.76) 0%,
    rgba(15, 25, 35, 0.50) 45%,
    rgba(15, 25, 35, 0.15) 100%
  );
  z-index: 1;
}

.hero-content{
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-title{
  font-size: clamp(34px, 4.1vw, 54px);
  font-weight: 700; /* slightly softer than “bold-bold” */
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.hero-subtitle{
  color: rgba(255,255,255,0.88);
  font-size: 16px;
  max-width: 68ch;
  margin-bottom: 16px;
}

/* This is the “bullets” / services line under the hero */
.hero-services{
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}

.hero-services .dot{
  display: inline-block;
  margin: 0 10px;
  opacity: 0.65;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* index.php uses .hero-kicker (same role as .hero-services/.hero-subtitle) */
.hero-kicker{
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}

/* Buttons: allow using .btn-primary/.btn-secondary without also adding .btn */
.btn,
.btn-primary,
.btn-secondary,
.btn-ghost{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}


/* ---------- Stats Bar ---------- */
/*
  Assumes:

  <section class="stats-bar">
    <div class="container">
      <div class="stats-grid">
        <div class="stat-box">
          <div class="stat-value">40+</div>
          <div class="stat-label">Years Experience</div>
        </div>
        ...
      </div>
    </div>
  </section>
*/

.stats-bar{
  background: linear-gradient(135deg, #1f2d3a, #263847);
  color: #fff;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.stats-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

/* index.php variant: .stats-bar-grid + .stat-pill */
.stats-bar-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.stat-pill{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 16px 16px;
  text-align: center;
  transition: transform .2s ease, background .2s ease;
}

.stat-pill:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.09);
}

.stat-top{
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.stat-bottom{
  font-size: 12px;
  opacity: 0.80;
}


.stat-box{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 16px 16px;
  text-align: center;
  transition: transform .2s ease, background .2s ease;
}

.stat-box:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.09);
}

.stat-value{
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.stat-label{
  font-size: 12px;
  opacity: 0.80;
}

/* ---------- Content Blocks / Cards ---------- */
.grid-2{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 26px;
}

.card h3{
  margin-bottom: 10px;
}

.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34,52,69,0.08);
  border: 1px solid rgba(34,52,69,0.10);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
}

/* Feature list */
.feature-list{
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.feature{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(15,23,32,0.06);
}

.feature strong{
  display: block;
  margin-bottom: 3px;
  color: var(--text);
}

.feature p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 34px 0;
}

.footer-inner{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-col{
  max-width: 520px;
}

.footer-title{
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-links{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.footer-links a{
  color: var(--muted);
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 10px;
}

.footer-links a:hover{
  background: rgba(15,23,32,0.05);
  color: rgba(15,23,32,0.85);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .nav{
    gap: 10px;
  }
  .brand{
    min-width: auto;
  }
  .stats-grid,
  .stats-bar-grid{
  grid-template-columns: repeat(2, 1fr);
  }
  .grid-2{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .header-inner{
    flex-wrap: wrap;
    gap: 10px;
  }
  .nav{
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .hero-industrial{
    padding: 80px 0 58px;
  }
  .hero-actions{
    width: 100%;
  }
  .btn{
    width: 100%;
  }
  .stats-grid,
  .stats-bar-grid{
  grid-template-columns: 1fr;
  }
}