/* =============================================
   Benton Gutters – Main Stylesheet
   Matches existing site look & feel
   ============================================= */

:root {
  --blue: #1a5fa8;
  --blue-dark: #134a85;
  --blue-light: #2272c3;
  --white: #ffffff;
  --off-white: #f5f7fa;
  --gray-light: #e8edf3;
  --gray: #6b7280;
  --gray-dark: #374151;
  --black: #111827;
  --green: #16a34a;
  --font-main: 'Open Sans', Arial, sans-serif;
  --font-heading: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.16);
  --radius: 4px;
  --max-width: 1100px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-dark);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Oswald:wght@500;600;700&display=swap');

/* =============================================
   TOP BAR
   ============================================= */
.top-bar {
  background: var(--blue-dark);
  color: var(--white);
  text-align: center;
  padding: 6px 20px;
  font-size: 13px;
  letter-spacing: 0.3px;
}
.top-bar a { color: #ffd700; font-weight: 700; }

/* =============================================
   HEADER / NAV
   ============================================= */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 20px;
}
.logo img { height: 68px; width: auto; }
.logo-text {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.2;
}
.logo-text span { display: block; font-size: 13px; font-weight: 400; color: var(--gray); font-family: var(--font-main); letter-spacing: 0.5px; }

nav { display: flex; align-items: center; gap: 8px; }
nav a {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-dark);
  padding: 8px 14px;
  border-radius: var(--radius);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
nav a:hover { background: var(--off-white); color: var(--blue); text-decoration: none; }

/* Areas Served dropdown */
.dropdown { position: relative; }
.dropdown > a::after { content: ' ▾'; font-size: 11px; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--blue);
  min-width: 220px;
  z-index: 200;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 8px 0;
  max-height: 420px;
  overflow-y: auto;
}
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover { display: block; }
.dropdown-menu a {
  display: block;
  padding: 7px 18px;
  font-size: 14px;
  color: var(--gray-dark);
  text-transform: none;
  font-family: var(--font-main);
  font-weight: 400;
  border-radius: 0;
  letter-spacing: 0;
}
.dropdown-menu a:hover { background: var(--off-white); color: var(--blue); }

.call-btn {
  background: var(--green);
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: var(--radius) !important;
  font-family: var(--font-heading) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: background 0.2s !important;
}
.call-btn:hover { background: #15803d !important; text-decoration: none !important; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--blue); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* =============================================
   LEAD FORM BAR (above the fold, every page)
   ============================================= */
.form-bar {
  background: var(--blue);
  padding: 18px 20px;
  text-align: center;
}
.form-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.form-bar h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--white);
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.lead-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: flex-end;
}
.lead-form input, .lead-form textarea {
  padding: 10px 14px;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font-main);
  outline: none;
  background: var(--white);
  color: var(--black);
  min-width: 180px;
}
.lead-form input:focus, .lead-form textarea:focus { box-shadow: 0 0 0 3px rgba(255,215,0,0.5); }
.lead-form textarea { min-width: 260px; resize: vertical; min-height: 42px; max-height: 100px; }
.lead-form button {
  background: #ffd700;
  color: var(--black);
  border: none;
  padding: 11px 28px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}
.lead-form button:hover { background: #e6c200; transform: translateY(-1px); }
.form-success { display: none; color: #ffd700; font-weight: 700; font-size: 18px; padding: 10px; }

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  background: var(--blue-dark);
  min-height: 320px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 20px;
  color: var(--white);
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 14px;
}
.hero p {
  font-size: 17px;
  max-width: 640px;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  margin-bottom: 20px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.hero-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* =============================================
   MAIN CONTENT AREA
   ============================================= */
.content-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   SECTIONS
   ============================================= */
section { padding: 48px 0; }
section:nth-child(even) { background: var(--off-white); }

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

h2 {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--blue);
  display: inline-block;
}
h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-dark);
  margin: 20px 0 10px;
  text-transform: uppercase;
}
h4 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--blue);
  margin: 16px 0 8px;
}
p { margin-bottom: 14px; }

/* Services list */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.services-list li {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-left: 4px solid var(--blue);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  color: var(--gray-dark);
}

/* Image grid */
.img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.img-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* CTA button */
.cta-btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.1s;
  margin: 10px 8px 10px 0;
}
.cta-btn:hover { background: #15803d; text-decoration: none; transform: translateY(-2px); }
.cta-btn.blue { background: var(--blue); }
.cta-btn.blue:hover { background: var(--blue-dark); }

/* CTA box */
.cta-box {
  background: var(--blue);
  color: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius);
  text-align: center;
  margin: 30px 0;
}
.cta-box h2 { color: var(--white); border-bottom-color: rgba(255,255,255,0.4); }
.cta-box p { color: rgba(255,255,255,0.9); font-size: 17px; }
.cta-box .cta-btn { background: #ffd700; color: var(--black); }
.cta-box .cta-btn:hover { background: #e6c200; }
.phone-large { font-family: var(--font-heading); font-size: 32px; font-weight: 700; color: #ffd700; display: block; margin: 10px 0; letter-spacing: 1px; }

/* Service area links */
.area-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.area-links a {
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--blue);
  font-weight: 600;
  transition: background 0.2s;
}
.area-links a:hover { background: var(--blue); color: var(--white); text-decoration: none; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--black);
  color: rgba(255,255,255,0.8);
  padding: 40px 20px 20px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 30px;
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.footer-col p, .footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}
.footer-col a:hover { color: #ffd700; text-decoration: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* Sticky mobile call button */
.sticky-call {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--green);
  color: var(--white);
  text-align: center;
  padding: 14px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 999;
  text-decoration: none;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.2);
}
.sticky-call:hover { text-decoration: none; color: var(--white); background: #15803d; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  nav { display: none; flex-direction: column; width: 100%; padding: 10px 0; }
  nav.open { display: flex; }
  nav a { width: 100%; padding: 12px 10px; }
  .dropdown-menu { position: static; box-shadow: none; border-top: none; border-left: 3px solid var(--blue); margin-left: 16px; max-height: none; }
  .dropdown > a::after { float: right; }
  .nav-toggle { display: block; }
  .img-grid { grid-template-columns: 1fr; }
  .img-grid img { height: 180px; }
  .lead-form { flex-direction: column; align-items: stretch; }
  .lead-form input, .lead-form textarea { min-width: 100%; }
  .hero { min-height: 240px; }
  .sticky-call { display: block; }
  body { padding-bottom: 60px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  h2 { font-size: 18px; }
  .hero h1 { font-size: 24px; }
  .phone-large { font-size: 24px; }
}
