/* ============================================================
   ROTANA — Premium HVAC Website
   style.css
   ============================================================ */

/* ── 1. CSS VARIABLES ─────────────────────────────────────── */
:root {
  /* Colors */
  --color-primary:      #0D1B2A;
  --color-secondary:    #1E2D3D;
  --color-accent:       #00B4D8;
  --color-accent-dark:  #0096B7;
  --color-accent-light: #E0F7FC;
  --color-bg:           #F7F8FA;
  --color-bg-alt:       #ECEEF2;
  --color-text:         #1A1F2E;
  --color-text-muted:   #6B7280;
  --color-border:       #D1D5DB;
  --color-border-light: #E5E7EB;
  --color-white:        #FFFFFF;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fw-light:   300;
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semi:    600;
  --fw-bold:    700;
  --fw-extra:   800;

  /* Spacing */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  2rem;
  --sp-xl:  3rem;
  --sp-2xl: 5rem;
  --sp-3xl: 7rem;

  /* Layout */
  --container-max: 1200px;
  --container-pad: 1.5rem;
  --header-height: 72px;

  /* Border Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 12px 32px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);
  --shadow-xl:  0 24px 48px rgba(0,0,0,.14);

  /* Transitions */
  --trans-fast: 0.15s ease;
  --trans:      0.25s ease;
  --trans-slow: 0.4s ease;

  /* Hero overlay */
  --hero-overlay: linear-gradient(120deg, rgba(13,27,42,0.92) 0%, rgba(13,27,42,0.70) 60%, rgba(0,180,216,0.15) 100%);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-weight: var(--fw-regular);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── 3. LAYOUT UTILITIES ──────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

section {
  padding-block: var(--sp-2xl);
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--sp-xl);
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-xs);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: var(--sp-sm);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── 4. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-size: 0.875rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.02em;
  border-radius: var(--radius-xs);
  transition: all var(--trans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-white);
  border: 1.5px solid var(--color-accent);
}
.btn-accent:hover,
.btn-accent:focus-visible {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,180,216,0.3);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background-color: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ── 5. HEADER ────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: transparent;
  transition: background-color var(--trans), box-shadow var(--trans);
}

#site-header.scrolled {
  background-color: var(--color-white);
  box-shadow: 0 1px 0 var(--color-border), var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--sp-lg);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
  transition: opacity 0.2s ease;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .logo-img {
    height: 32px;
  }
}

.logo-mark {
  width: 36px;
  height: 36px;
  background-color: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: var(--fw-extra);
  border-radius: var(--radius-xs);
  flex-shrink: 0;
  transition: background-color var(--trans);
}

.logo-text {
  font-size: 1.125rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  color: var(--color-white);
  transition: color var(--trans);
}

#site-header.scrolled .logo-text {
  color: var(--color-primary);
}

.logo-light .logo-text {
  color: var(--color-white);
}

/* Nav */
.nav-contact {
  display: none;
}

.nav-close {
  display: none;
}

#main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  margin-left: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.85);
  padding: 0.25rem 0;
  position: relative;
  transition: color var(--trans);
}

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

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

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

#site-header.scrolled .nav-link {
  color: var(--color-text-muted);
}

#site-header.scrolled .nav-link:hover,
#site-header.scrolled .nav-link:focus-visible {
  color: var(--color-primary);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-shrink: 0;
  margin-left: auto;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background-color: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 2px;
  transition: background-color var(--trans);
}

#site-header.scrolled .lang-switcher {
  background-color: var(--color-bg-alt);
}

.lang-btn {
  font-size: 0.7rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.04em;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-xs);
  color: rgba(255,255,255,0.7);
  transition: all var(--trans);
  cursor: pointer;
}

.lang-btn:hover {
  color: var(--color-white);
  background-color: rgba(255,255,255,0.15);
}

.lang-btn.active {
  background-color: var(--color-accent);
  color: var(--color-white);
}

#site-header.scrolled .lang-btn {
  color: var(--color-text-muted);
}

#site-header.scrolled .lang-btn:hover {
  color: var(--color-primary);
  background-color: var(--color-border);
}

#site-header.scrolled .lang-btn.active {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* CTA — outline over hero, solid when scrolled */
.header-cta {
  display: inline-flex;
  background-color: transparent;
  color: var(--color-white);
}

