/* ============================================
   FACILITA — Premium Facilities Management
   Design: Luxury corporate (Emaar / CBRE / JLL)
   ============================================ */

:root {
  /* Palette */
  --color-navy: #0A1628;
  --color-gold: #C9963F;
  --color-gold-light: #d4a84d;
  --color-white: #FFFFFF;
  --color-warm-grey: #F5F3EF;
  --color-text: #FFFFFF;
  --color-text-muted: rgba(255, 255, 255, 0.85);
  --color-text-dark: #1a1a1a;
  --color-overlay: rgba(10, 22, 40, 0.75);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing & layout */
  --container-max: 1200px;
  --section-padding: clamp(3rem, 6vw, 5rem);
  --nav-height: 90px;
  --section-padding-mobile: 2.5rem;
  --transition: 0.3s ease;
  --radius: 4px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dark);
  background: var(--color-white);
  overflow-x: hidden;
  min-width: 280px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: var(--color-navy);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}
.nav-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  display: block;
  height: 84px;
  width: auto;
  max-width: 390px;
  object-fit: contain;
  object-position: left center;
}
.logo-main {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.02em;
}
.logo-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin-top: -2px;
}
.nav-menu {
  display: flex;
  gap: 2rem;
}
.nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: 0.03em;
  position: relative;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition);
}
.nav-menu a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .logo-img { height: 58px; max-width: 240px; } /* ~20% smaller on mobile */
  .logo { min-width: 0; flex-shrink: 1; } /* allow logo to shrink so toggle always fits */
  .nav-toggle {
    display: flex;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-navy);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-menu a {
    display: flex;
    align-items: center;
    padding: 0.85rem 0;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--nav-height) 1.5rem 4rem;
  max-width: 800px;
  width: 100%;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  margin: 0 0 2rem;
  font-weight: 400;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn-gold {
  background: var(--color-gold);
  color: var(--color-navy);
}
.btn-gold:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 150, 63, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-navy);
  transform: translateY(-2px);
}
.btn-block { width: 100%; }

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0.5rem;
  font-family: inherit;
}
.scroll-indicator:hover { color: rgba(255,255,255,0.95); }
.scroll-indicator i { font-size: 0.9rem; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ========== STAT BAR ========== */
.stat-bar {
  background: var(--color-navy);
  padding: clamp(2rem, 4vw, 3rem) 1rem;
}
.stat-bar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item {
  color: var(--color-white);
}
.stat-number {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1.1;
}
.stat-suffix { color: var(--color-gold); font-size: inherit; }
.stat-label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.35rem;
  color: var(--color-text-muted);
}
@media (max-width: 768px) {
  .stat-bar-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 320px) {
  .stat-bar-inner { grid-template-columns: 1fr; }
}

/* ========== SECTIONS ========== */
.section {
  padding: var(--section-padding) 0;
}
.section-alt {
  background: var(--color-warm-grey);
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--color-navy);
  margin: 0 0 0.5rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-gold);
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.about-image img { width: 100%; object-fit: cover; min-height: 360px; }
.about-content .section-title { margin-bottom: 1rem; }
.about-intro {
  font-size: 1.05rem;
  color: var(--color-text-dark);
  margin: 0 0 1.5rem;
  line-height: 1.7;
}
.pull-quote {
  margin: 1.25rem 0;
  padding-left: 1.25rem;
  border-left: 4px solid var(--color-gold);
  font-style: italic;
  color: #333;
  font-size: 0.95rem;
}
.pull-quote strong { color: var(--color-navy); font-style: normal; }
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image { order: -1; }
}

/* ========== CORE VALUES (2x2 card grid, current theme) ========== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.value-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: left;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.value-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.value-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0 0 0.5rem;
}
.value-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* ========== SERVICES (color theme same as Go Green) ========== */
.services {
  background: linear-gradient(135deg, #0d2d4a 0%, #0A1628 50%);
  color: var(--color-white);
}
.services .section-title { color: var(--color-white); }
.services .section-title::after { background: var(--color-gold); }
.services .tabs { margin-top: 2rem; }
.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(255,255,255,0.2);
  padding-bottom: 0;
}
.services .tab-buttons { border-bottom-color: rgba(255,255,255,0.2); }
.tab-btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.services .tab-btn { color: rgba(255,255,255,0.8); }
.tab-btn:hover { color: var(--color-white); }
.services .tab-btn:hover { color: var(--color-white); }
.tab-btn.active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}
.tab-panel {
  display: none;
  padding: 1.5rem 0;
}
.tab-panel.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}
.service-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-dark);
}
.services .service-list li { color: var(--color-text-muted); }
.service-list li i {
  color: var(--color-gold);
  flex-shrink: 0;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-detail-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid #eee;
}
.services .service-detail-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
}
.service-detail-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  text-align: left;
  transition: var(--transition);
}
.services .service-detail-trigger { color: var(--color-white); }
.service-detail-trigger:hover { background: var(--color-warm-grey); }
.services .service-detail-trigger:hover { background: rgba(255,255,255,0.12); }
.service-detail-trigger span { display: flex; align-items: center; gap: 0.5rem; }
.service-detail-trigger span i { color: var(--color-gold); }
.service-detail-trigger .fa-plus { transition: transform var(--transition); color: var(--color-gold); }
.service-detail-card.open .service-detail-trigger .fa-plus { transform: rotate(45deg); }
.service-detail-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}
.service-detail-content ul {
  padding: 0 1.5rem 1.5rem;
  margin: 0;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}
