/* ===========================================================
   Femico Enterprises — design system (white / navy / teal)
   =========================================================== */

:root {
  --radius: 0.5rem;

  --background: #ffffff;
  --foreground: #23283c;
  --surface: #f4f7fa;
  --card: #ffffff;

  --navy: #22376b;
  --teal: #3f92b8;

  --primary: #22376b;
  --primary-foreground: #fcfcfd;
  --secondary: #f1f4f8;
  --muted: #f1f4f8;
  --muted-foreground: #6b7488;
  --accent: #3f92b8;
  --accent-foreground: #ffffff;
  --border: #e3e8ef;
  --input: #e3e8ef;
  --whatsapp: #25d366;

  --gradient-brand: linear-gradient(120deg, #22376b 0%, #3f92b8 100%);
  --shadow-soft: 0 1px 2px rgba(34, 55, 107, 0.05), 0 12px 32px -18px rgba(34, 55, 107, 0.28);
  --shadow-lift: 0 24px 60px -28px rgba(34, 55, 107, 0.45);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.06; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
::selection { background: var(--teal); color: #fff; }

/* ---------- helpers ---------- */
.wrap { max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 1024px) { .wrap { padding: 0 2rem; } }

.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal);
}

.brand-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(34, 55, 107, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 55, 107, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
}

.muted { color: var(--muted-foreground); }
.bg-surface { background: var(--surface); }
.section { padding: 6rem 0; }
@media (max-width: 640px) { .section { padding: 4rem 0; } }

.icon { width: 1rem; height: 1rem; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-lg { width: 1.35rem; height: 1.35rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.9rem 1.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease-smooth), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { transform: scale(1.04); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-accent { background: var(--accent); color: var(--accent-foreground); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-outline { background: var(--background); color: var(--primary); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); }
.btn-sm { padding: 0.65rem 1.25rem; }

/* shine sweep */
.shine { position: relative; overflow: hidden; }
.shine::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.3) 50%, transparent 80%);
  transition: transform 0.9s var(--ease-smooth);
  pointer-events: none;
}
.shine:hover::after { transform: translateX(120%); }

/* ---------- reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

.zoom-in img, img.zoom-in {
  transform: scale(1.14);
  transition: transform 1.4s var(--ease-smooth);
}
.zoom-in.is-visible img, img.zoom-in.is-visible { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none !important; }
}

/* ===========================================================
   Header
   =========================================================== */
.site-header { position: sticky; top: 0; z-index: 50; width: 100%; animation: header-drop 0.6s var(--ease-smooth) both; }
@keyframes header-drop { from { transform: translateY(-60px); opacity: 0; } to { transform: none; opacity: 1; } }

.utility-bar { display: none; background: var(--primary); color: var(--primary-foreground); }
@media (min-width: 1024px) { .utility-bar { display: block; } }
.utility-bar .wrap { display: flex; height: 2.5rem; align-items: center; justify-content: space-between; font-size: 0.72rem; }
.utility-bar p { letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.9; margin: 0; }
.utility-links { display: flex; align-items: center; gap: 1.5rem; }
.utility-links a { display: flex; align-items: center; gap: 0.5rem; transition: opacity 0.3s; }
.utility-links a:hover { opacity: 0.75; }

.header-main {
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.5s, border-color 0.5s;
}
.is-scrolled .header-main { border-bottom-color: var(--border); box-shadow: 0 8px 30px -24px rgba(0, 0, 0, 0.6); }

.header-inner { display: flex; height: 5rem; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-logo img { height: 3.5rem; width: auto; transition: transform 0.5s var(--ease-smooth); }
@media (min-width: 768px) { .site-logo img { height: 4rem; } }
.site-logo:hover img { transform: scale(1.03); }

.main-nav { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .main-nav { display: flex; } }
.main-nav a {
  position: relative;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  transition: color 0.3s;
}
.main-nav a:hover { color: var(--primary); }
.main-nav a.current { color: var(--primary); }
.main-nav a.current::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  animation: underline-in 0.4s var(--ease-smooth) both;
}
@keyframes underline-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.main-nav a .icon-external {
  width: 0.7rem;
  height: 0.7rem;
  margin-left: 0.35rem;
  vertical-align: middle;
  opacity: 0.7;
}

