/* ==========================================================================
   M3 Engineering LLC — Main Stylesheet
   Design system: deep navy + electric blue (tech/AI), red brand accent.
   ========================================================================== */

/* ---- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
/* Safety net: every icon here is an inline <svg viewBox="0 0 24 24"> with no
   width/height attribute, sized entirely by CSS. Any one we forget to size
   explicitly (or whose flex-sizing context breaks) now falls back to a sane
   1em box instead of the browser's default replaced-element size — the bug
   that made the contact-icons list and the hero buttons balloon earlier. */
svg { width: 1em; height: 1em; flex-shrink: 0; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; }

body {
  font-family: var(--font-body);
  background: var(--c-white);
  color: var(--c-navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--c-navy); line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-weight: 800; font-size: clamp(2.25rem, 3vw + 1rem, 4.5rem); }
h2 { font-weight: 700; font-size: clamp(1.75rem, 2.2vw + 1rem, 2.75rem); }
h3 { font-weight: 700; font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem); }
p { color: var(--c-muted-dark); }

.container { width: 100%; max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .container { padding: 0 40px; } }

section { position: relative; }
.section-pad { padding: clamp(56px, 8vw, 120px) 0; }
.bg-paper { background: var(--c-paper); }
.bg-navy { background: var(--c-navy-deep); color: var(--c-white); }
.bg-navy p { color: rgba(255,255,255,0.72); }
.bg-navy h2, .bg-navy h3 { color: var(--c-white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-electric);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--c-electric); display: inline-block; }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  white-space: nowrap; transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.3s;
  position: relative; overflow: hidden;
}
/* Icons have no width/height attributes (only viewBox), so without an explicit
   cap here they render at the browser's default replaced-element size if the
   flex sizing context around them is ever lost. */
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--g-electric); color: var(--c-white); box-shadow: 0 10px 30px -10px rgba(46,123,255,0.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(46,123,255,0.65); }
.btn-electric { background: var(--g-electric); color: var(--c-white); box-shadow: 0 10px 30px -10px rgba(46,123,255,0.55); }
.btn-electric:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(46,123,255,0.65); }
.btn-outline { border: 1.5px solid rgba(46,123,255,0.55); color: var(--c-white); }
.btn-outline:hover { background: rgba(46,123,255,0.16); border-color: rgba(46,123,255,0.8); }
.btn-outline-dark { border: 1.5px solid rgba(46,123,255,0.45); color: var(--c-electric); }
.btn-outline-dark:hover { background: rgba(46,123,255,0.08); border-color: var(--c-electric); }
.btn-sm { padding: 11px 20px; font-size: 0.88rem; }
.btn .ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.55); transform: scale(0); animation: ripple 600ms ease-out; pointer-events: none; }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* ---- Header / Nav ------------------------------------------------------ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--header-h-mobile);
  display: flex; align-items: center;
  background: rgba(13, 19, 29, 0.0);
  backdrop-filter: blur(0px);
  transition: background 0.4s var(--ease-soft), backdrop-filter 0.4s, box-shadow 0.4s, height 0.3s;
}
@media (min-width: 1024px) { .site-header { height: var(--header-h); } }
.site-header.is-scrolled, .site-header.is-solid {
  background: rgba(13, 19, 29, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -18px rgba(0,0,0,0.6);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { height: 34px; width: auto; flex-shrink: 0; }
@media (min-width: 1024px) { .brand img { height: 42px; } }
.brand-name {
  font-family: var(--font-display); font-weight: 700; color: #fff;
  font-size: clamp(0.82rem, 2vw, 1.05rem); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

.main-nav { display: none; }
@media (min-width: 1024px) {
  .main-nav { display: flex; align-items: center; gap: 6px; }
  .main-nav > li { position: relative; }
  .main-nav > li > a, .main-nav > li > button.nav-link {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 16px; border-radius: var(--radius-pill);
    font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
    color: rgba(255,255,255,0.88); transition: background 0.25s, color 0.25s;
  }
  .main-nav > li > a:hover, .main-nav > li > button.nav-link:hover,
  .main-nav > li.is-active > a { background: rgba(255,255,255,0.1); color: #fff; }
  .main-nav .chevron { width: 10px; height: 10px; transition: transform 0.3s var(--ease-out); }
  .main-nav li.has-dropdown:hover .chevron,
  .main-nav li.has-dropdown:focus-within .chevron { transform: rotate(180deg); }
}

.services-dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 620px; background: rgba(16, 24, 37, 0.98); backdrop-filter: blur(18px);
  border: 1px solid var(--c-line); border-radius: var(--radius-md);
  padding: 18px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.65);
}
.main-nav li.has-dropdown:hover .services-dropdown,
.main-nav li.has-dropdown:focus-within .services-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.services-dropdown a {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.services-dropdown a:hover { background: rgba(255,255,255,0.06); }
.services-dropdown .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g-electric); margin-top: 7px; flex-shrink: 0; }
.services-dropdown strong { display: block; color: #fff; font-family: var(--font-display); font-size: 0.92rem; font-weight: 600; }
.services-dropdown span { display: block; color: var(--c-muted); font-size: 0.8rem; margin-top: 2px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.08); }
.lang-switch a { padding: 6px 12px; border-radius: var(--radius-pill); font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; color: rgba(255,255,255,0.6); }
.lang-switch a.is-active { background: var(--c-white); color: var(--c-navy); }
.header-actions .btn-electric { display: none; }
@media (min-width: 1200px) { .header-actions .btn-electric { display: inline-flex; } }

.nav-toggle { display: flex; flex-direction: column; gap: 5px; width: 30px; z-index: 210; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle span { height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: transform 0.3s var(--ease-out), opacity 0.3s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 190; background: rgba(10, 15, 24, 0.98);
  padding: calc(var(--header-h-mobile) + 24px) 24px 40px; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.4s var(--ease-out);
}
.mobile-nav.is-open { transform: translateX(0); }
@media (min-width: 1024px) { .mobile-nav { display: none; } }
.mobile-nav > ul > li { border-bottom: 1px solid var(--c-line); }
.mobile-nav > ul > li > a, .mobile-nav .accordion-trigger {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #fff; width: 100%; text-align: left;
}
.mobile-nav .accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease-soft); }
.mobile-nav .accordion-panel ul { padding: 0 4px 16px; }
.mobile-nav .accordion-panel a { display: block; padding: 10px 12px; color: var(--c-muted); font-size: 0.98rem; border-radius: var(--radius-sm); }
.mobile-nav .accordion-panel a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.mobile-nav .accordion-trigger svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.3s var(--ease-out); }
.mobile-nav .accordion-trigger.is-open svg { transform: rotate(180deg); }
.mobile-nav-foot { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }

/* ---- Hero: Home — Timed Card Opening ---------------------------------- */
.home-hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: var(--c-navy-deep); }
.hero-stage { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease-soft);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: var(--g-hero); }
.hero-copy { position: absolute; left: 0; right: 0; bottom: 190px; z-index: 5; color: #fff; padding: 0 24px; }
@media (min-width: 1024px) { .hero-copy { bottom: 210px; padding: 0 40px; } }
.hero-copy .container { max-width: var(--container-w); }
.hero-copy h1, .hero-copy h2.hero-title {
  color: #fff; max-width: 820px; font-weight: 800; text-shadow: 0 6px 30px rgba(0,0,0,0.45);
  transition: opacity 0.5s, transform 0.5s;
}
.hero-copy .hero-kicker { color: var(--c-cyan); font-family: var(--font-display); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 16px; display: block; }
.hero-copy .hero-sub { color: rgba(255,255,255,0.82); max-width: 560px; margin-top: 18px; font-size: 1.05rem; }
.hero-copy .hero-ctas { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.hero-cards {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  display: flex; gap: 10px; padding: 0 16px 20px; overflow-x: auto; scroll-snap-type: x proximity;
  -ms-overflow-style: none; scrollbar-width: none;
}
.hero-cards::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .hero-cards { padding: 0 40px 28px; gap: 14px; overflow: visible; } }
.hero-card {
  flex: 0 0 auto; width: 128px; scroll-snap-align: start;
  border-radius: var(--radius-md); overflow: hidden; position: relative; cursor: pointer;
  height: 92px; border: 1.5px solid rgba(255,255,255,0.18);
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
  background: var(--c-navy-mid);
}
@media (min-width: 640px) { .hero-card { width: 168px; height: 104px; } }
@media (min-width: 1024px) { .hero-card { width: 190px; height: 116px; } }
.hero-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: opacity 0.4s; }
.hero-card .hero-card-label {
  position: absolute; left: 10px; right: 10px; bottom: 8px; font-family: var(--font-display);
  font-weight: 700; font-size: 0.72rem; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.hero-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.75)); }
