/* ==========================================================================
   NW General Contractor - Main Stylesheet
   Colors: Forest Green (#1E3A2B), Warm Copper (#C17A2F), Cream (#F5EED6)
   Palette derived from tree-ring logo
   ========================================================================== */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1E3A2B;
  --navy-dark: #142A1E;
  --navy-light: #2D5A3D;
  --orange: #C17A2F;
  --orange-hover: #9A5B28;
  --white: #FFFFFF;
  --cream: #F5EED6;
  --gray-50: #F7F6F2;
  --gray-100: #EDEBE4;
  --gray-200: #DDD9CF;
  --gray-300: #C8C3B8;
  --gray-600: #6B6556;
  --gray-700: #4B4639;
  --gray-800: #2C2416;
  --text: #2C2416;
  --shadow-sm: 0 1px 3px rgba(44,36,22,0.1);
  --shadow-md: 0 4px 12px rgba(44,36,22,0.12);
  --shadow-lg: 0 8px 30px rgba(44,36,22,0.15);
  --radius: 8px;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange); }

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

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--gray-700); }

/* ==========================================================================
   Buttons — Tree-ring texture reveals on hover
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover {
  transform: translateY(-2px);
}

/* Tree-ring texture overlay — fades in on hover */
.btn-primary::before,
.btn-navy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url(/images/tree-rings.jpg) center/cover no-repeat;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
  border-radius: inherit;
}
.btn-primary:hover::before,
.btn-navy:hover::before {
  opacity: 1;
}

/* ---- Primary: Copper base, tree-ring hover ---- */
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  color: var(--white);
  box-shadow: 0 0 20px rgba(193,122,47,0.4), 0 0 40px rgba(212,168,84,0.2);
}

/* ---- Outline: Transparent + white border (hero/dark backgrounds) ---- */
.btn-outline {
  background: rgba(0,0,0,0.25);
  color: var(--white);
  border: 2px solid var(--white);
  transition: transform 0.3s, background 0.2s, border-color 0.2s;
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.btn-outline:hover {
  background: rgba(0,0,0,0.35);
  color: var(--white);
  border-color: rgba(255,255,255,0.8);
}

/* ---- Navy: Forest green base, tree-ring hover ---- */
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  color: var(--white);
  box-shadow: 0 0 20px rgba(45,90,61,0.4), 0 0 40px rgba(193,122,47,0.2);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.top-bar {
  background: var(--navy-dark);
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 0;
  white-space: nowrap;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.top-bar a { color: var(--white); white-space: nowrap; }
.top-bar a:hover { color: var(--orange); }
.top-bar span { white-space: nowrap; }
.top-bar-left { display: flex; gap: 20px; align-items: center; white-space: nowrap; flex-shrink: 0; }
.top-bar-right { display: flex; gap: 20px; align-items: center; white-space: nowrap; flex-shrink: 0; }

header {
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}
.logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
}
.logo-text span { color: var(--orange); }
.logo-tagline {
  font-size: 0.7rem;
  color: var(--gray-600);
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* Logo image */
.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}
/* Legacy SVG icon fallback */
.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 28px; height: 28px; fill: var(--orange); }

nav ul {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
}
nav > ul > li > a {
  padding: 8px 16px;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 99px;
  transition: background 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  color: var(--gray-700);
}
nav > ul > li > a:hover, nav > ul > li > a.active {
  background: rgba(30,58,43,0.08);
  color: var(--navy);
}
/* Chevron arrow */
.nav-chevron {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.dropdown:hover .nav-chevron { transform: rotate(180deg); }

/* Dropdown panel — animated */
.dropdown { position: relative; }
.dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--cream);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 24px;
  padding-top: 32px;
  z-index: 100;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.dropdown:hover > .dropdown-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Mega dropdown — 3-column services */
.dropdown-mega {
  display: flex;
  gap: 32px;
  min-width: 620px;
}
.dropdown-col { flex: 1; min-width: 0; }
.dropdown-col-heading {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-600);
  font-weight: 600;
  margin-bottom: 12px;
  padding: 0 8px;
}
/* Dropdown item with icon + label + description */
.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
  text-decoration: none;
  color: var(--text);
}
.dropdown-item:hover {
  background: var(--gray-50);
  color: var(--text);
}
.dropdown-item-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.dropdown-item:hover .dropdown-item-icon {
  background: var(--gray-100);
  border-color: var(--gray-300);
}
.dropdown-item-icon svg { width: 16px; height: 16px; fill: var(--navy); }
.dropdown-item-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}
.dropdown-item-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-600);
  line-height: 1.3;
  margin-top: 1px;
  transition: color 0.2s;
}
.dropdown-item:hover .dropdown-item-desc { color: var(--navy); }