.header-cta:hover,
.header-cta:focus-visible {
  background-color: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.9);
  box-shadow: none;
  transform: translateY(-1px);
}

#site-header.scrolled .header-cta {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

#site-header.scrolled .header-cta:hover,
#site-header.scrolled .header-cta:focus-visible {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  height: 40px;
  padding: 0;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, width 0.25s ease;
  transform-origin: center;
}

.hamburger span:first-child { width: 24px; }
.hamburger span:nth-child(2) { width: 18px; }
.hamburger span:last-child  { width: 24px; }

#site-header.scrolled .hamburger span {
  background-color: var(--color-primary);
}

.nav-open .hamburger span:first-child {
  transform: translateY(7px) rotate(45deg);
  width: 24px;
}
.nav-open .hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-open .hamburger span:last-child {
  transform: translateY(-7px) rotate(-45deg);
  width: 24px;
}

/* ── 6. HERO ──────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/hero.webp');
  background-size: cover;
  background-repeat: no-repeat;

  /* THIS IS THE KEY FIX */
  background-position: 60% center;

  /* subtle scale to improve crop */
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .hero-bg {
    background-position: 50% center;
  }
}


.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(7, 20, 35, 0.96) 0%,   /* stronger left */
      rgba(7, 20, 35, 0.88) 28%,
      rgba(7, 20, 35, 0.65) 48%,
      rgba(7, 20, 35, 0.32) 65%,
      rgba(7, 20, 35, 0.10) 100%
    ),
    linear-gradient(
      180deg,
      rgba(7, 20, 35, 0.25) 0%,
      rgba(7, 20, 35, 0.32) 100%
    );
  z-index: 1;
}

.hero-inner {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-block: calc(var(--header-height) + var(--sp-xl)) var(--sp-xl);
}

.hero-content {
  padding-left: 0;
  margin-left: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .hero-content {
    max-width: 100%;
  }
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-sm);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background-color: var(--color-accent);
  display: inline-block;
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: var(--fw-extra);
  line-height: 1.1;
  color: var(--color-white);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-md);
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  max-width: 100%;
  margin-bottom: var(--sp-lg);
  font-weight: var(--fw-light);
}

.hero-actions {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  margin-bottom: var(--sp-xl);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-number {
  font-size: 1.5rem;
  font-weight: var(--fw-extra);
  color: var(--color-white);
  line-height: 1;
}

.trust-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trust-divider {
  width: 1px;
  height: 40px;
  background-color: rgba(255,255,255,0.15);
}

.hero-scroll {
  position: absolute;
  bottom: var(--sp-lg);
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  animation: scrollBounce 2s ease-in-out infinite;
  transition: color var(--trans);
  z-index: 1;
}

.hero-scroll:hover {
  color: var(--color-accent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── 7. SERVICES ──────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
}

.service-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid transparent;
  border-radius: var(--radius-sm);
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  cursor: pointer;
  transition: transform var(--trans), box-shadow var(--trans), border-top-color var(--trans);
  position: relative;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--color-accent);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent-light);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  font-size: 1.25rem;
  transition: background-color var(--trans), color var(--trans);
  flex-shrink: 0;
}

