/* ==========================================================================
   XYZ 3D Technology — Precision Metrology
   Main Stylesheet
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --color-primary: #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-secondary: #0F172A;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-text: #1F2937;
  --color-text-muted: #64748B;
  --color-border: #E5E7EB;
  --color-success: #16A34A;
  --color-whatsapp: #25D366;

  --font-heading: 'Poppins', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);

  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1.25;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 72px 0; }
.bg-alt { background: var(--color-bg-alt); }

.eyebrow {
  display: inline-block;
  background: #EFF6FF;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.25rem); margin-bottom: 12px; }
.section-head p { color: var(--color-text-muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 44px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }
.btn-dark { background: var(--color-secondary); color: #fff; }
.btn-dark:hover { background: #1e293b; }
.btn-white { background: #fff; color: var(--color-primary); }
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-whatsapp { background: var(--color-whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1fb855; }
.btn-block { width: 100%; }

/* ---------- Top Bar ---------- */
/* .topbar {
  background: var(--color-secondary);
  color: #cbd5e1;
  font-size: 0.8rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}
.topbar-left { display: flex; align-items: center; gap: 20px; }
.topbar-left span, .topbar-left a { display: flex; align-items: center; gap: 6px; color: #cbd5e1; white-space: nowrap; }
.topbar-left a:hover { color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-right a { color: #cbd5e1; display: flex; align-items: center; }
.topbar-right a:hover { color: #fff; }
.topbar-mobile-only { display: none; } */





/* =======================
   TOP BAR
======================= */

.topbar{
    background:#0f172a;
    color:#cbd5e1;
    font-size:13px;
}

.topbar .container{
    max-width:1200px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    height:40px;
}

.topbar-left,
.topbar-right{
    display:flex;
    align-items:center;
}

.topbar-left{
    gap:20px;
}

.topbar-right{
    gap:15px;
}

.topbar-left span,
.topbar-left a,
.topbar-right a{
    display:flex;
    align-items:center;
    gap:6px;
    color:#cbd5e1;
    text-decoration:none;
    transition:.3s;
    white-space:nowrap;
}

.topbar-left a:hover,
.topbar-right a:hover{
    color:#ffffff;
}

.topbar svg{
    flex-shrink:0;
}

/* ================= MOBILE TOP BAR ================= */

@media (max-width:768px){

    .topbar{
        display:block !important;
    }

    .topbar .container{
        display:flex !important;
        justify-content:flex-start !important;
        align-items:center !important;
        height:40px;
        padding:0 15px;
    }

    .topbar-left{
        display:flex !important;
        align-items:center;
        gap:15px;
    }

    .top-location,
    .top-phone{
        display:flex !important;
        align-items:center;
        gap:5px;
        font-size:12px;
        white-space:nowrap;
    }

    .top-email{
        display:none !important;
    }

    .topbar-right{
        display:none !important;
    }

    .topbar svg{
        width:12px;
        height:12px;
    }
}











/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 42px; height: 42px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.02rem; color: var(--color-secondary); }
.brand-tagline { font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }

.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-menu a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--color-primary); }
.nav-menu a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-cta .btn { display: none; }
@media (min-width: 1024px) { .nav-cta .btn { display: inline-flex; } }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) { .hamburger { display: none; } }

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 82vw);
  height: 100vh;
  background: #fff;
  z-index: 600;
  box-shadow: -8px 0 24px rgba(0,0,0,0.12);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 24px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-head { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.mobile-menu-close {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-bg-alt);
}
.mobile-menu a {
  padding: 14px 8px;
  font-weight: 500;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--color-border);
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color var(--transition), border-color var(--transition);
}
.mobile-menu a.active:not(.btn) {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.mobile-menu .btn { margin-top: 20px; }
.overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.5);
  z-index: 550;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.overlay.open { opacity: 1; pointer-events: auto; }

@media (min-width: 1024px) { .nav-menu { display: flex; } }
@media (max-width: 1023px) { .nav-menu { display: none; } }


