/* Design tokens */
:root {
  /* Light theme base */
  --bg: #f7f8fa; /* body background */
  --bg-elev: #ffffff; /* cards */
  --surface: #ffffff;
  --text: #121417;
  --muted: #5b6470;

  /* Brand palette from logo-white colors */
  --brand: #ff3b30; /* red */
  --brand-600: #d32a20;
  --accent-green: #1ec37f;
  --accent-cyan: #14b3d9;
  --accent-yellow: #f3c34e;
  --ring: rgba(20, 179, 217, 0.28);

  --radius: 12px;
  --radius-sm: 10px;
  --shadow: 0 10px 25px rgba(2, 6, 23, 0.08);
  --shadow-soft: 0 8px 18px rgba(2, 6, 23, 0.06);

  --container: 1320px;
}

/* Reset & base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, Noto Sans, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Prevent horizontal scroll caused by off-canvas, large shadows, nowrap text */
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; }

img { max-width: 100%; display: block; border-radius: var(--radius-sm); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}
/* Wider container variant for product detail */
.container.container--wide { max-width: 1440px; padding: 0 12px; }
/* Make solutions section wider and reduce side paddings on large screens */
.products .container { max-width: 1440px; }
@media (min-width: 1200px) { .container { padding: 0 8px; } }

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  background: var(--brand-600);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #02214c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.logo-img { 
  height: 96px; 
  width: auto; 
  display: block; 
  background: transparent;
  mix-blend-mode: screen;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.site-nav .menu { display: flex; gap: 28px; list-style: none; padding: 0; margin: 0; align-items: center; }
