/* =============================================
   INPAND TECHNOLOGIES — home.css
   Clean rebuild from WordPress source
   Max content width: 1180px (wide) / 980px (text)
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  --color-primary: #0029e0;
  --color-primary-dark: #0010c7;
  --color-accent: #ebeefc;
  --color-text: #101011;
  --color-text-muted: #646363;
  --color-white: #ffffff;
  --color-bg: #f5f7fa;
  --color-footer-bg: #020205;
  --color-footer-text: #f5f5f5;
  --color-footer-link: #b7b7c7;
  --color-green: #2ecc71;

  --font-heading: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;

  --max-width-wide: 1180px;
  --max-width-content: 980px;
  --gutter: clamp(1rem, 4vw, 2rem);

  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  /* FIX 2: added missing variable */
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.14);

  --transition: 0.3s ease;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.btn:hover {
  text-decoration: none;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.3;
}

/* ---- Layout Helpers ---- */
.container {
  width: 100%;
  max-width: var(--max-width-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* =============================================
   PRELOADER
   ============================================= */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  gap: 10px;
}

.bounce {
  width: 14px;
  height: 14px;
  background: var(--color-primary-dark);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.b1 {
  animation-delay: -0.32s;
}

.b2 {
  animation-delay: -0.16s;
}

@keyframes bounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 0.65em 1.5em;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform 0.15s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn::after {
  content: none !important;
  display: none !important;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: relative;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  z-index: 500;
}

.header-inner {
  margin-inline: auto;
  padding: 0.75rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.logo img {
  height: 92px;
  width: auto;
}

/* Nav */
.site-nav ul {
  display: flex;
  gap: 0;
  align-items: center;
}

.site-nav a {
  display: block;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  transition: color var(--transition);
}

.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0.9rem;
  right: 0.9rem;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-primary);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: url("../assets/home-hero.png") center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 80, 0.55);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.hero-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 580px;
  margin-inline: auto;
}

/* REPLACE this in home.css */
.hero .btn-primary {
  background: #4da3ff;
  color: #fff;
  border-color: #4da3ff;
  margin-top: 0.5rem;
  border-radius: 999px;
  padding: 0.9rem 2.2rem;
}

.hero .btn-primary:hover {
  background: #2f8df4;
  border-color: #2f8df4;
}

.hero-curve {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  overflow: hidden;
}

.hero-curve svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: clamp(40px, 6vw, 80px);
  fill: var(--color-white);
}

/* =============================================
   PILLARS
   ============================================= */
.pillars {
  padding: clamp(2rem, 5vw, 4rem) 0;
  background: var(--color-white);
}

.pillars .container {
  width: min(95%, 1500px);
  max-width: 1500px;
  margin-inline: auto;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 4rem 3rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}

.pillar-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  color: var(--color-primary);
}

.pillar-icon svg {
  width: 100%;
  height: 100%;
}

.pillar-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
}

/* =============================================
   ABOUT INTRO
   ============================================= */
.about-intro {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.about-content h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.about-content h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 1rem;
  font-weight: 700;
}

.about-content p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* =============================================
   SERVICES
   ============================================= */
.services {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--color-white);
}

.services .container {
  max-width: 100%;
  padding-inline: var(--gutter);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow var(--transition), transform var(--transition);
  border-bottom: 3px solid transparent;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--color-primary);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-body h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.service-body p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.btn-link {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color var(--transition);
}

.btn-link:hover {
  color: var(--color-primary-dark);
  text-decoration: none;
}

/* =============================================
   PORTFOLIO
   ============================================= */
.portfolio {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--color-bg);
}

