/* ═══════════════════════════════════════════════════════
   Hobaugh's Construction & Roofing — Global Styles
   ═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #2D6A2E;
  --green-light: #4A8B3F;
  --green-dark: #1e4a1f;
  --green-pale: #e8f5e9;
  --white: #ffffff;
  --dark: #1a1a1a;
  --gray: #555555;
  --gray-light: #f5f5f5;
  --gray-medium: #888888;
  --gold: #c9a84c;
  --gold-light: #e0c975;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.18);
  --radius: 12px;
  --radius-sm: 6px;
  --transition: 0.25s ease;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

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

h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; line-height: 1.25; color: var(--dark); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

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

/* ─── HEADER ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  transition: all var(--transition);
}

.header-top {
  background: var(--green);
  color: var(--white);
  padding: 6px 0;
  font-size: 0.85rem;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.header-top a { color: var(--gold); }
.header-top a:hover { color: var(--gold-light); }

.header-main {
  padding: 12px 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  line-height: 1.2;
}

.logo span { color: var(--gold); }

.logo small {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--gray);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.header-phone {
  display: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
}

.header-phone a { color: var(--green); font-weight: 700; }

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--green);
  background: var(--green-pale);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 0.85rem;
  border-radius: 0;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: all var(--transition);
}

/* ─── MOBILE NAV ─── */
@media (max-width: 960px) {
  .hamburger { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow);
    gap: 0;
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    padding: 12px 16px;
    width: 100%;
    border-bottom: 1px solid var(--gray-light);
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 16px;
    display: none;
  }

  .nav-dropdown.open .dropdown-menu { display: block; }

  .header-phone { display: none; }
}

@media (min-width: 961px) {
  .header-phone { display: block; }
}

/* ─── MOBILE STICKY CTA ─── */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--green);
  padding: 12px 20px;
  text-align: center;
}

.mobile-cta a {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 56px; }
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 120px 20px 80px;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, #1a5c1e 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

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

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  margin-bottom: 16px;
}

.hero h1 .gold { color: var(--gold); }

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 32px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
}

.btn-primary {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201,168,76,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--green);
  transform: translateY(-2px);
}

.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn-green:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45,106,46,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── TRUST BADGES ─── */
.trust-bar {
  background: var(--white);
  padding: 40px 0;
  border-bottom: 1px solid #eee;
}

.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-badge {
  text-align: center;
  padding: 16px 24px;
}

.trust-badge .badge-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.trust-badge h4 {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
}

.trust-badge p {
  font-size: 0.8rem;
  color: var(--gray);
}

/* ─── SECTIONS ─── */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--gray-light);
}

.section-green {
  background: var(--green);
  color: var(--white);
}

.section-green h2,
.section-green h3 { color: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 { margin-bottom: 16px; }

.section-header p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--gray);
  font-size: 1.05rem;
}

.section-green .section-header p { color: rgba(255,255,255,0.8); }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 8px;
}

/* ─── GRID LAYOUTS ─── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-light));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.3);
}

.card-body {
  padding: 24px;
}

.card-body h3 { margin-bottom: 12px; }

.card-body p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ─── SERVICE PAGE CONTENT ─── */
.page-hero {
  padding: 140px 20px 60px;
  text-align: center;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white);
}

.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { max-width: 640px; margin: 0 auto; opacity: 0.9; font-size: 1.1rem; }

/* Breadcrumbs */
.breadcrumbs {
  padding: 16px 0;
  background: var(--gray-light);
  font-size: 0.85rem;
}

.breadcrumbs a { color: var(--green); }
.breadcrumbs span { color: var(--gray); margin: 0 8px; }

/* Content sections */
.content-section {
  padding: 60px 0;
}

.content-section h2 { margin-bottom: 20px; }
.content-section h3 { margin-bottom: 16px; margin-top: 32px; }
.content-section p { margin-bottom: 16px; color: var(--gray); }

.content-section ul, .content-section ol {
  margin: 16px 0 16px 24px;
  color: var(--gray);
}

.content-section li { margin-bottom: 8px; }

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .content-grid { grid-template-columns: 1fr; }
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 120px;
}

.sidebar-card {
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  border-left: 4px solid var(--green);
}

.sidebar-card h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--green);
}

.sidebar-card p, .sidebar-card li {
  font-size: 0.9rem;
  color: var(--gray);
}

/* ─── TESTIMONIALS ─── */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px; left: 24px;
  font-size: 4rem;
  font-family: 'Playfair Display', serif;
  color: var(--green-pale);
  line-height: 1;
}

.testimonial-card p {
  font-style: italic;
  color: var(--gray);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.testimonial-card .author {
  font-weight: 700;
  color: var(--dark);
  font-style: normal;
}

.testimonial-card .location {
  font-size: 0.85rem;
  color: var(--gray-medium);
}

.stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* ─── GALLERY ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 250px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-light));
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
}

.gallery-item .overlay h4 { color: var(--white); font-size: 0.95rem; }
.gallery-item .overlay p { font-size: 0.8rem; opacity: 0.8; }

/* ─── CTA SECTION ─── */
.cta-section {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
}

.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { margin-bottom: 32px; opacity: 0.9; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ─── CONTACT FORM ─── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ─── BLOG ─── */
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.blog-card .blog-image {
  height: 200px;
  background: linear-gradient(135deg, #2D6A2E, #4A8B3F);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card .blog-body {
  padding: 24px;
}

.blog-card .blog-meta {
  font-size: 0.8rem;
  color: var(--gray-medium);
  margin-bottom: 8px;
}

.blog-card .blog-body h3 { margin-bottom: 12px; font-size: 1.2rem; }
.blog-card .blog-body p { color: var(--gray); font-size: 0.9rem; margin-bottom: 16px; }

/* ─── AREA PAGES ─── */
.area-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.area-stat {
  text-align: center;
  padding: 24px;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
}

.area-stat .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  font-family: 'Playfair Display', serif;
}

.area-stat p { font-size: 0.85rem; color: var(--gray); margin-top: 4px; }

@media (max-width: 768px) {
  .area-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ─── FINANCING ─── */
.finance-iframe-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 32px 0;
}

.finance-iframe-wrap iframe {
  width: 100%;
  min-height: 600px;
  border: none;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-col h4 {
  color: var(--white);
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col p { margin-bottom: 8px; font-size: 0.9rem; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold); }

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-logo span { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

.footer-badges {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.footer-badge {
  background: rgba(255,255,255,0.1);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
}

/* ─── UTILITY ─── */
.text-center { text-align: center; }
.text-green { color: var(--green); }
.text-gold { color: var(--gold); }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* ─── ANIMATIONS ─── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── PRINT ─── */
@media print {
  .site-header, .mobile-cta, .site-footer { display: none; }
  body { padding: 0; }
  .hero { min-height: auto; padding: 40px 20px; }
}