/* Service Areas dropdown — grid */
.dropdown-areas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  min-width: 360px;
}
.dropdown-areas a {
  display: block;
  padding: 8px 12px;
  font-size: 0.85rem;
  border-radius: 6px;
  transition: background 0.2s;
  color: var(--text);
  font-weight: 500;
}
.dropdown-areas a:hover {
  background: var(--gray-50);
  color: var(--orange);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  white-space: nowrap;
}
.header-phone {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  white-space: nowrap;
}
.header-phone:hover { color: var(--orange); }

/* Hidden on desktop, shown on mobile */
.mobile-bottom-cta { display: none; }
.mobile-nav-cta { display: none; }

/* Mobile Menu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  transition: all 0.3s;
  border-radius: 2px;
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 0;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 85vh;
  display: flex;
  align-items: center;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  margin-bottom: 1.25rem;
  max-width: 900px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.5);
  animation: heroFadeUp 1s 0.7s both;
}
.hero-title-accent {
  color: var(--orange);
  -webkit-text-fill-color: var(--orange);
  text-shadow: 0 2px 12px rgba(0,0,0,0.8), 0 1px 4px rgba(0,0,0,0.6);
}
.hero p {
  color: rgba(255,255,255,0.95);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.4);
  animation: heroFadeUp 1s 0.9s both;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; animation: heroFadeUp 1s 1.1s both; }
.hero-trust {
  margin-top: 3rem;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 0.9rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.4);
}
.hero-trust-item svg { width: 20px; height: 20px; fill: var(--orange); flex-shrink: 0; }

/* Hero badge pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 2rem;
  animation: heroFadeUp 1s 0.5s both;
  backdrop-filter: blur(4px);
}
.hero-badge span { font-size: 0.85rem; color: rgba(255,255,255,0.9); letter-spacing: 0.03em; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(193,122,47,0.9);
  flex-shrink: 0;
}

/* Floating geometric shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero-shape {
  position: absolute;
  border-radius: 9999px;
  border: 2px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(2px);
  box-shadow: 0 8px 32px rgba(255,255,255,0.1);
  animation: shapeFloat 12s ease-in-out infinite, shapeFadeIn 2.4s both;
}
.hero-shape::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.2), transparent 70%);
}
/* Shape 1 — large, top-left, indigo */
.shape-1 {
  width: 500px; height: 120px;
  left: -5%; top: 20%;
  transform: rotate(12deg);
  background: linear-gradient(90deg, rgba(45,90,61,0.2), transparent);
  animation-delay: 0s, 0.3s;
}
/* Shape 2 — medium, bottom-right, rose */
.shape-2 {
  width: 420px; height: 100px;
  right: -3%; top: 72%;
  transform: rotate(-15deg);
  background: linear-gradient(90deg, rgba(193,122,47,0.18), transparent);
  animation-delay: -4s, 0.5s;
}
/* Shape 3 — small, bottom-left, violet */
.shape-3 {
  width: 260px; height: 70px;
  left: 8%; bottom: 8%;
  transform: rotate(-8deg);
  background: linear-gradient(90deg, rgba(124,185,139,0.15), transparent);
  animation-delay: -2s, 0.4s;
}
/* Shape 4 — small, top-right, amber */
.shape-4 {
  width: 180px; height: 50px;
  right: 18%; top: 12%;
  transform: rotate(20deg);
  background: linear-gradient(90deg, rgba(212,168,84,0.18), transparent);
  animation-delay: -6s, 0.6s;
}
/* Shape 5 — tiny, center-left, cyan */
.shape-5 {
  width: 130px; height: 35px;
  left: 22%; top: 8%;
  transform: rotate(-25deg);
  background: linear-gradient(90deg, rgba(154,91,40,0.15), transparent);
  animation-delay: -8s, 0.7s;
}
/* Gradient overlay (top + bottom fade) */
.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(20,42,30,0.3) 0%, transparent 30%, transparent 70%, rgba(20,42,30,0.2) 100%);
}

