/* ==========================================================================
   AVERY BUILDING PTY LTD - MAIN STYLESHEET
   Matches exact layout, colors, and typography from Photoshop design reference.
   ========================================================================== */

/* --- 1. CSS VARIABLES & DESIGN TOKENS --- */
:root {
  /* Brand Color Palette */
  --navy: #071A33;           /* Primary Dark Navy */
  --navy-dark: #051325;      /* Deeper Dark Navy for Footer/CTA */
  --navy-card: #0B2548;      /* Lighter Navy for Projects background */
  --blue: #0759D1;           /* Primary Action Blue */
  --blue-accent: #1769E0;    /* Bright Accent Blue for highlights */
  --blue-hover: #0649AD;     /* Darker Blue on hover */
  --blue-light: #EBF3FC;     /* Soft Blue Tint */
  --blue-cyan: #38BDF8;      /* Bright cyan for dark backgrounds */

  /* Neutral Shades */
  --bg-light: #F8FAFC;       /* Off-white canvas background */
  --white: #FFFFFF;          /* Pure White */
  --text-dark: #1E293B;      /* High-contrast body text */
  --text-muted: #64748B;     /* Subtitle and description text */
  --border-color: #E2E8F0;   /* Light dividers and card borders */
  --border-dark: #1E3A5F;    /* Borders on dark navy backgrounds */

  /* Accents */
  --gold: #F59E0B;           /* Review stars */
  --success: #10B981;        /* Form success indicator */

  /* Typography */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout & Spacing */
  --max-width: 1220px;
  --transition: all 0.25s ease-in-out;
  --radius-xs: 3px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.16);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Text Highlights */
.highlight-blue {
  color: var(--blue-accent);
}

/* Section Header Typography */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px auto;
}

.section-eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Button Component Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background-color: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(7, 89, 209, 0.35);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-sm);
}

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--navy);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.btn-outline-dark:hover {
  background-color: var(--bg-light);
  border-color: var(--navy);
}