.site-nav a { color: #f3f4f6; text-decoration: none; font-weight: 400; letter-spacing: 0.02em; display: flex; align-items: center; gap: 6px; font-size: 17px; }
.site-nav a:hover { color: #fff; }
.has-dropdown > a::after { 
  content: "▼"; 
  font-size: 8px; 
  color: #f3f4f6; 
  transition: transform 0.2s ease;
}
.has-dropdown:hover > a::after,
.has-dropdown:focus-within > a::after,
.has-dropdown.open > a::after {
  transform: rotate(180deg);
}
.has-dropdown { position: relative; }
.has-dropdown .dropdown { display: none; position: absolute; top: 100%; left: 0; background: #0f3a7a; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 8px; box-shadow: var(--shadow-soft); min-width: 220px; z-index: 60; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .has-dropdown.open .dropdown { display: block; }
.dropdown li { list-style: none; }
.dropdown a { display: block; padding: 10px 12px; color: #f3f4f6; opacity: 0.95; }
.dropdown a:hover { background: rgba(255,255,255,0.08); opacity: 1; border-radius: 8px; }

/* Mega dropdown */
.has-dropdown.mega { position: static; }
.has-dropdown.mega .mega-dropdown {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100px;
  background: radial-gradient(1200px 400px at 10% -50%, rgba(255,59,48,0.18), transparent 60%),
              radial-gradient(1200px 400px at 90% -50%, rgba(20,179,217,0.18), transparent 60%),
              #0f3a7a;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 30px 60px rgba(2,6,23,0.45);
  z-index: 55;
}
.has-dropdown.mega:hover .mega-dropdown,
.has-dropdown.mega:focus-within .mega-dropdown,
.has-dropdown.mega.open .mega-dropdown { display: grid; }
.mega-dropdown {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px 20px;
}
/* Removed ::after pseudo-element to prevent overly sensitive hover area */
.mega-col { text-decoration: none; color: inherit; }
.mega-col-inner {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.mega-col-inner:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: rgba(255,255,255,0.05); }
.mega-title { margin: 0; color: #fff; letter-spacing: -0.01em; }
.mega-cta { color: #fff; opacity: 0.8; font-weight: 600; }

/* Mini carousel */
.mini-carousel { overflow: hidden; border-radius: 10px; }
.mini-carousel .mini-track { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; }
.mini-carousel img { width: 100%; height: 220px; object-fit: cover; object-position: center center; display: block; }

/* Mini carousel variant for product tiles: fit tile-media height */
.mini-carousel--tile .mini-track li { min-width: 100%; }
/* Make carousel fill the square media strictly */
.mini-carousel--tile { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.mini-carousel--tile .mini-track { display: flex; height: 100%; }
.mini-carousel--tile .mini-track li { min-width: 100%; height: 100%; }
.mini-carousel--tile img { height: 100%; object-fit: cover; object-position: center center; border-radius: 0; }
/* Ensure track uses flex in tiles for consistent translateX behavior */
.mini-carousel--tile .mini-track { display: flex; }
.mini-carousel--tile .mini-track li { min-width: 100%; }

@media (max-width: 960px) {
  .has-dropdown.mega .mega-dropdown { top: 100px; }
  .mega-dropdown { grid-template-columns: 1fr; }
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-social { display: flex; gap: 8px; }
.header-social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; color: #fff; text-decoration: none; }
.header-social a:hover { background: rgba(255,255,255,0.08); }
.header-social svg { width: 22px; height: 22px; display: block; }

/* Mobile nav toggle & drawer */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
}
.nav-toggle:hover { background: rgba(255,255,255,0.12); }
.nav-toggle .icon-close { display: none; }

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
  z-index: 40; /* below sticky header (50) and drawer */
}
body.nav-open .mobile-nav-overlay { opacity: 1; visibility: visible; pointer-events: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-600) 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), 0 8px 20px rgba(255, 138, 61, 0.24);
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 8px 14px; font-size: 14px; }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-large { padding: 12px 22px; font-size: 16px; border-radius: 12px; }
.btn-outline-light {
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28), 0 8px 20px rgba(2,6,23,0.24);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.14); }
/* Blue button variant (for call CTA) */
.btn-blue {
  background: linear-gradient(180deg, #1f8ef1, #0f6fd1);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), 0 8px 20px rgba(31, 142, 241, 0.35);
}
.btn-blue:hover { filter: brightness(1.06); }
/* Red button variant */
.btn-red {
  background: linear-gradient(180deg, var(--brand), var(--brand-600));
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), 0 8px 20px rgba(255, 59, 48, 0.35);
}
.btn-red:hover { filter: brightness(1.06); }
/* Light button for hero */
.btn-light {
  background: #ffffff;
  color: #0b1220;
  box-shadow: 0 10px 24px rgba(0,0,0,0.30), inset 0 0 0 1px rgba(2,6,23,0.06);
}
.btn-light:hover { filter: none; background: #f8f9fb; }

/* Hero */
.hero { position: relative; padding: 56px 0 28px; overflow: hidden; min-height: 70vh; scroll-margin-top: 100px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(115%) brightness(0.9); }
.hero-overlay { display: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: end; min-height: inherit; }
.hero-content { position: absolute; right: 24px; bottom: 128px; text-align: right; }
.hero-content--left { left: 24px; right: auto; text-align: left; }
.hero-content h1.slogan { padding-left: 0; text-shadow: 0 2px 8px rgba(0,0,0,0.45); }
.hero-content h1 { font-family: Sora, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial; font-size: 72px; line-height: 1.02; margin: 0; letter-spacing: -0.015em; text-transform: capitalize; color: #ffffff; text-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.35), 0 0 14px rgba(255,255,255,0.30), 0 0 36px rgba(255,255,255,0.22); animation: fadeUp 700ms ease-out both; padding-left: 20px; }
.hero-content--left h1 { padding-left: 0; }
@media (min-width: 960px) { .hero-content h1 { padding-left: 32px; } }
@media (min-width: 960px) { .hero .lead { padding-left: 32px; margin-top: 24px; } }
.hero-content--left .lead { padding-left: 0; }
.hero-content--left .hero-cta { justify-content: flex-start; }
/* Emphasis for highlighted words in hero slogan */
.slogan-em { font-style: italic; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,0.55); }
/* Smaller, lighter slogan style used across sections */
.slogan {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 300;
  letter-spacing: 0.005em;
  text-transform: none;
  white-space: nowrap;
}
/* Ensure overrides against larger heading defaults */
.hero-content h1.slogan { font-size: 26px; font-weight: 300; text-transform: none; white-space: nowrap; }
.intro-text h2.slogan { font-size: 32px; font-weight: 700; text-transform: none; white-space: nowrap; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.lead { color: var(--muted); max-width: 56ch; margin-bottom: 1.5rem; }

.projects-cta {
  margin-top: 1rem;
}

/* Reduce space before portfolio PDF section */
.section + .section {
  padding-top: 1.5rem;
}

/* Lead text responsive wrapping - desktop stays single line, mobile wraps */
.lead {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .lead {
    white-space: normal;
  }
}

/* Hero CTA styling for contact page */
.hero-cta {
  margin-top: 1.5rem;
  text-align: center;
  display: flex;
  justify-content: center;
}
/* Improve hero lead readability on video */
.hero .lead {
  color: #f3f4f6;
  max-width: 62ch;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.40), 0 0 1px rgba(0,0,0,0.30);
  margin-top: 18px;
  padding-left: 20px;
}
.hero + .intro { margin-top: 32px; }

/* Fixed CTA group on hero */
.hero-cta-fixed {
  position: absolute;
  left: 50%;
  bottom: 64px; /* slightly lower */
  transform: translateX(-50%);
  z-index: 2;
}
@media (max-width: 640px) {
  .hero-cta-fixed { bottom: 36px; }
}

/* On desktop, make hero fill the viewport below the 100px sticky header */
@media (min-width: 1024px) {
  .hero { min-height: calc(100vh - 100px); padding: 0; }
  /* Nudge video framing slightly downward */
  .hero-video { object-position: 50% 40%; }
}
.hero-cta { margin-top: 22px; display: flex; gap: 12px; }
.card { background: var(--bg-elev); border: 1px solid rgba(2,6,23,0.08); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 18px; }

/* Hero contact form on the right */
.hero-form-wrap { display: grid; align-items: start; }
.hero .contact-form {
  background: #ffffff;
  border: 1px solid rgba(2,6,23,0.12);
  box-shadow: 0 24px 60px rgba(2,6,23,0.35);
}
.hero .contact-form .full textarea { min-height: 80px; }
.hero .contact-form .btn { width: 100%; margin-top: 10px; }

/* Hero service chips */
.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.service-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.34);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 10px 28px rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
}
.service-chip:hover { background: rgba(255,255,255,0.22); transform: translateY(-1px); }
.service-chip:active { transform: translateY(0); }
.service-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(255,59,48,0.28); }
.service-chip.alt .service-dot { background: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(20,179,217,0.28); }
.service-chip.green .service-dot { background: var(--accent-green); box-shadow: 0 0 0 3px rgba(30,195,127,0.28); }
.service-chip.yellow .service-dot { background: var(--accent-yellow); box-shadow: 0 0 0 3px rgba(243,195,78,0.28); }

