/* =========================================================================
   AlphaMed — Technical Luxury design system
   Clinical precision · institutional authority · refined craftsmanship
   ========================================================================= */

:root {
  /* Brand */
  --navy: #000b25;
  --navy-2: #0b2147;
  --navy-3: #17304f;
  --teal: #006a60;
  --teal-bright: #2a9d8f;
  --teal-tint: #8cf5e4;
  --gold: #cca830;
  --gold-bright: #e9c349;

  /* Surfaces */
  --surface: #f7fafd;
  --surface-2: #f1f4f7;
  --surface-3: #ebeef1;
  --white: #ffffff;

  /* Ink */
  --ink: #181c1e;
  --ink-2: #44474e;
  --ink-3: #6b6f76;

  /* Lines & shadow (blue-tinted, low opacity per DESIGN.md) */
  --line: #e2e8f0;
  --line-2: #d4dce6;
  --shadow-xs: 0 1px 2px rgba(11, 33, 71, 0.04);
  --shadow-sm: 0 6px 18px rgba(11, 33, 71, 0.05);
  --shadow-md: 0 18px 40px rgba(11, 33, 71, 0.08);
  --shadow-lg: 0 30px 70px rgba(0, 11, 37, 0.16);

  /* Shape — soft 0.25rem buttons, 0.5rem cards */
  --r-btn: 4px;
  --r-card: 8px;
  --r-pill: 999px;

  /* Type */
  --display: "Hanken Grotesk", system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;

  /* Layout */
  --container: min(1280px, 100vw - 48px);
  --container-narrow: min(1120px, 100vw - 48px);

  --nav-h: 84px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Kill the parent theme's root padding/margins so the hero starts at 0,0 */
html { margin: 0 !important; background: #050d21; }
body .wp-site-blocks {
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
  --wp--style--root--padding-top: 0px;
  --wp--style--root--padding-right: 0px;
  --wp--style--root--padding-bottom: 0px;
  --wp--style--root--padding-left: 0px;
  --wp--style--block-gap: 0px;
  /* Sticky footer: footer always sits at the bottom, even on short pages */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
/* Remove the block-gap margins between header / main / footer (the white seams) */
body .wp-site-blocks > * { margin-block: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.am-main { margin: 0 !important; flex: 1 0 auto; }
.am-footer { flex-shrink: 0; margin: 0 !important; }
.am-main > .elementor { margin: 0 !important; }
.am-main > .am-hero:first-child,
.am-main > .am-page-hero:first-child,
.am-main .elementor-section:first-child { margin-top: 0 !important; }
/* When logged in, sit the fixed nav below the WP admin bar */
body.admin-bar .am-nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .am-nav { top: 46px; } }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
}

p:empty,
.am-main > p { display: none; }

::selection { background: var(--teal-tint); color: var(--navy); }

.am-ic { width: 1.15em; height: 1.15em; flex: none; }

/* ---- Layout primitives ------------------------------------------------ */
.am-container { width: var(--container); margin-inline: auto; }
.am-main { overflow: clip; }

.am-section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }

.am-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--teal);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.am-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}
.am-eyebrow-light { color: var(--teal-tint); }

.am-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.am-head-center { margin-inline: auto; text-align: center; }
.am-head-center .am-eyebrow::before { display: none; }
.am-head h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; }

/* ---- Buttons ---------------------------------------------------------- */
.am-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.am-btn .am-ic { transition: transform 0.25s ease; }
.am-btn:hover .am-ic { transform: translateX(3px); }

.am-btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.am-btn-primary:hover { background: var(--navy-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.am-btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--navy);
  box-shadow: 0 10px 26px rgba(204, 168, 48, 0.32);
}
.am-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(204, 168, 48, 0.42); }

.am-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.am-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; transform: translateY(-2px); }

/* ---- Navigation ------------------------------------------------------- */
.am-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  border-bottom: 1px solid transparent;
  animation: amNavIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}
.am-nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: var(--container);
  margin-inline: auto;
  height: var(--nav-h);
}

