/* Ryerson Brothers Excavating - Main Stylesheet */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito Sans', 'Open Sans', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: 'Open Sans', Arial, sans-serif; color: #1a1a1a; line-height: 1.3; }

/* ===== VARIABLES ===== */
:root {
  --primary: #24408f;
  --primary-dark: #1a3070;
  --accent: #ffaf00;
  --accent-hover: #e69e00;
  --text-dark: #1a1a1a;
  --text-body: #555;
  --text-light: #707b89;
  --bg-light: #f5f5f5;
  --bg-dark: #1d252c;
  --white: #fff;
  --border: #d6dbe5;
  --max-width: 1200px;
}

/* ===== UTILITY ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.section { padding: 60px 0; }
.section-light { background: var(--bg-light); }
.section-dark { background: var(--bg-dark); color: var(--white); }
.section-primary { background: var(--primary); color: var(--white); }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-size: 14px;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.top-bar a { color: var(--primary); font-weight: 600; }
.top-bar a:hover { text-decoration: underline; }
.top-bar .phone { display: flex; align-items: center; gap: 6px; }
.top-bar .serving { color: var(--text-light); }
.top-bar .request-quote {
  background: var(--accent);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  transition: background 0.2s;
}
.top-bar .request-quote:hover { background: var(--accent-hover); text-decoration: none; }

/* ===== NAVIGATION ===== */
.navbar {
  background: var(--primary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.navbar .logo img { height: 50px; width: auto; }
.navbar .logo-text {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}
.navbar .logo-text small { font-size: 12px; font-weight: 400; display: block; }

.nav-menu { display: flex; gap: 0; }
.nav-menu li { position: relative; }
.nav-menu a {
  display: block;
  padding: 18px 15px;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-menu a:hover { background: rgba(255,255,255,0.15); }

/* Dropdown */
.nav-menu .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 250px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  border-radius: 0 0 4px 4px;
  z-index: 100;
}
.nav-menu li:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  color: var(--text-dark);
  padding: 10px 16px;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}
.dropdown-menu a:hover { background: var(--bg-light); color: var(--primary); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  padding: 10px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-image-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 60px 20px;
  max-width: 800px;
}
.hero-content h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-content p {
  font-size: 18px;
  margin-bottom: 24px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.hero-subtitle {
  background: var(--primary);
  display: inline-block;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero .google-reviews {
  margin-bottom: 20px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-align: center;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-blue { background: var(--primary); color: var(--white); }
.btn-blue:hover { background: var(--primary-dark); }

/* ===== PAYMENT BANNER ===== */
.payment-banner {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
}
.payment-banner a { color: var(--accent); text-decoration: underline; }

/* ===== MISSION / ABOUT SECTION ===== */
.mission-section {
  padding: 60px 0;
}
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.mission-image { border-radius: 8px; overflow: hidden; }
.mission-content h2 { font-size: 28px; margin-bottom: 16px; }
.mission-content p { color: var(--text-body); margin-bottom: 16px; }

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.service-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.service-card img { width: 100%; height: 200px; object-fit: cover; }
.service-card-body { padding: 20px; }
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--text-light); }

/* ===== TWO COLUMN LISTS ===== */
.two-col-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.check-list li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: 15px;
}
.check-list li::before {
  content: '✔️';
  position: absolute;
  left: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 50px 20px;
}
.cta-section h2 { color: var(--white); font-size: 32px; margin-bottom: 8px; }
.cta-section .phone-number {
  font-size: 42px;
  font-weight: 800;
  margin: 16px 0;
  display: block;
}
.cta-section .btn { margin-top: 16px; }

/* ===== HISTORY ===== */
.history-section { padding: 60px 0; }
.history-section h2 { font-size: 32px; margin-bottom: 8px; text-align: center; }
.history-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 20px 0 30px;
  flex-wrap: wrap;
}
.history-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
}
.history-stat .icon { font-size: 20px; }

/* ===== SEPTIC WARRANTY ===== */
.warranty-section {
  background: var(--bg-dark);
  color: var(--white);
  padding: 60px 0;
}
.warranty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.warranty-content h2 { color: var(--white); font-size: 28px; margin-bottom: 16px; }

/* ===== GALLERY ===== */
.gallery-banner {
  background: var(--accent);
  text-align: center;
  padding: 40px 20px;
}
.gallery-banner h2 { font-size: 28px; font-weight: 800; color: var(--white); margin-bottom: 10px; }

/* ===== PROCESS STEPS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}
.step-card {
  background: var(--white);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.step-number {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  text-align: center;
  line-height: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}
.step-card h3 { font-size: 18px; margin-bottom: 8px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  color: #ccc;
  padding: 40px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer h4 { color: var(--white); font-size: 16px; margin-bottom: 12px; }
.footer a { color: #aaa; font-size: 14px; }
.footer a:hover { color: var(--white); }
.footer ul li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #888;
}
.footer .social-links { display: flex; gap: 12px; }
.footer .social-links a { font-size: 20px; color: #aaa; }
.footer .social-links a:hover { color: var(--white); }

.footer .hours { font-size: 14px; }
.footer .hours strong { color: var(--white); }
.footer .address { font-size: 14px; line-height: 1.6; }

.service-areas-bar {
  background: #161c22;
  padding: 16px 0;
  font-size: 14px;
}
.service-areas-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
}
.service-areas-bar a { color: #aaa; }
.service-areas-bar a:hover { color: var(--white); }

/* ===== PAGE HERO (subpages) ===== */
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-hero .hero-overlay { background: rgba(0,0,0,0.55); }
.page-hero .hero-content h1 { font-size: 36px; }

/* ===== CONTENT PAGE ===== */
.content-section { padding: 50px 0; }
.content-section h2 { font-size: 26px; margin: 30px 0 12px; color: var(--primary); }
.content-section h3 { font-size: 20px; margin: 24px 0 10px; }
.content-section p { margin-bottom: 16px; color: var(--text-body); }
.content-section ul { margin-bottom: 16px; padding-left: 20px; }
.content-section ul li { margin-bottom: 6px; list-style: disc; color: var(--text-body); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .nav-menu.active { display: flex; }
  .nav-menu a { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .dropdown-menu {
    position: static !important;
    box-shadow: none !important;
    background: rgba(0,0,0,0.15) !important;
  }
  .dropdown-menu a { color: var(--white) !important; padding-left: 32px !important; }

  .hero-content h1 { font-size: 28px; }
  .hero { min-height: 400px; }
  .mission-grid, .warranty-grid, .two-col-lists, .steps-grid { grid-template-columns: 1fr; }
  .history-stats { flex-direction: column; align-items: center; }
  .cta-section .phone-number { font-size: 32px; }
  .top-bar .container { justify-content: center; text-align: center; }
  .footer-bottom { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 24px; }
  .section { padding: 40px 0; }
  .container { padding: 0 16px; }
}