.portfolio .container {
  max-width: 100%;
  padding-inline: var(--gutter);
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.45em 1em;
  border: 2px solid var(--color-primary);
  border-radius: 100px;
  background: transparent;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-item:hover img {
  transform: scale(1.06);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 41, 224, 0.88) 0%,
      rgba(0, 41, 224, 0.3) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.portfolio-overlay p {
  color: rgba(255, 255, 255, 0.87);
  font-size: 0.82rem;
  line-height: 1.5;
}

.portfolio-item.hidden {
  display: none;
}


/* =============================================
   TESTIMONIALS + SOCIAL SECTION
   ============================================= */

/* Outer section */
.testimonials-social {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--color-white);
  overflow: hidden;
}

/* Outer container — full width with side padding */
.container-full {
  width: 100%;
  max-width: 100%;
  padding-inline: clamp(1.5rem, 4vw, 3rem);
  box-sizing: border-box;
}

/* ── Flex row: testimonials col + social col side by side ── */
.ts-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: clamp(2rem, 5vw, 4rem);
}

/* Testimonials column: takes ~65% of available width */
.testimonials-col {
  flex: 65;
  min-width: 0;
}

/* Social column: takes ~35% of available width */
.social-col {
  flex: 16;
  min-width: 0;
}

/* ── Testimonials column content ── */
.testimonials-col .section-tag {
  display: block;
  margin-bottom: 0.5rem;
}

.testimonials-col h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  margin-bottom: 1.5rem;
}

.testimonial-carousel {
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 2.5rem;
  min-height: 280px;
  width: 100%;
  box-sizing: border-box;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
  width: 100%;
}

.testimonial-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  padding: 0.5rem 1.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-text p {
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: center;
}

.testimonial-author {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.testimonial-author img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
}

.testimonial-author strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.carousel-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  border: none;
  transition: background var(--transition);
}

.dot.active {
  background: var(--color-primary);
}

/* ── Social column content ── */
.social-col .section-tag {
  display: block;
  margin-bottom: 0.75rem;
}

.fb-embed-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 100%;
  position: relative;
}

.fb-embed-wrapper iframe {
  display: block;
  width: 100%;
  height: 500px;
  border: 0;
  outline: none;
  border: none;
  min-width: 0;
}

/* ── Responsive ── */

/* Tablet: stack columns vertically */
@media (max-width: 1024px) {
  .ts-row {
    flex-direction: column;
    gap: 2rem;
  }

  .testimonials-col {
    flex: none;
    width: 100%;
  }

  .testimonial-carousel {
    min-height: auto;
    width: 100%;
  }

  .social-col {
    flex: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .social-col .section-tag {
    width: 100%;
  }

  .fb-embed-wrapper {
    width: 100%;
    max-width: 500px;
    margin-inline: auto;
  }

  .fb-embed-wrapper iframe {
    height: 600px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .testimonials-social .container-full {
    padding-inline: 1rem;
  }

  .testimonial-carousel {
    padding: 1.5rem 1rem;
  }

  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }

  .testimonials-col h2 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .fb-embed-wrapper {
    max-width: 100%;
  }

  .fb-embed-wrapper iframe {
    height: 500px;
  }
}

@media (max-width: 420px) {
  .testimonial-carousel {
    padding: 1rem 0.875rem;
  }

  .carousel-controls {
    gap: 0.75rem;
  }
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
}

.footer-main {
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer-main .container {
  max-width: 100%;
  padding-inline: clamp(1.5rem, 4vw, 3rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
  width: 100%;
}

.footer-brand,
.footer-links,
.footer-contact,
.footer-map {
  min-width: 0;
}

.footer-brand img {
  height: 52px;
  margin-bottom: 1rem;
  filter: brightness(2);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--color-footer-link);
  line-height: 1.7;
  overflow-wrap: break-word;
  word-break: normal;
}

.footer-links h3,
.footer-contact h3,
.footer-map h3 {
  font-size: 1rem;
  color: var(--color-footer-text);
  margin-bottom: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--color-footer-link);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-white);
  text-decoration: none;
}

.contact-phone,
.contact-email {
  color: var(--color-footer-link);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  overflow-wrap: break-word;
  word-break: normal;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-footer-link);
  transition: background var(--transition), color var(--transition);
}

