

/* =========================
   GLOBAL RESET (SAFE)
   ========================= */
* { box-sizing: border-box; }

/* =========================
   HERO
   ========================= */
.hero-wrap,
.hero-wrap h1,
.hero-wrap p { color: #fff; }

.hero-wrap { min-height: 100vh; }


.hero-wrap {
  position: relative;
}

/* Default (desktop) */
.hero-content {
  padding: 140px 20px 60px;
}

/* Tablets */
@media (max-width: 992px) {
  .hero-content {
    padding-top: 160px;
  }
}

/* Mobile overflow fix */
@media (max-width: 768px) {
  .hero-wrap {
    min-height: auto;
    height: auto;
    display: block;
  }
}

/* Small mobile */
@media (max-width: 576px) {
  .hero-content {
    padding-top: 160px;
    padding-bottom: 80px;
  }
}

.hero-service-link {
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s ease, text-decoration 0.25s ease;
}

.hero-service-link:hover {
  color: var(--brand-red);
  text-decoration: underline;
}



/* =========================
   TYPOGRAPHY
   ========================= */
body {
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-body);
}

p {
  margin-bottom: var(--space-sm);
  color: var(--text-body);
}

section p { text-align: left; }

/* Headings */
h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.3;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: var(--space-sm);
}

h3,
.feature-heading,
.feature-title {
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

/* =========================
   SECTION NOTE
   ========================= */
.section-note {
  font-size: var(--fs-note);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto;
}

/* =========================
   SECTION SPACING
   ========================= */
.section { padding: var(--space-xl) 0; }
.section-intro { margin-bottom: var(--space-lg); }
.section-closing { margin-top: var(--space-lg); }

/* =========================
   FEATURE GRIDS
   ========================= */
   .feature-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
}

@media (max-width: 768px) {
  .feature-grid-2 {
    grid-template-columns: 1fr;
  }
}

.feature-grid-3,
.feature-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 48px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .feature-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
  .feature-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .feature-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* =========================
   FEATURE ITEM
   ========================= */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 18px;
}

@media (min-width: 1200px) {
  .feature-item { padding: 22px 26px; }
}

.feature-item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
}

/* Icon container */
.feature-icon-wrap {
  width: 52px;
  height: 52px;
  background-color: var(--brand-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-icon-wrap i {
  font-size: 1.6rem;
  color: #fff;
}

/* Alternative icon style */
.feature-item .feature-icon,
.feature-item > i.fa-solid {
  font-size: 2.2rem;
  color: var(--brand-red);
  margin-top: 6px;
  flex-shrink: 0;
}

a.feature-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* =========================
   SHORT BAR INTRO
   ========================= */
.short-bar-block {
  padding-left: 25px;
  border-left: 6px solid var(--brand-red);
  margin-bottom: 40px;
}

.short-bar-block p {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #333;
  margin-bottom: 0;
}

/* =========================
   TWO COLUMN LIST
   ========================= */
.two-column-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
  padding-left: 0;
  list-style: none;
}

.two-column-list li {
  position: relative;
  padding-left: 28px;
  font-size: 1.15rem;
}

.two-column-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-red);
  font-weight: bold;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .two-column-list { grid-template-columns: 1fr; }
}

/* =========================
   LOGOS (CAROUSEL)
   ========================= */
.logo-img { max-height: 80px; }
.logo-wrapper-lg img { margin-right: 3rem; }

.logo-wrapper-sm {
  width: max-content;
  animation: scrollLogos 10s linear infinite;
}

.logo-wrapper-sm img { margin-right: 2rem; }

@keyframes scrollLogos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================
   PAGE SYSTEM (SHARED UTILITIES)
   ========================= */