.btn-navy-phone {
  background-color: var(--navy);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 13px 24px;
  font-size: 0.9375rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-navy-phone:hover {
  background-color: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
}

/* Header Phone Pill Button */
.btn-phone-header {
  background-color: var(--blue);
  color: var(--white);
  padding: 10px 22px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-phone-header:hover {
  background-color: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(7, 89, 209, 0.3);
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
  background: transparent;
}

/* Scrolled Header State */
.site-header.header-scrolled {
  padding: 12px 0;
  background-color: rgba(7, 26, 51, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo Component */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon-svg {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--white);
  line-height: 1.15;
}

/* Desktop Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  padding: 6px 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--blue-accent);
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-caret-svg {
  transition: transform 0.2s ease;
}

/* Services Dropdown */
.nav-dropdown-wrap {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: var(--navy-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 100;
}

.nav-dropdown-wrap:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-wrap:hover .nav-caret-svg {
  transform: rotate(180deg);
}

.nav-dropdown-item {
  display: block;
  padding: 10px 18px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  transition: var(--transition);
}

.nav-dropdown-item:hover {
  background-color: var(--blue);
  color: var(--white);
  padding-left: 22px;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
  display: none;
  color: var(--white);
  padding: 8px;
  cursor: pointer;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 340px;
  height: 100vh;
  background-color: var(--navy-dark);
  z-index: 1001;
  padding: 28px 24px;
  flex-direction: column;
  transition: right 0.35s ease;
  box-shadow: -6px 0 25px rgba(0, 0, 0, 0.5);
}

.mobile-nav-drawer.is-open {
  right: 0;
}

.mobile-drawer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

.mobile-drawer-overlay.is-open {
  display: block;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 0;
}

.mobile-nav-link:hover {
  color: var(--blue-accent);
}

/* ==========================================================================
   4. HERO BANNER SLIDER (LEFT ALIGNED TEXT & SMOOTH SLIDES)
   ========================================================================== */
.hero-slider-section {
  position: relative;
  min-height: 750px;
  height: 88vh;
  max-height: 740px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: var(--navy);
  overflow: hidden;
}

/* Background Slides Wrapper */
.hero-slides-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1s ease-in-out, transform 4s ease-out;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Dark Architectural Gradient Overlay */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 22, 45, 0.90) 0%,
    rgba(6, 22, 45, 0.76) 45%,
    rgba(6, 22, 45, 0.35) 100%
  );
}

/* Left-Aligned Content Container */
.hero-container {
  position: relative;
  z-index: 5;
  width: 100%;
}

.hero-text-block {
  text-align: left;
  max-width: 650px;
  margin: 0;
}

.hero-eyebrow {
  margin-top:155px;
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
  opacity: 0.92;
}

.hero-title {
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.hero-description {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  margin-bottom: 34px;
  max-width: 520px;
}

.hero-btn-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Slider Left & Right Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(7, 26, 51, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.slider-arrow:hover {
  background-color: var(--blue);
  border-color: var(--blue);
  transform: translateY(-50%) scale(1.08);
}

.slider-arrow-prev {
  left: 28px;
}

.slider-arrow-next {
  right: 28px;
}

/* Slider Pagination Dots */
.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

.slider-dot.active {
  width: 28px;
  background-color: var(--blue-accent);
}

/* ==========================================================================
   5. SERVICES SECTION (6 COLUMNS WITH DIVIDERS MATCHING PHOTOSHOP)
   ========================================================================== */
.services-section {
  background-color: var(--white);
  padding: 85px 0 95px 0;
  border-bottom: 1px solid var(--border-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: var(--white);
}

.service-col {
  padding: 38px 18px;
  text-align: center;
  background-color: var(--white);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
  cursor: pointer;
}

.service-col:last-child {
  border-right: none;
}

.service-col:hover {
  background-color: #F8FBFF;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(7, 89, 209, 0.08);
}

.service-icon-wrap {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: var(--transition);
}

.service-col:hover .service-icon-wrap {
  transform: scale(1.1);
}

.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.service-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   6. ABOUT US SECTION (KITCHEN PHOTO + 4 HORIZONTAL TRUST BADGES)
   ========================================================================== */
.about-section {
  background-color: var(--bg-light);
  padding: 95px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 54px;
  align-items: center;
}

.about-media-col {
  position: relative;
}

.about-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.about-content-col {
  padding-left: 6px;
}

.about-eyebrow {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-accent);
  display: block;
  margin-bottom: 10px;
}

.about-heading {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 18px;
}

.about-p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 30px;
}

/* 4 Trust Features (Horizontal Row matching Photoshop) */
.trust-horizontal-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 34px;
  padding: 16px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-icon-box {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-text-group {
  display: flex;
  flex-direction: column;
}

.trust-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.trust-subtitle {
  display: block;
  font-size: 0.78125rem;
  color: var(--text-muted);
  line-height: 1.25;
}

/* ==========================================================================
   7. FEATURED PROJECTS SECTION (DARK NAVY WITH 4 CARDS SIDE-BY-SIDE)
   ========================================================================== */
.projects-section {
  background-color: var(--navy);
  color: var(--white);
  padding: 95px 0;
}

.projects-layout {
  display: grid;
  grid-template-columns: 24% 76%;
  gap: 32px;
  align-items: center;
}

.projects-intro-col {
  padding-right: 10px;
}

.projects-eyebrow {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-cyan);
  display: block;
  margin-bottom: 12px;
}

.projects-heading {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.projects-intro-desc {
  font-size: 0.95rem;
  color: #94A3B8;
  line-height: 1.65;
  margin-bottom: 28px;
}

/* 4 Cards in a single row */
.projects-grid-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background-color: var(--navy-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  height: 290px;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 26, 51, 0) 0%,
    rgba(7, 26, 51, 0.3) 45%,
    rgba(7, 26, 51, 0.95) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  transition: var(--transition);
}

.project-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.3;
}

.project-card-location {
  font-size: 0.8125rem;
  color: #38BDF8;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

/* ==========================================================================
   8. CLIENT TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section {
  background-color: var(--bg-light);
  padding: 95px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.testimonial-card {
  background-color: var(--white);
  padding: 34px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

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

.testimonial-quote-icon {
  font-size: 3.2rem;
  font-family: Georgia, serif;
  color: var(--blue-accent);
  line-height: 1;
  margin-bottom: 8px;
}

.testimonial-quote-text {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.65;
  margin-bottom: 24px;
}

.testimonial-footer-block {
  margin-top: auto;
}

.testimonial-stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.testimonial-author {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
}

.testimonial-location {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ==========================================================================
   9. CALL TO ACTION (CTA) BANNER
   ========================================================================== */
.cta-banner {
  position: relative;
  background-image: url('images/hero-house.jpg');
  background-size: cover;
  background-position: center;
  padding: 85px 0;
  color: var(--white);
}

.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(7, 26, 51, 0.92);
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-banner-text {
  max-width: 620px;
}

.cta-eyebrow {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-cyan);
  display: block;
  margin-bottom: 8px;
}

.cta-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 10px;
}

