/* =========================
   FONT & RESETS
========================= */


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color: #222;
  background: #fafafa;
}

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

/* =========================
   COLOUR SYSTEM
========================= */
:root {
  --brand-blue: #046f6b;
  --brand-blue-dark: #084a83;
  --accent: #e53935;
  --muted: #666;
  --bg: #fafafa;
}

/* =========================
   WRAPPER
========================= */
.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* =========================
   TOP BAR (CLS FIXED)
========================= */
:root {
  --brand-blue: #046f6b;
  --brand-blue-dark: #084a83;
  --accent: #e53935;
  --muted: #666;
  --bg: #fafafa;

  /* ✅ Added: locked topbar height so header doesn't jump */
  --topbar-h: 44px;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid #eee;
  font-size: 14px;

  /* Keep spacing as you had it */
  padding: 6px 5%;

  display: flex;
  gap: 20px;
  align-items: center;

  /* Sticky topbar */
  position: sticky;
  top: 0;
  z-index: 1000;

  /* ✅ CLS Fix: lock height so it doesn't change after fonts/styles load */
  height: var(--topbar-h);
  box-sizing: border-box;

  /* Optional safety: prevents wrap-caused shifts */
  white-space: nowrap;
  overflow: hidden;
}

.topbar a {
  color: var(--brand-blue);
  font-weight: 500;
  transition: 0.2s;
}

.topbar a:hover {
  text-decoration: underline;
}

/* =========================
   HEADER & NAV (CLS FIXED)
========================= */
.header {
  background: #fff;

  position: sticky;
  top: var(--topbar-h); /* ✅ CLS Fix: always sits exactly under topbar */

  z-index: 999;
  box-shadow: 0 1px 6px rgba(8,20,30,0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Keep nav on one line */
.nav {
  display: flex;
  gap: 20px;
  align-items: center;
  white-space: nowrap;
}

.logo img {
  height: 56px;
  display: block;
}


/* =========================
   HAMBURGER
========================= */
.hamburger {
  width: 32px;
  height: 26px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 999;
}

.hamburger span {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: #000;
  transition: 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* =========================
   NAVIGATION
========================= */
.nav a {
  color: #333;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 4px;
}

.nav a.active {
  color: var(--brand-blue);
}

.nav a:hover {
  background: rgba(11,97,169,0.06);
}

.nav-contact-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.nav-contact-wrapper .nav-phone {
  font-weight: 700;
  color: var(--brand-blue-dark);
}

.nav-contact-wrapper .btn {
  padding: 8px 12px;
  font-weight: 600;
  color: #fff !important;
  background: var(--brand-blue);
  cursor: pointer;
  text-decoration: none;
  transition: none;
}

.nav-contact-wrapper .btn:hover {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: none;
}

/* =========================
   MOBILE NAV
========================= */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: #fff;
    display: none;
    padding: 20px 0;
    border-top: 1px solid #eee;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
    text-align: left;
  }

  .mobile-phone {
    display: block;
    font-weight: 700;
    color: var(--brand-blue-dark);
    margin-left: 12px;
  }
}

/* =========================
   HERO SECTION
========================= */
.hero {
  position: relative;
  min-height: 200px;
  overflow: hidden;
  background-image: none;
}

.hero-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-overlay{
  position:relative;
  z-index:1;
}

/* HERO TITLE COLOR */
.hero .hero-overlay h1 {
  color: #046f6b;
}

/* Keep hero headline on one line without CLS */
.hero .hero-overlay h1 {
  white-space: nowrap;
  min-height: 1.2em;
}

/* Allow wrapping only on very small screens */
@media (max-width: 360px) {
  .hero .hero-overlay h1 {
    white-space: normal;
  }
}

.hero .hero-overlay .breadcrumb,
.hero .hero-overlay .meta {
  color: #046f6b;
}


/* =========================
   CONTAINER
========================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 46px 4%;
}

/* =========================
   COLUMNS
========================= */
.columns {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  min-height: 1px;
}

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

/* =========================
   SERVICE GRID 2x2
========================= */
.services-overview h2,
.columns h2,
.testimonials h2 {
  color: var(--brand-blue) !important;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
}

.service-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 18px;
}

.service-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 320;
  object-fit: cover;
}

.service-card .service-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  text-align: center;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(8,20,30,0.09);
}

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

.service-card:hover .service-overlay {
  background: rgba(0,0,0,0.7);
}

@media (max-width: 960px) {
  .service-grid-2x2 {
    grid-template-columns: 1fr;
  }
}

/* =========================
   SIDEBAR CARD
========================= */
.sidebar-card {
  background: #fff;
  padding: 18px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(10,20,30,0.06);
}

.contact-phone {
  font-size: 18px;
  color: var(--brand-blue-dark);
  font-weight: 700;
  margin-top: 8px;
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 700;
  background: var(--brand-blue);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(11,97,169,0.12);
  color: var(--brand-blue);
}

/* =========================
   FOOTER
========================= */
.footer {
  background: #0f1720;
  color: #d7dfe8;
  padding: 28px 4%;
  margin-top: auto;
}

.footer .inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* =========================
   MODAL