/* Logo — white version over the dark hero, full-colour version on the solid bar */
.am-nav-logo { position: relative; display: inline-flex; align-items: center; flex: none; }
.am-nav-logo img { display: block; height: 44px; width: auto; object-fit: contain; transition: opacity 0.35s ease; }
.am-nav-logo .am-logo-overlay { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.am-nav-logo .am-logo-solid { opacity: 1; }
.am-nav-overlay:not(.is-scrolled):not(.is-menu-open) .am-nav-logo .am-logo-solid { opacity: 0; }
.am-nav-overlay:not(.is-scrolled):not(.is-menu-open) .am-nav-logo .am-logo-overlay { opacity: 1; }

/* Links */
.am-nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.am-nav-links > a {
  position: relative;
  padding: 9px 15px;
  border-radius: var(--r-btn);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}
.am-nav-links > a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 4px;
  height: 2px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.am-nav-links > a:hover::after { transform: scaleX(1); }

/* Overlay (transparent over a dark hero) */
.am-nav-overlay:not(.is-scrolled) .am-nav-links > a { color: rgba(255, 255, 255, 0.86); }
.am-nav-overlay:not(.is-scrolled) .am-nav-links > a:hover { color: #fff; }

/* Solid bar (scrolled, or inner pages) */
.am-nav.is-scrolled,
.am-nav-solid {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(0, 11, 37, 0.08);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.am-nav.is-scrolled .am-nav-links > a:hover,
.am-nav-solid .am-nav-links > a:hover { color: var(--navy); background: rgba(0, 106, 96, 0.06); }

/* CTA button */
.am-nav-cta {
  flex: none;
  min-height: 46px;
  padding: 0 20px;
  font-size: 14px;
  background: var(--navy);
  color: #fff;
}
.am-nav-cta:hover { background: var(--navy-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.am-nav-overlay:not(.is-scrolled) .am-nav-cta { background: transparent; border-color: rgba(255, 255, 255, 0.55); }
.am-nav-overlay:not(.is-scrolled) .am-nav-cta:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.am-nav-cta-mobile { display: none; }

/* Hamburger */
.am-nav-toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.am-nav-toggle svg { width: 26px; height: 26px; display: block; }
.am-nav-toggle .am-ic-close { display: none; }
.am-nav-toggle[aria-expanded="true"] .am-ic-menu { display: none; }
.am-nav-toggle[aria-expanded="true"] .am-ic-close { display: block; }
.am-nav-overlay:not(.is-scrolled):not(.is-menu-open) .am-nav-toggle { color: #fff; }

/* Scrim behind the transparent nav so the logo/links stay readable at the
   very top of the hero (removed once the solid bar kicks in on scroll). */
.am-nav-overlay::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 150px;
  background: linear-gradient(180deg, rgba(0, 11, 37, 0.6), rgba(0, 11, 37, 0));
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.am-nav-overlay.is-scrolled::before { opacity: 0; }

/* ---- Elementor full-bleed integration --------------------------------- */
/* AlphaMed widgets output their own full-width <section> with their own
   spacing. Strip Elementor's default section/column/widget gaps so the
   colored bands sit seamlessly with no background showing between them. */
.elementor-section,
.elementor-section > .elementor-container,
.elementor-widget-wrap > .elementor-widget[class*="elementor-widget-alphamed_"],
.elementor-element[class*="elementor-widget-alphamed_"] > .elementor-widget-container {
  margin: 0 !important;
}
.elementor-widget[class*="elementor-widget-alphamed_"] > .elementor-widget-container {
  padding: 0 !important;
}
.elementor-section.elementor-section-full_width > .elementor-container { padding: 0 !important; }
.am-page .elementor-widget-wrap { padding: 0 !important; }

/* ---- Hero ------------------------------------------------------------- */
.am-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(74vh, 640px);
  padding: calc(var(--nav-h) + 40px) 0 84px;
  overflow: hidden;
  color: #fff;
}
.am-hero-bg { position: absolute; inset: 0; z-index: 0; }
.am-hero-bg img {
  width: 100%;
  height: 116%;
  object-fit: cover;
  will-change: transform;
  animation: amKen 22s ease-in-out infinite alternate;
}
.am-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 11, 37, 0.92) 0%, rgba(0, 11, 37, 0.7) 42%, rgba(0, 11, 37, 0.38) 100%),
    linear-gradient(0deg, rgba(0, 11, 37, 0.85), transparent 55%);
}
.am-hero-grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(140, 245, 228, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 245, 228, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 70% 40%, #000, transparent 70%);
}
.am-orbit {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.32);
  box-shadow: 0 0 70px rgba(42, 157, 143, 0.22);
  pointer-events: none;
}
.am-orbit-1 { width: 210px; height: 210px; right: 9%; top: 22%; animation: amOrbit 7s ease-in-out infinite; }
.am-orbit-2 { width: 120px; height: 120px; right: 26%; bottom: 20%; animation: amOrbit 7s ease-in-out -2.5s infinite; }

.am-hero-content { position: relative; z-index: 2; max-width: 760px; }
.am-hero h1 {
  color: #fff;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-shadow: 0 6px 30px rgba(0, 11, 37, 0.5);
}
.am-hero-sub {
  max-width: 540px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
}
.am-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.am-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 56px);
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.am-hero-stats strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.am-hero-stats span { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.6); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

/* News ticker */
.am-ticker {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 26px;
  width: var(--container);
  transform: translateX(-50%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-card);
  background: rgba(0, 11, 37, 0.55);
  backdrop-filter: blur(14px);
}
.am-ticker-track { display: flex; width: max-content; gap: 48px; padding: 13px 28px; animation: amTicker 36s linear infinite; }
.am-ticker:hover .am-ticker-track { animation-play-state: paused; }
.am-ticker span { white-space: nowrap; color: rgba(255, 255, 255, 0.88); font-size: 13px; font-weight: 500; letter-spacing: 0.02em; display: inline-flex; align-items: center; }
.am-ticker span::before { content: ""; width: 7px; height: 7px; margin-right: 14px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 12px rgba(233, 195, 73, 0.8); }

/* ---- Timeline --------------------------------------------------------- */
.am-timeline { background: var(--white); }
.am-timeline-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}
.am-timeline-track::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 12%, var(--line-2) 88%, transparent);
}
.am-timeline-node { position: relative; padding-top: 30px; }
.am-timeline-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 5px var(--surface), 0 0 0 6px var(--line-2);
  transition: background 0.3s ease, transform 0.3s ease;
}
.am-timeline-node:hover .am-timeline-dot { background: var(--teal); transform: scale(1.25); }
.am-timeline-node strong { display: block; font-family: var(--display); font-size: 22px; color: var(--navy); }
.am-timeline-node p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; max-width: 220px; }