@keyframes shapeFloat {
  0%, 100% { transform: translateY(0) rotate(var(--_r, 0deg)); }
  50% { transform: translateY(15px) rotate(var(--_r, 0deg)); }
}
@keyframes shapeFadeIn {
  from { opacity: 0; transform: translateY(-80px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero for sub-pages */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 0;
  text-align: center;
  background-size: cover;
  background-position: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.5rem; text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.5); }
.page-hero p { color: var(--white); max-width: 600px; margin: 0 auto; text-shadow: 0 1px 8px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.4); }
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.breadcrumb a { color: rgba(255,255,255,0.9); }
.breadcrumb a:hover { color: var(--orange); }

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding: 70px 0; }
.section-light { background: var(--gray-100); }
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}
.section-header p { color: var(--gray-600); font-size: 1.05rem; }
.section-label {
  display: inline-block;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card-icon {
  width: 56px;
  height: 56px;
  background: var(--gray-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.service-card-icon svg { width: 28px; height: 28px; fill: var(--orange); }
.service-card h3 { margin-bottom: 0.75rem; }
.service-card p { font-size: 0.95rem; color: var(--gray-600); margin-bottom: 1rem; }
.service-card .learn-more {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card .learn-more::after { content: '\2192'; transition: transform 0.2s; }
.service-card:hover .learn-more::after { transform: translateX(4px); }

/* ==========================================================================
   Glowing Bento Grid
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(14rem, auto);
  gap: 16px;
}
.bento-grid .glow-card {
  position: relative;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 3px;
  list-style: none;
  text-decoration: none;
  display: block;
  color: var(--white);
}
.bento-grid .glow-card:hover { color: var(--white); }

/* Glow border element */
.glow-border {
  --glow-spread: 40;
  --glow-start: 0deg;
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
}
.glow-border::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 3px solid transparent;
  background: conic-gradient(
    from var(--glow-start),
    #D4A854 0deg,
    #2D5A3D 72deg,
    #C17A2F 144deg,
    #7CB98B 216deg,
    #D4A854 360deg
  );
  background-attachment: fixed;
  mask-clip: padding-box, border-box;
  mask-composite: intersect;
  -webkit-mask-clip: padding-box, border-box;
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(#0000, #0000),
    conic-gradient(from calc(var(--glow-start) - 40deg), #00000000 0deg, #fff 40deg, #fff 80deg, #00000000 80deg);
  -webkit-mask-image: linear-gradient(#0000, #0000),
    conic-gradient(from calc(var(--glow-start) - 40deg), #00000000 0deg, #fff 40deg, #fff 80deg, #00000000 80deg);
}

/* Card inner */
.bento-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  border-radius: 1rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 27px rgba(0,0,0,0.2);
  min-height: 14rem;
}
.bento-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0) 100%);
  transition: background 0.3s;
}
.glow-card:hover .bento-inner::after {
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0) 100%);
}
.bento-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
}
.bento-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.bento-icon svg { width: 20px; height: 20px; fill: var(--white); }
.bento-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.5);
}
.bento-content p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.95);
  margin: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.4);
}

/* Bento grid areas — desktop */
.bento-1 { grid-column: span 7; grid-row: span 2; }
.bento-2 { grid-column: span 5; }
.bento-3 { grid-column: span 5; }
.bento-4 { grid-column: span 4; }
.bento-5 { grid-column: span 4; }
.bento-6 { grid-column: span 4; }
.bento-7 { grid-column: span 6; }
.bento-8 { grid-column: span 6; }

/* Bento "view all" card */
.bento-viewall .bento-inner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  align-items: center;
  justify-content: center;
  text-align: center;
}
.bento-viewall .bento-inner::after { display: none; }
.bento-viewall .bento-content { text-align: center; }
.bento-viewall h3 { font-size: 1.5rem; }
.bento-viewall .view-all-arrow {
  display: inline-block;
  font-size: 2rem;
  margin-top: 0.5rem;
  transition: transform 0.3s;
}
.glow-card.bento-viewall:hover .view-all-arrow { transform: translateX(8px); }

/* ==========================================================================
   Why Choose Us / Features
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}
.feature-item { text-align: center; padding: 20px; }
.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.feature-icon svg { width: 32px; height: 32px; fill: var(--orange); }
.feature-item h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.feature-item p { font-size: 0.9rem; color: var(--gray-600); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.testimonial-stars {
  color: #F59E0B;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.testimonial-text {
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
}
.testimonial-author {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}
.testimonial-location {
  color: var(--gray-600);
  font-size: 0.8rem;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-hover) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.9); font-size: 1.1rem; max-width: 600px; margin: 0 auto 2rem; }
.cta-banner .btn-outline { border-color: var(--white); color: var(--white); }
.cta-banner .btn-outline:hover { background: rgba(255,255,255,0.15); color: var(--white); border-color: rgba(255,255,255,0.7); }

/* ==========================================================================
   Service Areas
   ========================================================================== */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.area-link {
  display: block;
  padding: 16px 20px;
  background: var(--cream);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  text-align: center;
  font-weight: 500;
  transition: all 0.2s;
}
.area-link:hover {
  border-color: var(--orange);
  background: var(--gray-50);
  color: var(--orange);
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-form {
  max-width: 600px;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 0.9rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--cream);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--orange);
  outline: none;
}
.form-group textarea { resize: vertical; min-height: 120px; }

