/* Shared Header Styles */
.site-header {
  /* slightly muted gradient to reduce stark contrast */
  background: linear-gradient(90deg, rgba(59,140,58,0.96) 0%, rgba(47,125,50,0.96) 100%);
  color: #fff;
  padding: 0.5rem 0; /* slimmer header */
  margin-bottom: 1.1rem;
  box-shadow: 0 2px 0 rgba(0,0,0,0.04);
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.header-nav {
  display: flex;
  gap: 1.2rem; /* tightened to fit more links */
  align-items: center;
}
.header-nav .nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem; /* smaller to fit */
  transition: opacity 160ms ease, transform 160ms ease;
  padding: 0.28rem 0.5rem; /* keep header height similar */
  border-radius: 6px;
  opacity: 0.95;
}
.header-nav .nav-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.header-nav .nav-link.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
  cursor: default;
}

/* Ensure header is consistent on small screens */
@media (max-width: 720px) {
  .header-content { padding: 0 0.75rem; }
  .header-nav { gap: 0.8rem; }
  .header-nav .nav-link { font-size: 0.82rem; padding: 0.25rem 0.4rem; }
}

/* Ensure nav stays inline at all sizes (no hamburger) but wraps when narrow */
.nav-toggle { display: none; }
@media (max-width: 920px) {
  .header-nav { flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
  .header-nav .nav-link { display: inline-block; padding: 0.4rem 0.6rem; }
}
/* Hero Section */
.hero {
  background: linear-gradient(90deg, #388e3c 60%, #f5f3e7 100%);
  color: #fff;
  text-align: center;
  padding: 2.5rem 0 1.5rem 0;
  position: relative;
}
.logo {
  max-width: 180px;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(56,142,60,0.12);
}
.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0.5rem 0 0.5rem 0;
}
.hero-sub {
  font-size: 1.3rem;
  color: #f5f3e7;
  margin-bottom: 1rem;
}

/* About Section */
.about-section {
  background: #fff;
  border-radius: 12px;
  margin: 2rem auto;
  padding: 1.6rem 1.6rem;
  max-width: 100%;
  box-shadow: 0 8px 26px rgba(34,34,34,0.06);
}

/* Two-column intro section on desktop, single column on mobile */
.two-col-intro { display: block; }
.two-col-intro > div { margin-bottom: 1.2rem; }
@media (min-width: 900px) {
  .two-col-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .two-col-intro > div { margin-bottom: 0; }
}
.about-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.about-stats .stat {
  font-size: 2.2rem;
  font-weight: bold;
  color: #388e3c;
}

/* Center each stat block: number above label */
.about-stats > div {
  text-align: center;
}
.about-stats .stat {
  display: block;
  font-size: 2.6rem; /* slightly larger for emphasis */
  margin-bottom: 0.25rem;
}

/* Services Grid */
.services-grid {
  background: #fff; /* single white card behind the whole services area */
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(34,34,34,0.06);
  margin: 2rem auto;
  padding: 2rem 2rem 1.8rem 2rem;
  max-width: 1000px;
}
.services-grid h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: transparent; /* card items sit on the white parent card */
  border-radius: 8px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform 220ms ease, box-shadow 220ms ease;
  border: 1px solid rgba(34,34,34,0.03);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(34,34,34,0.06);
}
.service-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 0.6rem auto;
  color: var(--gp-green-strong);
}
/* Ensure inline SVGs inside the icon container are uniform and inherit color */
.service-card .icon svg {
  width: 40px;
  height: 40px;
  display: block;
}
/* Font Awesome icon sizing inside service tiles */
.service-card .icon i {
  font-size: 40px;
  line-height: 1;
  color: var(--gp-green-strong);
  display: inline-block;
}
.service-card h3 { color: var(--gp-dark); font-weight:600; }
.service-card h3 {
  font-size: 1.1rem;
  color: #222;
  margin: 0.5rem 0 0 0;
}

/* Service Area */
.service-area {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(56,142,60,0.07);
  margin: 2rem auto;
  padding: 2rem;
  max-width: 900px;
}
.service-area h2 {
  margin-bottom: 1rem;
}
.service-area ul.states {
  columns: 2;
  margin: 1rem 0 0 1.5rem;
}