/* Sections */
.section { padding: 72px 0; }
/* Products slider */
.products .slider { position: relative; }
.slider-viewport { overflow: hidden; }
.slider-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(320px, 1fr); gap: 16px; padding: 10px 0; list-style: none; margin: 0; }
.product-card { background: var(--bg-elev); border: 1px solid rgba(2,6,23,0.08); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; }
.product-card a { position: relative; display: block; }
.product-card img { width: 100%; height: 300px; object-fit: cover; display: block; }
.product-card h3 { margin: 10px 12px 14px; font-size: 18px; }
.product-card .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 80%);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(43,42,44,0.9); color: #fff; border: 1px solid rgba(255,255,255,0.18); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px rgba(2,6,23,0.25); backdrop-filter: blur(4px); z-index: 2; font-size: 22px; }
.slider-nav:hover { background: rgba(0,0,0,0.86); transform: translateY(-50%) scale(1.05); }
.slider-nav:focus { outline: 3px solid var(--ring); outline-offset: 2px; }
.slider-nav.prev { left: 8px; }
.slider-nav.next { right: 8px; }

/* Ensure nav buttons align to the viewport center using CSS Grid */
.products .slider { display: grid; }
.products .slider-viewport, .products .slider .slider-nav { grid-area: 1 / 1; }
.products .slider .slider-nav { position: relative; top: auto; transform: none; align-self: center; z-index: 10; }
.products .slider .slider-nav.prev { justify-self: start; margin-left: 8px; }
.products .slider .slider-nav.next { justify-self: end; margin-right: 8px; }