.service-card:hover .service-icon {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.service-title {
  font-size: 1.0625rem;
  font-weight: var(--fw-semi);
  color: var(--color-primary);
  line-height: 1.3;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
}

.service-arrow {
  color: var(--color-border);
  font-size: 0.875rem;
  align-self: flex-end;
  transition: color var(--trans), transform var(--trans);
}

.service-card:hover .service-arrow {
  color: var(--color-accent);
  transform: translateX(3px);
}

/* ── 8. ABOUT ─────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: center;
}

.about-content .section-eyebrow { text-align: left; }
.about-content .section-title   { text-align: left; margin-bottom: var(--sp-sm); }

.about-lead {
  font-size: 1.0625rem;
  color: var(--color-text);
  line-height: 1.75;
  font-weight: var(--fw-medium);
  margin-bottom: var(--sp-md);
}

.about-text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-lg);
}

.about-stats {
  display: flex;
  gap: var(--sp-xl);
  margin-bottom: var(--sp-lg);
  padding-block: var(--sp-md);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-size: 1.75rem;
  font-weight: var(--fw-extra);
  color: var(--color-primary);
  line-height: 1;
}

.stat-lbl {
  font-size: 0.75rem;
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 610px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background-color: var(--color-bg-alt);
  min-height: 200px;
}

.about-image-badge {
  position: absolute;
  bottom: -1px;
  left: var(--sp-lg);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--sp-sm) var(--sp-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: var(--fw-semi);
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.about-image-badge i {
  color: var(--color-accent);
  font-size: 1rem;
}

/* ── 9. WHY ───────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}

.why-item {
  padding: var(--sp-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  transition: box-shadow var(--trans), transform var(--trans);
}

.why-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.why-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-primary);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 1.125rem;
  margin-bottom: var(--sp-md);
}

.why-title {
  font-size: 1rem;
  font-weight: var(--fw-semi);
  color: var(--color-primary);
  margin-bottom: var(--sp-xs);
}

.why-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── 10. PROJECTS ─────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-md);
}

.project-card {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.project-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--color-secondary);
}

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

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,0.85) 0%, rgba(13,27,42,0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-lg);
  transition: background var(--trans-slow);
}

.project-cat {
  font-size: 0.7rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.375rem;
}

.project-name {
  font-size: 1.125rem;
  font-weight: var(--fw-semi);
  color: var(--color-white);
  line-height: 1.3;
}

/* Image placeholder */
.project-img-wrap img[src="/images/project-1.jpg"],
.project-img-wrap img[src="/images/project-2.jpg"],
.project-img-wrap img[src="/images/project-3.jpg"],
.project-img-wrap img[src="/images/project-4.jpg"] {
  background-color: var(--color-secondary);
}

/* ── 11. PRODUCTS ─────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}

.product-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow var(--trans), transform var(--trans);
}

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

.product-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-bg-alt);
}

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

.product-card:hover .product-img-wrap img {
  transform: scale(1.04);
}

.product-info {
  padding: var(--sp-md) var(--sp-lg) var(--sp-lg);
}

.product-title {
  font-size: 1.0625rem;
  font-weight: var(--fw-semi);
  color: var(--color-primary);
  margin-bottom: var(--sp-xs);
}

.product-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── 12. PROCESS ──────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 1px;
  background: linear-gradient(to right, var(--color-accent), var(--color-border));
  z-index: 0;
}

.process-step {
  text-align: center;
  padding: var(--sp-lg) var(--sp-md);
  position: relative;
  z-index: 1;
}

.step-num {
  font-size: 0.75rem;
  font-weight: var(--fw-extra);
  letter-spacing: 0.08em;
  color: var(--color-white);
  background-color: var(--color-primary);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-inline: auto;
  margin-bottom: var(--sp-md);
  border: 3px solid var(--color-bg);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--trans), transform var(--trans);
}

.process-step:hover .step-num {
  background-color: var(--color-accent);
  transform: scale(1.08);
}

.step-title {
  font-size: 1rem;
  font-weight: var(--fw-semi);
  color: var(--color-primary);
  margin-bottom: var(--sp-xs);
}

.step-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── 13. TESTIMONIALS ─────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}

.testi-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--sp-xl) var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  transition: box-shadow var(--trans), transform var(--trans);
  position: relative;
}

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

.testi-quote-icon {
  color: var(--color-accent);
  font-size: 1.25rem;
  opacity: 0.6;
}

.testi-text {
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.8;
  font-style: italic;
  flex: 1;
}

.testi-author {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--color-border);
}

.testi-name {
  font-size: 0.9375rem;
  font-weight: var(--fw-semi);
  color: var(--color-primary);
}

.testi-role {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ── 14. CONTACT ──────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: stretch;
}

/* Form */
.contact-form-wrap {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--sp-xl);
  height: 100%;
  display: flex;
  flex-direction: column;
}

#contact-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--sp-md);
}

.form-group:last-of-type {
  flex-grow: 1;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: var(--fw-semi);
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  font-family: var(--font-main);
  font-size: 0.9375rem;
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: border-color var(--trans), box-shadow var(--trans);
  outline: none;
  resize: vertical;
}

.form-group textarea {
  min-height: 140px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0,180,216,0.12);
}

.form-group input.input-error,
.form-group textarea.input-error {
  border-color: #dc2626;
}