/* Partners */
.partners {
  background: transparent;
  border-radius: 10px;
  box-shadow: 0 8px 26px rgba(34,34,34,0.06);
  margin: 2rem auto;
  padding: 1.6rem;
  max-width: 900px;
}
.partners .partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}
.partners .partner-logos img {
  max-width: 120px;
  background: transparent;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(34,34,34,0.04);
}

/* Contact Info */
.contact-info {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(56,142,60,0.07);
  margin: 2rem auto;
  padding: 2rem;
  max-width: 900px;
}
/* Contact form styles */
.contact-form-section {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.6rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(34,34,34,0.06);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-form label { font-weight: 600; margin-top: 0.4rem; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  padding: 0.6rem;
  border: 1px solid rgba(34,34,34,0.08);
  border-radius: 6px;
  font-size: 0.95rem;
}

.contact-form button {
  margin-top: 0.6rem;
  padding: 0.7rem 1rem;
  background: var(--gp-green-bright);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

/* Project inquiry block */
.project-inquiry {
  margin-top: 0.6rem;
  border: 1px solid rgba(34,34,34,0.03);
  padding: 0.8rem;
  border-radius: 8px;
  background: rgba(245,243,231,0.4);
}

/* Improvements for project area layout */
.project-inquiry .master-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  padding: 0.4rem 0.2rem;
}

.project-area {
  margin-top: 0.8rem;
  padding: 0.6rem;
  background: rgba(255,255,255,0.92);
  border-radius: 8px;
  border: 1px solid rgba(34,34,34,0.04);
}

.project-specs label { margin-top: 0.5rem; display:block; }
.project-specs textarea { width: 100%; min-height: 110px; resize: vertical; }

.project-options { gap: 0.6rem; }

.date-row { display: flex; gap: 0.8rem; margin-top: 0.4rem; }
.date-field { flex: 1; }
.date-field input[type="date"] { width: 100%; padding: 0.5rem; border-radius: 6px; border: 1px solid rgba(34,34,34,0.08); }

/* Make checkboxes and labels clearer */
.project-options label { background: transparent; padding: 0.5rem; border-radius: 6px; }

@media (max-width: 700px) {
  .date-row { flex-direction: column; }
}

/* Mobile-only adjustments for the home page: hide decorative circle, tighten header, and scale hero text/logo */
@media (max-width: 600px) {
  /* make the green header slimmer and cleaner on phones */
  .site-header {
    padding: 0.28rem 0; /* slightly smaller */
    margin-bottom: 0.8rem;
  }
  .header-content { padding: 0 0.5rem; }
  .header-nav { gap: 0.5rem; }
  .header-nav .nav-link { font-size: 0.78rem; padding: 0.18rem 0.35rem; }

  /* Hide the large decorative glow/circle used behind the home logo so header looks clean */
  .home-hero-media::after { display: none !important; }

  /* Stack the home hero into a single column and scale down the logo/title */
  .home-hero-grid { grid-template-columns: 1fr; gap: 1rem; }
  .logo-home-large { width: 180px; max-width: 48vw; margin: 0 auto; }
  .hero-title { font-size: 1.45rem; line-height: 1.12; }
  .hero-sub { font-size: 0.98rem; }

  /* tighten the hero spacing so text stays on one line where possible */
  .home-logo-strip { padding: 0.6rem 0.6rem 1rem 0.6rem; }
}

.project-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.6rem 0;
}

.project-options label {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  background: transparent;
}

.project-specs { margin-top: 0.6rem; }
 

.contact-info a {
  color: #388e3c;
  text-decoration: underline;
}

footer {
  background: #a1887f;
  text-align: center;
  padding: 1.2rem 0;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: #fff;
}
.socials a {
  color: #fff;
  margin: 0 0.5rem;
  text-decoration: underline;
}
.about-bg {
  background: transparent; /* avoid nested colored boxes */
  padding: 0.6rem 0;
}
/* Basic styles for Great Plains Fiber/Cable Contractor */