@media (max-width: 600px) {
  .slider-track { grid-auto-columns: 80%; }
}
.intro { padding-top: 56px; }
.intro-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 28px; }
.intro-text { padding: 32px 0; }
.intro-text h2 { font-size: 52px; line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.01em; text-shadow: 0 1px 0 rgba(255,255,255,0.60), 0 6px 18px rgba(255,255,255,0.22); }
.intro-text p { color: var(--muted); margin: 24px 0 32px; font-size: 18px; line-height: 1.55; }
.intro .btn { padding: 14px 22px; font-size: 16px; border-radius: 12px; background: #211f21; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10), 0 8px 20px rgba(2,6,23,0.24); margin-right: 12px; vertical-align: middle; }
.intro .btn.btn-whatsapp { background: linear-gradient(180deg, #25D366, #1DA851); color: #fff; box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35); }
.intro .btn.btn-whatsapp:hover { filter: brightness(1.05); }
.intro .btn.btn-whatsapp svg { width: 18px; height: 18px; }
@media (max-width: 600px) {
  .intro .btn { margin-right: 0; }
  .intro .btn + .btn { margin-top: 10px; }
}
.intro-media { position: relative; }
.intro-img { width: 88%; height: auto; border-radius: var(--radius); box-shadow: 0 22px 44px rgba(0,0,0,0.30); margin-left: auto; }
/* Add gentle spacing between hero and intro on homepage */
.hero + .intro { margin-top: 32px; }

@media (max-width: 960px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-text h2 { font-size: 40px; }
  .intro-img { width: 84%; margin: 0 auto; }
}
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 60%); }
.section-title { font-size: 28px; margin: 0 0 20px; letter-spacing: -0.01em; text-shadow: 0 1px 0 rgba(255,255,255,0.60), 0 6px 18px rgba(255,255,255,0.22); }
/* Elevate the products section heading */
.products .section-title {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 800;
  margin-bottom: 22px;
  text-align: center;
  text-shadow: 0 2px 0 rgba(255,255,255,0.70), 0 16px 44px rgba(2,6,23,0.22);
}
.products .section-title::after {
  content: "";
  display: block;
  width: 520px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent-green), var(--accent-cyan), var(--accent-yellow));
  box-shadow: none;
}
@media (max-width: 960px) {
  .products .section-title { font-size: 42px; }
  .products .section-title::after { width: 360px; height: 2px; }
}
@media (max-width: 600px) {
  .products .section-title { font-size: 34px; }
  .products .section-title::after { width: 220px; height: 2px; }
}