.header-cta { display: none; align-items: center; gap: 0.75rem; }

@media (min-width: 1024px) { .header-cta { display: flex; } }

.menu-toggle {
  display: grid;
  place-items: center;
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle .icon-close { display: none; }
.is-menu-open .menu-toggle .icon-close { display: block; }
.is-menu-open .menu-toggle .icon-open { display: none; }

.scroll-progress { height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); }

.mobile-nav {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  border-bottom: 1px solid transparent;
  background: var(--background);
  transition: max-height 0.45s var(--ease-smooth), opacity 0.35s var(--ease-smooth);
}
.is-menu-open .mobile-nav { max-height: 30rem; opacity: 1; border-bottom-color: var(--border); }
.mobile-nav .inner { padding: 1.25rem; display: grid; gap: 0.25rem; }
.mobile-nav a.mlink {
  display: block;
  border-radius: 0.375rem;
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  transition: background-color 0.3s;
}
.mobile-nav a.mlink:hover { background: var(--secondary); }
.mobile-nav a.mlink .icon-external {
  width: 0.75rem;
  height: 0.75rem;
  margin-left: 0.35rem;
  vertical-align: middle;
  opacity: 0.7;
}
.mobile-nav .btn { justify-content: center; margin-top: 0.75rem; }


/* ===========================================================
   Floating WhatsApp
   =========================================================== */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: grid;
  place-items: center;
  height: 3.5rem;
  width: 3.5rem;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  transform: translateY(24px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
  animation: float-pulse 2.4s infinite;
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 1.6rem; height: 1.6rem; }
@keyframes float-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
}

/* ===========================================================
   Hero
   =========================================================== */
.hero { position: relative; overflow: hidden; background: var(--surface); }
.hero-media { position: absolute; inset: 0; will-change: transform; }
.hero-media img { height: 100%; width: 100%; object-fit: cover; opacity: 0.25; transform: scale(1.1); }
.hero-media .veil {
  position: absolute; inset: 0;
  background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0.85) 45%, rgba(255, 255, 255, 0.4) 100%);
}
.hero-content { position: relative; padding: 6rem 0; }
@media (min-width: 1024px) { .hero-content { padding: 9rem 0; } }
.hero h1 { margin-top: 1.25rem; max-width: 56rem; font-size: clamp(2.25rem, 6vw, 4.5rem); color: var(--primary); }
.hero h1 span { display: block; }
.hero p.lead { margin-top: 1.75rem; max-width: 36rem; font-size: 1.05rem; line-height: 1.7; color: var(--muted-foreground); }
.hero-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.rise { opacity: 0; transform: translateY(34px); animation: rise-in 0.8s var(--ease-smooth) forwards; animation-delay: var(--d, 0s); }
@keyframes rise-in { to { opacity: 1; transform: none; } }

/* ===========================================================
   Marquee
   =========================================================== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 1rem 0;
}
.marquee-track { display: flex; width: max-content; animation: marquee-x 28s linear infinite; }
.marquee-track span {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 2rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.9;
}
.marquee-track span i { height: 4px; width: 4px; border-radius: 999px; background: var(--accent); display: block; }
@keyframes marquee-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===========================================================
   Stats
   =========================================================== */
.stats { border-bottom: 1px solid var(--border); background: var(--background); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  max-width: 80rem;
  margin: 0 auto;
}
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--background); padding: 2.5rem 1.5rem; text-align: center; }
.stat .value { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.stat .label { margin-top: 0.5rem; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-foreground); }