.error-msg {
  font-size: 0.8rem;
  color: #dc2626;
  min-height: 1em;
}

#contact-form .btn-full {
  margin-top: auto;
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-md);
  padding: var(--sp-2xl) var(--sp-xl);
  border: 1px solid #dcfce7;
  border-radius: var(--radius-md);
  background: #f0fdf4;
}

.form-success:not([hidden]) {
  display: flex;
}

.form-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-success-icon i {
  font-size: 1.5rem;
  color: #ffffff;
}

.form-success-title {
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: #15803d;
  margin: 0;
}

.form-success-msg {
  font-size: 0.9375rem;
  color: #166534;
  line-height: 1.65;
  max-width: 360px;
  margin: 0;
}

.form-success.active {
  display: flex;
}

.form-error {
  display: none;
  margin-top: var(--sp-md);
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.18);
}

.form-error p {
  margin: 0;
  font-size: 0.9rem;
  color: #b91c1c;
}

.form-error.active {
  display: block;
}

/* Contact Info */
.contact-info-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-info-block {
  margin-bottom: var(--sp-lg);
}

.contact-info-title {
  font-size: 1.125rem;
  font-weight: var(--fw-semi);
  color: var(--color-primary);
  margin-bottom: var(--sp-lg);
}

.contact-detail {
  display: flex;
  gap: var(--sp-sm);
  align-items: flex-start;
  margin-bottom: var(--sp-md);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.contact-lbl {
  display: block;
  font-size: 0.75rem;
  font-weight: var(--fw-semi);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 3px;
}

.contact-val {
  font-size: 0.9375rem;
  color: var(--color-text);
  font-weight: var(--fw-medium);
  transition: color var(--trans);
}

a.contact-val:hover {
  color: var(--color-accent);
}

/* Map */
.map-embed {
  margin-top: auto;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 320px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* ── 15. FOOTER ───────────────────────────────────────────── */
#site-footer {
  background-color: var(--color-primary);
  color: rgba(255,255,255,0.7);
  padding-top: var(--sp-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-2xl);
  padding-bottom: var(--sp-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo {
  margin-bottom: var(--sp-sm);
}

.footer-brand .logo-mark {
  background-color: var(--color-accent);
}

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--sp-md);
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: var(--sp-xs);
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  transition: background-color var(--trans), color var(--trans);
}

.social-link:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--sp-md);
}

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

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

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

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.footer-contact-list i {
  color: var(--color-accent);
  font-size: 0.8rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp-md);
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

.footer-legal {
  display: flex;
  gap: 10px;
}

.footer-legal a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--trans);
}

.footer-legal a:hover {
  color: rgba(255,255,255,0.7);
}

/* ── 16. SCROLL REVEAL ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for grids */
.services-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

.why-grid .reveal:nth-child(2) { transition-delay: 0.07s; }
.why-grid .reveal:nth-child(3) { transition-delay: 0.14s; }
.why-grid .reveal:nth-child(4) { transition-delay: 0.07s; }
.why-grid .reveal:nth-child(5) { transition-delay: 0.14s; }
.why-grid .reveal:nth-child(6) { transition-delay: 0.21s; }

.projects-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.projects-grid .reveal:nth-child(3) { transition-delay: 0.1s; }
.projects-grid .reveal:nth-child(4) { transition-delay: 0.2s; }

.testimonials-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.testimonials-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

.products-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.products-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