@media (min-width: 1400px) {
  .section-breakout {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }

  .section-breakout > .container-fluid {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.measured-wide {
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 3rem;
  padding-right: 3rem;
}

@media (min-width: 1600px) {
  .measured-wide {
    max-width: 2000px;
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

.section-wide { padding: 6rem 0; }

.content-wide {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
}

@media (min-width: 1400px) {
  .content-wide {
    max-width: 1300px;
    font-size: 1.1rem;
  }
}

@media (min-width: 1600px) {
  .content-wide { max-width: 1450px; }
}

.modal-body iframe { height: 70vh; }

/* =========================
   SECTION TEXT NORMALIZATION
   ========================= */
section,
.section,
.section-wide,
.section-breakout {
  font-size: 1.05rem;
  line-height: 1.75;
}

section p,
.section p,
.section-wide p,
.section-breakout p {
  font-size: 1em;
  line-height: inherit;
  margin-bottom: 1rem;
}

.feature-item p,
.two-column-list li {
  font-size: 1em;
  line-height: 1.7;
}

.feature-title,
.feature-heading {
  font-size: 1.15em;
  line-height: 1.4;
}

.section-note,
.text-small {
  font-size: 0.95em;
  line-height: 1.6;
}

@media (min-width: 1200px) {
  section,
  .section,
  .section-wide,
  .section-breakout {
    font-size: 1.1rem;
  }
}

@media (min-width: 1600px) {
  section,
  .section,
  .section-wide,
  .section-breakout {
    font-size: 1.15rem;
  }
}

/* Ensure modal content is always visible on reopen (mobile fix) */
.modal.show .ftco-animate {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Prevent transform stacking bugs on mobile */
.modal,
.modal-dialog,
.modal-content {
  transform: none !important;
}


/* =========================
   FLOATING QUOTE BUTTON
   ========================= */
   
#quoteBtn {
  position: fixed;
  right: 24px;
  bottom: 80px;

  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  background-color: var(--brand-red);
  color: #fff;

  box-shadow: 0 10px 25px rgba(0,0,0,0.15);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;

  z-index: 1030;
}

#quoteBtn.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* =========================
   MOBILE — ROUND FAB
   ========================= */
@media (max-width: 768px) {
  #quoteBtn {
    bottom: 24px;

    width: 56px;
    height: 56px;
    padding: 0;

    border-radius: 50%;
    justify-content: center;
  }

  /* Hide text, keep icon */
  #quoteBtn span,
  #quoteBtn .btn-text {
    display: none;
  }

  /* Slightly larger icon */
  #quoteBtn i {
    font-size: 1.4rem;
  }
}

/* FORCE quote button to stay pure red in all states */
#quoteBtn,
#quoteBtn:hover,
#quoteBtn:focus,
#quoteBtn:active,
#quoteBtn:focus-visible {
  background-color: var(--brand-red) !important;
  background-image: none !important;   /* removes Bootstrap gradients */
  border: none !important;
  outline: none !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
  color: #fff !important;
}

/* -------------------------
   Enquiry link (inline zoom hint)
   ------------------------- */
.contact-page .enquiry-link {
  color: var(--brand-blue);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  cursor: zoom-in;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-page .enquiry-link:hover {
  color: var(--brand-red);
  border-bottom-color: var(--brand-red);
}

.contact-page .contact-header h2 {
  margin-top: 0;
}





.drop-zone {
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}



.drop-zone.dragover {
  border: 2px dashed #007bff;
  background: rgba(0,123,255,0.05);
}

.file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 14px;
}

.file-ready {
  color: #28a745;
  font-weight: bold;
}

.file-error {
  color: #dc3545;
  font-weight: bold;
}


.file-remove {
  cursor: pointer;
  color: #dc3545;
  font-weight: bold;
  margin-left: 8px;
}

.file-remove:hover {
  color: #a71d2a;
}

.form-error-global {
  background: #fdecea;
  color: #611a15;
  border: 1px solid #f5c2c7;
  padding: 10px 12px;
  margin-bottom: 15px;
  border-radius: 4px;
  font-size: 14px;
}

.hero-wrap {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* HOME */
#homePage .hero-wrap {
  background-image: url('../images/SiteEngineeringHome.webp');
}

/* Mobile */
@media (max-width: 767px) {
  #homePage .hero-wrap {
    background-image: url('../images/3.webp');
  }
}



.modal .appointment-form .form-control {
  border-radius: 10px !important;
  padding: 12px 14px !important;
  font-size: 15px;
}

.modal .appointment-form label {
  font-weight: 600 !important;
  font-size: 14px;
}

.modal .appointment-form {
  background: #ffffff;
  border-radius: 14px;
  padding: 30px;
}

.modal .appointment-form .btn-primary {
  border-radius: 30px !important;
  padding: 12px 32px;
  font-weight: 600;
}



/* =====================================================
   HEADER – CLEANED & SCALED (BOOTSTRAP-SAFE)
   ===================================================== */

/* === HEADER BASE === */
.header {
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px 40px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* === LOGO === */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 180px;
  height: auto;
}

/* === CONTACT INFO === */
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #D4143C;
  font-family: 'Poppins', sans-serif;
  gap: 6px;
}

.contact-info span {
  font-size: 18px;
  font-weight: 500;
}

.contact-info i {
  font-size: 18px;
}



/* =====================================================
   MOBILE ≤ 412px
   ===================================================== */
@media (max-width: 412px) {

  .header {
    padding: 10px 12px;
  }

  .logo {
    padding-left: 10px;
  }

  .contact-info {
    flex-direction: row;
    gap: 12px;
  }

  .phone span,
  .email span {
    display: none;
  }

  .circle-icon {
    margin-right: 0;
  }

  .nav-link {
    font-size: 9px !important;
  }
}

/* =====================================================
   SMALL DEVICES 413px – 575px
   ===================================================== */
@media (min-width: 413px) and (max-width: 575px) {

  .header {
    padding: 12px 16px;
  }

  .logo {
    padding-left: 10px;
  }

  .contact-info {
    flex-direction: row;
    gap: 14px;
  }

  .phone span,
  .email span {
    display: none;
  }
}