/* Decorative brand background for products section starting after intro */
.intro + .products {
  position: relative;
  isolation: isolate; /* ensure z-index layering is scoped */
}
.intro + .products::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Clean neutral background with subtle grid only (no brand colors) */
  background:
    repeating-linear-gradient(0deg, rgba(2,6,23,0.04) 0px, rgba(2,6,23,0.04) 1px, transparent 1px, transparent 28px),
    repeating-linear-gradient(90deg, rgba(2,6,23,0.04) 0px, rgba(2,6,23,0.04) 1px, transparent 1px, transparent 28px);
  /* smooth fade at top and bottom */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 10%, rgba(0,0,0,0.85) 90%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 10%, rgba(0,0,0,0.85) 90%, transparent 100%);
  pointer-events: none;
}
.products .container { position: relative; z-index: 1; }
.products-cta { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 14px; }
.products-cta .btn { padding: 14px 22px; font-size: 16px; border-radius: 12px; }
.products-cta .btn.btn-whatsapp { background: linear-gradient(180deg, #25D366, #1DA851); color: #fff; box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35); }
.products-cta .btn.btn-whatsapp:hover { filter: brightness(1.05); }
@media (max-width: 600px) { .products-cta { flex-direction: column; align-items: center; } }
.grid { display: grid; gap: 18px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-card p { color: var(--muted); }

/* Product matrix (12-box schema) */
.product-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.product-matrix.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.product-matrix.cols-3 .tile-media { height: 340px; }
.product-matrix.cols-3 .tile-header { min-height: 72px; }
.product-tile { background: var(--surface); border: 1px solid rgba(2,6,23,0.08); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; }
.product-tile a { display: grid; grid-template-rows: auto 1fr; color: inherit; text-decoration: none; height: 100%; position: relative; }
.product-tile .tile-header { background: #f3e0db; border-bottom: 1px solid rgba(2,6,23,0.06); padding: 12px 14px; font-weight: 800; letter-spacing: 0.01em; text-transform: none; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 64px; }
.product-tile .tile-media { position: relative; height: 300px; }
.product-tile .tile-media.tile-media--square { height: auto; aspect-ratio: 1 / 1; }
.product-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-tile .tile-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.62); color: #fff; display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .2s ease; text-align: center; font-weight: 600; }
.product-tile:hover .tile-overlay { opacity: 1; }
.product-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

@media (max-width: 1100px) {
  .product-matrix { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .product-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .product-matrix { grid-template-columns: 1fr; }
}

/* Ensure dış mekan sayfasındaki .cols-3 matrisi telefonda tek sütuna düşer */
@media (max-width: 520px) {
  .product-matrix.cols-3 { grid-template-columns: 1fr; }
}

/* Product details zone */
.product-details { display: grid; gap: 36px; margin-top: 72px; }
.product-detail { background: var(--bg-elev); border: 1px solid rgba(2,6,23,0.08); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; }
.product-detail .detail-inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 18px; padding: 18px; }
.product-detail h3 { margin: 0 0 10px; font-size: 24px; }
.product-detail p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 17px; }
.product-detail img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius-sm); }
/* Detail page media as mini carousel while preserving layout */
.mini-carousel--detail { position: relative; width: 100%; height: 420px; overflow: hidden; border-radius: var(--radius-sm); }
.mini-carousel--detail .mini-track { display: flex; height: 100%; list-style: none; margin: 0; padding: 0; }
.mini-carousel--detail .mini-track li { min-width: 100%; height: 100%; }
.mini-carousel--detail img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; border-radius: 0; }
/* Contain mode for detail carousel when images need full framing */
.mini-carousel--detail.contain { height: auto; aspect-ratio: var(--ar-w, 16) / var(--ar-h, 9); }
.mini-carousel--detail.contain .mini-track { align-items: stretch; }
.mini-carousel--detail.contain .mini-track li { display: block; }
.mini-carousel--detail.contain img { width: 100%; height: 100%; object-fit: contain; object-position: center center; background: #0b1220; }
/* Alternate image/text sides */
.product-detail .detail-inner > img { grid-column: 1; }
.product-detail .detail-inner > div { grid-column: 2; align-self: center; display: grid; gap: 12px; }
/* Ensure carousel container stays on the left column */
.product-detail .detail-inner > #product-media { grid-column: 1; }
/* Swap column widths and order on even cards to keep side-by-side */
.product-detail:nth-child(even) .detail-inner { grid-template-columns: 1fr 1.2fr; }
.product-detail:nth-child(even) .detail-inner > img { grid-column: 2; grid-row: 1; }
.product-detail:nth-child(even) .detail-inner > div { grid-column: 1; grid-row: 1; }
@media (max-width: 820px) {
  .product-detail .detail-inner { grid-template-columns: 1fr; }
  .product-detail img { height: 260px; }
}

/* Product detail: vertical layout with text on top and 4-image grid below */
.product-detail .detail-inner.detail-vertical { grid-template-columns: 1fr; align-items: start; }
.product-detail .detail-inner.detail-vertical .detail-text { display: grid; gap: 10px; }
.product-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.product-gallery-grid img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius-sm); transition: transform .18s ease, box-shadow .18s ease; }
.product-gallery-grid img:hover { transform: scale(1.02); box-shadow: var(--shadow); }
@media (max-width: 1100px) {
  .product-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-gallery-grid img { height: 280px; }
}
@media (max-width: 820px) {
  .product-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-gallery-grid img { height: 240px; }
}
@media (max-width: 520px) {
  .product-gallery-grid { grid-template-columns: 1fr; }
  .product-gallery-grid img { height: 260px; }
}

