/* Toronto Water Extraction - Stylesheet */

:root {
  --navy: #0f2a50;
  --navy-dark: #0a1f3d;
  --muted-blue: #5784b8;
  --light-blue: #eaf2fb;
  --gray-1: #f6f8fa;
  --gray-2: #e3e7ec;
  --gray-3: #6b7480;
  --text: #1c2430;
  --white: #ffffff;
  --shadow: 0 6px 24px rgba(15, 42, 80, 0.08);
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

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

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--muted-blue); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 16px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: var(--white);
  font-size: 0.9rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  max-width: 1140px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: var(--white); }
.topbar a:hover { color: var(--light-blue); }
.topbar-contact span { margin-right: 18px; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-2);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  max-width: 1140px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.1rem;
}
.brand-logo {
  width: 34px;
  height: 34px;
  background: var(--navy);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
}
.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  border-bottom-color: var(--muted-blue);
}
.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 18px !important;
  border-radius: var(--radius);
  border: none !important;
}
.nav-cta:hover { background: var(--muted-blue); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--muted-blue); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-dark-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-dark-outline:hover { background: var(--navy); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(rgba(10,31,61,0.72), rgba(10,31,61,0.72)),
    url('../images/hero-extraction.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 90px 20px;
}
.hero-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 28px;
  color: #e6edf6;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}
.page-header h1 {
  color: var(--white);
  margin-bottom: 8px;
}
.page-header p {
  color: #cfd9e6;
  margin: 0;
}

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-alt { background: var(--gray-1); }
.section-intro {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-intro h2 { margin-bottom: 12px; }
.section-intro p { color: var(--gray-3); }

/* ---------- Service Cards ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-2);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--gray-3); margin: 0; }
.card-icon {
  width: 46px;
  height: 46px;
  background: var(--light-blue);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  font-weight: 700;
}

/* ---------- Why Choose ---------- */
.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.why-list li {
  padding: 14px 0 14px 34px;
  position: relative;
  border-bottom: 1px solid var(--gray-2);
}
.why-list li:last-child { border-bottom: none; }
.why-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 14px;
  width: 24px;
  height: 24px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-size: 0.85rem;
  font-weight: 700;
}
.why-list li strong { display: block; color: var(--navy); margin-bottom: 2px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Service Area ---------- */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.area-list li {
  background: var(--white);
  border: 1px solid var(--gray-2);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 500;
  color: var(--navy);
}

/* ---------- Contact block / CTA strip ---------- */
.cta-strip {
  background: var(--navy);
  color: var(--white);
  padding: 50px 20px;
  text-align: center;
}
.cta-strip h2 { color: var(--white); margin-bottom: 10px; }
.cta-strip p { color: #cfd9e6; margin-bottom: 22px; }
.cta-strip .hero-buttons { justify-content: center; }

/* ---------- Services page list ---------- */
.service-block {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  padding: 26px;
  border: 1px solid var(--gray-2);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 18px;
}
.service-block .num {
  width: 70px;
  height: 70px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
}
.service-block h3 { margin-bottom: 8px; }
.service-block p { margin: 0; color: var(--gray-3); }

/* ---------- About ---------- */
.about-content p { font-size: 1.02rem; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info {
  background: var(--gray-1);
  padding: 30px;
  border-radius: var(--radius);
}
.contact-info h3 { margin-top: 0; }
.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-info li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-2);
}
.contact-info li:last-child { border-bottom: none; }
.contact-info li strong { color: var(--navy); display: block; margin-bottom: 2px; }

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 0.95rem;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-2);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
  margin-bottom: 16px;
  color: var(--text);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--muted-blue);
  box-shadow: 0 0 0 3px rgba(87,132,184,0.15);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.form-msg {
  margin-top: 12px;
  padding: 12px;
  background: var(--light-blue);
  color: var(--navy);
  border-radius: var(--radius);
  display: none;
}

.map-wrap {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #cfd9e6;
  padding: 50px 20px 20px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  max-width: 1140px;
  margin: 0 auto;
}
.site-footer h4 {
  color: var(--white);
  margin-bottom: 14px;
  font-size: 1rem;
}
.site-footer a { color: #cfd9e6; }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 4px 0; }
.footer-bottom {
  max-width: 1140px;
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  h1 { font-size: 1.9rem; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 60px 20px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-contact span { display: block; margin: 2px 0; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 14px 20px;
    border-top: 1px solid var(--gray-2);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .site-header { position: relative; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; text-align: left; }
  .service-block .num { margin-bottom: 4px; }
  .hero h1 { font-size: 1.7rem; }
}