.hero-card.is-active { border-color: var(--c-cyan); transform: translateY(-4px); }
.hero-card.is-active img { opacity: 1; }
.hero-progress { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--c-cyan); width: 0%; }
.hero-card.is-active .hero-progress { transition: width linear; }

.hero-controls { position: absolute; right: 20px; bottom: 128px; z-index: 7; display: flex; gap: 8px; }
@media (min-width: 1024px) { .hero-controls { right: 40px; bottom: 150px; } }
.hero-controls button {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25); color: #fff; display: flex; align-items: center; justify-content: center;
  transition: background 0.25s;
}
.hero-controls button:hover { background: rgba(255,255,255,0.24); }
.hero-controls svg { width: 16px; height: 16px; }

/* ---- Hero: secondary pages (slideshow) -------------------------------- */
.page-hero {
  position: relative; min-height: 62vh; display: flex; align-items: flex-end;
  padding-top: calc(var(--header-h-mobile) + 40px); padding-bottom: 64px; overflow: hidden; background: var(--c-navy-deep);
}
@media (min-width: 1024px) { .page-hero { padding-top: calc(var(--header-h) + 60px); min-height: 56vh; padding-bottom: 84px; } }
.page-hero .hero-slide { position: absolute; inset: 0; }
.page-hero .breadcrumb { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-bottom: 16px; display: flex; gap: 8px; align-items: center; }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero h1 { position: relative; z-index: 4; color: #fff; max-width: 820px; text-shadow: 0 6px 30px rgba(0,0,0,0.45); }
.page-hero .page-hero-sub { position: relative; z-index: 4; color: rgba(255,255,255,0.82); max-width: 620px; margin-top: 16px; font-size: 1.05rem; }
.page-hero .container { position: relative; z-index: 4; }

/* ---- Services grid (uniform 2x3) --------------------------------------- */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 700px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5;
  background: var(--c-navy-mid); border: 1px solid var(--c-line-dark);
}
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.service-card:hover img { transform: scale(1.08); }
.service-card::after { content: ''; position: absolute; inset: 0; background: var(--g-card-overlay); }
.service-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; z-index: 3; }
.service-card-icon {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,0.12); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px; border: 1px solid rgba(255,255,255,0.2);
}
.service-card-icon svg { width: 22px; height: 22px; stroke: var(--c-cyan); }
.service-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.service-card p { color: rgba(255,255,255,0.78); font-size: 0.92rem; margin-bottom: 14px; }
.service-card .card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--c-cyan); font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; }
.service-card .card-link svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease-out); }
.service-card:hover .card-link svg { transform: translateX(4px); }

/* ---- Detailed per-service blocks (home) -------------------------------- */
.service-detail { display: grid; gap: 40px; align-items: center; padding: 40px 0; border-top: 1px solid var(--c-line-dark); }
@media (min-width: 900px) { .service-detail { grid-template-columns: 1fr 1fr; gap: 60px; } }
.service-detail:nth-child(even) .service-detail-media { order: 2; }
.service-detail-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.service-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.service-detail ul { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.service-detail ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--c-navy); }
.service-detail ul svg { width: 18px; height: 18px; stroke: var(--c-red); flex-shrink: 0; margin-top: 2px; }