========================= */
.modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  position: relative;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  overflow-y: auto;
  max-height: 90vh;
}

.modal h2 {
  text-align: center;
  color: var(--brand-blue);
  margin-bottom: 24px;
}

.modal label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.modal input, .modal select, .modal textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.modal textarea {
  min-height: 100px;
  resize: vertical;
}

.modal .btn-submit {
  width: 100%;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.modal .btn-submit:hover {
  background: var(--brand-blue-dark);
}

.modal .close-modal {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 20px;
  cursor: pointer;
  color: #333;
}

.modal .success-message,
.modal .error-message {
  display: none;
  font-weight: 600;
  text-align: center;
  margin-top: 12px;
}

.modal .success-message {
  color: green;
}

.modal .error-message {
  color: red;
}

/* =========================
   SMALL SCREENS
========================= */
@media (max-width: 600px) {
  .hero h1 { font-size: 28px; }
  .header-inner { padding: 12px; }
  .logo img { height: 48px; }
  .nav-contact-wrapper { flex-direction: column; gap: 4px; }

  /* Keep topbar visible and sticky */
  .topbar {
    display: flex !important;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  /* Adjust header to sit below topbar */
  .header {
  top: var(--topbar-h);
}
}

/* =========================
   MOBILE PHONE NUMBER
========================= */
.mobile-phone {
  display: none;
  font-weight: 700;
  color: var(--brand-blue-dark);
  white-space: nowrap;
  font-size: 16px;
  margin-left: 12px;
}

@media (max-width: 900px) {
  .mobile-phone {
    display: inline-block;
  }

  .nav-phone {
    display: none;
  }

  .nav-contact-wrapper {
    flex-direction: column;
    gap: 6px;
  }
}

/* =========================
   MOBILE NAV SCROLLABLE
========================= */
@media (max-width: 900px) {
  .nav {
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.no-wrap {
  white-space: nowrap;
}

/* =========================================================
   POSSUM PAGE: MAIN CONTENT SUPPORT (keeps existing layout)
   ========================================================= */
/*  MAIN CONTENT LAYOUT  */
.row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 100px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 20px;
}

.row.reverse {
  flex-direction: row-reverse;
}

.text {
  flex: 1;
}

.image {
  flex: 0 0 40%;
}

/* Add spacing between text and image */
.row:not(.reverse) .image {
  margin-left: 50px; /* space between text and image when normal */
}

.row.reverse .image {
  margin-right: 50px; /* space between text and image when reversed */
}

.image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .row, .row.reverse {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .row:not(.reverse) .image,
  .row.reverse .image {
    margin: 0; /* remove margin on mobile */
  }
}

/* =========================================================
   MOVED INLINE CSS FROM POSSUM PAGE (to reduce HTML weight)
   ========================================================= */
.social-bar {
      display: flex;
      justify-content: center; /* center icons */
      gap: 20px;               /* space between icons */
      margin: 20px 0;
    }

    .social-bar a {
      font-size: 30px;
      transition: transform 0.3s;
    }

    .social-bar a:hover {
      transform: scale(1.2); /* enlarge slightly on hover */
    }

.row {
    display: flex;
    align-items: flex-start;
    gap: 2cm; /* spacing between text and image */
    margin-bottom: 40px;
  }
  .row.reverse {
    flex-direction: row-reverse;
  }
  .text {
    flex: 1;
    text-align: left;
  }
  .image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  }
  @media (max-width: 768px) {
    .row,
    .row.reverse {
      flex-direction: column;
      gap: 20px;
    }
    .image {
      flex: 1 !important;
    }
  }

/* ===== DESKTOP ===== */
    @media (min-width: 769px) {
      .footer {
        height: var(--footer-height-desktop);
      }

      .footer-mobile {
        display: none !important;
      }

      .footer-desktop {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 100%;
        width: 100%;
      }
    }

    /* ===== MOBILE ===== */
    @media (max-width: 768px) {
      .footer {
        height: var(--footer-height-mobile);
      }

      .footer-desktop {
        display: none !important;
      }

      .footer-mobile {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        padding: 0 12px;
      }

      /* Row 1  socials truly centered */
      .footer-mobile-row1 {
        display: flex;
        justify-content: center;
        width: 100%;
        text-align: center;
      }

      /* Row 2  clear left / right split */
      .footer-mobile-row2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 6px;
        font-size: 14px;
      }

      .footer-mobile-row2 > div:first-child {
        text-align: left;
      }

      .footer-mobile-row2 > div:last-child {
        text-align: right;
      }
    }


/* Perf: delay rendering of long below-the-fold rows until needed */
#about .row {
  content-visibility: auto;
  contain-intrinsic-size: 600px;
}

/* =========================
   CONTENT SECTIONS (moved from inline CSS)
========================= */
.content-sections .row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
  }
  .content-sections .row.reverse {
    flex-direction: row-reverse;
  }
  .content-sections .text {
    flex: 1;
    text-align: left;
  }
  .content-sections .image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  }
  @media (max-width: 768px) {
    .content-sections .row,
    .content-sections .row.reverse {
      flex-direction: column;
    }
    .content-sections .image {
      flex: 1 !important;
    }
  }