.social-icons a:hover {
  background: var(--color-primary);
  color: #fff;
}

.social-icons svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.map-embed iframe {
  width: 100%;
  height: 200px;
  border: none;
  border-radius: var(--radius);
}

/* Addresses */
.footer-addresses {
  background: var(--color-footer-bg);
  padding: 2rem 0 3rem;
}

.addresses-heading {
  text-align: center;
  color: var(--color-white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.addresses-grid {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.address-card {
  background: rgba(65, 65, 65, 0.603);
  color: #fff;
  padding: 1.5rem 1.75rem;
  width: 320px;
  max-width: 100%;
  border-radius: var(--radius);
  border-left: 4px solid var(--color-green);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition);
}

.address-card:hover {
  transform: translateY(-4px);
}

.address-card h4 {
  color: var(--color-green);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.address-card p {
  color: #d1d1d1;
  font-size: 0.9rem;
  line-height: 1.7;
  overflow-wrap: break-word;
  word-break: normal;
}

/* Footer Bottom */
.footer-bottom {
  background: var(--color-footer-bg);
  padding-bottom: 1.5rem;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.footer-bottom p {
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--color-footer-link);
}

.footer-bottom a:hover {
  color: var(--color-white);
}

/* =============================================
   FLOATING BUTTONS
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 41, 224, 0.4);
  transition: background var(--transition), transform var(--transition);
  line-height: 1;
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.animate-zoom {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade {
  opacity: 0;
  transition: opacity 0.6s ease 0.3s;
}

.animate-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animated {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-map {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 480px;
    margin-inline: auto;
  }

  .testimonial-carousel {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 100;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 0.75rem 0;
  }

  .site-nav a {
    padding: 0.65rem 1.5rem;
  }

  .site-header {
    position: relative;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .contact-phone,
  .contact-email {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .social-icons {
    justify-content: flex-start;
  }

  .footer-main {
    padding: 2.5rem 0 1.5rem;
  }

  .filter-btn {
    font-size: 0.72rem;
    padding: 0.4em 0.75em;
  }

  .testimonials-social .container-full {
    padding-inline: 1rem;
    /* FIX 8: was .container (wrong), now targets .container-full */
  }

  /* Small mobile: fb embed fills viewport width, centered */
  .fb-embed-wrapper {
    max-width: 100%;
    /* on small phones, fill fully */
  }

  .fb-embed-wrapper iframe {
    height: 500px;
  }

  .testimonial-carousel {
    padding: 1.25rem 1rem;
  }

  .testimonial-text p {
    font-size: 0.95rem;
  }

  .testimonial-author img {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 420px) {
  .pillars-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonial-carousel {
    padding: 1rem 0.875rem;
  }

  .carousel-controls {
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {

  /* Extra safety: all section elements stay within viewport */
  .testimonials-social,
  .container-full,
  /* Testimonial carousel: full width */
  .testimonials-col,
  .testimonial-carousel {
    width: 100%;
    max-width: 100%;
  }

  /* Facebook: full width on small phones, centered */
  .social-col {
    align-items: center;
  }

  .fb-embed-wrapper {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }

  .fb-embed-wrapper iframe {
    width: 100%;
    height: 460px;
  }

  .testimonials-col h2 {
    font-size: clamp(1.4rem, 6vw, 1.75rem);
  }
}

/* =============================================
   MOBILE NAV OVERLAY
   ============================================= */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9000;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-nav-overlay.open {
  display: flex;
}

.mobile-nav-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-nav-logo img {
  height: 72px;
  width: auto;
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text);
  padding: 0.25rem 0.5rem;
  margin-top: 0.25rem;
}

.mobile-nav-links {
  padding: 1.5rem 1.5rem 2rem;
}

.mobile-nav-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav-links li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-nav-links a {
  display: block;
  padding: 1.1rem 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--color-primary);
  text-decoration: none;
}