/* ---- About / Why choose us --------------------------------------------- */
.about-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1.1fr 1fr; } }
.about-media { position: relative; }
.about-media .img-a {
  width: 78%; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4;
  animation: about-img-float 6s ease-in-out infinite;
}
.about-media .img-a img { width: 100%; height: 100%; object-fit: cover; }
.about-media .img-b {
  position: absolute; width: 62%; aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden;
  right: -4%; bottom: -6%; border: 6px solid var(--c-white); box-shadow: 0 30px 50px -20px rgba(13,19,29,0.35);
  animation: about-img-pulse 4s ease-in-out infinite;
}
.about-media .img-b img { width: 100%; height: 100%; object-fit: cover; }
@keyframes about-img-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes about-img-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 30px 50px -20px rgba(13,19,29,0.35); }
  50% { transform: scale(1.035); box-shadow: 0 30px 55px -14px rgba(46,123,255,0.45); }
}
@media (prefers-reduced-motion: reduce) {
  .about-media .img-a, .about-media .img-b { animation: none; }
}

.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 30px; }
@media (min-width: 640px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: var(--c-white); border: 1px solid var(--c-line-dark); border-radius: var(--radius-md);
  padding: 22px 16px; text-align: center;
}
.bg-navy .stat-card { background: rgba(255,255,255,0.06); border-color: var(--c-line); }
.stat-card .stat-icon { width: 34px; height: 34px; margin: 0 auto 10px; }
.stat-card .stat-icon svg { width: 100%; height: 100%; stroke: var(--c-red); }
.stat-card .stat-num { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--c-navy); }
.bg-navy .stat-card .stat-num { color: #fff; }
.stat-card .stat-label { font-size: 0.82rem; color: var(--c-muted-dark); margin-top: 4px; }
.bg-navy .stat-card .stat-label { color: var(--c-muted); }

.why-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 700px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-card { background: rgba(255,255,255,0.05); border: 1px solid var(--c-line); border-radius: var(--radius-md); padding: 26px; display: flex; flex-direction: column; height: 100%; }
/* Related-articles reuse of why-card (services-grid, 5 items over 2 rows): pin a
   floor height so every card matches regardless of which row it lands in — grid
   rows otherwise auto-size independently per row based on that row's longest excerpt. */
.services-grid .why-card { min-height: 280px; }
.why-card .why-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--g-electric); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; flex-shrink: 0; }
.why-card .why-icon svg { width: 20px; height: 20px; stroke: #fff; }
.why-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.why-card p { flex: 1; }

/* ---- FAQ ---------------------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--c-line-dark); border-radius: var(--radius-md); overflow: hidden; background: var(--c-white); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; width: 100%; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.3s var(--ease-out); }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-soft); }
.faq-a p { padding: 0 24px 22px; }

/* ---- Free quote CTA ------------------------------------------------------ */
.cta-band {
  border-radius: var(--radius-lg); background: var(--c-navy-deep); position: relative; overflow: hidden;
  padding: clamp(36px, 6vw, 64px); text-align: center;
}
.cta-band::before {
  content: ''; position: absolute; inset: -40%; background: radial-gradient(circle at 30% 20%, rgba(46,123,255,0.35), transparent 55%), radial-gradient(circle at 80% 80%, rgba(238,30,56,0.25), transparent 50%);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 14px auto 0; }
.cta-band .cta-actions { display: flex; gap: 14px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* ---- Contact form (embedded, home + contact page) ----------------------- */
.contact-panel {
  background: rgba(255,255,255,0.85); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: 0 40px 80px -30px rgba(13,19,29,0.25);
}
.bg-navy .contact-panel, .contact-panel.on-dark { background: rgba(255,255,255,0.06); border-color: var(--c-line); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 18px 16px 8px; border-radius: var(--radius-sm); border: 1.5px solid var(--c-line-dark);
  background: var(--c-white); font-size: 0.98rem; transition: border-color 0.25s;
}
.on-dark .field input, .on-dark .field textarea, .on-dark .field select,
.bg-navy .field input, .bg-navy .field textarea, .bg-navy .field select { background: rgba(13,19,29,0.35); border-color: var(--c-line); color: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.field label {
  position: absolute; left: 16px; top: 17px; font-size: 0.98rem; color: var(--c-muted-dark);
  pointer-events: none; transition: transform 0.2s var(--ease-out), font-size 0.2s, color 0.2s; transform-origin: left top;
}
.on-dark .field label, .bg-navy .field label { color: var(--c-muted); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--c-electric); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field.has-value label {
  transform: translateY(-9px) scale(0.78); color: var(--c-electric);
}
/* <select> always shows text (its placeholder <option> or a chosen value), so its
   label can never rely on :placeholder-shown like inputs/textareas — keep it
   permanently in the raised position to avoid overlapping the select's own text. */
.field select + label { transform: translateY(-9px) scale(0.78); }
.field select:focus + label { color: var(--c-electric); }
.field-hint { font-size: 0.8rem; color: var(--c-muted); margin-top: 6px; }
.star-rating { display: flex; gap: 6px; }
.star-rating button { font-size: 1.6rem; color: var(--c-line-dark); transition: color 0.2s, transform 0.2s; }
.on-dark .star-rating button, .bg-navy .star-rating button { color: var(--c-line); }
.star-rating button.is-active, .star-rating button:hover { color: #FFB800; transform: scale(1.15); }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.is-visible { display: block; }
.form-note { font-size: 0.82rem; color: var(--c-muted); margin-top: 14px; line-height: 1.5; }

/* ---- Gallery -------------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1/1; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .gallery-tag {
  position: absolute; left: 10px; bottom: 10px; background: rgba(13,19,29,0.7); backdrop-filter: blur(4px);
  color: #fff; font-size: 0.72rem; font-family: var(--font-display); font-weight: 700; padding: 6px 12px; border-radius: var(--radius-pill);
}

/* ---- Reviews --------------------------------------------------------------- */
.review-card { background: var(--c-white); border: 1px solid var(--c-line-dark); border-radius: var(--radius-md); padding: 26px; }
.review-card .stars { color: #FFB800; letter-spacing: 2px; margin-bottom: 10px; }
.review-card .reviewer { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.review-card .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--g-electric); display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-display); font-weight: 700; }
.review-card .pending-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; color: var(--c-red); background: rgba(238,30,56,0.08); padding: 4px 10px; border-radius: var(--radius-pill); margin-top: 12px; }
.reviews-empty { text-align: center; padding: 40px 20px; color: var(--c-muted-dark); border: 1.5px dashed var(--c-line-dark); border-radius: var(--radius-md); }

/* ---- Footer ------------------------------------------------------------------ */
.site-footer { background: var(--c-navy-deep); color: rgba(255,255,255,0.7); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--c-line); text-align: center; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; text-align: left; } }
.footer-grid h4 { color: #fff; font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 18px; }
.footer-grid ul { display: flex; flex-direction: column; gap: 11px; align-items: center; }
@media (min-width: 800px) { .footer-grid ul { align-items: flex-start; } }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; flex-direction: column; align-items: center; }
@media (min-width: 800px) { .footer-brand { align-items: flex-start; } }
.footer-brand img { height: 120px; margin-bottom: 16px; }
.footer-brand p { max-width: 280px; font-size: 0.92rem; text-align: center; }
@media (min-width: 800px) { .footer-brand p { text-align: left; } }
.footer-social { display: flex; gap: 10px; margin-top: 20px; justify-content: center; }
@media (min-width: 800px) { .footer-social { justify-content: flex-start; } }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: background 0.25s; }
.footer-social a:hover { background: var(--c-electric); }
.footer-social svg { width: 16px; height: 16px; stroke: #fff; }
.footer-bottom { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; padding-top: 26px; font-size: 0.82rem; }
@media (min-width: 700px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }

/* ---- Map ----------------------------------------------------------------------- */
.map-embed { width: 100%; border: 0; border-radius: var(--radius-lg); overflow: hidden; height: 420px; filter: grayscale(0.15) contrast(1.05); }

/* ---- Counters ------------------------------------------------------------------- */
.counter[data-target] { font-variant-numeric: tabular-nums; }

/* ---- Effects: parallax / magnetic / tilt / reveal / spotlight / blobs ---------- */
.parallax-layer { will-change: transform; }
/* No display here on purpose — every current .magnetic-btn use is also a
   .btn, and this class used to set display:inline-block, which (later in
   the cascade, same specificity) clobbered .btn's inline-flex and broke
   its internal centering — the icon lost its flex sizing and ballooned to
   its unset intrinsic size, and the sibling button stretched to match. */
.tilt-card { transform-style: preserve-3d; will-change: transform; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }

.cursor-spotlight { position: relative; overflow: hidden; }
.cursor-spotlight::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(46,123,255,0.18), transparent 60%);
}
.cursor-spotlight:hover::before { opacity: 1; }