/* ---- Mission / Vision ------------------------------------------------- */
.am-mv { background: var(--surface-2); }
.am-mv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.am-mv-card {
  position: relative;
  padding: clamp(32px, 4vw, 52px);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: var(--r-card);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.am-mv-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 24px; border-radius: var(--r-card); background: rgba(0, 106, 96, 0.08); color: var(--teal); }
.am-mv-icon .am-ic { width: 30px; height: 30px; }
.am-mv-card h3 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; }
.am-mv-card p { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.65; }
.am-mv-vision { background: var(--navy); border-top-color: var(--gold); }
.am-mv-vision h3 { color: #fff; }
.am-mv-vision p { color: rgba(255, 255, 255, 0.74); }
.am-mv-vision .am-mv-icon { background: rgba(140, 245, 228, 0.12); color: var(--teal-tint); }

/* ---- Values ----------------------------------------------------------- */
.am-values { background: var(--white); }
.am-values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.am-value-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.am-value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(0, 106, 96, 0.4); }
.am-value-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: var(--r-btn); background: rgba(0, 106, 96, 0.1); color: var(--teal); }
.am-value-card h3 { font-size: 19px; margin-bottom: 8px; }
.am-value-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ---- Trust ------------------------------------------------------------ */
.am-trust { background: var(--navy); color: #fff; overflow: hidden; }
.am-dotfield {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(circle at 1px 1px, rgba(140, 245, 228, 0.16) 1px, transparent 0);
  background-size: 38px 38px;
  animation: amDrift 30s linear infinite;
}
.am-trust-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.am-trust-copy h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; }
.am-trust-lead { margin: 18px 0 0; color: rgba(255, 255, 255, 0.72); font-size: 18px; }
.am-trust-points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.am-trust-points article {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.am-trust-points article:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.09); border-color: rgba(212, 175, 55, 0.4); }
.am-trust-points span { display: inline-grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: var(--r-btn); background: rgba(140, 245, 228, 0.12); color: var(--teal-tint); }
.am-trust-points h3 { color: #fff; font-size: 16px; }

/* ---- Products --------------------------------------------------------- */
.am-products { background: var(--surface); }
.am-products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.am-product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.am-product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.am-product-media { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--navy); }
.am-product-img, .am-product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.am-product-card:hover .am-product-img, .am-product-card:hover .am-product-media img { transform: scale(1.07); }
.am-product-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--navy-2), var(--teal)); }
.am-product-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(247, 250, 253, 0.92);
  color: var(--teal);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.am-product-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.am-product-body h3 { font-size: 21px; line-height: 1.2; }
.am-product-body p { margin: 0; color: var(--ink-2); font-size: 14.5px; flex: 1; }
.am-product-link { display: inline-flex; align-items: center; gap: 7px; color: var(--teal); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.am-product-card:hover .am-product-link .am-ic { transform: translateX(4px); }
.am-product-body h3 a { color: inherit; text-decoration: none; }
.am-product-body h3 a:hover { color: var(--teal); }

/* ---- WhatsApp order button -------------------------------------------- */
.am-btn-whatsapp {
  background: linear-gradient(135deg, #2fc45f, #128c4a);
  color: #fff; border-color: transparent;
  box-shadow: 0 10px 26px rgba(18, 140, 74, 0.28);
}
.am-btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(18, 140, 74, 0.42); color: #fff; }
.am-btn-whatsapp:active { transform: translateY(0); }
.am-btn-whatsapp .am-wa-ic { display: inline-flex; margin-right: -2px; }
.am-btn-whatsapp .am-wa-ic svg { width: 19px; height: 19px; fill: currentColor; }
.am-btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.am-product-order { margin-top: auto; align-self: flex-start; }
.am-product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.am-product-cats { margin-top: 18px; color: var(--ink-3); font-size: 14px; }
.am-product-cats a { color: var(--teal); text-decoration: none; }
.am-product-cats a:hover { text-decoration: underline; }

/* ---- Product category tiles ------------------------------------------- */
.am-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.am-cat-card {
  display: flex; flex-direction: column; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--white); overflow: hidden; box-shadow: var(--shadow-xs);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.am-cat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.am-cat-media { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--navy); }
.am-cat-img, .am-cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.am-cat-card:hover .am-cat-img { transform: scale(1.07); }
.am-cat-media .am-product-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.am-cat-count {
  position: absolute; top: 14px; left: 14px; padding: 6px 12px;
  border-radius: var(--r-pill); background: rgba(247, 250, 253, 0.92);
  color: var(--teal); font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; backdrop-filter: blur(6px);
}
.am-cat-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.am-cat-body h3 { font-size: 21px; line-height: 1.2; color: var(--ink); }
.am-cat-body h3 a { color: inherit; text-decoration: none; }
.am-cat-card:hover .am-cat-body h3 a { color: var(--teal); }
.am-cat-body p { margin: 0; color: var(--ink-2); font-size: 14.5px; flex: 1; }
.am-cat-body .am-product-link { text-decoration: none; margin-top: 4px; }
.am-cat-card:hover .am-product-link .am-ic { transform: translateX(4px); }
.am-empty { color: var(--ink-3); text-align: center; grid-column: 1 / -1; padding: 40px 0; }

/* ---- Breadcrumb ------------------------------------------------------- */
.am-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); margin-bottom: 22px; }
.am-breadcrumb a { color: var(--teal); text-decoration: none; }
.am-breadcrumb a:hover { text-decoration: underline; }
.am-breadcrumb-sep { color: var(--line-2); }
.am-breadcrumb [aria-current="page"] { color: var(--ink-2); font-weight: 600; }