.inline-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  background: var(--cream);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.inline-form .form-group { flex: 1; min-width: 180px; margin-bottom: 0; }
.inline-form .btn { white-space: nowrap; }

/* ==========================================================================
   Content Section (Service/Blog pages)
   ========================================================================== */
.content-section {
  padding: 60px 0;
}
.content-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
.content-main h2 { margin-top: 2rem; }
.content-main h2:first-child { margin-top: 0; }
.content-main ul, .content-main ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}
.content-main li {
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
}
.sidebar-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  border: 1px solid var(--gray-200);
}
.sidebar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--orange);
}
.sidebar-card ul { list-style: none; }
.sidebar-card li { margin-bottom: 8px; }
.sidebar-card a {
  display: block;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.sidebar-card a:hover { background: var(--cream); color: var(--orange); }

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.blog-card-image {
  height: 200px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  font-size: 3rem;
}
.blog-card-content { padding: 24px; }
.blog-card-meta {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}
.blog-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.blog-card h3 a { color: var(--navy); }
.blog-card h3 a:hover { color: var(--orange); }
.blog-card p { font-size: 0.9rem; }

/* Blog article */
.article-content {
  max-width: 800px;
}
.article-content h2 { margin-top: 2.5rem; }
.article-content p { font-size: 1.05rem; line-height: 1.75; }
.article-meta {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: var(--cream);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  font-family: inherit;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--gray-50); }
.faq-question .icon {
  font-size: 1.3rem;
  color: var(--orange);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item.active .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding: 0 24px 18px;
  color: var(--gray-700);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}
.footer-col p { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.footer-license {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ==========================================================================
   Portfolio
   ========================================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-100);
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  font-size: 1rem;
  text-align: center;
  padding: 40px;
  border: 2px dashed var(--gray-200);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* --- Tablet (992px) --- */
@media (max-width: 992px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }

  /* Bento grid — tablet: 2 columns */
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-1, .bento-2, .bento-3, .bento-4, .bento-5, .bento-6, .bento-7, .bento-8 {
    grid-column: span 1;
    grid-row: span 1;
  }
  .bento-1 { grid-column: span 2; grid-row: span 1; }
}