/* ===========================================================
   Cards / grids
   =========================================================== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.section-head { max-width: 42rem; }
.section-head h2 { margin-top: 1rem; font-size: clamp(1.85rem, 3.6vw, 3rem); color: var(--primary); }
.section-head p { margin-top: 1.25rem; line-height: 1.75; color: var(--muted-foreground); }

.cat-card {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 1rem;
  transition: transform 0.5s var(--ease-smooth), border-color 0.5s, box-shadow 0.5s;
}
.cat-card:hover { transform: translateY(-8px); border-color: var(--accent); box-shadow: var(--shadow-lift); }
.cat-card .thumb { position: relative; height: 13rem; overflow: hidden; }
.cat-card .thumb img { height: 100%; width: 100%; object-fit: cover; transition: transform 1.2s var(--ease-smooth); }
.cat-card:hover .thumb img { transform: scale(1.1); }
.cat-card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(34, 55, 107, 0.7), transparent);
  opacity: 0.7;
}
.cat-card .body { padding: 1.75rem; }
.cat-card h3 { font-size: 1.25rem; color: var(--primary); }
.cat-card p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.7; color: var(--muted-foreground); }
.cat-card .more {
  margin-top: 1.5rem; display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.cat-card:hover .more .icon { transform: translateX(4px); }
.more .icon { transition: transform 0.3s; }

.tile { border-radius: 0.75rem; padding: 1.5rem; transition: transform 0.3s var(--ease-smooth), border-color 0.3s; }
.tile:hover { transform: translateY(-4px); border-color: var(--accent); }
.tile h3 { margin-top: 1rem; font-size: 0.875rem; color: var(--primary); }
.tile p { margin-top: 0.5rem; font-size: 0.78rem; line-height: 1.7; color: var(--muted-foreground); }
.tile .icon { color: var(--accent); }

.step-card { position: relative; overflow: hidden; border-radius: 1rem; padding: 1.75rem; transition: transform 0.5s var(--ease-smooth), border-color 0.5s; }
.step-card:hover { transform: translateY(-8px); border-color: var(--accent); }
.step-card .num {
  position: absolute; top: -0.75rem; right: 1rem;
  font-size: 3.75rem; font-weight: 800; color: var(--secondary);
  transition: color 0.5s;
}
.step-card:hover .num { color: rgba(63, 146, 184, 0.2); }
.step-card h3 { position: relative; margin-top: 1.25rem; font-size: 1.05rem; color: var(--primary); }
.step-card p { position: relative; margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.7; color: var(--muted-foreground); }
.step-card .icon { position: relative; color: var(--accent); }

.split { display: grid; gap: 3.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.framed { overflow: hidden; border-radius: 1rem; border: 1px solid var(--border); box-shadow: var(--shadow-lift); }
.framed img { width: 100%; height: 100%; object-fit: cover; }

/* ===========================================================
   CTA band
   =========================================================== */
.cta-band { position: relative; overflow: hidden; background: var(--primary); color: var(--primary-foreground); padding: 6rem 0; text-align: center; }
.cta-band .grid-lines { opacity: 0.3; }
.cta-band h2 { font-size: clamp(1.85rem, 4vw, 3rem); }
.cta-band p { margin: 1.25rem auto 0; max-width: 40rem; line-height: 1.75; opacity: 0.85; font-size: 0.95rem; }
.cta-band .actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ===========================================================
   Products page
   =========================================================== */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--surface); }
.page-hero .inner { position: relative; padding: 5rem 0; }
@media (min-width: 1024px) { .page-hero .inner { padding: 7rem 0; } }
.page-hero h1 { margin-top: 1rem; max-width: 48rem; font-size: clamp(2.25rem, 5.5vw, 3.75rem); color: var(--primary); }
.page-hero p { margin-top: 1.5rem; max-width: 40rem; line-height: 1.75; color: var(--muted-foreground); }