.process-steps .reveal:nth-child(2) { transition-delay: 0.1s; }
.process-steps .reveal:nth-child(3) { transition-delay: 0.2s; }
.process-steps .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ── 17. RESPONSIVE ───────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --sp-2xl: 4rem;
    --sp-3xl: 5rem;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  .about-image {
    order: 1;
  }

  .about-image img {
    height: 460px;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xl);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .process-steps::before {
    display: none;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-md);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --sp-2xl: 3.5rem;
    --container-pad: 1.25rem;
  }

  /* Header */
  .hamburger {
    display: flex;
  }

  /* Glass overlay nav */
  #main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(10, 15, 25, 0.72);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    backdrop-filter: blur(20px) saturate(1.4);
    padding: calc(var(--header-height) + 2.5rem) var(--sp-lg) var(--sp-xl);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, backdrop-filter 0.35s ease;
    z-index: 999;
    overflow: hidden;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .nav-open #main-nav {
    opacity: 1;
    pointer-events: auto;
  }

  /* Close button — minimal, top-right */
  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.5);
    font-size: 1.25rem;
    transition: color 0.2s ease;
    cursor: pointer;
  }

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

  .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.875rem 0;
    color: rgba(255,255,255,0.55);
    font-size: 1.75rem;
    font-weight: var(--fw-light);
    letter-spacing: 0.06em;
    text-align: left;
    border-bottom: none;
    width: auto;
    transition: color 0.2s ease, letter-spacing 0.2s ease;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    color: var(--color-white);
    letter-spacing: 0.09em;
  }

  /* Staggered entrance */
  @keyframes navLinkIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav-open .nav-list li {
    opacity: 0;
    animation: navLinkIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .nav-open .nav-list li:nth-child(1) { animation-delay: 0.08s; }
  .nav-open .nav-list li:nth-child(2) { animation-delay: 0.14s; }
  .nav-open .nav-list li:nth-child(3) { animation-delay: 0.20s; }
  .nav-open .nav-list li:nth-child(4) { animation-delay: 0.26s; }
  .nav-open .nav-list li:nth-child(5) { animation-delay: 0.32s; }

  /* Hide contact block */
  .nav-contact {
    display: none;
  }

  /* No separate overlay needed */
  body::before {
    display: none;
  }

  #site-header.scrolled .nav-link {
    color: rgba(255,255,255,0.8);
  }
  #site-header.scrolled .nav-link:hover {
    color: var(--color-accent);
  }

  .header-actions {
    gap: 0.5rem;
  }

  .header-cta {
    display: none !important;
  }

  /* Hero */
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-trust {
    gap: var(--sp-md);
  }

  /* Grids */
  .services-grid    { grid-template-columns: 1fr; }
  .why-grid         { grid-template-columns: 1fr; }
  .projects-grid    { grid-template-columns: 1fr; }
  .products-grid    { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .process-steps    { grid-template-columns: 1fr; }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* About stats */
  .about-stats {
    gap: var(--sp-md);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .trust-divider {
    display: none;
  }
}
/* ── PARTNERS ─────────────────────────────────────────────── */
#partners {
  background-color: var(--color-white);
  padding-block: var(--sp-3xl);
}

#partners .section-header {
  margin-bottom: var(--sp-2xl);
}

/* Overflow clip + fade edges */
.partners-marquee {
  overflow: hidden;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 7%,
    black 93%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 7%,
    black 93%,
    transparent 100%
  );
}

/* Scrolling track — contains 2 identical sets */
.partners-track {
  display: flex;
  align-items: center;
  width: max-content;
  padding-block: var(--sp-xl);
  animation: partners-ltr 55s linear infinite;
}

@keyframes partners-ltr {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}


/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .partners-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
}

.partner-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 2.75rem;
}

.partner-logo {
  height: 36px;
  width: auto;
  max-width: 120px;
  display: block;
  object-fit: contain;
}

.partner-divider {
  width: 1px;
  height: 24px;
  background-color: var(--color-border-light);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .partners-track {
    padding-block: var(--sp-lg);
    animation-duration: 40s;
  }

  .partner-item {
    padding: 0 1.75rem;
  }

  .partner-logo {
    height: 26px;
    max-width: 90px;
  }

  .partner-divider {
    height: 18px;
  }
}

/* ── MAP ──────────────────────────────────────────────────── */
.map-embed {
  width: 100%;
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── RBM / MATERIALS SECTION ─────────────────────────────── */
#rbm .section-header {
  max-width: 860px;
  margin: 0 auto var(--sp-2xl);
  text-align: center;
}

.rbm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-xl);
  align-items: stretch;
}

.rbm-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--sp-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.rbm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 180, 216, 0.24);
}

.rbm-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: var(--sp-md);
}

.rbm-card-title {
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin: 0 0 0.75rem;
}

.rbm-card-desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 991px) {
  .rbm-grid {
    grid-template-columns: 1fr;
  }

  .rbm-card {
    padding: var(--sp-lg);
  }
}

.header.scrolled .logo img {
  border-radius: 10px;
}

.header:not(.scrolled) .logo img {
  border-radius: 0;
}