/* ---- Category "View all" button --------------------------------------- */
.am-cat-viewall { text-align: center; margin-top: 34px; }

/* ---- Single product: images as a swipeable carousel ------------------- */
.am-carousel { position: relative; margin-block: 8px 22px; }
.am-product-single .wp-block-gallery {
  margin: 0; display: flex; flex-wrap: nowrap; gap: 0;
  overflow-x: auto; scroll-snap-type: x mandatory;
  border-radius: var(--r-card); background: var(--navy);
  aspect-ratio: 4 / 3; scrollbar-width: none;
}
.am-product-single .wp-block-gallery::-webkit-scrollbar { display: none; }
.am-product-single .wp-block-gallery .wp-block-image {
  flex: 0 0 100%; width: 100%; height: 100%; margin: 0; scroll-snap-align: center;
}
.am-product-single .wp-block-gallery .wp-block-image img { width: 100%; height: 100%; object-fit: contain; }
.am-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.94);
  color: var(--navy); cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow-md); backdrop-filter: blur(6px); z-index: 2;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.28s ease, color 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.am-carousel-btn svg { width: 20px; height: 20px; display: block; }
.am-carousel-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-50%) scale(1.07); box-shadow: var(--shadow-lg); }
.am-carousel-btn:active { transform: translateY(-50%) scale(0.95); }
.am-carousel-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 106, 96, 0.35), var(--shadow-md); }
.am-carousel-prev { left: 16px; }
.am-carousel-next { right: 16px; }
@media (max-width: 600px) {
  .am-carousel-btn { width: 40px; height: 40px; }
  .am-carousel-prev { left: 10px; }
  .am-carousel-next { right: 10px; }
}
.am-product-actions:empty { display: none; }

/* ---- Single product: two-column detail layout ------------------------- */
.am-product-top { background: var(--navy); padding: calc(var(--nav-h) + 24px) 0 24px; }
.am-product-top .am-breadcrumb { margin: 0; color: rgba(255, 255, 255, 0.6); }
.am-product-top .am-breadcrumb a { color: rgba(255, 255, 255, 0.9); }
.am-product-top .am-breadcrumb a:hover { color: #fff; }
.am-product-top .am-breadcrumb-sep { color: rgba(255, 255, 255, 0.3); }
.am-product-top .am-breadcrumb [aria-current="page"] { color: #fff; }

.am-product-detail { padding-top: 46px; }
.am-product-layout { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 46px; align-items: start; }
.am-product-gallery { position: sticky; top: calc(var(--nav-h) + 18px); }
.am-product-gallery .am-carousel { margin: 0; }
img.am-product-solo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--navy); border-radius: var(--r-card); }
span.am-product-solo { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-card); background: linear-gradient(135deg, var(--navy), var(--navy-2)); }

.am-product-info { padding-top: 2px; }
.am-product-info-cat {
  display: inline-flex; align-items: center; padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--surface); color: var(--teal); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--line);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.am-product-info-cat:hover { background: var(--white); border-color: var(--teal); }
.am-product-info-title { font-size: clamp(28px, 4vw, 38px); line-height: 1.12; margin: 16px 0 0; color: var(--ink); }
.am-product-desc { margin-top: 18px; color: var(--ink-2); font-size: 15.5px; line-height: 1.75; }
.am-product-desc > :first-child { margin-top: 0; }
.am-product-detail .am-product-actions { margin-top: 30px; }
.am-btn-brochure { background: transparent; color: var(--navy); border-color: var(--line-2); }
.am-btn-brochure:hover { background: var(--surface); border-color: var(--navy); transform: translateY(-2px); }
.am-btn-brochure .am-ic { transform: rotate(90deg); }

@media (max-width: 900px) {
  .am-product-layout { grid-template-columns: 1fr; gap: 26px; }
  .am-product-gallery { position: static; }
  .am-product-detail { padding-top: 34px; }
}

/* ---- Testimonials: sliding row of tiles -------------------------------- */
.am-testimonials { background: var(--surface); }
.am-tm-slider { position: relative; }
.am-tm-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 6px 2px 12px; align-items: stretch;
}
.am-tm-track::-webkit-scrollbar { display: none; }
.am-tm-card {
  flex: 0 0 calc((100% - 44px) / 3); scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 16px; padding: 30px 28px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-xs);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.am-tm-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.am-tm-quote { color: var(--gold); line-height: 0; }
.am-tm-quote svg { width: 32px; height: 32px; }
.am-tm-card blockquote {
  margin: 0; flex: 1; font-family: var(--display); font-weight: 500;
  font-size: 17px; line-height: 1.6; letter-spacing: -0.01em; color: var(--ink);
}
.am-tm-author { display: flex; align-items: center; gap: 13px; margin-top: 2px; }
.am-tm-avatar { width: 48px; height: 48px; border-radius: 999px; overflow: hidden; flex: 0 0 auto; background: var(--surface); box-shadow: var(--shadow-xs); }
.am-tm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.am-tm-meta { display: flex; flex-direction: column; }
.am-tm-meta strong { font-family: var(--display); font-size: 15.5px; font-weight: 600; color: var(--ink); }
.am-tm-meta span { font-size: 13px; color: var(--ink-3); }