.jump-grid { margin-top: 3rem; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .jump-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.jump {
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 0.75rem; padding: 1rem 1.25rem;
  transition: transform 0.3s var(--ease-smooth), border-color 0.3s;
}
.jump:hover { transform: translateY(-4px); border-color: var(--accent); }
.jump span { font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.jump .icon { color: var(--accent); transition: transform 0.3s; }
.jump:hover .icon { transform: translateX(4px); }

.division { scroll-margin-top: 7rem; border-bottom: 1px solid var(--border); }
.division:nth-child(even) { background: var(--surface); }
.division .inner { padding: 5rem 0; display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .division .inner { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.division .aside { position: sticky; top: 8rem; }
@media (max-width: 1023px) { .division .aside { position: static; } }
.division .aside .framed img { height: 16rem; }
@media (min-width: 768px) { .division .aside .framed img { height: 20rem; } }
.division h2 { margin-top: 0.75rem; font-size: clamp(1.75rem, 3.5vw, 2.5rem); color: var(--primary); }
.division .blurb { margin-top: 1rem; font-size: 0.875rem; line-height: 1.75; color: var(--muted-foreground); }

.product-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.product-card { overflow: hidden; border-radius: 0.75rem; transition: transform 0.3s var(--ease-smooth), border-color 0.3s; }
.product-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.product-card .ph { aspect-ratio: 4 / 3; background: var(--secondary); overflow: hidden; display: grid; place-items: center; }
.product-card .ph img { height: 100%; width: 100%; object-fit: cover; transition: transform 0.7s var(--ease-smooth); }
.product-card:hover .ph img { transform: scale(1.05); }
.product-card .meta { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem; }
.product-card .meta .icon { color: var(--accent); margin-top: 2px; }
.product-card .meta p.name { font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.product-card .meta p.desc { margin-top: 0.25rem; font-size: 0.75rem; line-height: 1.6; color: var(--muted-foreground); }

/* ===========================================================
   About
   =========================================================== */
.rows { margin-top: 3rem; overflow: hidden; border-radius: 1rem; border: 1px solid var(--border); background: var(--border); display: grid; gap: 1px; }
.rows .row {
  display: grid; gap: 0.5rem; background: var(--card); padding: 1.75rem 2rem;
  transition: background-color 0.5s;
}
.rows .row:hover { background: var(--secondary); }
@media (min-width: 640px) { .rows .row { grid-template-columns: 180px 1fr; align-items: center; } }
.rows .row span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--primary); }
.rows .row p { font-size: 0.875rem; color: var(--muted-foreground); }

.value-card { border-radius: 1rem; padding: 2rem; transition: transform 0.5s var(--ease-smooth); }
.value-card:hover { transform: translateY(-8px); }
.value-card .icon { color: var(--primary); transition: transform 0.5s; }
.value-card:hover .icon { transform: scale(1.1); }
.value-card h2 { margin-top: 1.25rem; font-size: 1.25rem; }
.value-card p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.75; color: var(--muted-foreground); }

/* ===========================================================
   Contact
   =========================================================== */
.contact-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.contact-card { display: flex; align-items: center; gap: 1rem; border-radius: 1rem; padding: 1.5rem; transition: transform 0.3s var(--ease-smooth), border-color 0.3s; }
.contact-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.contact-card .bubble { display: grid; place-items: center; height: 3rem; width: 3rem; border-radius: 999px; flex: none; }
.bubble.wa { background: rgba(37, 211, 102, 0.12); color: var(--whatsapp); }
.bubble.tl { background: rgba(63, 146, 184, 0.12); color: var(--accent); }
.bubble.nv { background: rgba(34, 55, 107, 0.08); color: var(--primary); }
.contact-card p.t { font-size: 0.875rem; font-weight: 700; color: var(--primary); }
.contact-card p.s { margin-top: 0.25rem; font-size: 0.75rem; color: var(--muted-foreground); }

.socials { margin-top: 1rem; display: flex; gap: 0.75rem; }
.socials a {
  display: grid; place-items: center; height: 2.75rem; width: 2.75rem;
  border-radius: 999px; border: 1px solid var(--border); color: var(--muted-foreground);
  transition: transform 0.3s var(--ease-smooth), color 0.3s, border-color 0.3s;
}
.socials a:hover { transform: translateY(-4px); border-color: var(--accent); color: var(--accent); }

.form-panel { border-radius: 1rem; padding: 1.75rem; }
@media (min-width: 768px) { .form-panel { padding: 2.25rem; } }
.form-panel h2 { font-size: 1.5rem; color: var(--primary); }
.form-panel > p { margin-top: 0.5rem; font-size: 0.75rem; color: var(--muted-foreground); }
.fields { margin-top: 1.75rem; display: grid; gap: 1.25rem; }
.field label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-foreground); }
.field input, .field textarea {
  margin-top: 0.5rem; width: 100%; border-radius: 0.5rem; border: 1px solid var(--input);
  background: var(--background); padding: 0.75rem 1rem; font: inherit; font-size: 0.875rem;
  outline: none; transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { resize: none; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(63, 146, 184, 0.2); }
.form-panel .btn { margin-top: 1.75rem; width: 100%; justify-content: center; }
.form-note { margin-top: 1rem; font-size: 0.75rem; color: var(--accent); display: none; }
.form-note.show { display: block; }

/* ===========================================================
   Footer
   =========================================================== */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--border); background: var(--surface); }