:root {
  --gp-green: #2f7d32;
  --gp-green-strong: #2b6f2d;
  --gp-green-bright: #388e3c;
  --gp-tan: #f5f3e7;
  --gp-dark: #0e0e0e;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--gp-tan);
  color: #222;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Home hero: side-by-side layout with larger logo */
.home-logo-strip {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 1rem 1rem 2rem 1rem;
}
.home-hero-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.4rem;
  align-items: center;
}
.home-hero-media {
  display: flex;
  justify-content: center;
  position: relative;
}
/* Replace the large single-color glow with layered, subtle highlights */
.home-hero-media::after {
  content: "";
  position: absolute;
  /* small, soft warm highlight behind the logo to add depth without harsh contrast */
  width: 360px;
  height: 140px;
  left: 50%;
  top: 58%; /* drop it lower so it doesn't overlap the header */
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(245,243,231,0.28), rgba(245,243,231,0.06) 40%, transparent 60%);
  filter: blur(18px);
  opacity: 0.85;
  z-index: 0;
}

/* subtle horizontal shading band under the hero to soften the edge between header and hero */
.home-logo-strip::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 68px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(245,243,231,0.06));
  mix-blend-mode: overlay;
  z-index: 0;
}

/* make sure the logo and content sit above these decorative layers */
.home-hero-media, .home-logo-strip { position: relative; }
.logo-home-large { position: relative; z-index: 2; }
.logo-home-large {
  width: 320px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(34,34,34,0.08);
  position: relative;
  z-index: 1;
  background: transparent;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(circle, #000 70%, transparent 72%);
  mask-image: radial-gradient(circle, #000 70%, transparent 72%);
}
.home-hero-text {
  padding: 0.2rem 0.4rem;
}
.home-title {
  font-family: 'Poppins', 'Montserrat', 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 2.1rem;
  margin: 0 0 0.3rem 0;
  color: var(--gp-dark);
  font-weight: 700;
  letter-spacing: 0.2px;
}
.home-subtitle {
  font-family: 'Poppins', 'Montserrat', 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 1.05rem;
  margin: 0 0 0.6rem 0;
  color: #333;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.home-lead {
  color: #444;
  margin-bottom: 1rem;
}
.hero-cta {
  display: inline-block;
  background: var(--gp-green-bright);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(43,111,45,0.12);
}
.hero-cta:hover { transform: translateY(-2px); }

@media (max-width: 900px) {
  .home-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .logo-home-large { width: 240px; margin: 0 auto; }
  .home-title { font-size: 1.6rem; }
}

/* Softer, consistent shadows for cards and sections */
.about-section,
.services-grid,
.service-area,
.partners,
.contact-info,
.main-card {
  box-shadow: 0 6px 20px rgba(34,34,34,0.06);
}

/* Decorative hero background */
.hero-decor {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  max-width: 90%;
  height: auto;
  top: 8px;
  z-index: 0;
  pointer-events: none;
}

.home-hero-grid, .home-hero-media, .home-hero-text { position: relative; z-index: 1; }

/* Hero actions */
.hero-actions { margin-top: 0.6rem; display: flex; gap: 0.8rem; align-items: center; }
.hero-secondary {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: transparent;
  color: var(--gp-green);
  text-decoration: none;
  font-weight: 700;
  border: 2px solid rgba(56,142,60,0.12);
}

/* Entrance animations for hero text */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px);} to { opacity:1; transform: translateY(0);} }
.home-hero-text > * { opacity: 0; transform: translateY(10px); }
.home-hero-text h1 { animation: fadeUp 520ms ease 0.08s forwards; }
.home-hero-text h2 { animation: fadeUp 520ms ease 0.22s forwards; }
.home-hero-text p.home-lead { animation: fadeUp 520ms ease 0.36s forwards; }
.home-hero-text .hero-actions { animation: fadeUp 520ms ease 0.52s forwards; }
.home-hero-text .hero-stats { animation: fadeUp 520ms ease 0.68s forwards; }
.hero-secondary:hover { background: rgba(56,142,60,0.06); }