.am-tm-nav[hidden] { display: none; }
.am-tm-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; }
.am-tm-arrow {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); color: var(--navy); display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.am-tm-arrow svg { width: 20px; height: 20px; }
.am-tm-arrow:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.am-tm-arrow:active { transform: scale(0.94); }
.am-tm-dots { display: flex; align-items: center; gap: 8px; }
.am-tm-dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px; background: var(--line-2); cursor: pointer; transition: width 0.25s ease, background 0.25s ease; }
.am-tm-dot.is-active { width: 22px; background: var(--teal); }

@media (max-width: 960px) { .am-tm-card { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 600px) { .am-tm-card { flex-basis: 86%; } }

/* ---- Careers / application form --------------------------------------- */
.am-careers { background: var(--surface); }
.am-careers-inner { max-width: 720px; margin-inline: auto; }
.am-careers-head { text-align: center; margin-bottom: 28px; }
.am-careers-head h2 { font-size: clamp(26px, 3.4vw, 34px); }
.am-careers-intro { color: var(--ink-2); margin-top: 10px; }
.am-cform {
  display: flex; flex-direction: column; gap: 16px; padding: 30px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm);
}
.am-cform-row { display: flex; gap: 16px; }
.am-cform-row > .am-field { flex: 1 1 0; min-width: 0; }
.am-field { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-transform: none; letter-spacing: 0; }
.am-field > span b { color: #c0392b; font-weight: 700; }
.am-field > span small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.am-cform .am-field input, .am-cform .am-field select, .am-cform .am-field textarea {
  font-family: inherit; font-weight: 400; font-size: 16px; /* >=16px stops iOS zoom */
  width: 100%; margin-top: 2px; padding: 12px 13px; border: 1px solid var(--line-2); border-radius: var(--r-btn);
  background: var(--white); color: var(--ink);
}
.am-cform .am-field textarea { resize: vertical; min-height: 96px; }
.am-cform .am-field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b6f76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.am-cform .am-field input:focus, .am-cform .am-field select:focus, .am-cform .am-field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 106, 96, 0.14); }
.am-cform .am-field-file input[type="file"] { padding: 10px 12px; background: var(--surface); cursor: pointer; font-size: 14px; color: var(--ink); }
.am-cform .am-field-file input[type="file"]::file-selector-button {
  font: inherit; font-weight: 600; margin-right: 12px; padding: 8px 15px; border: none; border-radius: var(--r-btn);
  background: var(--navy); color: #fff; cursor: pointer; transition: background 0.2s ease;
}
.am-cform .am-field-file input[type="file"]::file-selector-button:hover { background: var(--navy-2); }
.am-cform-actions { margin-top: 6px; }
.am-cform-actions .am-btn { width: 100%; }
.am-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.am-cform-note { max-width: 720px; margin: 0 auto 22px; padding: 14px 18px; border-radius: var(--r-btn); font-size: 14.5px; }
.am-cform-ok { background: #e7f6ef; border: 1px solid #a9dcc4; color: #14663f; }
.am-cform-err { background: #fdecea; border: 1px solid #f2b8b1; color: #a12a1e; }
@media (max-width: 560px) {
  .am-cform { padding: 22px; }
  .am-cform-row { flex-direction: column; gap: 16px; }
}

/* ---- WhatsApp order modal --------------------------------------------- */
body.am-wa-open { overflow: hidden; }
.am-wa-modal[hidden] { display: none; }
.am-wa-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.am-wa-backdrop { position: absolute; inset: 0; background: rgba(0, 11, 37, 0.55); backdrop-filter: blur(3px); }
.am-wa-dialog {
  position: relative; width: min(460px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow-lg);
  padding: 30px 28px 26px;
}
.am-wa-x {
  position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border: none;
  background: transparent; font-size: 26px; line-height: 1; color: var(--ink-3); cursor: pointer; border-radius: 999px;
}
.am-wa-x:hover { background: var(--surface); color: var(--ink); }
.am-wa-title { font-size: 22px; margin: 0 0 4px; }
.am-wa-product { margin: 0 0 18px; color: var(--teal); font-weight: 600; }
.am-wa-form { display: flex; flex-direction: column; gap: 14px; }
.am-wa-field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.am-wa-req { color: #c0392b; }
.am-wa-field input {
  font-family: inherit; font-weight: 400; font-size: 16px; /* >=16px stops iOS zoom-on-focus */
  padding: 12px 13px; border: 1px solid var(--line-2); width: 100%;
  border-radius: var(--r-btn); background: var(--white); color: var(--ink);
}
.am-wa-field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 106, 96, 0.14); }
.am-wa-field input.am-wa-invalid { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.14); }
.am-wa-form .am-btn-whatsapp { margin-top: 6px; }

/* ---- Partners — luxury logo marquee ----------------------------------- */
.am-partners { background: var(--white); overflow: hidden; }
.am-partners-head { max-width: 720px; margin-bottom: 52px; }
.am-partners-head h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.12; }

.am-marquee {
  position: relative;
  width: 100%;
  min-height: 76px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.am-marquee:not(.is-ready) .am-marquee-row { visibility: hidden; animation-play-state: paused; }
.am-marquee-row { display: flex; width: max-content; min-width: max-content; will-change: transform; animation: amMarquee 48s linear infinite; transform: translate3d(0, 0, 0); backface-visibility: hidden; }
.am-marquee:hover .am-marquee-row { animation-play-state: paused; }
.am-marquee-group { display: flex; align-items: center; flex: 0 0 auto; }

.am-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 76px;
  padding: 0 52px;
  white-space: nowrap;
  color: #97a1b0;
  filter: grayscale(1);
  opacity: 0.6;
  transition: opacity 0.4s ease, filter 0.4s ease, color 0.4s ease;
}
.am-brand::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 32px;
  background: var(--line);
}
.am-marquee .am-brand-logo { display: block; flex: 0 0 auto; width: auto !important; height: auto !important; max-width: 150px !important; max-height: 42px !important; object-fit: contain; }
.am-brand-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--display);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.01em;
  color: inherit;
}
.am-brand:hover { opacity: 1; filter: grayscale(0); color: var(--navy); }