.site-footer .inner { position: relative; padding: 4rem 0; }
.footer-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.site-footer img.flogo { height: 3rem; width: auto; }
.site-footer .about { margin-top: 1.25rem; max-width: 20rem; font-size: 0.875rem; line-height: 1.75; color: var(--muted-foreground); }
.site-footer h3 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--primary); }
.site-footer ul { margin-top: 1.25rem; display: grid; gap: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }
.site-footer ul a { transition: color 0.3s; }
.site-footer ul a:hover { color: var(--accent); }
.site-footer .mailrow { display: flex; align-items: flex-start; gap: 0.75rem; }
.site-footer .mailrow .icon { color: var(--accent); margin-top: 2px; }
.footer-bottom {
  margin-top: 3.5rem; display: flex; flex-direction: column; align-items: center; gap: 1rem;
  border-top: 1px solid var(--border); padding-top: 2rem; font-size: 0.75rem; color: var(--muted-foreground);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom .tag { letter-spacing: 0.2em; text-transform: uppercase; }

/* ---------- 404 / fallback content ---------- */
.entry { padding: 5rem 0; }
.entry h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--primary); }
.entry .content { margin-top: 1.5rem; line-height: 1.8; color: var(--muted-foreground); }
.entry .content p { margin-bottom: 1rem; }

/* ---------- Timeline ---------- */
.timeline { margin-top: 3.5rem; position: relative; padding-left: 2rem; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--border));
}
.tl-item { position: relative; padding: 0 0 2.25rem 1.5rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item .dot {
  position: absolute; left: -2rem; top: 4px; width: 16px; height: 16px; border-radius: 999px;
  background: var(--background); border: 3px solid var(--accent); box-shadow: 0 0 0 4px rgba(63, 146, 184, 0.14);
}
.tl-item h3 { font-size: 1.15rem; font-weight: 700; color: var(--primary); margin: 0 0 .4rem; }
.tl-item p { color: var(--muted); margin: 0; line-height: 1.7; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { padding: 2.25rem; }
.form-card h2 { font-size: 1.6rem; font-weight: 800; color: var(--primary); margin: 0 0 1.5rem; }
.enquiry-form { display: grid; gap: 1.1rem; }
.enquiry-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 620px) { .enquiry-form .row { grid-template-columns: 1fr; } }
.enquiry-form label { display: grid; gap: .45rem; }
.enquiry-form label > span {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary);
}
.enquiry-form label em { font-style: normal; color: var(--muted); font-weight: 500; letter-spacing: .04em; }
.enquiry-form input, .enquiry-form textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--foreground);
  background: var(--background); border: 1px solid var(--border); border-radius: 12px;
  padding: .85rem 1rem; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.enquiry-form input:focus, .enquiry-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(63, 146, 184, 0.14);
}
.enquiry-form textarea { resize: vertical; }
.enquiry-form button { justify-self: start; margin-top: .25rem; }

.notice {
  border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: 1.25rem; font-size: .92rem; font-weight: 600;
  animation: rise-in .5s ease both;
}
.notice.success { background: rgba(63, 146, 184, 0.12); color: var(--primary); border: 1px solid rgba(63, 146, 184, 0.35); }
.notice.error { background: rgba(200, 60, 60, 0.08); color: #a32020; border: 1px solid rgba(200, 60, 60, 0.28); }

.info-card { padding: 1.75rem; margin-bottom: 1.25rem; transition: transform .35s ease, box-shadow .35s ease; }
.info-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -34px rgba(34, 55, 107, 0.5); }
.info-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin: .9rem 0 .5rem; }
.info-card p { color: var(--muted); font-size: .93rem; line-height: 1.7; margin: 0 0 1rem; }
.info-card .socials { display: flex; gap: .6rem; }