.cta-subtitle {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.85);
}

.cta-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   10. SITE FOOTER (5-COLUMN LAYOUT MATCHING PHOTOSHOP)
   ========================================================================== */
.site-footer {
  background-color: var(--navy-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 75px 0 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.1fr 1.3fr 1fr;
  gap: 36px;
  margin-bottom: 50px;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: var(--blue-accent);
}

.footer-tagline {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  margin: 12px 0 8px 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.875rem;
}

.footer-contact-icon {
  color: var(--blue-accent);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social-btn:hover {
  background-color: var(--blue);
  transform: translateY(-2px);
}

/* Master Builders Association Circular Badge */
.mba-round-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
}

.mba-round-svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.mba-badge-text {
  display: flex;
  flex-direction: column;
}

.mba-title {
  font-size: 0.78125rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}

.mba-sub {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

/* Floating Scroll to Top */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background-color: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 900;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background-color: var(--blue-hover);
  transform: translateY(-3px);
}

/* ==========================================================================
   11. MODAL DIALOGS (PURE CSS / TOGGLED VIA JS)
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(7, 26, 51, 0.78);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-overlay.is-active {
  display: flex;
}

.modal-box {
  background-color: var(--white);
  border-radius: var(--radius-md);
  max-width: 660px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
}

.modal-close-btn {
  font-size: 1.6rem;
  color: #94A3B8;
  line-height: 1;
  padding: 4px;
  border-radius: 4px;
}

.modal-close-btn:hover {
  color: var(--navy);
  background-color: var(--bg-light);
}

.modal-body {
  padding: 24px;
  max-height: calc(85vh - 70px);
  overflow-y: auto;
}

/* Form Styles inside Modal */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9375rem;
  font-family: inherit;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  background-color: var(--white);
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 89, 209, 0.15);
}

.form-textarea {
  min-height: 90px;
  resize: vertical;
}

.form-notice {
  background-color: var(--blue-light);
  border: 1px solid rgba(7, 89, 209, 0.18);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.8125rem;
  color: #0c4a6e;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Success View in Modal */
.quote-success-view {
  display: none;
  text-align: center;
  padding: 30px 10px;
}

.quote-success-view.is-visible {
  display: block;
}

.quote-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #ECFDF5;
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
}

.quote-ref-badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: var(--blue-light);
  color: var(--blue);
  font-weight: 800;
  border-radius: 4px;
  margin-bottom: 16px;
  font-family: monospace;
  font-size: 1rem;
}

/* ==========================================================================
   12. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-col:nth-child(3) {
    border-right: none;
  }

  .service-col:nth-child(-n+3) {
    border-bottom: 1px solid var(--border-color);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    height: 380px;
  }

  .projects-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .projects-grid-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .nav-menu,
  .nav-cta-group {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .mobile-nav-drawer {
    display: flex;
  }

  .hero-slider-section {
    min-height: 520px;
    height: auto;
    padding: 130px 0 70px 0;
  }

  .hero-text-block {
    text-align: left;
  }

  .slider-arrow {
    display: none; /* Hide arrow buttons on mobile to avoid clutter */
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-col {
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
  }

  .service-col:nth-child(2n) {
    border-right: none;
  }

  .trust-horizontal-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .service-col {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .service-col:last-child {
    border-bottom: none;
  }

  .projects-grid-row {
    grid-template-columns: 1fr;
  }

  .trust-horizontal-row {
    grid-template-columns: 1fr;
  }

  .hero-btn-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-btn-group .btn {
    width: 100%;
  }
}
