/* ADG Kaban Sewer & Drain — site styles */

@font-face {
  font-family: "Alata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/alata-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/figtree-latin-var.woff2") format("woff2");
}

:root {
  --navy: #101e83;
  --navy-dark: #0a1356;
  --navy-deep: #070d3b;
  --red: #e3242b;
  --ink: #161a2e;
  --body: #3f4459;
  --muted: #6b7084;
  --line: #e3e5ee;
  --tint: #f3f5fb;
  --white: #fff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 30, 131, 0.06), 0 8px 24px rgba(16, 30, 131, 0.08);
  --shadow-lg: 0 2px 4px rgba(16, 30, 131, 0.06), 0 20px 48px rgba(16, 30, 131, 0.14);
  --wrap: 1160px;
  --header-h: 76px;
  --font-head: "Alata", "Trebuchet MS", sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.6em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

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

.btn-primary:hover {
  background: var(--navy-dark);
}

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

.btn-accent:hover {
  background: #c51b21;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgba(16, 30, 131, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  display: block;
  flex: none;
}

.logo img {
  width: 150px;
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-phone {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone span {
  color: var(--navy);
}

.header-phone:hover span {
  text-decoration: underline;
}

.header-actions .btn {
  min-height: 44px;
  padding: 0.55em 1.4em;
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }
  .logo img {
    width: 118px;
  }
  .header-phone {
    display: none;
  }
  .header-actions .btn {
    padding: 0.5em 1.1em;
    font-size: 0.95rem;
  }
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 13, 59, 0.92) 0%, rgba(10, 19, 86, 0.82) 42%, rgba(10, 19, 86, 0.35) 75%, rgba(10, 19, 86, 0.15) 100%);
}

.hero-inner {
  padding: clamp(72px, 11vw, 140px) 24px clamp(64px, 9vw, 120px);
}

.hero-copy {
  max-width: 620px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 0.45em;
}

.hero-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin-bottom: 1.8em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 36px;
}

.trust-google {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
}

.g-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  flex: none;
}

.g-badge img {
  width: 20px;
  height: 21px;
}

.trust-google .score {
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stars svg {
  width: 18px;
  height: 17px;
}

.trust-google .count {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

.trust-google:hover .count {
  text-decoration: underline;
}

.bbb-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  overflow: hidden;
  border-radius: 3px;
  background: #036290;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
}

.bbb-name {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  padding: 0 7px;
  background: var(--white);
  color: #036290;
  font-size: 14px;
  letter-spacing: -0.08em;
}

.bbb-name img {
  width: 9px;
  height: 15px;
}

.bbb-grade {
  padding: 0 8px;
  color: var(--white);
  font-size: 17px;
  letter-spacing: -0.06em;
}

.bbb-pill:hover {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* Sections */

.section {
  padding: clamp(64px, 9vw, 110px) 0;
}

.section-tint {
  background: var(--tint);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
}

.section-head h2 {
  margin: 0;
}

.hl {
  color: var(--navy);
  position: relative;
  white-space: nowrap;
}

.hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.08em;
  height: 0.14em;
  background: var(--red);
  border-radius: 2px;
  opacity: 0.85;
}

/* Services */

.services {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 980px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.services li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px 10px 12px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.services svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--navy);
  background: rgba(16, 30, 131, 0.08);
  border-radius: 50%;
  padding: 4px;
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: clamp(48px, 7vw, 80px);
}

.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--white);
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature h3 {
  margin-bottom: 0.5em;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 0.4em;
}

.contact-call {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.6em;
}

.contact-call a {
  text-decoration: none;
}

.contact-call a:hover {
  text-decoration: underline;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 4px;
  color: var(--navy);
}

.contact-list a {
  color: var(--ink);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: clamp(24px, 4vw, 40px);
  border-top: 4px solid var(--navy);
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.field label .req {
  color: var(--red);
  margin-left: 2px;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--tint);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(16, 30, 131, 0.12);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9a9eb0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Turnstile runs invisibly; it only takes space when Cloudflare wants a click.
   The label shows with the checkbox so its "Success!" isn't read as "sent". */
.form-turnstile {
  height: 0;
  overflow: hidden;
}

.form-turnstile.is-interactive {
  height: auto;
  overflow: visible;
  margin-top: 22px;
}

.form-turnstile-label {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.form-actions {
  margin-top: 22px;
}

.form-actions .btn {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.form-status:empty {
  display: none;
}

/* After a successful send only the thank-you message stays. */
form.is-done .form-grid,
form.is-done .form-turnstile,
form.is-done .form-actions {
  display: none;
}

form.is-done .form-status {
  margin-top: 0;
}

.form-status.is-success {
  background: #e8f6ee;
  color: #12693a;
}

.form-status.is-error {
  background: #fdecec;
  color: #a3171c;
}

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

@media (max-width: 520px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* About */

.about {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.about-copy h2 {
  margin-bottom: 0.7em;
}

.about-figure {
  margin: 0;
}

.about-figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
  }
  .about-figure {
    max-width: 560px;
  }
}

/* Review page */

.page-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.page-intro h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}

.review-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 36px 20px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 30, 131, 0.25);
}

.review-card svg,
.review-card img {
  width: 52px;
  height: 52px;
}

@media (max-width: 640px) {
  .review-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
  .review-card {
    flex-direction: row;
    justify-content: center;
    padding: 22px 20px;
  }
  .review-card svg,
  .review-card img {
    width: 40px;
    height: 40px;
  }
}

/* Simple message pages (thank you, 404) */

.message-page {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.message-page .btn {
  margin-top: 1.6em;
}

/* Footer */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.975rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.4fr;
  gap: 40px;
  padding: 64px 24px 48px;
}

.footer-logo img {
  width: 190px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-contact {
  font-style: normal;
  display: grid;
  gap: 4px;
}

.footer-contact .label {
  color: rgba(255, 255, 255, 0.55);
  display: inline-block;
  min-width: 1.4em;
}

.footer-contact .review-link {
  margin-top: 10px;
  font-weight: 600;
}

.footer-title {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.6em;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 24px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 48px;
  }
}

/* Mobile call bar */

.call-bar {
  display: none;
}

@media (max-width: 640px) {
  .call-bar {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 60;
    box-shadow: 0 10px 30px rgba(7, 13, 59, 0.35);
    transform: translateY(160%);
    transition: transform 0.25s ease;
  }
  .call-bar.is-visible {
    transform: none;
  }
  body.has-call-bar {
    padding-bottom: 84px;
  }
}