/* Hero stats */
.hero-stats { display: flex; gap: 1rem; margin-top: 1rem; }
.stat-block { background: rgba(255,255,255,0.85); padding: 0.6rem 0.9rem; border-radius: 8px; text-align: center; min-width: 80px; }
.stat { font-size: 1.4rem; font-weight: 800; color: #1b5e20; }
.stat-label { font-size: 0.85rem; color: #555; }

/* Micro interactions */
.logo-home-large { transition: transform 300ms ease, box-shadow 300ms ease; }
.logo-home-large:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 12px 30px rgba(34,34,34,0.12); }
.hero-cta { transition: transform 180ms ease, box-shadow 180ms ease; }

@media (max-width: 600px) {
  .hero-actions { flex-direction: column; }
  .hero-stats { justify-content: center; flex-wrap: wrap; }
}

/* Improved mobile layout rules for the About and other sections */
@media (max-width: 920px) {
  /* Stack the about hero (logo + copy) vertically */
  .about-hero { display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center !important; }
  .about-hero .about-logo { flex: 0 0 auto !important; width: 220px !important; margin-bottom: 1rem !important; }
  .about-hero .about-logo img, .logo-home-large { max-width: 200px !important; width: 80% !important; }
  .about-hero > div:nth-child(2) { width: 100% !important; }
  .about-hero h1 { font-size: 1.6rem !important; line-height: 1.18 !important; }
  .about-hero p { font-size: 0.98rem !important; color: #444; }

  /* Ensure logo appears at the top and centered on mobile even if markup order changes */
  .about-hero .about-logo { order: -1 !important; margin-top: 0 !important; display:flex !important; justify-content:center !important; }

  /* Ensure the Get a Quote CTA centers and does not overlap content */
  .hero-cta { display: inline-flex; align-items: center; justify-content: center; margin: 0.6rem auto !important; }

  /* Make stat blocks stack and center */
  .about-stats { flex-direction: column; gap: 0.6rem; align-items: center; }
  .about-stats > div { width: auto; }

  /* Ensure cards and small panels are full-width and readable */
  .about-section > .content, .services-grid, .service-area, .partners, .contact-info, .about-section { padding-left: 1rem; padding-right: 1rem; }
  .grid, .about-hero, .about-section > div, .services-grid .grid { width: 100%; }

  /* Header nav should wrap and remain usable */
  .header-nav { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .header-nav .nav-link { padding: 0.4rem 0.6rem; font-size: 0.95rem; }

  /* Reduce oversized shadows and spacing on very small screens */
  .about-section, .services-grid, .service-area, .partners, .contact-info { box-shadow: 0 4px 12px rgba(34,34,34,0.04); padding: 1rem; border-radius: 8px; }
}

@media (max-width: 480px) {
  .about-hero .about-logo img { max-width: 160px; }
  .home-title { font-size: 1.4rem; }
  .home-subtitle { font-size: 1rem; }
  main { padding: 0 0.8rem 2rem 0.8rem; }
  .hero-cta { padding: 0.6rem 0.9rem; min-height: 48px; }
}

header {
  background: transparent;
  color: inherit;
  padding: 0.6rem 0;
  text-align: center;
  box-shadow: none;
}

nav {
  margin: 1rem 0;
  text-align: center;
}
nav a {
  color: #388e3c;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
  transition: color 0.2s;
}
nav a:hover {
  color: #a1887f;
}

main {
  max-width: 1100px;
  margin: 2rem auto;
  background: transparent;
  padding: 0 1rem 2rem 1rem;
}

section {
  margin-bottom: 2.5rem;
}

.who-we-are ul,
.services ul,
.service-area ul.states {
  margin: 1rem 0 0 1.5rem;
}

.partners .partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.partners .partner-logos img {
  max-width: 120px;
  background: transparent;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(34,34,34,0.04);
}

.contact-info a {
  color: #388e3c;
  text-decoration: underline;
}

footer {
  background: #a1887f;
  text-align: center;
  padding: 1.2rem 0;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: #fff;
}
.socials a {
  color: #fff;
  margin: 0 0.5rem;
  text-decoration: underline;
}
.about-bg {
  background: transparent;
}