/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-bg svg { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,23,42,0.92) 15%, rgba(15,23,42,0.75) 55%, rgba(15,23,42,0.55) 100%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 60px; }
.hero-content { max-width: 640px; }
.hero-content .eyebrow { background: rgba(255,255,255,0.12); color: #fff; }
.hero-content h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 18px; }
.hero-content p { color: #cbd5e1; font-size: 1.08rem; margin-bottom: 30px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 28px; }
.hero-badges span { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: #e2e8f0; }
.hero-badges svg { flex-shrink: 0; color: #60A5FA; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
.about-text h2 { font-size: clamp(1.7rem, 3.5vw, 2.25rem); margin-bottom: 18px; }
.about-text p { color: var(--color-text-muted); margin-bottom: 14px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.stat-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 18px 14px; text-align: center; }
.stat-card strong { display: block; font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-primary); }
.stat-card span { font-size: 0.78rem; color: var(--color-text-muted); }
.about-image img, .about-image svg { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; height: 100%; }
.about-image { border-radius: var(--radius-lg); overflow: hidden; }

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Cards Grid (Services) ---------- */
/* .services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card-image { aspect-ratio: 4/3; overflow: hidden; background: var(--color-bg-alt); }
.service-card-image svg { width: 100%; height: 100%; }
.service-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-icon {
  width: 40px; height: 40px;
  background: #EFF6FF;
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.service-card-body h3 { font-size: 1.1rem; }
.service-card-body p { color: var(--color-text-muted); font-size: 0.92rem; flex: 1; }
.card-link { color: var(--color-primary); font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px; }
.card-link svg { transition: transform var(--transition); }
.card-link:hover svg { transform: translateX(3px); } */






/* ---------- Cards Grid (Services) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card-image-pcmm{

  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
  
}


.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.service-card-image svg { width: 100%; height: 100%; }
.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-image img { transform: scale(1.05); }
.service-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-icon {
  width: 40px; height: 40px;
  background: #EFF6FF;
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.service-card-body h3 { font-size: 1.1rem; font-weight: 700; }
.service-card-body p { color: var(--color-text-muted); font-size: 0.92rem; flex: 1; }
.card-link { color: var(--color-primary); font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px; }
.card-link svg { transition: transform var(--transition); }
.card-link:hover svg { transform: translateX(3px); }
















/* ---------- Work Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .process-grid { grid-template-columns: repeat(6, 1fr); } }

.process-step {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
}
.process-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin: 0 auto 14px;
  font-size: 0.95rem;
}
.process-step h3 { font-size: 0.98rem; margin-bottom: 6px; }
.process-step p { font-size: 0.82rem; color: var(--color-text-muted); }

/* ---------- Why Choose Us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

.why-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 18px;
}
.why-icon {
  width: 42px; height: 42px;
  background: #EFF6FF;
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.why-card h3 { font-size: 1rem; margin-bottom: 6px; }
.why-card p { font-size: 0.85rem; color: var(--color-text-muted); }




/* ---------- Trusted Clients — Logo Marquee ---------- */
.logo-marquee {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding: 10px 0 6px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.logo-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  animation: logo-scroll 34s linear infinite;
  will-change: transform;
}
.logo-marquee:hover .logo-track,
.logo-marquee:focus-within .logo-track {
  animation-play-state: paused;
}
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.logo-card {
  flex: 0 0 auto;
  width: 164px;
  height: 124px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.logo-card:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-lg);
}
.logo-card img {
  max-height: 70px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (min-width: 640px) {
  .logo-card { width: 196px; height: 140px; padding: 20px; }
  .logo-card img { max-height: 80px; }
}
@media (min-width: 1000px) {
  .logo-card { width: 208px; height: 150px; padding: 22px; }
  .logo-card img { max-height: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}








/* ---------- Industries ---------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (min-width: 640px) { .industries-grid { grid-template-columns: repeat(4, 1fr); } }

.industry-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 20px 10px;
  height: 100%;
  min-height: 128px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.industry-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.industry-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #EFF6FF;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.industry-icon svg {
  width: 26px;
  height: 26px;
  transition: transform var(--transition);
}
.industry-card:hover .industry-icon svg { transform: scale(1.12); }
.industry-label {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
}












/* ---------- Gallery ---------- */
/* .gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition);
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item svg { width: 100%; height: 100%; }

*/






/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.gallery-item {
  /* Reset native <button> styling so it behaves like the card it visually is */
  appearance: none;
  -webkit-appearance: none;
  border: none;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery-item:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-lg); }
.gallery-item:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* Fixed-height frame + object-fit: contain so every image (portrait,
   landscape, or square) is shown in full, never cropped or distorted. */
.gallery-item-frame {
  height: 200px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
}
.gallery-item-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover .gallery-item-frame img,
.gallery-item:focus-visible .gallery-item-frame img {
  transform: scale(1.05);
}
.gallery-item-caption {
  padding: 12px 14px 14px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-secondary);
  border-top: 1px solid var(--color-border);
}
@media (min-width: 640px) { .gallery-item-frame { height: 230px; } }
@media (min-width: 1000px) { .gallery-item-frame { height: 260px; } }

/* ---------- Fullscreen Lightbox Viewer ---------- */
.lightbox-viewer {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(4, 8, 20, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 20px;
}
.lightbox-viewer.open { opacity: 1; visibility: visible; }
.lightbox-stage {
  max-width: 92vw;
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: pan-y;
}
.lightbox-stage img {
  max-width: 92vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-stage img.zoomed { cursor: zoom-out; transform: scale(2); }
.lightbox-caption {
  color: #fff;
  margin-top: 18px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  padding: 0 20px;
  opacity: 0.92;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
  line-height: 1;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }
.lightbox-close { top: 20px; right: 20px; width: 46px; height: 46px; font-size: 26px; z-index: 3; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 30px; }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }
@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 42px; height: 42px; font-size: 24px; }
  .lightbox-close { width: 40px; height: 40px; font-size: 22px; top: 12px; right: 12px; }
}






