/* -------------------------------------------------- */
/* Elite Watermains & Drainage — stylesheet            */
/* -------------------------------------------------- */

:root {
  --color-navy: #101f3d;
  --color-navy-dark: #081228;
  --color-blue: #2b52d6;
  --color-teal: #3b63e0;
  --color-teal-dark: #23409f;
  --color-ink: #16202f;
  --color-body: #46536b;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6fb;
  --color-border: #e2e6f0;
  --color-error: #c0392b;

  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(13, 59, 83, 0.08);
  --shadow-md: 0 12px 32px rgba(13, 59, 83, 0.12);
  --container-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-body);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--color-teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

ul { margin: 0; padding: 0; list-style: none; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-teal-dark);
  margin: 0 0 0.6em;
}

.section-heading {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-lead {
  color: var(--color-body);
  font-size: 1.05rem;
}

section { padding: 88px 0; }

/* -------------------- Buttons -------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--color-teal);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

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

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: inherit;
}

.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.instagram .btn-ghost,
.contact .btn-ghost {
  border-color: var(--color-teal);
  color: var(--color-teal-dark);
}

.instagram .btn-ghost:hover {
  background: var(--color-teal);
  color: #fff;
}

.btn-block { width: 100%; }

/* -------------------- Header -------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--color-navy);
  font-size: 1.05rem;
}

.logo:hover { text-decoration: none; }

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  background: #fff;
  padding: 10px 16px;
  border-radius: 10px;
}

.footer-logo .logo-img {
  height: 34px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--color-ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a:hover { color: var(--color-teal-dark); text-decoration: none; }

.nav-cta {
  background: var(--color-navy);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
}

.nav-cta:hover { background: var(--color-teal-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
}

/* -------------------- Hero -------------------- */

.hero {
  background: linear-gradient(160deg, var(--color-navy-dark), var(--color-navy) 55%, var(--color-blue));
  color: #eaf3f7;
  padding: 100px 0;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero h1 { color: #fff; }

.hero-sub {
  font-size: 1.1rem;
  color: #cfe3ec;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0 28px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 0.9rem;
  color: #b9d3de;
}

.hero-trust li { position: relative; padding-left: 20px; }

.hero-trust li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-teal);
  font-weight: 700;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------------------- Services -------------------- */

.services { background: var(--color-bg); }

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

.service-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.service-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.service-card p { margin-bottom: 0; font-size: 0.96rem; }

/* -------------------- About -------------------- */

.about { background: var(--color-bg-alt); }

.about-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 56px;
  align-items: start;
}

.about-list { margin-top: 24px; }

.about-list li {
  padding: 12px 0;
  border-top: 1px solid var(--color-border);
}

.about-list li:last-child { border-bottom: 1px solid var(--color-border); }

.about-stats {
  display: grid;
  gap: 20px;
}

.stat {
  background: var(--color-navy);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  color: #fff;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-teal);
}

.stat-label {
  font-size: 0.85rem;
  color: #cfe3ec;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* -------------------- Coverage Area -------------------- */

.area { background: var(--color-bg); }

.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.area-col {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
}

.area-col h3 { color: var(--color-teal-dark); }

.area-col li {
  padding: 8px 0;
  border-top: 1px dashed var(--color-border);
}

.area-col li:first-of-type { border-top: none; }

/* -------------------- Instagram -------------------- */

.instagram { background: var(--color-bg-alt); }

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.instagram-embed {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.instagram-embed iframe {
  max-width: 100% !important;
}

.instagram-cta {
  text-align: center;
  margin-top: 40px;
}

/* -------------------- Contact -------------------- */

.contact { background: var(--color-bg); }

.contact-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}

.contact-details { margin-top: 24px; }

.contact-details li {
  padding: 10px 0;
  border-top: 1px solid var(--color-border);
}

.contact-form {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

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

.form-field { margin-bottom: 20px; }

.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(31, 168, 154, 0.18);
}

.form-field.invalid input,
.form-field.invalid textarea {
  border-color: var(--color-error);
}

.field-error {
  display: block;
  color: var(--color-error);
  font-size: 0.8rem;
  min-height: 1.1em;
  margin-top: 4px;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-field input { width: auto; }
.checkbox-field label { margin: 0; font-weight: 600; }

.form-status {
  margin-top: 16px;
  font-weight: 600;
  min-height: 1.2em;
}

.form-status.success { color: var(--color-teal-dark); }
.form-status.error { color: var(--color-error); }

/* -------------------- Footer -------------------- */

.site-footer {
  background: var(--color-navy-dark);
  color: #b9d3de;
  padding: 56px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p { margin-top: 14px; font-size: 0.9rem; color: #94b5c2; max-width: 320px; }

.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4, .footer-contact h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.footer-links a, .footer-contact a { color: #b9d3de; font-weight: 500; }
.footer-links a:hover, .footer-contact a:hover { color: var(--color-teal); }

.footer-bottom {
  padding: 20px 24px 28px;
  text-align: center;
  font-size: 0.82rem;
  color: #6f93a1;
}

/* -------------------- Responsive -------------------- */

@media (max-width: 900px) {
  .hero-inner,
  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual { order: -1; }
  .hero-visual-card { max-width: 220px; margin: 0 auto; }

  .service-grid { grid-template-columns: repeat(2, 1fr); }

  .area-grid { grid-template-columns: repeat(2, 1fr); }

  .instagram-grid { grid-template-columns: repeat(2, 1fr); }

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

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    display: none;
  }

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

  .main-nav a { padding: 10px 0; width: 100%; }
  .nav-cta { margin-top: 8px; text-align: center; }

  .nav-toggle { display: flex; }

  section { padding: 64px 0; }

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

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

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

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

@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}