.services .service-detail-content ul { border-top-color: rgba(255,255,255,0.15); }
.service-detail-content li {
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: #555;
  border-bottom: 1px solid #f0f0f0;
}
.services .service-detail-content li {
  color: var(--color-text-muted);
  border-bottom-color: rgba(255,255,255,0.08);
}
.service-detail-content li:last-child { border-bottom: none; }
@media (max-width: 768px) {
  .tab-buttons { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0; }
  .service-cards { grid-template-columns: 1fr; }
}

/* ========== SECTORS ========== */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.sector-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  width: 100%;
  min-width: 0;
}
.sector-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition);
}
.sector-card:hover .sector-bg { transform: scale(1.05); }
.sector-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.95) 0%, rgba(10, 22, 40, 0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--color-white);
  transition: background var(--transition);
}
.sector-card:hover .sector-overlay {
  background: linear-gradient(to top, rgba(10, 22, 40, 0.98), rgba(10, 22, 40, 0.7));
}
.sector-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-gold);
}
.sector-overlay p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  transform: translateY(8px);
  opacity: 0.9;
  transition: transform var(--transition);
}
.sector-card:hover .sector-overlay p { transform: translateY(0); }
@media (max-width: 1200px) {
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sectors-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  .sector-card {
    aspect-ratio: 16/10;
    min-height: 180px;
    width: 100%;
  }
  .sector-overlay {
    padding: 1rem;
  }
  .sector-overlay h3 { font-size: 1.15rem; }
  .sector-overlay p { font-size: 0.8rem; line-height: 1.4; }
}
@media (max-width: 480px) {
  .sectors-grid { gap: 0.75rem; margin-top: 1.25rem; }
  .sector-card { min-height: 160px; aspect-ratio: 4/3; }
  .sector-overlay { padding: 0.75rem; }
  .sector-overlay h3 { font-size: 1.05rem; }
  .sector-overlay p { font-size: 0.75rem; }
}

/* ========== SUSTAINABILITY ========== */
.sustainability {
  padding: 0;
  background: linear-gradient(135deg, #0d2d4a 0%, #0A1628 50%);
  color: var(--color-white);
}
.sustainability-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}
.sustainability-left {
  padding: var(--section-padding) clamp(2rem, 5vw, 4rem);
}
.sustainability-left .section-title { color: var(--color-white); }
.sustainability-left .section-title::after { background: var(--color-gold); }
.sustainability-intro {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin: 1rem 0 2rem;
  line-height: 1.7;
}
.sustainability-features { display: flex; flex-direction: column; gap: 1.5rem; }
.sustainability-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.sustainability-feature i {
  color: var(--color-gold);
  font-size: 1.5rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.sustainability-feature h4 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: var(--color-white);
}
.sustainability-feature p { margin: 0; font-size: 0.95rem; color: var(--color-text-muted); line-height: 1.6; }