@keyframes amMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .am-marquee-row { animation: none; flex-wrap: wrap; justify-content: center; } }

/* ---- Certifications --------------------------------------------------- */
.am-certs { background: var(--surface-2); }
.am-certs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.am-cert-card {
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: var(--r-card);
  background: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.am-cert-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.am-cert-seal { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 auto 16px; overflow: hidden; border-radius: 50%; background: rgba(204, 168, 48, 0.12); color: var(--gold); line-height: 0; }
.am-cert-seal .am-ic { width: 28px; height: 28px; }
/* Certificate image: centered both ways inside the gold badge, fit to any size/aspect. */
.am-cert-badge { display: block; width: auto; height: auto; max-width: 80%; max-height: 80%; object-fit: contain; margin: auto; }
.am-cert-card h3 { font-size: 18px; }
.am-cert-card p { margin: 6px 0 0; color: var(--ink-2); font-size: 13px; }

/* ---- Team — horizontal scroll carousel, compact tiles ----------------- */
.am-team { background: var(--white); }
.am-team-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 16px;
  margin-inline: -2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 106, 96, 0.4) transparent;
}
.am-team-grid::-webkit-scrollbar { height: 7px; }
.am-team-grid::-webkit-scrollbar-track { background: var(--surface-3); border-radius: var(--r-pill); }
.am-team-grid::-webkit-scrollbar-thumb { background: rgba(0, 106, 96, 0.4); border-radius: var(--r-pill); }
.am-team-grid::-webkit-scrollbar-thumb:hover { background: var(--teal); }
.am-team-card { flex: 0 0 196px; scroll-snap-align: start; text-align: left; }
.am-team-photo { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-card); overflow: hidden; background: var(--surface-3); box-shadow: var(--shadow-sm); }
.am-team-photo-empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-2), var(--teal)); }
.am-team-initials { font-family: var(--display); font-size: 36px; font-weight: 700; color: rgba(255, 255, 255, 0.92); letter-spacing: 0.02em; }
.am-team-img, .am-team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.am-team-card:hover .am-team-img { transform: scale(1.05); }
.am-team-li { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-btn); background: rgba(255, 255, 255, 0.92); color: var(--navy); opacity: 0; transform: translateY(8px); transition: opacity 0.3s ease, transform 0.3s ease; }
.am-team-li svg { width: 16px; height: 16px; }
.am-team-card:hover .am-team-li { opacity: 1; transform: translateY(0); }
.am-team-card h3 { margin: 12px 0 2px; font-size: 16px; }
.am-team-card p { margin: 0; color: var(--ink-2); font-size: 13px; }

/* ---- Team: featured primary member ------------------------------------ */
.am-team-lead { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: center; max-width: 940px; margin: 0 auto 42px; }
.am-team-lead-photo { aspect-ratio: 1 / 1; border-radius: var(--r-card); overflow: hidden; background: var(--navy); box-shadow: var(--shadow-md); }
.am-team-lead-photo img { width: 100%; height: 100%; object-fit: cover; }
.am-team-lead-role { color: var(--teal); font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.am-team-lead-body h3 { font-size: clamp(24px, 3vw, 30px); line-height: 1.15; margin: 8px 0 12px; }
.am-team-lead-body p { color: var(--ink-2); line-height: 1.75; margin: 0 0 18px; }
.am-team-lead-li { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 600; text-decoration: none; font-size: 14px; }
.am-team-lead-li svg { width: 18px; height: 18px; fill: currentColor; }
.am-team-lead-li:hover { color: var(--teal-bright); }
@media (max-width: 700px) {
  .am-team-lead { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .am-team-lead-photo { max-width: 220px; margin: 0 auto; }
  .am-team-lead-li { justify-content: center; }
}

/* ---- Shared slider controls (team members) ---------------------------- */
.am-slider { position: relative; }
.am-slider-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 12px; }
.am-slider-track::-webkit-scrollbar { display: none; }
.am-slider-nav[hidden] { display: none; }
.am-slider-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
.am-slider-arrow {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); color: var(--navy); display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.am-slider-arrow svg { width: 20px; height: 20px; }
.am-slider-arrow:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.am-slider-dots { display: flex; align-items: center; gap: 8px; }
.am-slider-dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px; background: var(--line-2); cursor: pointer; transition: width 0.25s ease, background 0.25s ease; }
.am-slider-dot.is-active { width: 22px; background: var(--teal); }
.am-team-slider .am-team-card { flex: 0 0 200px; scroll-snap-align: start; }

/* ---- FAQ -------------------------------------------------------------- */
.am-faq { background: var(--surface); }
.am-faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.am-faq-intro h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.12; }
.am-faq-intro p { color: var(--ink-2); font-size: 17px; }
.am-faq-list { display: grid; gap: 12px; }
.am-faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.am-faq-item[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.am-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--navy);
}
.am-faq-item summary::-webkit-details-marker { display: none; }
.am-faq-plus { position: relative; width: 18px; height: 18px; flex: none; }
.am-faq-plus::before, .am-faq-plus::after { content: ""; position: absolute; inset: 50% 0 auto; height: 2px; border-radius: 2px; background: var(--teal); transform: translateY(-50%); transition: transform 0.3s ease; }
.am-faq-plus::after { transform: translateY(-50%) rotate(90deg); }
.am-faq-item[open] .am-faq-plus::after { transform: translateY(-50%) rotate(0); }
.am-faq-answer { overflow: hidden; }
.am-faq-answer p { margin: 0; padding: 0 22px 22px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }

/* ---- Contact ---------------------------------------------------------- */
.am-contact { background: var(--navy); color: #fff; }
.am-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.am-contact-copy h2 { color: #fff; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; margin-bottom: 14px; }
.am-contact-copy h3 { color: var(--teal-tint); font-size: 16px; font-weight: 600; margin-bottom: 22px; }
.am-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.am-contact-list li { display: flex; align-items: center; gap: 14px; color: rgba(255, 255, 255, 0.82); font-size: 16px; }
.am-contact-list .am-ic { color: var(--teal-tint); }
.am-contact-list a:hover { color: #fff; }
.am-contact-map {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 2px solid var(--gold);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  line-height: 0;
}
.am-contact-map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }
.am-contact-form {
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 2px solid var(--gold);
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}
.am-form { display: grid; gap: 16px; }
.am-form label { display: grid; gap: 7px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.am-form input, .am-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-btn);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-family: var(--body);
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.am-form input::placeholder, .am-form textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.am-form input:focus, .am-form textarea:focus { outline: none; border-color: var(--teal-tint); background: rgba(255, 255, 255, 0.1); box-shadow: 0 0 0 3px rgba(140, 245, 228, 0.15); }
.am-form button { margin-top: 4px; }
.am-form-note { margin: 0; color: rgba(255, 255, 255, 0.5); font-size: 12px; text-transform: none; letter-spacing: 0; }
/* Style FluentForm submit if used */
.am-contact-form .ff-btn-submit, .am-contact-form .frm-fluent-form button[type="submit"] {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold)) !important;
  color: var(--navy) !important;
  border: 0 !important;
}

/* ---- CTA band --------------------------------------------------------- */
.am-cta { background: radial-gradient(circle at 85% 0%, rgba(42, 157, 143, 0.28), transparent 42%), linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.am-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.am-cta h2 { color: #fff; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.1; max-width: 660px; }
.am-cta p { margin: 12px 0 0; color: rgba(255, 255, 255, 0.74); max-width: 560px; font-size: 17px; }
@media (max-width: 700px) { .am-cta-inner { flex-direction: column; align-items: flex-start; } }

/* ---- Footer ----------------------------------------------------------- */
.am-footer { padding: clamp(48px, 6vw, 72px) 0 24px; background: #050d21; color: rgba(255, 255, 255, 0.7); }
.am-footer-grid { display: grid; grid-template-columns: minmax(260px, 1.25fr) minmax(130px, 0.7fr) minmax(150px, 0.8fr) minmax(220px, 1fr); gap: clamp(22px, 3vw, 34px); align-items: start; max-width: 1060px; }
.am-footer-logo { height: 40px; width: auto; margin-bottom: 18px; }
.am-footer-brand p { margin: 0 0 20px; font-size: 14.5px; max-width: 300px; }
.am-social { display: flex; gap: 10px; }
.am-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--r-btn); color: rgba(255, 255, 255, 0.8); transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease; }
.am-social a:hover { background: var(--teal); color: #fff; border-color: var(--teal); transform: translateY(-3px); }
.am-social svg { width: 18px; height: 18px; }
.am-footer-col h3 { color: #fff; font-size: 15px; letter-spacing: 0.02em; margin-bottom: 14px; }
.am-footer-col a { display: block; margin: 9px 0; font-size: 14.5px; transition: color 0.2s ease, padding 0.2s ease; }
.am-footer-col a:hover { color: var(--teal-tint); padding-left: 4px; }
.am-footer-col p { margin: 0; font-size: 14.5px; line-height: 1.8; }
.am-footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; }
.am-footer-bottom a:hover { color: #fff; }

/* Back to top */
.am-back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: var(--r-btn);
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.am-back-top .am-ic { transform: rotate(-90deg); width: 20px; height: 20px; }
.am-back-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.am-back-top:hover { background: var(--teal); }

/* ---- Inner page hero / content --------------------------------------- */
.am-page-hero {
  padding: calc(var(--nav-h) + 64px) 0 72px;
  background: radial-gradient(circle at 80% 0%, rgba(42, 157, 143, 0.25), transparent 40%), linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
}
.am-page-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 60px); max-width: 880px; }
.am-page-hero p { max-width: 640px; margin-top: 14px; color: rgba(255, 255, 255, 0.76); font-size: 18px; }
.am-page-hero .am-container { position: relative; z-index: 2; }
.am-page-hero-image { overflow: hidden; }
.am-page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.am-page-hero-veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0, 11, 37, 0.92), rgba(0, 11, 37, 0.6) 60%, rgba(0, 11, 37, 0.4)); }
.am-archive { background: var(--surface); }
.am-page-hero-404 { display: grid; align-items: center; min-height: 70vh; }
.am-page-hero-404 .am-btn { margin-top: 12px; }
.am-content { max-width: 820px; }
.am-content > * { margin-block: 0 1.1em; }
.am-content h2 { margin-top: 1.6em; font-size: 28px; }
.am-content a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.am-page-title { max-width: var(--container-narrow); margin: calc(var(--nav-h) + 40px) auto 8px; padding-inline: 24px; font-size: clamp(32px, 4vw, 52px); }