/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 800px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
}
.stars { color: #F59E0B; font-size: 0.9rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card p { font-style: italic; color: var(--color-text); margin-bottom: 16px; font-size: 0.95rem; }
.testimonial-author strong { display: block; font-size: 0.92rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--color-text-muted); }

/* ---------- CTA ---------- */
.cta-section {
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #fff;
  text-align: center;
  padding: 60px 0;
}
.cta-section h2 { color: #fff; font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: 10px; }
.cta-section p { color: #dbeafe; margin-bottom: 26px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.3fr 1fr; } }

.contact-form-card, .contact-info-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--color-secondary); }
.form-group input, .form-group select, .form-group textarea {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: 44px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-group.error input, .form-group.error select, .form-group.error textarea { border-color: #DC2626; }
.field-error { display: none; font-size: 0.78rem; color: #DC2626; }
.form-group.error .field-error { display: block; }
.form-success { color: var(--color-success); font-size: 0.88rem; margin-top: 12px; display: none; }
.form-success.show { display: block; }

.info-block { display: flex; gap: 14px; margin-bottom: 20px; }
.info-block:last-of-type { margin-bottom: 0; }
.info-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: #EFF6FF; color: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.info-block h4 { font-size: 0.92rem; margin-bottom: 3px; }
.info-block p, .info-block a { font-size: 0.9rem; color: var(--color-text-muted); }

.map-wrap {
  margin-top: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  position: relative;
}
.map-wrap iframe { width: 100%; height: 280px; border: 0; display: block; }
.map-open {
  position: absolute; top: 10px; left: 10px;
  background: #fff; padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 0.78rem; font-weight: 600; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 6px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--color-secondary); color: #cbd5e1; padding: 56px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  padding-bottom: 40px;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand-logo {
  width: 40px; height: 40px; border-radius: 8px; background: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.footer-brand-logo svg { width: 28px; height: 28px; }
.footer-brand-text strong { display: block; color: #fff; font-family: var(--font-heading); }
.footer-brand-text span { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: #94a3b8; }
.site-footer p { font-size: 0.88rem; color: #94a3b8; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--color-primary); }
.site-footer h4 { color: #fff; font-size: 0.98rem; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.88rem; color: #94a3b8; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Floating Buttons ---------- */
.floating-buttons {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.fab {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
}
.fab:hover { transform: scale(1.08); }
.fab-whatsapp { background: var(--color-whatsapp); color: #fff; }
.fab-call { background: var(--color-primary); color: #fff; }
.fab-top {
  background: #fff;
  color: var(--color-secondary);
  border: 1px solid var(--color-border);
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.fab-top.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  background: var(--color-secondary);
  color: #fff;
  padding: 64px 0 44px;
  text-align: center;
}
.page-header h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 10px; }
.page-header p { color: #94a3b8; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: 0.85rem; color: #94a3b8; margin-top: 10px; }
.breadcrumb a { color: #94a3b8; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Utility animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 767px) {
  section { padding: 52px 0; }
  .topbar-left > *:not(.topbar-mobile-only-item) { display: none; }
  .topbar-mobile-only { display: flex; gap: 14px; align-items: center; }
  .topbar .container { justify-content: space-between; }
  .hero { min-height: 560px; }
  .hero-content { max-width: 100%; }
  .hero-badges { gap: 16px 22px; }
  .brand-tagline { display: none; }
}

@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
}
