/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1a5276;
  --primary-light: #2980b9;
  --primary-dark: #0e3a55;
  --accent: #e67e22;
  --accent-hover: #d35400;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #ecf0f1;
  --gray: #7f8c8d;
  --dark-gray: #4a4a4a;
  --text: #2c3e50;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
  --radius: 6px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.4rem; font-weight: 700; }
h2 { font-size: 1.9rem; font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p {
  margin-bottom: 1rem;
}

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

/* ===== HEADER / NAVIGATION ===== */
.top-bar {
  background: var(--primary-dark);
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 0;
}

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

.top-bar a {
  color: var(--white);
  opacity: 0.9;
}

.top-bar a:hover {
  opacity: 1;
  color: var(--accent);
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

header.main-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img {
  width: 42px;
  height: 42px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--gray);
  letter-spacing: 0.5px;
}

nav.main-nav ul {
  display: flex;
  gap: 6px;
}

nav.main-nav a {
  display: block;
  padding: 8px 14px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all var(--transition);
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--primary-light);
  background: var(--off-white);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-phone {
  font-weight: 600;
  color: var(--primary);
  font-size: 1rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

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

.btn-secondary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

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

.btn-white:hover {
  background: var(--off-white);
  color: var(--primary-dark);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 80px 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/hero-water-extraction.jpg') center/cover no-repeat;
  opacity: 0.15;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  margin-bottom: 0.6em;
  max-width: 700px;
}

.hero p {
  font-size: 1.15rem;
  max-width: 600px;
  opacity: 0.92;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
.section {
  padding: 70px 0;
}

.section-alt {
  background: var(--off-white);
}

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

.section-header h2 {
  margin-bottom: 0.4em;
}

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

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border-top: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--accent);
}

.service-card .icon {
  width: 50px;
  height: 50px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
  color: var(--primary-light);
}

.service-card h3 {
  margin-bottom: 0.6em;
}

.service-card p {
  color: var(--dark-gray);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ===== SERVICE DETAIL SECTIONS ===== */
.service-detail {
  padding: 50px 0;
  border-bottom: 1px solid var(--light-gray);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.service-detail:nth-child(even) .service-detail-inner {
  direction: rtl;
}

.service-detail:nth-child(even) .service-detail-inner > * {
  direction: ltr;
}

.service-detail img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.service-detail h2 {
  margin-bottom: 0.5em;
}

.service-detail p {
  color: var(--dark-gray);
  line-height: 1.75;
}

/* ===== ABOUT SECTION ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-content img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-text h2 {
  margin-bottom: 0.5em;
}

.about-text p {
  margin-bottom: 1.2rem;
  color: var(--dark-gray);
}

/* ===== SERVICE AREA ===== */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.area-item {
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 500;
  color: var(--primary);
  text-align: center;
  transition: all var(--transition);
}

.area-item:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: var(--white);
  padding: 30px 16px 14px;
  font-size: 0.88rem;
  font-weight: 500;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 30px;
}

.contact-info-card h3 {
  margin-bottom: 1.2rem;
}

.contact-detail {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.contact-detail .icon-circle {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.contact-detail p {
  margin: 0;
  font-size: 0.95rem;
}

.contact-detail strong {
  display: block;
  color: var(--primary);
  margin-bottom: 2px;
}

.hours-table {
  width: 100%;
  margin-top: 10px;
}

.hours-table tr td {
  padding: 6px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.92rem;
}

.hours-table tr td:first-child {
  font-weight: 500;
  color: var(--primary);
}

.hours-table tr:last-child td {
  border-bottom: none;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  margin-bottom: 1.2rem;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d5d8dc;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(41,128,185,0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Map */
.map-container {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 0.5em;
  font-size: 2rem;
}

.cta-banner p {
  opacity: 0.9;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
footer.main-footer {
  background: var(--text);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

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

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

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

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-contact-item .fc-icon {
  color: var(--accent);
  min-width: 18px;
}

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

/* ===== PAGE BANNER ===== */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}

.page-banner h1 {
  color: var(--white);
  margin-bottom: 0.3em;
}

.page-banner p {
  opacity: 0.85;
  font-size: 1.05rem;
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 10px;
  opacity: 0.7;
}

.breadcrumb a {
  color: var(--white);
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* ===== INTRO BLOCK ===== */
.intro-block {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 50px 20px;
}

.intro-block p {
  font-size: 1.05rem;
  color: var(--dark-gray);
  line-height: 1.8;
}

/* ===== FEATURES ROW ===== */
.features-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.feature-item {
  text-align: center;
  padding: 24px 16px;
}

.feature-item .f-icon {
  width: 60px;
  height: 60px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.6rem;
  color: var(--primary-light);
}

.feature-item h4 {
  margin-bottom: 0.4em;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-content,
  .service-detail-inner {
    grid-template-columns: 1fr;
  }

  .service-detail:nth-child(even) .service-detail-inner {
    direction: ltr;
  }

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

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

@media (max-width: 768px) {
  .top-bar .container {
    justify-content: center;
    text-align: center;
  }

  .top-bar-right {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    z-index: 999;
  }

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

  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  nav.main-nav a {
    padding: 12px 20px;
    border-radius: 0;
  }

  .header-cta .header-phone {
    display: none;
  }

  .hero {
    padding: 50px 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .section {
    padding: 50px 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.5rem; }
}