.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.35; z-index: 0; pointer-events: none; }
.blob-electric { background: var(--c-electric); }
.blob-red { background: var(--c-red); }

.flip-card { perspective: 1200px; }
.flip-card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.7s var(--ease-out); transform-style: preserve-3d; }
.flip-card:hover .flip-card-inner, .flip-card.is-flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back { position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--radius-md); }
.flip-card-back { transform: rotateY(180deg); }

.skeleton { position: relative; background: linear-gradient(90deg, rgba(0,0,0,0.06) 25%, rgba(0,0,0,0.1) 37%, rgba(0,0,0,0.06) 63%); background-size: 400% 100%; animation: skeleton-loading 1.4s ease infinite; }
@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--g-electric); z-index: 300; width: 0%; }

.custom-cursor { position: fixed; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--c-electric); pointer-events: none; z-index: 999; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, background 0.2s; mix-blend-mode: difference; display: none; }
@media (hover: hover) and (pointer: fine) { .custom-cursor.is-active { display: block; } }
.custom-cursor.is-hover { width: 44px; height: 44px; background: rgba(46,123,255,0.25); }

/* ---- Confetti -------------------------------------------------------------------- */
.confetti-piece { position: fixed; top: -10px; width: 8px; height: 14px; z-index: 9999; pointer-events: none; }

