/* ==========================================================================
   SGM Waterproofing Services — Stylesheet
   ========================================================================== */

:root {
  /* Color tokens */
  --navy: #0A2A43;
  --navy-deep: #071D30;
  --royal: #1C5D9B;
  --water: #2FA6C9;
  --water-light: #DCF1F6;
  --white: #FFFFFF;
  --gray-50: #F5F7F9;
  --gray-100: #E9EDF1;
  --gray-300: #C9D3DB;
  --gray-500: #667585;
  --gray-700: #3B4956;
  --ink: #10222F;
  --success: #1E8E5A;
  --shadow-sm: 0 1px 2px rgba(10, 42, 67, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 42, 67, 0.10);
  --shadow-lg: 0 20px 48px rgba(10, 42, 67, 0.16);

  /* Type */
  --font-head: "Sora", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --header-h: 78px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * , *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

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

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--gray-700); max-width: 68ch; }

a { color: var(--royal); text-decoration: none; }
a:hover { color: var(--water); }

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

ul { padding-left: 1.2em; color: var(--gray-700); }

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

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--gray-50); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: #C7D6E2; }

.eyebrow-free-heading { max-width: 640px; }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { margin-top: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--water); color: var(--navy-deep); }
.btn-primary:hover { background: #29A0C2; color: var(--navy-deep); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); }
.btn-whatsapp { background: #1EA95A; color: var(--white); }
.btn-whatsapp:hover { background: #178B48; color: var(--white); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow 0.2s ease, padding 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  min-height: var(--header-h);
  gap: 14px;
  flex-wrap: nowrap;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.brand img { height: 42px; width: auto; }
.brand small { display: block; font-weight: 500; font-size: 0.68rem; color: var(--gray-500); }

.main-nav { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 1px;
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.main-nav a:hover { color: var(--royal); }
.main-nav .dropdown-caret {
  display: inline-block;
  font-size: 0.7rem;
  transform: translateY(1px);
  line-height: 1;
}

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 260px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: none;
  border: 1px solid var(--gray-100);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.92rem;
}
.dropdown a:hover { background: var(--water-light); }

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

.hamburger {
  display: none;
  background: none;
  border: 2px solid var(--gray-300);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.hamburger span, .hamburger span::before, .hamburger span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: 0.2s;
}
.hamburger span::before { position: absolute; top: -6px; }
.hamburger span::after { position: absolute; top: 6px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  padding: 10px 20px 20px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a { padding: 12px 4px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--gray-100); }
.mobile-nav .mobile-submenu { padding-left: 14px; display: flex; flex-direction: column; }
.mobile-nav .mobile-submenu a { font-weight: 500; font-size: 0.92rem; border-bottom: none; padding: 9px 4px; }
.mobile-nav .mobile-cta { display: flex; gap: 10px; margin-top: 12px; }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--royal) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 76px 0 96px;
  position: relative;
  z-index: 2;
}
.hero h1 { color: var(--white); }
.hero p.lead { color: #D6E6EE; font-size: 1.08rem; max-width: 54ch; }
.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

.hero-waves {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
  z-index: 1;
}
.hero-waves svg { width: 100%; height: 90px; display: block; }

.water-drop {
  position: absolute;
  opacity: 0.35;
  animation: drop-fall 6s linear infinite;
}
@keyframes drop-fall {
  0% { transform: translateY(-20px); opacity: 0; }
  15% { opacity: 0.4; }
  100% { transform: translateY(140px); opacity: 0; }
}

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}
.feature-card .icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--water-light);
  border-radius: 12px;
  margin-bottom: 14px;
  color: var(--royal);
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature-card p { font-size: 0.94rem; margin: 0; }

/* Service cards */
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-card .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--gray-100); }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover .thumb img { transform: scale(1.05); }
.service-card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service-card .body p { font-size: 0.93rem; margin: 0 0 8px; flex: 1; }

/* Process steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
  counter-reset: step;
}
.process-step {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  position: relative;
}
.process-step .step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 12px;
}
.process-step h3 { font-size: 1rem; margin-bottom: 4px; }
.process-step p { font-size: 0.88rem; margin: 0; }

/* Before / after slider */
.ba-slider {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 720px;
  margin: 0 auto;
  user-select: none;
}
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-slider .ba-after { clip-path: inset(0 0 0 50%); }
.ba-slider .ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--white);
  cursor: ew-resize;
  transform: translateX(-50%);
}
.ba-slider .ba-handle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--white);
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow-md);
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230A2A43' stroke-width='2'%3E%3Cpath d='M8 5l-5 7 5 7M16 5l5 7-5 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.ba-slider .ba-label {
  position: absolute;
  top: 14px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(10,42,67,0.72);
  color: var(--white);
  font-family: var(--font-head);
}
.ba-slider .ba-label.before-label { left: 14px; }
.ba-slider .ba-label.after-label { right: 14px; }