.sustainability-right {
  background: rgba(0,0,0,0.15);
  padding: var(--section-padding) clamp(2rem, 5vw, 4rem);
  border-left: 1px solid rgba(255,255,255,0.08);
}
.audit-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-gold);
  margin: 0 0 1.5rem;
}
.audit-list { display: flex; flex-direction: column; gap: 1.25rem; }
.audit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.audit-item i {
  color: var(--color-gold);
  font-size: 1.25rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.audit-item div { display: flex; flex-direction: column; gap: 0.2rem; }
.audit-item strong { color: var(--color-white); }
.audit-item span { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.5; }
@media (max-width: 768px) {
  .sustainability-split { grid-template-columns: 1fr; }
  .sustainability-right { border-left: none; border-top: 1px solid rgba(255,255,255,0.08); }
}

/* ========== CLIENTS ========== */
.clients-wrapper {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3rem;
  align-items: start;
}
.client-category h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin: 0 0 0.75rem;
  font-weight: 600;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(201, 150, 63, 0.25);
}
.client-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.65rem;
}
.client-card {
  background: var(--color-white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-navy);
  box-shadow: var(--shadow);
  border: 1px solid #eee;
  transition: var(--transition);
  text-align: left;
  line-height: 1.35;
}
.client-card:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
@media (max-width: 900px) {
  .clients-wrapper { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .client-cards {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.6rem;
  }
  .client-card { font-size: 0.85rem; padding: 0.65rem 0.9rem; }
}
@media (max-width: 400px) {
  .client-cards { grid-template-columns: 1fr; }
}

/* ========== CLIENT GALLERY SLIDESHOW ========== */
#gallery {
  scroll-margin-top: var(--nav-height);
}
.gallery-wrap {
  margin-top: 0;
  padding-top: 0;
}
.gallery-heading {
  /* Uses .section-title: same font, size, and gold underline as "Trusted By Leading Names" */
}
.gallery-subtitle {
  font-size: 0.95rem;
  color: #666;
  margin: 0 0 1.5rem;
}
.gallery-slideshow {
  position: relative;
  max-width: 900px;
  margin: 0 auto 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
  background: var(--color-navy);
}
.gallery-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.gallery-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.gallery-slide {
  height: 100%;
  position: relative;
  flex-shrink: 0;
  /* flex-basis set in JS so each slide = one viewport width */
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.gallery-btn:hover {
  background: var(--color-gold);
  color: var(--color-white);
  transform: translateY(-50%) scale(1.05);
}
.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }
.gallery-dots {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 2;
}
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
}
.gallery-dot:hover { background: rgba(255, 255, 255, 0.8); }
.gallery-dot.active {
  background: var(--color-gold);
  width: 24px;
  border-radius: 4px;
}
.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0.5rem 0;
  max-width: 900px;
  margin: 0 auto;
  overflow-x: auto;
  scroll-behavior: smooth;
}
.gallery-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.75;
  transition: var(--transition);
}
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active {
  border-color: var(--color-gold);
  opacity: 1;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .gallery-stage { aspect-ratio: 4/3; }
  .gallery-btn { width: 40px; height: 40px; left: 0.5rem; right: 0.5rem; }
  .gallery-prev { left: 0.5rem; }
  .gallery-next { right: 0.5rem; }
  .gallery-thumb { width: 56px; height: 40px; }
}

/* ========== CONTACT ========== */
.contact {
  background: var(--color-navy);
  color: var(--color-white);
}
.contact .section-title { color: var(--color-white); }
.contact .section-title::after { background: var(--color-gold); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-details {
  margin: 1rem 0 2rem;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}
.contact-details li i {
  color: var(--color-gold);
  width: 20px;
  text-align: center;
}
.map-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 280px;
  background: #0d2137;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  margin-top: 0.5rem;
}
.map-card {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background: var(--color-white);
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius);
  max-width: 160px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.map-card h4 {
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-navy);
}
.map-card p {
  margin: 0 0 0.3rem;
  font-size: 0.68rem;
  color: #555;
  line-height: 1.35;
}
.map-directions {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: opacity var(--transition);
}
.map-directions:hover { opacity: 0.85; }
.map-embed {
  position: absolute;
  inset: 0;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 768px) {
  .map-wrap { height: 240px; }
  .map-card { max-width: 140px; padding: 0.4rem 0.5rem; }
  .map-card h4 { font-size: 0.75rem; }
  .map-card p { font-size: 0.62rem; }
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  color: var(--color-white);
  transition: var(--transition);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.5); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(255,255,255,0.08);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ========== FOOTER ========== */
.footer {
  background: #060f1a;
  color: var(--color-text-muted);
  padding: clamp(2rem, 4vw, 3rem) 1rem;
}
.footer-inner {
  text-align: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-logo-img {
  height: 54px;
  max-width: 240px;
  margin-bottom: 0.5rem;
  filter: brightness(1.05);
}
.footer-tagline {
  font-size: 0.9rem;
  margin: 0.5rem 0 1rem;
  color: rgba(255,255,255,0.6);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.footer-nav a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--color-gold); }
