/* Aqua Services — recreation of the original Wix design.
   Headings: Bai Jamjuree (as on Wix). Body: Jost Light, the closest free match to Wix's Futura LT Light. */

:root {
  --ink: #333333;
  --text: #5d5d61;
  --muted: #8f8f8f;
  --tab: #f1f1f1;
  --line: #c7c7c7;
  --navy: #002e5d;
  --link: #0057e1;
  --white: #ffffff;
  --head: "Bai Jamjuree", "Helvetica Neue", Arial, sans-serif;
  --body: "Jost", "Futura", "Century Gothic", sans-serif;
  --btn: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header-h: 98px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 300 16px/1.9 var(--body);
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 { font-family: var(--head); font-weight: 400; color: var(--ink); margin: 0; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  height: var(--header-h);
}

.header-inner {
  max-width: 1440px; height: 100%;
  margin: 0 auto;
  padding: 0 29px 0 115px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.logo img { width: 310px; }

.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 1px;
}

.nav a {
  display: block;
  padding: 0 20px;
  background: var(--tab);
  color: var(--ink);
  font: 400 18px/50px var(--head);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}

.nav a:hover,
.nav a[aria-current="true"] { background: var(--ink); color: var(--white); }

.nav-toggle { display: none; }

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

.btn {
  display: inline-block;
  min-width: 148px;
  padding: 0 28px;
  background: var(--ink);
  color: var(--white);
  font: 400 15px/46px var(--btn);
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  border: 0; cursor: pointer;
  transition: background-color .2s;
}
.btn:hover { background: #000; }

/* ---------- Parallax frames (hero, About photo) ---------- */

.parallax { position: relative; overflow: hidden; }

.parallax-img {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.has-parallax .parallax-img { will-change: transform; }

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

.hero {
  min-height: 935px;
  min-height: min(935px, calc(100svh - var(--header-h) + 40px));
  background: #d8cfc4;
  display: flex; flex-direction: column; align-items: center;
  padding: 105px 24px 80px;
  text-align: center;
}

.hero > :not(.parallax-img) { position: relative; z-index: 1; }

.hero h1 {
  font-size: 62px;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 980px;
  text-wrap: balance;
}

.hero h1 span {
  background: rgba(241, 241, 241, 0.85);
  padding: 0 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero .btn { margin-top: 38px; }

/* Entrance, as on Wix: the heading wipes in from the left, then Read More fades in */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: wipe-in .9s cubic-bezier(.25, .6, .3, 1) .3s both; }
  .hero .btn { animation: fade-in .8s ease 1.2s both; }
}

@keyframes wipe-in {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Sections ---------- */

.section { padding: 62px 24px 90px; text-align: center; }

.section h2,
.about h2 {
  font-size: 62px;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.lede { max-width: 630px; margin: 0 auto; }

.features {
  max-width: 900px;
  margin: 56px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}

.features h3 {
  font: 300 22px/1.4 var(--body);
  color: var(--ink);
  margin-bottom: 14px;
}

.features p { margin: 0 auto; max-width: 220px; }

/* Brand logos: equal tiles, each in its logo's own background colour */
.brands {
  max-width: 904px;
  margin: 72px auto 0;
  padding: 0;
  list-style: none;
  --cols: 5; --gap: 15px;
  --tile-w: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap);
}

.brands li {
  flex: 0 0 var(--tile-w);
  min-width: 0;
  aspect-ratio: 2 / 1;
  background: var(--tile);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* Same visual height for every logo, capped so wide ones still fit */
.brands img { height: 46%; width: auto; max-width: 88%; object-fit: contain; }
.brands .wide img { height: 62%; }
.brands .tall img { height: 64%; }

/* Heating */

.services {
  display: inline-block;
  text-align: left;
  max-width: 580px;
  margin: 0;
  padding-left: 20px;
}

.services strong { font: 400 17px var(--head); color: var(--ink); letter-spacing: 0.02em; }

/* Heating logos: same tiles as the bathroom brands, three across at the same tile size */
.brands-heating {
  --cols: 3;
  max-width: calc(904px * 3 / 5 - 6px);
  margin-top: 110px;
}
/* Gas Safe is a square badge: same height as the other tiles, half the width */
.brands .badge { flex-basis: calc(var(--tile-w) / 2); aspect-ratio: 1; }
.brands .badge img { height: auto; width: 68%; }

.gas-safe-no { margin: 40px 0 0; font-size: 17px; }
.gas-safe-no strong { font-family: var(--head); font-weight: 400; color: var(--ink); }

/* Recent projects */

#projects { padding-bottom: 110px; }
#projects h2 { margin-bottom: 70px; }

.insta-title {
  font: 400 28px/1.4 var(--head);
  color: var(--ink);
  letter-spacing: 0.02em;
  margin: 0 0 30px;
}
.insta-title a { color: var(--link); text-decoration: none; }
.insta-title a:hover { text-decoration: underline; }

.carousel { position: relative; margin: 0 -24px; }

.strip {
  display: flex; gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none; margin: 0; padding: 0;
}
.strip::-webkit-scrollbar { display: none; }

.strip li { flex: 0 0 297px; scroll-snap-align: start; }
.strip a { display: block; }
.strip img { width: 297px; height: 297px; object-fit: cover; transition: opacity .2s; }
.strip a:hover img { opacity: .85; }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 26px; line-height: 50px;
  cursor: pointer;
}
.carousel-btn.prev { left: 22px; }
.carousel-btn.next { right: 22px; }

/* About */

.about {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px 0 0;
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center;
  text-align: center;
}

.about-text { padding: 40px 24px; }
.about-text h2 { margin-bottom: 70px; }
.about-text p { max-width: 450px; margin: 0 auto 56px; }

.about-img { width: 100%; height: 440px; }
.about-img .parallax-img { object-position: 65% 50%; }

/* Contact */

#contact { padding-top: 50px; padding-bottom: 80px; }
#contact h2 { margin-bottom: 44px; }
#contact address { font-style: normal; }
#contact address p { margin: 0 0 16px; }
#contact address a { text-decoration: none; }
#contact address a:hover { text-decoration: underline; }
#contact .whatsapp { color: #128c7e; white-space: nowrap; }

.contact-form {
  max-width: 510px;
  margin: 50px auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 50px;
  text-align: left;
}

.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field.wide { grid-column: 1 / -1; }

.field label { color: var(--text); margin-bottom: 4px; }

.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  padding: 6px 10px;
  height: 40px;
}
.field textarea { height: 141px; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: 2px solid var(--link); outline-offset: 1px; }

.contact-form .btn { grid-column: 1 / -1; justify-self: center; width: 245px; margin-top: 10px; }


.h-captcha { grid-column: 1 / -1; justify-self: center; margin: 6px 0 8px; min-height: 78px; }

.form-status { grid-column: 1 / -1; text-align: center; margin: 0 0 6px; color: #b3261e; }

.form-success { margin: 50px auto 0; font: 400 22px/1.4 var(--head); color: var(--ink); }

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

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

.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }

.site-footer {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 10px 24px;
  font-size: 16px;
}

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

@media (max-width: 1100px) {
  .header-inner { padding: 0 20px; }
  .logo img { width: 240px; }
  .nav a { padding: 0 14px; font-size: 16px; }
  .about { padding-right: 24px; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .logo img { width: 210px; }

  .nav-toggle {
    display: block;
    width: 44px; height: 44px;
    border: 0; background: transparent; cursor: pointer;
    position: relative;
  }
  .nav-toggle span,
  .nav-toggle span::before,
  .nav-toggle span::after {
    position: absolute; left: 10px; width: 24px; height: 2px; background: var(--ink); content: "";
  }
  .nav-toggle span { top: 21px; }
  .nav-toggle span::before { top: -7px; left: 0; }
  .nav-toggle span::after { top: 7px; left: 0; }

  .nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--white);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { line-height: 52px; padding: 0 24px; font-size: 18px; }

  .hero { min-height: 520px; padding-top: 70px; }
  .hero h1 { font-size: 36px; }

  .section h2, .about h2 { font-size: 40px; }

  .features { grid-template-columns: 1fr; gap: 28px; }
  .brands { --cols: 3; max-width: 600px; }

  .brands-heating { --cols: 3; margin-top: 60px; }

  .about { grid-template-columns: 1fr; padding: 0; }
  .about-img { height: 280px; }

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

  .strip li { flex-basis: 240px; }
  .strip img { width: 240px; height: 240px; }
  .carousel-btn { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 30px; }
  .section h2, .about h2 { font-size: 34px; }
  .insta-title { font-size: 22px; }
  .brands, .brands-heating { --cols: 2; --gap: 12px; }
}

/* ---------- Legal pages (privacy, terms) ---------- */

.back-link {
  white-space: nowrap;
  font: 400 17px var(--head);
  color: var(--ink);
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.legal h1 { font-size: 44px; letter-spacing: 0.02em; }
.legal .updated { color: var(--muted); margin: 6px 0 0; }
.legal h2 { font-size: 24px; margin: 36px 0 6px; }
.legal p, .legal ul { margin: 8px 0; }
.legal ul { padding-left: 22px; }
.legal strong { font-weight: 400; color: var(--ink); }
.legal a { color: var(--link); }