/* ---------- Prose / pagination ---------- */
.prose { max-width: 780px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--primary); margin-bottom: 1.25rem; }
.prose h2 { font-size: 1.6rem; font-weight: 700; color: var(--primary); margin: 2rem 0 .75rem; }
.prose p, .prose li { color: var(--muted); line-height: 1.8; }
.prose a { color: var(--accent); }
.pagination { margin-top: 2rem; }
.pagination a, .pagination .current { display: inline-block; padding: .5rem .85rem; border: 1px solid var(--border); border-radius: 10px; margin-right: .4rem; }

/* ---------- Certifications strip ---------- */
.certs { border-top: 1px solid var(--border); background: var(--background); }
.certs .wrap { padding: 3.5rem 1.25rem; text-align: center; }
.certs-compact { border-top: 0; }
.certs-compact .wrap { padding: 2rem 1.25rem; }
.certs-label {
	font-size: .68rem; font-weight: 700; letter-spacing: .28em;
	text-transform: uppercase; color: var(--muted-foreground); margin: 0;
}
.certs-img {
	display: block; margin: 1.5rem auto 0; width: 100%; max-width: 900px; height: auto;
	opacity: .82; transition: opacity .5s ease;
}
.certs-compact .certs-img { max-width: 620px; }
.certs-img:hover { opacity: 1; }

/* ---------- Division banner ---------- */
.division-banner { overflow: hidden; border-bottom: 1px solid var(--border); background: #fff; }
.division-banner img {
	display: block; width: 100%; height: 180px; object-fit: cover; object-position: center;
	transform: scale(1.06); opacity: 0; transition: transform 1.1s cubic-bezier(.22,1,.36,1), opacity .8s ease;
}
.division-banner.is-visible img,
.division-banner[data-reveal].revealed img { transform: scale(1); opacity: 1; }

@media (min-width: 768px) { .division-banner img { height: 260px; } }
@media (min-width: 1280px) { .division-banner img { height: 320px; } }

/* ---------- Product card as button + zoom overlay ---------- */
button.product-card {
	display: block; width: 100%; text-align: left; border: 1px solid var(--border);
	background: var(--background); font: inherit; color: inherit; cursor: pointer;
	position: relative; padding: 0;
}
button.product-card .ph { position: relative; }
.product-card .zoom {
	position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 4 / 3;
	display: grid; place-items: center; opacity: 0; pointer-events: none;
	transition: opacity .3s ease;
}
.product-card:hover .zoom { opacity: 1; }
.product-card .zoom::before {
	content: ""; position: absolute; inset: 0; background: rgba(20, 38, 66, .45);
}
.product-card .zoom svg { position: relative; width: 26px; height: 26px; color: #fff; stroke: #fff; }

/* ---------- Lightbox ---------- */
.lightbox {
	position: fixed; inset: 0; z-index: 120; display: none; place-items: center;
	padding: 1.25rem; background: rgba(20, 38, 66, .7); backdrop-filter: blur(4px);
	opacity: 0; transition: opacity .28s ease;
}
.lightbox.open { display: grid; }
.lightbox.visible { opacity: 1; }
.lightbox-inner {
	position: relative; width: 100%; max-width: 780px; overflow: hidden;
	border-radius: 18px; border: 1px solid var(--border); background: var(--background);
	box-shadow: var(--shadow-lift, 0 30px 60px -30px rgba(0,0,0,.5));
	transform: translateY(16px) scale(.95); transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.lightbox.visible .lightbox-inner { transform: none; }
.lightbox-img { display: block; width: 100%; max-height: 62vh; object-fit: contain; background: var(--surface); }
.lightbox-meta { padding: 1.5rem; border-top: 1px solid var(--border); }
.lightbox-title { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--primary); }
.lightbox-desc { margin: .5rem 0 0; font-size: .875rem; line-height: 1.7; color: var(--muted-foreground); }
.lightbox-desc:empty { display: none; }
.lightbox-cta { margin-top: 1.25rem; }
.lightbox-close {
	position: absolute; top: .75rem; right: .75rem; z-index: 2; width: 40px; height: 40px;
	display: grid; place-items: center; border: 0; border-radius: 999px; cursor: pointer;
	background: rgba(255,255,255,.92); color: var(--primary); transition: background .25s ease, color .25s ease;
}
.lightbox-close:hover { background: var(--accent); color: #fff; }