.footer-copy { font-size: 0.85rem; margin: 0 0 0.5rem; }
.footer-note { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.footer-note .heart { color: #c9963f; }

/* ========== SCROLL TO TOP ========== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(201, 150, 63, 0.4);
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--color-gold-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(201, 150, 63, 0.5);
}

/* AOS duration for consistency */
[data-aos] { pointer-events: auto; }

/* ========== MOBILE & TABLET (portrait + landscape) ========== */
@media (max-width: 1024px) {
  .nav-container { padding: 0 1.25rem; }
  .section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
  .about-grid { gap: 2rem; }
  .contact-grid { gap: 2rem; }
}
@media (max-width: 768px) {
  :root { --nav-height: 72px; }
  .hero-content { padding: var(--nav-height) 1rem 3rem; }
  .hero-title { font-size: clamp(1.85rem, 8vw, 2.75rem); }
  .hero-sub { font-size: clamp(0.9rem, 3.5vw, 1.05rem); margin-bottom: 1.5rem; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .hero-cta .btn { min-height: 48px; }
  .scroll-indicator { bottom: 1rem; font-size: 0.7rem; }
  .section-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-image img { min-height: 260px; }
  .pull-quote { padding-left: 1rem; font-size: 0.9rem; }
  .tab-buttons { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .tab-buttons::-webkit-scrollbar { display: none; }
  .tab-btn { flex-shrink: 0; min-height: 44px; padding: 0.65rem 1rem; font-size: 0.85rem; }
  .sustainability-left,
  .sustainability-right { padding: clamp(1.5rem, 4vw, 2rem) 1.25rem; }
  .sustainability-intro { font-size: 0.95rem; margin: 1rem 0 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form input,
  .contact-form textarea { min-height: 48px; padding: 0.85rem 1rem; }
  .contact-form textarea { min-height: 120px; }
  .contact-form button[type="submit"] { min-height: 48px; }
  .scroll-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    right: max(1.25rem, env(safe-area-inset-right));
  }
}
@media (max-width: 480px) {
  :root { --nav-height: 64px; }
  .logo-img { height: 46px; max-width: 200px; } /* ~20% smaller than 768px mobile logo */
  .hero-content { padding: var(--nav-height) 0.75rem 2.5rem; }
  .hero-title { font-size: 1.65rem; }
  .stat-bar-inner { padding: 0 1rem; gap: 1.25rem; }
  .stat-number { font-size: 1.75rem; }
  .stat-label { font-size: 0.7rem; }
  .section { padding: 2rem 0; }
  .section-title { font-size: 1.4rem; }
  .service-list { grid-template-columns: 1fr; }
  .service-detail-trigger { padding: 1rem 1.25rem; min-height: 48px; }
  .client-cards { grid-template-columns: 1fr; }
  .client-card { min-width: 0; }
  .gallery-wrap { margin-top: 0; padding-top: 0; }
  .gallery-subtitle { font-size: 0.85rem; margin-bottom: 1rem; }
  .gallery-dots { bottom: 0.75rem; }
  .gallery-dot { width: 6px; height: 6px; }
  .gallery-dot.active { width: 18px; }
  .map-wrap { height: 220px; }
  .footer-nav { gap: 1rem; }
}
/* Landscape on small screens: compact hero, shorter header, menu must not fill screen */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --nav-height: 52px; }
  /* Force mobile hamburger layout so menu works and doesn’t take full width */
  .nav-toggle {
    display: flex !important;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
  .nav-menu {
    position: fixed !important;
    top: var(--nav-height) !important;
    left: 0 !important;
    right: 0 !important;
    flex-direction: column !important;
    padding: 1rem !important;
    gap: 0 !important;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    /* Cap height so body stays visible and page can scroll when menu is closed */
    max-height: min(55vh, 220px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    background: var(--color-navy);
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto !important;
  }
  .nav-menu a {
    display: flex !important;
    align-items: center;
    padding: 0.6rem 0;
    min-height: 40px;
  }
  .hero { min-height: auto; padding: var(--nav-height) 0 2rem; align-items: center; }
  .hero-content { padding: 1rem 1.5rem 1rem; }
  .hero-title { font-size: 1.5rem; margin-bottom: 0.35rem; }
  .hero-sub { font-size: 0.85rem; margin-bottom: 0.75rem; }
  .hero-cta { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .scroll-indicator { display: none; }
}
/* Tablet landscape: ensure comfortable reading */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-menu { gap: 1.5rem; }
  .about-grid { gap: 2.5rem; }
  .sustainability-split { grid-template-columns: 1fr 1fr; }
}
/* Safe area for notched devices (e.g. iPhone X+) */
@supports (padding: max(0px)) {
  .navbar .nav-container { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
  .hero-content { padding-left: max(1.5rem, env(safe-area-inset-left)); padding-right: max(1.5rem, env(safe-area-inset-right)); }
  .container { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
  .footer-inner { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
}
