/* ============================================================
   Bernard Waterproofing Pty Ltd — Main Stylesheet
   Mobile-first, plain CSS, no frameworks
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand colours */
  --navy:        #0c2a5e;
  --navy-mid:    #133574;
  --blue:        #1a4fa8;
  --blue-hover:  #163e87;
  --blue-light:  #eff6ff;
  --blue-border: #bfdbfe;

  /* Neutral */
  --charcoal:    #1e2832;
  --text:        #374151;
  --text-muted:  #6b7280;
  --bg-soft:     #f8fafc;
  --white:       #ffffff;
  --border:      #e2e8f0;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow:      0 4px 12px rgba(0, 0, 0, 0.10);
  --shadow-lg:   0 8px 28px rgba(0, 0, 0, 0.14);

  /* Shape */
  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   12px;

  /* Layout */
  --max-w:       1200px;
  --header-h:    68px;
  --section-gap: clamp(56px, 9vw, 96px);
  --col-gap:     24px;

  /* Motion */
  --transition:  0.2s ease;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  color: var(--charcoal);
}


/* ============================================================
   3. UTILITIES & LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.section {
  padding-block: var(--section-gap);
}

.section--soft  { background: var(--bg-soft); }
.section--navy  { background: var(--navy);  color: var(--white); }
.section--blue  { background: var(--blue-light); }

/* Two-column split */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
  .split--reverse > :last-child  { order: 1; }
}

/* Stack utility */
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 10px; }
.stack-lg > * + * { margin-top: 24px; }

/* Eyebrow label */
.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.eyebrow--light { color: #93c5fd; }

/* Section headings */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 14px;
}

.section-title--white { color: var(--white); }

.section-intro {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* Centred section header */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .section-intro {
  margin-inline: auto;
}


/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
  white-space: nowrap;
  text-align: center;
}

.btn-lg {
  padding: 16px 30px;
  font-size: 1.0625rem;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--blue);
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

/* Phone icon inline */
.btn svg,
.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}


/* ============================================================
   5. SITE HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: var(--navy);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
}

/* Brand / wordmark */
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--white);
  flex-shrink: 0;
}

.brand__name {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
}

.brand__name span {
  color: #60a5fa; /* accent blue */
}

.brand__sub {
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Desktop nav */
.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 2px;
  align-items: center;
}

.site-nav a {
  display: block;
  padding: 8px 13px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.site-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* Header CTA button — always visible */
.header-cta {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 0.9375rem;
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Hamburger → X animation */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   6. MOBILE NAVIGATION
   ============================================================ */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  /* Hide the text label so the button shows icon-only on mobile */
  .header-cta__text { display: none; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy-mid);
    box-shadow: var(--shadow-lg);
    margin-left: 0;
  }

  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
  }

  .site-nav a {
    padding: 13px 24px;
    border-radius: 0;
    font-size: 1rem;
  }
}

@media (min-width: 901px) {
  .site-nav { display: flex !important; }
}


/* ============================================================
   7. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: clamp(520px, 88vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background image */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Dark gradient overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(12, 42, 94, 0.91) 0%,
    rgba(12, 42, 94, 0.72) 60%,
    rgba(12, 42, 94, 0.50) 100%
  );
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: 80px;
}

.hero__content {
  max-width: 660px;
  color: var(--white);
}

.hero__content .eyebrow {
  color: #93c5fd;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero__lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}

/* Trust badges row */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.trust-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.25);
  border: 1px solid rgba(96, 165, 250, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  color: #93c5fd;
  flex-shrink: 0;
}


/* ============================================================
   8. TRUST STRIP
   ============================================================ */
.trust-strip {
  background: var(--charcoal);
  padding-block: 36px;
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.trust-strip__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--white);
}

.trust-strip__icon {
  font-size: 1.875rem;
  line-height: 1;
  flex-shrink: 0;
}

.trust-strip__item strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.trust-strip__item p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}


/* ============================================================
   9. ABOUT
   ============================================================ */
.about-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badge overlaid on image */
.about-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--blue);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.4;
  box-shadow: var(--shadow);
}

.about-badge span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.about-content p {
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-content p:last-of-type {
  margin-bottom: 0;
}

/* Chips below about copy */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-light);
  color: var(--blue);
  border: 1px solid var(--blue-border);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
}


/* ============================================================
   10. SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: var(--col-gap);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

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

/* Image variant */
.service-card__img {
  height: 196px;
  overflow: hidden;
  flex-shrink: 0;
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card__img img {
  transform: scale(1.05);
}

/* Icon variant (no photo) */
.service-card__icon {
  height: 110px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  flex-shrink: 0;
}

.service-card__body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}


/* ============================================================
   11. WHY CHOOSE US
   ============================================================ */
.why-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
  max-height: 560px;
}

.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.why-points {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 28px;
}

.why-point {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.why-point__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  flex-shrink: 0;
  color: var(--blue);
}

.why-point__text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.why-point__text p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}


/* ============================================================
   12. PROCESS
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 52px;
}

/* Connecting line between steps on desktop */
@media (min-width: 640px) {
  .process-grid {
    position: relative;
  }
  .process-grid::before {
    content: '';
    position: absolute;
    top: 28px; /* half of number circle */
    left: calc(50% / 4);
    right: calc(50% / 4);
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 0;
  }
}

.process-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.process-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.process-card p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
}


/* ============================================================
   13. SERVICE AREAS
   ============================================================ */
.areas-content p {
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 16px;
}

.area-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.area-pill {
  background: var(--white);
  border: 1.5px solid var(--blue-border);
  color: var(--blue);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}

.areas-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
  max-height: 540px;
}

.areas-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}


/* ============================================================
   14. CONTACT / CTA
   ============================================================ */
.cta-section {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-gap);
}

.cta-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.10;
}

.cta-section__inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
  color: var(--white);
}

.cta-section__inner h2 {
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-section__inner p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.7;
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Contact details below CTA buttons */
.cta-contact-line {
  margin-top: 28px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
}

.cta-contact-line a {
  color: #93c5fd;
  font-weight: 600;
}

.cta-contact-line a:hover {
  color: var(--white);
}


/* ============================================================
   15. FOOTER
   ============================================================ */
.site-footer {
  background: var(--charcoal);
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 40px;
  padding-block: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-name {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  display: block;
}

.footer-brand-name span { color: #60a5fa; }

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.65;
  margin-bottom: 18px;
}

/* Logo in footer */
.footer-logo {
  display: inline-block;
  background: var(--white);
  padding: 8px 12px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.footer-logo img {
  height: 36px;
  width: auto;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 14px;
}

.footer-links li + li { margin-top: 10px; }

.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.68);
  transition: color var(--transition);
}

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

.footer-contact li {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 10px;
  line-height: 1.5;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.68);
  transition: color var(--transition);
}

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

.footer-contact strong {
  color: var(--white);
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

/* Footer area pills */
.footer-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.footer-area-pill {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.07);
  padding: 4px 10px;
  border-radius: 100px;
}

.footer-bottom {
  padding-block: 20px;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.35);
}


/* ============================================================
   16. RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 640px) {
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  /* Stack all splits on mobile */
  .split { gap: 32px; }

  .why-image,
  .areas-image {
    aspect-ratio: 16 / 9;
    max-height: 280px;
  }
}


/* ============================================================
   17. ACCESSIBILITY & FOCUS
   ============================================================ */
:focus-visible {
  outline: 3px solid #60a5fa;
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Visually hidden (screen reader only) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