.project-caption { text-align: center; margin-top: 16px; }

/* Gallery */
.gallery-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.gallery-filter button {
  border: 1px solid var(--gray-300);
  background: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  color: var(--gray-700);
}
.gallery-filter button.active,
.gallery-filter button:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-100);
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-grid figure:hover img { transform: scale(1.06); }

/* Reviews */
.review-carousel { position: relative; max-width: 760px; margin: 0 auto; overflow: hidden; }
.review-track { display: flex; transition: transform 0.4s ease; }
.review-slide { min-width: 100%; padding: 4px; }
.review-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.review-card .stars { color: #F5A623; font-size: 1.1rem; margin-bottom: 10px; }
.review-card .name { font-family: var(--font-head); font-weight: 700; color: var(--navy); margin-top: 12px; }
.review-card .service-tag { font-size: 0.82rem; color: var(--gray-500); }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.carousel-controls button {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--gray-300); background: var(--white);
  cursor: pointer; font-size: 1rem; color: var(--navy);
}
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button {
  width: 9px; height: 9px; border-radius: 50%; padding: 0;
  border: none; background: var(--gray-300);
}
.carousel-dots button.active { background: var(--royal); }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--gray-100);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 4px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 16px;
}
.faq-question .icon { transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.is-open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer p { padding: 0 4px 18px; font-size: 0.95rem; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.88rem; color: var(--navy); }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 3px solid var(--water-light);
  border-color: var(--water);
}
.form-note {
  background: #FFF7E6;
  border: 1px solid #F2D9A0;
  color: #7A5B00;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-top: 18px;
}

/* Contact info cards */
.contact-info-list { display: flex; flex-direction: column; gap: 18px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-item .icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--water-light); color: var(--royal);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item h3 { font-size: 0.98rem; margin-bottom: 2px; }
.contact-info-item p { margin: 0; font-size: 0.92rem; }

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  aspect-ratio: 16/9;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  text-align: center;
  padding: 20px;
}

/* Breadcrumbs */
.breadcrumbs { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 18px; }
.breadcrumbs a { color: var(--gray-500); font-weight: 500; }
.breadcrumbs a:hover { color: var(--royal); }
.breadcrumbs span[aria-current] { color: var(--navy); font-weight: 600; }

/* Common content blocks */
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; }
.problem-list, .benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.problem-item, .benefit-item {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.94rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.problem-item .dot, .benefit-item .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--water); margin-top: 7px; flex-shrink: 0;
}

.cta-band {
  background: linear-gradient(120deg, var(--royal), var(--navy));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: #D6E6EE; margin: 0 auto 6px; }
.cta-band .cta-row { justify-content: center; }

/* Blog */
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.blog-card .thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--gray-100); }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .body { padding: 18px 20px 22px; }
.blog-card .meta { font-size: 0.78rem; color: var(--gray-500); margin-bottom: 6px; }
.article-body h2 { margin-top: 1.6em; }
.article-body h3 { margin-top: 1.2em; }
.article-body { max-width: 74ch; }
.article-hero-img { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 28px; aspect-ratio: 16/8; }
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #C7D6E2; padding: 60px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.site-footer p { color: #A9BFCF; font-size: 0.9rem; }
.site-footer a { color: #C7D6E2; font-size: 0.9rem; }
.site-footer a:hover { color: var(--water); }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0 26px;
  font-size: 0.82rem;
  color: #8FA6B8;
}
.footer-bottom a { color: #8FA6B8; }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.social-row { display: flex; gap: 10px; margin-top: 14px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}

/* Sticky mobile action bar */
.sticky-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 600;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  box-shadow: 0 -6px 20px rgba(10,42,67,0.12);
}
.sticky-mobile-bar .row { display: grid; grid-template-columns: repeat(3, 1fr); }
.sticky-mobile-bar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
}
.sticky-mobile-bar a.call { color: var(--royal); }
.sticky-mobile-bar a.whatsapp { color: #1EA95A; }
.sticky-mobile-bar a.quote { color: var(--navy); }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Utility */
.text-center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.stack-sm > * + * { margin-top: 10px; }
.badge {
  display: inline-block;
  background: var(--water-light);
  color: var(--royal);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white);
  padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--water);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 1120px) {
  .main-nav, .header-actions .btn { display: none; }
  .hamburger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; padding: 44px 0 64px; }
  .grid, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sticky-mobile-bar { display: block; }
  body { padding-bottom: 0; }
}

@media (max-width: 600px) {
  .grid, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .problem-list, .benefit-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .cta-band { padding: 30px 20px; }
}