/* ---- Floating actions: WhatsApp + Chatbot (right side, stacked vertically) ------------- */
.floating-actions {
  position: fixed; right: 16px; bottom: 16px; z-index: 150;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
@media (min-width: 640px) { .floating-actions { right: 24px; bottom: 24px; } }
.floating-btn {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(13,19,29,0.45); transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  color: #fff; position: relative; flex-shrink: 0;
}
.floating-btn:hover { transform: translateY(-3px) scale(1.04); }
.floating-btn svg { width: 26px; height: 26px; }
.floating-btn.whatsapp-btn { background: #25D366; }
.floating-btn.chatbot-toggle { background: var(--g-electric); }
.floating-btn .floating-badge {
  position: absolute; top: -4px; right: -4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--c-red); border: 2px solid #fff;
}

/* ---- Chatbot panel ----------------------------------------------------------------- */
.chatbot-panel {
  position: fixed; right: 16px; bottom: 148px; z-index: 155;
  width: min(360px, calc(100vw - 32px)); height: min(520px, calc(100vh - 140px));
  background: var(--c-white); border-radius: var(--radius-lg); box-shadow: 0 30px 70px -20px rgba(13,19,29,0.45);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.98);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
}
@media (min-width: 640px) { .chatbot-panel { right: 24px; bottom: 156px; } }
.chatbot-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.chatbot-header {
  background: var(--c-navy-deep); color: #fff; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.chatbot-header-info { display: flex; align-items: center; gap: 10px; }
.chatbot-header-info img { width: 30px; height: 30px; }
.chatbot-header h3 { color: #fff; font-size: 0.98rem; margin: 0; }
.chatbot-header p { color: rgba(255,255,255,0.65); font-size: 0.76rem; margin: 0; }
.chatbot-close { color: #fff; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.chatbot-close:hover { background: rgba(255,255,255,0.12); }
.chatbot-close svg { width: 16px; height: 16px; }
.chatbot-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--c-paper); }
.chatbot-msg { max-width: 84%; padding: 10px 14px; border-radius: 14px; font-size: 0.88rem; line-height: 1.5; }
.chatbot-msg.bot { background: #fff; color: var(--c-navy); border: 1px solid var(--c-line-dark); align-self: flex-start; border-bottom-left-radius: 4px; }
.chatbot-msg.user { background: var(--c-electric); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chatbot-msg.bot a { color: var(--c-electric); font-weight: 600; text-decoration: underline; }
.chatbot-quick-replies { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; background: var(--c-paper); flex-shrink: 0; }
.chatbot-quick-replies button {
  border: 1.5px solid var(--c-electric); color: var(--c-electric); background: #fff; border-radius: var(--radius-pill);
  padding: 7px 14px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; transition: background 0.2s, color 0.2s;
}
.chatbot-quick-replies button:hover { background: var(--c-electric); color: #fff; }
.chatbot-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--c-line-dark); flex-shrink: 0; background: #fff; }
.chatbot-form input {
  flex: 1; border: 1.5px solid var(--c-line-dark); border-radius: var(--radius-pill); padding: 10px 16px; font-size: 0.88rem;
}
.chatbot-form input:focus { outline: none; border-color: var(--c-electric); }
.chatbot-form button {
  width: 40px; height: 40px; border-radius: 50%; background: var(--g-electric); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.chatbot-form button svg { width: 17px; height: 17px; }
.chatbot-disclaimer { font-size: 0.68rem; color: var(--c-muted); text-align: center; padding: 0 16px 10px; background: #fff; }

/* ---- Blog ---------------------------------------------------------------------------- */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 700px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--c-white); border: 1px solid var(--c-line-dark); transition: transform 0.3s var(--ease-out), box-shadow 0.3s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -20px rgba(13,19,29,0.25); }
.blog-card-media { aspect-ratio: 16/10; overflow: hidden; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.blog-card:hover .blog-card-media img { transform: scale(1.06); }
.blog-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.blog-card-tag { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-electric); margin-bottom: 10px; }
.blog-card-body h3 { font-size: 1.08rem; margin-bottom: 10px; line-height: 1.3; }
.blog-card-body p { font-size: 0.9rem; flex: 1; }
.blog-card-meta { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--c-muted); margin-top: 16px; }

.article-body { max-width: 720px; margin: 0 auto; }
.article-body h2 { font-size: clamp(1.35rem, 1.4vw + 1rem, 1.75rem); margin-top: 42px; margin-bottom: 14px; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { font-size: 1.05rem; line-height: 1.75; margin-bottom: 4px; }
.article-lede { font-size: 1.2rem; color: var(--c-navy); line-height: 1.6; margin-bottom: 8px; }
.article-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--c-muted); font-size: 0.88rem; margin-bottom: 6px; }
.article-meta .tag-pill { background: rgba(46,123,255,0.1); color: var(--c-electric); font-family: var(--font-display); font-weight: 700; font-size: 0.75rem; padding: 5px 12px; border-radius: var(--radius-pill); }
.related-posts-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 700px) { .related-posts-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- Utility ----------------------------------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.text-center { text-align: center; }
.mt-lg { margin-top: 40px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -60px; left: 12px; background: #fff; color: var(--c-navy); padding: 12px 18px; border-radius: 8px; z-index: 999; transition: top 0.25s; }
.skip-link:focus { top: 12px; }