/* =====================================================
   MEDIUM DEVICES 576px – 767px
   ===================================================== */
@media (min-width: 576px) and (max-width: 767px) {

  .header {
    padding: 14px 18px;
  }

  .logo {
    padding-left: 10px;
  }

  .contact-info {
    flex-direction: row;
    gap: 18px;
  }

  .phone span,
  .email span {
    display: inline;
  }
}

/* =====================================================
   TABLET PORTRAIT 768px – 991px
   ===================================================== */
@media (min-width: 768px) and (max-width: 991px) {

  .header {
    padding: 14px 20px;
  }

  .logo {
    padding-left: 20px;
  }

  .contact-info {
    flex-direction: row;
    gap: 20px;
  }
}

/* =====================================================
   TABLET LANDSCAPE 992px – 1199px
   ===================================================== */
@media (min-width: 992px) and (max-width: 1199px) {

  .header {
    padding: 16px 30px 36px;
  }

  .logo {
    padding-left: 40px;
  }

  .contact-info {
    flex-direction: row;
    gap: 24px;
  }
}

/* =====================================================
   LARGE SCREENS ≥ 1200px (THIS IS WHAT YOU WANTED)
   ===================================================== */
@media (min-width: 1200px) {

  .header {
    padding: 18px 40px 40px;
  }

  .logo img {
    width: 220px;
  }

  .contact-info {
    flex-direction: row;
    gap: 28px;
  }

  /* 🔥 INCREASE PHONE & EMAIL SIZE HERE */
  .header .contact-info span {
    font-size: 20px;
    font-weight: 400;
  }

  .header .contact-info i {
    font-size: 22px;
  }
}

.contact-info span {
  white-space: nowrap;
}

/* Hide the hamburger icon in big screens */
@media (min-width: 992px) {
  .navbar-toggler {
    display: none;
  }
}


/* Add a class to style the circular background */
.circle-icon {
  display: inline-block;
  width: 27px; /* Adjust the width and height as needed for your design */
  height: 27px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%; /* Makes it circular */
  background-color: #D4143C; /* Background color for the circle */
  color: #fff; /* Text color (icon color) */
  font-size: 18px; /* Adjust the font size as needed */
  margin-right: 20px; /* Add margin to create space between icons */
}


/* === NAVBAR SIZE UPGRADE === */
#ftco-navbar.navbar {
  padding-top: 20px;
  padding-bottom: 20px;
}

@media (min-width: 1200px) {
  #ftco-navbar.navbar {
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

/* === cookie banner === */
.cc-invisible {
  display: none !important;
}

/* Hide cookie revoke button (small wing) */
.cc-revoke {
  display: none !important;
}

/* ===============================
   Reduce heading sizes INSIDE legal modal only
   =============================== */

#legalModal h1 {
  font-size: calc(var(--fs-h1) * 0.65);
  line-height: 1.25;
}

#legalModal h2 {
  font-size: calc(var(--fs-h2) * 0.7);
  line-height: 1.3;
}

#legalModal h3,
#legalModal .feature-heading,
#legalModal .feature-title {
  font-size: calc(var(--fs-h3) * 0.75);
  line-height: 1.4;
}

/* ===============================
   Legal modal content spacing & typography
   =============================== */

#legalModal .modal-body {
  padding: 2rem 2.5rem; /* side margins */
}

#legalModal p,
#legalModal li {
  font-size: 0.95rem;     /* slightly smaller text */
  line-height: 1.65;     /* better readability */
  color: var(--text-primary);
}

/* Lists spacing */
#legalModal ul,
#legalModal ol {
  padding-left: 1.2rem;
  margin-bottom: 1.2rem;
}

#legalModal li {
  margin-bottom: 0.4rem;
}

/* Optional: constrain text width for readability */
#legalModal .container {
  max-width: 900px;
}

@media (max-width: 576px) {
  #legalModal .modal-body {
    padding: 1.5rem 1.25rem;
  }
}

/* ===============================
   Checkbox + legal text alignment (final)
   =============================== */

.form-group.form-check {
  display: flex;
  align-items: flex-start;   /* 🔥 align to first text line */
  padding-left: 0;
}

.form-group.form-check .form-check-input {
  position: static;
  margin: 0.15em 0.8rem 0 0 !important; /* fine-tune vertical alignment */
  transform: scale(1.2);
  cursor: pointer;
}

.form-group.form-check .form-check-label {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  cursor: pointer;
}


/* ===============================
   Inline checkbox + legal text (correct baseline)
   =============================== */

.form-check-inline {
  display: flex;
  align-items: flex-start;   /* Align checkbox with text baseline */
  gap: 0.6rem;
}

.form-check-inline .form-check-input {
  position: static;
  margin: 0.15em 0.5rem 0 0;  /* Fine-tune margin between checkbox and text */
  transform: scale(1.2);       /* Slightly bigger for easy click/tap */
  cursor: pointer;
}

.form-check-inline .form-check-label {
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0;
  cursor: pointer;
}