/* ===========================
   MACDONALD SEPTIC SERVICE
   style.css
   Colors: Navy #1a2744 | Red #c0392b | White #ffffff | Light #f5f5f5
   =========================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.7;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: 'Oswald', sans-serif;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 80px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c0392b;
  margin-bottom: 0.5rem;
}

.section-label.center { display: block; text-align: center; }
.center { text-align: center; }

.section-intro {
  max-width: 650px;
  margin: 0 auto 2.5rem;
  color: #555;
  font-size: 1.05rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-transform: uppercase;
}
.btn-primary:hover { background: #a93226; transform: translateY(-2px); }
.btn-primary.full-width { width: 100%; text-align: center; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  border: 2px solid rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-transform: uppercase;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ===== HEADER / NAV ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #1a2744;
  transition: box-shadow 0.3s;
}
header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }

.nav-cta {
  background: #c0392b;
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: #a93226 !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: #1a2744;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s;
}
.mobile-menu.open {
  display: block;
  max-height: 400px;
  padding: 1rem 0;
}
.mobile-menu ul { list-style: none; }
.mobile-menu ul li a {
  display: block;
  padding: 0.85rem 1.5rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s;
}
.mobile-menu ul li a:hover { background: rgba(255,255,255,0.07); color: #fff; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('images/photo5.jpg') center center / cover no-repeat;
  padding-top: 72px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,39,68,0.88) 0%, rgba(26,39,68,0.6) 60%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto 0 8%;
  padding: 4rem 1.5rem;
  color: #fff;
}

.hero-content h1 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.badge {
  background: rgba(192,57,43,0.85);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  text-transform: uppercase;
}

.hero-content .btn-primary,
.hero-content .btn-secondary {
  margin-right: 1rem;
  margin-bottom: 0.75rem;
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: #1a2744;
  padding: 1.2rem 1.5rem;
}

.trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 3rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.trust-icon { font-size: 1.1rem; }

/* ===== ABOUT ===== */
.about-section { background: #fff; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  position: relative;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 3px solid #c0392b;
  border-radius: 8px;
  z-index: -1;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.about-text h2 { color: #1a2744; }

.about-text p {
  color: #444;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.about-list {
  list-style: none;
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-list li {
  color: #333;
  font-weight: 600;
  font-size: 0.95rem;
  padding-left: 0.25rem;
}

/* ===== SERVICES ===== */
.services-section {
  background: #f5f6f8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid #c0392b;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.service-card h3 {
  color: #1a2744;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: #555;
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ===== GALLERY ===== */
.gallery-section { background: #fff; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
  margin-top: 2rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ===== CONTACT ===== */
.contact-section {
  background: #f5f6f8;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { color: #1a2744; }
.contact-info > p { color: #555; margin-bottom: 2rem; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  font-size: 1.4rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.contact-item div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-item strong {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
}

.contact-item a,
.contact-item span {
  color: #1a2744;
  font-size: 1rem;
  font-weight: 600;
}

.contact-item a:hover { color: #c0392b; }

/* Contact Form */
.contact-form-wrap {
  background: #fff;
  border-radius: 10px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.09);
}

.contact-form h3 {
  font-family: 'Oswald', sans-serif;
  color: #1a2744;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: 5px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: #222;
  transition: border-color 0.2s;
  background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a2744;
  background: #fff;
}

.form-group textarea { resize: vertical; }

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.75rem;
}

.form-note a { color: #c0392b; font-weight: 600; }

.form-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  border-radius: 5px;
  padding: 0.85rem 1rem;
  margin-top: 1rem;
  font-weight: 600;
  text-align: center;
}

/* ===== FOOTER ===== */
.footer {
  background: #1a2744;
  color: rgba(255,255,255,0.75);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-img {
  height: 50px;
  width: auto;
  opacity: 0.95;
}

.footer-logo div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-logo strong {
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.footer-logo span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s;
}
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.2rem 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: #fff; }

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-content {
    margin: 0 auto;
    text-align: center;
    padding: 3rem 1.5rem;
  }

  .hero-badges { justify-content: center; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image img { height: 320px; }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery-item.tall { grid-row: span 1; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .trust-bar-inner {
    gap: 1rem 1.5rem;
  }

  .hero-content h1 { font-size: 2rem; }

  .contact-form-wrap {
    padding: 1.5rem;
  }
}