/* --- Mobile (768px) --- */
@media (max-width: 768px) {
  /* Top bar — hide */
  .top-bar { display: none; }

  /* Header — sticky with compact layout */
  header { position: sticky; top: 0; z-index: 1000; }
  .header-main { padding: 8px 0; }
  .logo-img { width: 40px; height: 40px; }
  .logo-tagline { display: none; }
  .logo-text { font-size: 1rem; }

  /* Show phone icon in header CTA on mobile */
  .header-cta { display: flex; align-items: center; gap: 8px; }
  .header-cta .btn { display: none; }
  .header-phone {
    font-size: 0;
    width: 40px;
    height: 40px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .header-phone::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background: var(--white);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") center/contain no-repeat;
  }

  /* Mobile hamburger toggle */
  .mobile-toggle { display: block; }

  /* Mobile nav — slide-down menu */
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    box-shadow: var(--shadow-lg);
    padding: 12px 16px;
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  nav.active { display: block; }
  nav ul { flex-direction: column; gap: 0; }
  nav > ul > li > a {
    display: flex;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 1rem;
    min-height: 48px;
    align-items: center;
  }
  nav > ul > li > a:active {
    background: rgba(30,58,43,0.12);
  }

  /* Mobile dropdown menus */
  .dropdown-content {
    position: static;
    box-shadow: none;
    padding: 4px 0 8px 16px;
    display: none;
    min-width: 0;
    border: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
    padding-top: 4px;
  }
  .dropdown:hover > .dropdown-content { display: none; }
  .dropdown.active > .dropdown-content { display: block; }

  .dropdown-mega {
    flex-direction: column;
    gap: 12px;
    min-width: 0;
  }
  .dropdown-areas {
    grid-template-columns: 1fr 1fr;
    min-width: 0;
    gap: 4px;
  }
  .dropdown-areas a {
    padding: 10px 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .dropdown-item-icon { display: none; }
  .dropdown-item {
    padding: 10px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .dropdown-item:active { background: rgba(30,58,43,0.06); border-radius: 6px; }
  .dropdown-col-heading { margin-top: 8px; font-size: 0.8rem; }

  /* Mobile CTA in nav */
  .mobile-nav-cta {
    display: block;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
  }
  .mobile-nav-cta .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px;
    font-size: 1.05rem;
  }

  /* Hero — mobile optimized */
  .hero {
    min-height: 70vh;
    padding: 40px 0 60px;
  }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); max-width: 100%; }
  .hero p { font-size: 1rem; max-width: 100%; }
  .hero-badge { margin-bottom: 1.25rem; }
  .hero-badge span { font-size: 0.78rem; }
  .hero-shapes { display: none; }
  .hero-trust {
    gap: 12px;
    margin-top: 2rem;
  }
  .hero-trust-item { font-size: 0.8rem; gap: 6px; }
  .hero-trust-item svg { width: 16px; height: 16px; }

  /* Page hero — sub-pages */
  .page-hero { min-height: 50vh; padding: 30px 0; }

  /* Sections — tighter spacing */
  section { padding: 48px 0; }
  .section-header { margin-bottom: 2rem; }

  /* Grid layouts — single column */
  .services-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Bento grid — mobile */
  .bento-grid { grid-template-columns: 1fr; gap: 12px; }
  .bento-1 { grid-column: span 1; }
  .bento-inner { min-height: 12rem; }

  /* Feature items — 2-col grid on mobile */
  .feature-item { padding: 16px 12px; }
  .feature-icon { width: 56px; height: 56px; }
  .feature-icon svg { width: 26px; height: 26px; }

  /* Service cards — compact */
  .service-card { padding: 24px 20px; }
  .service-card:hover { transform: none; }

  /* Testimonials — compact */
  .testimonial-card { padding: 20px; }
  .testimonial-card:hover { transform: none; }

  /* Blog cards — smaller image */
  .blog-card-image { height: 160px; }
  .blog-card-content { padding: 16px; }
  .blog-card:hover { transform: none; }

  /* CTA banner — compact */
  .cta-banner { padding: 40px 0; }
  .cta-banner p { font-size: 1rem; }

  /* Forms */
  .inline-form { flex-direction: column; }
  .inline-form .form-group { min-width: 100%; }
  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px; /* prevents iOS zoom on focus */
    padding: 14px 16px;
  }

  /* FAQ — mobile */
  .faq-question { padding: 16px; font-size: 0.95rem; }
  .faq-answer-inner { padding: 0 16px 16px; }

  /* Footer — collapsible on mobile */
  .footer-col h4 {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 0.75rem;
    margin-bottom: 0;
  }
  .footer-col h4::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--orange);
    transition: transform 0.3s;
  }
  .footer-col.active h4::after {
    content: '−';
  }
  .footer-col ul,
  .footer-col p {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .footer-col.active ul,
  .footer-col.active p {
    max-height: 500px;
  }
  .footer-col:first-child ul,
  .footer-col:first-child p {
    max-height: none;
  }
  .footer-col:first-child h4::after { display: none; }
  footer { padding: 40px 0 0; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 16px 0;
  }

  /* Content section — mobile */
  .content-section { padding: 40px 0; }
  .content-wrapper { gap: 32px; }

  /* Disable hover transforms on mobile (no hover state) */
  .area-link:hover { transform: none; }

  /* Sticky bottom CTA bar */
  .mobile-bottom-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--navy-dark);
    padding: 12px 16px;
    gap: 10px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  }
  .mobile-bottom-cta a {
    flex: 1;
    text-align: center;
    padding: 14px 12px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .mobile-bottom-cta .mobile-cta-call {
    background: var(--white);
    color: var(--navy);
  }
  .mobile-bottom-cta .mobile-cta-estimate {
    background: var(--orange);
    color: var(--white);
  }
  .mobile-bottom-cta svg { width: 18px; height: 18px; flex-shrink: 0; }

  /* Add bottom padding to body so content isn't hidden behind sticky CTA */
  body { padding-bottom: 76px; }
}

/* --- Small phone (480px) --- */
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(1.5rem, 8vw, 2.2rem); }
  .hero-buttons { flex-direction: column; gap: 10px; }
  .hero-buttons .btn { width: 100%; padding: 16px; font-size: 1rem; }

  .features-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr 1fr; }

  .container { padding: 0 16px; }

  .bento-inner { min-height: 10rem; }
  .bento-content { padding: 1rem; }
  .bento-content h3 { font-size: 1.15rem; }
  .bento-content p { font-size: 0.85rem; }

  /* CTA banner — full width button */
  .cta-banner .hero-buttons,
  .cta-banner .btn { width: 100%; }
}