/* ---- Animations ------------------------------------------------------- */
[data-am-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms); }
[data-am-reveal].is-visible { opacity: 1; transform: none; }
.am-rise { opacity: 0; transform: translateY(24px); animation: amRise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms) forwards; }

@keyframes amRise { to { opacity: 1; transform: none; } }
@keyframes amNavIn { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes amKen { from { transform: scale(1.05) translateY(0); } to { transform: scale(1.14) translateY(-3%); } }
@keyframes amOrbit { 0%, 100% { opacity: 0.3; transform: scale(0.92) translate(0, 0); } 50% { opacity: 0.85; transform: scale(1.12) translate(-12px, 10px); } }
@keyframes amTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes amDrift { from { transform: translate(0, 0); } to { transform: translate(38px, 38px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-am-reveal] { opacity: 1; transform: none; }
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 1120px) {
  .am-partners-grid { grid-template-columns: repeat(4, 1fr); }
  .am-team-grid { grid-template-columns: repeat(2, 1fr); }
  .am-certs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --nav-h: 70px; }
  .am-nav-inner { gap: 14px; }
  .am-nav-logo img { height: 38px; }
  .am-nav-toggle { display: grid; order: 3; }
  .am-nav-cta { display: none; }

  /* Menu icon: navy on the solid/open bar; white inside a glass chip over the
     hero so it always stays clearly visible on any background. */
  .am-nav-overlay:not(.is-scrolled):not(.is-menu-open) .am-nav-toggle {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--r-btn);
    backdrop-filter: blur(6px);
  }

  /* Open menu forces a solid bar so the logo + close icon stay visible. */
  .am-nav.is-menu-open {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--line);
    box-shadow: 0 8px 30px rgba(0, 11, 37, 0.08);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
  }

  /* Full-width dropdown panel under the bar */
  .am-nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 6px 0 14px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 44px rgba(0, 11, 37, 0.16);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
  }
  .am-nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .am-nav-links > a {
    padding: 15px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink) !important;
    border-bottom: 1px solid var(--surface-3);
  }
  .am-nav-links > a:last-of-type { border-bottom: 0; }
  .am-nav-links > a:hover { background: var(--surface-2); color: var(--teal) !important; }
  .am-nav-links > a::after { display: none; }
  .am-nav-cta-mobile { display: inline-flex; justify-content: center; margin: 14px 24px 0; min-height: 52px; }

  .am-mv-grid, .am-trust-grid, .am-faq-grid, .am-contact-grid { grid-template-columns: 1fr; }
  .am-values-grid, .am-products-grid, .am-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .am-footer-grid { max-width: var(--container); grid-template-columns: 1.2fr 1fr 1fr; gap: 30px 24px; }
  .am-footer-brand { grid-column: 1 / -1; }
  .am-timeline-track { grid-auto-flow: row; grid-auto-columns: auto; gap: 0; padding-left: 26px; }
  .am-timeline-track::before { top: 0; bottom: 0; left: 7px; right: auto; width: 1px; height: auto; background: var(--line-2); }
  .am-timeline-node { padding: 0 0 28px 26px; }
  .am-timeline-dot { left: -26px; top: 4px; }
  .am-timeline-node p { max-width: none; }
  .am-trust-points { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  :root { --container: calc(100vw - 28px); }
  .am-hero { min-height: auto; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 96px; }
  .am-hero-actions { flex-direction: column; align-items: stretch; }
  .am-hero-stats { gap: 22px; }
  .am-values-grid, .am-products-grid, .am-cat-grid, .am-partners-grid, .am-certs-grid, .am-team-grid, .am-trust-points { grid-template-columns: 1fr; }
  .am-footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 22px; }
  .am-footer-brand { grid-column: 1 / -1; }
  .am-footer-bottom { flex-direction: column; }
  .am-ticker { bottom: 16px; }
  .am-mv-card, .am-value-card { padding: 26px; }
  .am-marquee { min-height: 72px; -webkit-mask-image: none; mask-image: none; }
  .am-marquee-row { animation-duration: 34s; }
  .am-brand { width: 188px; height: 72px; padding: 0 18px; gap: 10px; opacity: 0.82; overflow: hidden; }
  .am-marquee .am-brand-logo { width: 104px !important; height: 34px !important; max-width: 104px !important; max-height: 34px !important; }
  .am-brand-name { font-size: 16px; max-width: 70px; }
}

@media (max-width: 380px) {
  .am-footer-grid { grid-template-columns: 1fr; }
}

/* ---- Mobile refinements for the catalog / order flow ------------------ */
@media (max-width: 600px) {
  /* Full-width, easy-to-tap action buttons */
  .am-product-actions { flex-direction: column; align-items: stretch; }
  .am-product-actions .am-btn { width: 100%; }
  .am-product-order { align-self: stretch; width: 100%; margin-top: 14px; }
  .am-cat-viewall .am-btn { width: 100%; }

  /* Product carousel: a touch shorter so it doesn't dominate the screen */
  .am-product-single .wp-block-gallery { aspect-ratio: 4 / 3; }

  /* Order modal fits small screens comfortably */
  .am-wa-modal { padding: 14px; align-items: end; }
  .am-wa-dialog { padding: 26px 20px 22px; max-height: 92vh; }
  .am-wa-title { font-size: 20px; }
}