/* Service cards (photo-free) */
.services { display: grid; gap: 40px; margin-top: 40px; max-width: 1080px; margin-left: auto; margin-right: auto; }
.services .service-item { 
  position: relative;
  background: var(--bg-elev);
  border: 1px solid rgba(2,6,23,0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.services .service-inner { 
  display: grid; 
  grid-template-columns: 1fr 320px; 
  gap: 20px; 
  padding: 28px; 
  align-items: start;
}
/* removed vertical accent bar */
.services h3 { margin: 0 0 12px; letter-spacing: -0.01em; font-size: 26px; }
.services p { margin: 0; color: var(--muted); line-height: 1.8; }
/* CTA row inside service cards */
.services .service-cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.services .service-cta .btn { padding: 8px 14px; border-radius: 10px; }
/* align CTA end with media column edge */
.services .service-inner { align-items: start; }
.services .service-inner > div:first-child { display: grid; }
.services .service-inner > div:first-child .service-cta { justify-self: start; }

/* Media thumb on service item */
.services .service-media { position: relative; align-self: stretch; display: none; }
.services .service-media .media-frame { 
  position: relative; 
  width: 320px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(2,6,23,0.10);
  box-shadow: 0 16px 42px rgba(2,6,23,0.18);
}
.services .service-media .media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.services .service-media .media-frame { position: relative; z-index: 1; }

@media (min-width: 1024px) {
  .services .service-media { display: block; }
  /* alternate media position: even items show media left */
  .services .service-item:nth-child(even) .service-inner { grid-template-columns: 320px 1fr; }
  .services .service-item:nth-child(even) .service-media { order: 1; }
  .services .service-item:nth-child(even) .service-inner > div:first-child { order: 2; }
}

@media (max-width: 640px) {
  .services .service-inner { grid-template-columns: 1fr; }
  .services .service-media { justify-self: center; }
  .services .service-media .media-frame { width: 260px; }
}

/* Decorative subtle logo-color stripes in the background */
/* Decorative pseudo-elements removed by design; rules deleted to avoid empty blocks */

/* Keep single-column layout on all sizes for a spacious look */

/* Portfolio */
.portfolio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portfolio-item figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* Testimonials */
.testimonials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.testimonial p { font-size: 18px; }
.testimonial footer { color: var(--muted); margin-top: 8px; }

/* Contact */
.contact-form { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.contact-form label { display: grid; gap: 6px; font-weight: 500; }
input, textarea { width: 100%; padding: 12px 12px; color: var(--text); background: #ffffff; border: 1px solid rgba(2,6,23,0.12); border-radius: 10px; outline: none; }
input:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }

/* Contact split layout */
.split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; align-items: start; }
.map-card iframe { width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: var(--radius-sm); }
.contact-card .contact-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.contact-card a { color: var(--brand-600); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* WhatsApp styles */
.btn-whatsapp { background: linear-gradient(180deg, #25D366, #1DA851); color: #fff; }
.btn-whatsapp:hover { filter: brightness(1.05); }
.btn.btn-whatsapp svg { width: 20px; height: 20px; display: block; }
.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25D366;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  z-index: 90;
}
.whatsapp-fab svg { width: 28px; height: 28px; display: block; }
.whatsapp-fab:hover { filter: brightness(1.06); }

/* Scroll-to-top floating button (above WhatsApp FAB) */
.scroll-top-fab {
  position: fixed;
  right: 26px; /* align centers with 56px WhatsApp FAB when width is 40px */
  bottom: 110px; /* slightly higher */
  width: 40px; /* smaller */
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #02214c;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  z-index: 90;
  text-decoration: none;
}
.scroll-top-fab:hover { filter: brightness(1.06); }
.scroll-top-fab svg { width: 22px; height: 22px; display: block; }

/* Footer */
.site-footer { border-top: 1px solid rgba(255,255,255,0.06); margin-top: 40px; background: #02214c; color: #e9eaec; }
/* top area */
.footer-top { padding: 40px 0 10px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr 1fr; gap: 28px; }
.footer-brand { display: grid; gap: 4px; }
.footer-logo { height: 128px; width: auto; filter: drop-shadow(0 16px 32px rgba(0,0,0,.6)); mix-blend-mode: screen; }
.footer-brand h3 { margin: 2px 0 4px; }
.footer-tag { color: #c9ccd1; margin: 0; max-width: 36ch; }
.footer-col h3 { margin: 0 0 14px; font-size: 20px; color: #ffffff; letter-spacing: -0.01em; }
.footer-col h4 { margin: 12px 0 8px; font-size: 16px; color: #ffffff; opacity: .9; }
.footer-contact { display: grid; gap: 10px; }
.contact-item { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 10px; color: #d7d9dd; }
.contact-item svg { color: #f0f1f3; opacity: .9; }
.footer-social { display: flex; gap: 8px; margin-top: 8px; }
.footer-social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; color: #fff; text-decoration: none; }
.footer-social a:hover { background: rgba(255,255,255,0.08); }
.footer-social svg { width: 22px; height: 22px; display: block; }

/* link lists */
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { position: relative; color: #d7d9dd; text-decoration: none; padding-left: 18px; display: inline-block; }
.footer-links a::before { content: "›"; position: absolute; left: 0; top: 0; color: #ffffff; opacity: .8; }
.footer-links a:hover { color: #ffffff; }

/* bottom area */
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 2px 0; color: #c9ccd1; font-size: 12px; }
.social { display: flex; gap: 14px; list-style: none; padding: 0; margin: 0; }
.social a { color: #d7d9dd; text-decoration: none; }
.social a:hover { color: #ffffff; }

/* Multicolor accent inspired by logo */
.accent-bar { display: grid; grid-template-columns: repeat(4, 1fr); height: 4px; overflow: hidden; border-radius: 2px; }
.accent-bar > span:nth-child(1) { background: var(--brand); }
.accent-bar > span:nth-child(2) { background: var(--accent-green); }
.accent-bar > span:nth-child(3) { background: var(--accent-cyan); }
.accent-bar > span:nth-child(4) { background: var(--accent-yellow); }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .cards-3, .portfolio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonials { grid-template-columns: 1fr; }
  .hero-content--left { left: 16px; right: 16px; }
}
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .hero { padding: 84px 0 36px; }
  .hero-content h1 { font-size: 34px; }
  .slogan { font-size: 22px; }
  .site-nav ul { gap: 14px; }
  .cards-3, .portfolio { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-content--left { left: 12px; right: 12px; }
}

/* Helpers */
.mobile-only { display: none; }

/* Mobile header & nav layout */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-inner { height: 80px; }
  .logo-img { height: 64px; }
  .header-actions { display: none; }
  .header-social { display: none; }
  .has-dropdown > a::after { display: none; }
  /* Mobile: show only top-level items, except Products mega shows compact options */
  .site-nav .has-dropdown > .dropdown { display: none !important; }
  .has-dropdown.mega .mega-dropdown {
    display: grid !important;
    position: static;
    left: auto; right: auto; top: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 8px 0 0 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .site-nav .mega-dropdown .mega-col { display: block; }
  .site-nav .mega-dropdown .mega-col-inner {
    padding: 6px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: none;
    gap: 6px;
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr;
  }
  .site-nav .mega-dropdown .mega-title { font-size: 14px; }
  .site-nav .mega-dropdown .mini-carousel { border-radius: 8px; }
  .site-nav .mega-dropdown .mini-carousel img { height: 56px; }
  .site-nav .mega-dropdown .mega-cta { display: none; }
  .site-nav .mega-dropdown { align-items: stretch; }
  .site-nav .mega-dropdown .mega-col { height: 100%; }
  /* stabilize title height so both cards match */
  .site-nav .mega-dropdown .mega-title { min-height: 32px; line-height: 1.2; }
  .site-nav .has-dropdown > .dropdown a { padding: 0; }
  .site-nav .menu > li > a { font-weight: 700; letter-spacing: 0.02em; }
  .mobile-only { display: grid; }

  .site-nav {
    position: fixed;
    top: 80px;
    right: 0;
    width: 100vw;
    max-width: none;
    height: calc(100vh - 80px);
    background: #0f3a7a;
    border-left: 1px solid rgba(255,255,255,0.10);
    box-shadow: none;
    transform: translateX(100%);
    transition: transform .22s ease;
    will-change: transform;
    padding: 16px;
    z-index: 1000; /* ensure above overlay */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  body.nav-open .site-nav { transform: translateX(0); box-shadow: -20px 0 40px rgba(2,6,23,0.35); }
  .site-nav .menu { flex-direction: column; gap: 6px; }
  .site-nav .menu a { font-size: 16px; padding: 10px 8px; }
  /* Ensure links are fully clickable across the row */
  .site-nav .menu > li { width: 100%; }
  .site-nav .menu > li > a { display: block; width: 100%; padding: 12px 10px; }

  /* Toggle icon swap */
  body.nav-open .nav-toggle .icon-hamburger { display: none; }
  body.nav-open .nav-toggle .icon-close { display: block; }

  /* Prevent background scroll when menu open */
  body.nav-open { overflow: hidden; }
  .nav-toggle { position: relative; z-index: 80; }
}

/* Ensure long slogans wrap on mobile to avoid overflow */
@media (max-width: 600px) {
  .slogan, .hero-content h1.slogan, .intro-text h2.slogan { white-space: normal; }
}

/* Larger chips on hero aside only */
.hero-aside .service-chips.large .service-chip { padding: 18px 22px; font-size: 17px; }
.hero-aside .service-chips.large .service-dot { width: 12px; height: 12px; }

/* Footer responsive */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-logo { height: 72px; }
  .site-footer .footer-col:not(.footer-brand) { padding-left: 8px; }
  .site-footer .footer-bottom .footer-inner { padding-left: 8px; }
}


