/* =========================================================
   SKI Overseas Exports Pvt. Ltd. — Custom Design System
   Complements Tailwind utility classes with bespoke components,
   animation and layout that Tailwind alone doesn't express well.
   ========================================================= */

:root {
  --navy: #0b2340;
  --navy-dark: #050f1c;
  --gold: #b8912f;
  --gold-light: #d8b968;
  --teal: #2f7d6f;
  --cream: #ffffff;
  --ease: cubic-bezier(.16,.84,.44,1);
}

html { scroll-behavior: smooth; }
::selection { background: var(--gold); color: #fff; }

/* =========================================================
   Preloader (markup: includes/preloader.php, hide logic: main.js)
   Fixed overlay, so it never affects layout or scrollbars.
   ========================================================= */
.site-preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at center, var(--navy) 0%, var(--navy-dark) 75%);
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
  /* Safety net: if main.js is delayed or fails, hide anyway after 6s */
  animation: preloaderAutoHide .6s var(--ease) 6s forwards;
}
.site-preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.site-preloader-logo {
  display: block; width: clamp(150px, 42vw, 230px); height: auto; max-width: none;
  animation: preloaderPulse 1.8s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes preloaderPulse {
  0%, 100% { transform: scale(.96); opacity: .82; }
  50%      { transform: scale(1.04); opacity: 1; }
}
@keyframes preloaderAutoHide { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) {
  .site-preloader { transition-duration: .2s; }
  .site-preloader-logo { animation: none; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 10px; border: 2px solid var(--cream); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* =========================================================
   Section framing helpers
   ========================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; letter-spacing: .18em; font-weight: 600;
  text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); display: inline-block; }
/* Centered eyebrows get a matching line on both sides for symmetry */
.eyebrow.justify-center::after { content: ''; width: 28px; height: 1px; background: var(--gold); display: inline-block; }

.section-title { font-family: 'Cormorant Garamond', serif; }

/* Decorative accent under centered section headings (eyebrow + h1/h2 pattern) */
.text-center > .section-title { position: relative; padding-bottom: 20px; }
.text-center > .section-title::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 56px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
}

/* =========================================================
   Navigation
   ========================================================= */
#site-header { backdrop-filter: none; }
#site-header[data-state="top"] #nav-inner { background: transparent; }
#site-header[data-state="top"] {
  background: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#site-header[data-state="scrolled"] {
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 8px 30px rgba(5, 15, 28, .25);
}

.nav-brand-text { color: #fff; }
/* Logo is 1245x503 (~2.48:1); size by height only so the ratio is always kept.
   Its small "OVERSEAS EXPORT PVT. LTD." line needs ~58px+ height to stay legible. */
.site-logo { display: block; height: 58px; width: auto; max-width: none; }
@media (min-width: 1024px) { .site-logo { height: 70px; } }
.footer-logo { display: block; width: 200px; height: auto; max-width: 100%; }
.nav-link {color: rgb(25 26 54);position: relative;padding: 6px 2px;transition: color .25s var(--ease);white-space: nowrap;}
/* The full company name is long; between lg and xl the brand, five links and
   CTA don't fit at the default sizes, so tighten just this range. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav-brand-text { font-size: 1.25rem; }
  .nav-links { gap: 1.75rem; }
}
@media (max-width: 359px) {
  .nav-brand-text { font-size: 1.05rem; }
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--gold-light); transition: width .3s var(--ease);
}
.nav-link:hover, .nav-link-active { color: var(--gold-light); }
.nav-link:hover::after, .nav-link-active::after { width: 100%; }

.dropdown-panel {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(-6px) scale(.94);
  transform-origin: top center;
  min-width: 260px; background: #fff; border-radius: 10px; padding: .65rem;
  border-top: 2px solid var(--gold);
  box-shadow: 0 10px 20px rgba(5,15,28,.08);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease), visibility .35s;
  z-index: 40;
}
/* Invisible bridge over the gap between the nav link and the panel, so the
   mouse never leaves a hoverable area on its way down — without it, moving
   the cursor toward a menu item drops out of :hover and the panel closes
   before the click registers. */
.dropdown-panel::before {
  content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.dropdown-panel-wide { min-width: 300px; }
.group:hover .dropdown-panel, .group:focus-within .dropdown-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
  box-shadow: 0 20px 45px rgba(5,15,28,.18);
}
.dropdown-link {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .75rem; border-radius: 7px; font-size: .875rem; color: var(--navy);
  text-transform: none; letter-spacing: normal;
  opacity: 0; transform: translateY(-4px);
  transition: background .2s, color .2s, opacity .3s var(--ease), transform .3s var(--ease);
}
.dropdown-link i { color: var(--gold); width: 16px; text-align: center; }
.dropdown-link:hover { background: var(--cream); color: var(--gold); }
.group:hover .dropdown-link, .group:focus-within .dropdown-link { opacity: 1; transform: translateY(0); }
.dropdown-link:nth-child(1) { transition-delay: .02s; }
.dropdown-link:nth-child(2) { transition-delay: .06s; }
.dropdown-link:nth-child(3) { transition-delay: .1s; }
.dropdown-link:nth-child(4) { transition-delay: .14s; }
.dropdown-link:nth-child(5) { transition-delay: .18s; }
.dropdown-link:nth-child(6) { transition-delay: .22s; }
.dropdown-link:nth-child(7) { transition-delay: .26s; }
.dropdown-link:nth-child(8) { transition-delay: .3s; }

/* Buttons */
.btn-gold-solid, .btn-gold-outline, .btn-navy-solid, .btn-white-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.75rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 4px; transition: all .3s var(--ease); white-space: nowrap;
}
.btn-gold-solid { background: var(--gold); color: #fff; }
.btn-gold-solid:hover { background: #a17e28; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(184,145,47,.35); }
.btn-gold-outline {border: 1.5px solid #191a36;color: #191a36;}
.btn-gold-outline:hover {background: var(--gold);border-color: #ffffff;transform: translateY(-2px);}
.btn-navy-solid { background: var(--navy); color: #fff; }
.btn-navy-solid:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(5,15,28,.3); }
.btn-white-outline { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn-white-outline:hover { background: #fff; color: var(--navy); }
.btn-arrow { transition: transform .3s var(--ease); }
a:hover .btn-arrow, button:hover .btn-arrow { transform: translateX(4px); }

/* Mobile menu */
.hamburger { display: inline-flex; flex-direction: column; gap: 5px; width: 26px; }
.hamburger span { display: block; height: 2px; width: 100%; background: #fff; transition: transform .3s var(--ease), opacity .3s var(--ease); }
#site-header[data-state="scrolled"] .hamburger span,
body.menu-open .hamburger span { background: #fff; }
body.menu-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(85vw, 380px);
  background: var(--navy-dark); z-index: 50; transform: translateX(100%);
  transition: transform .4s var(--ease); overflow-y: auto;
}
body.menu-open .mobile-menu { transform: translateX(0); }
.mobile-menu-inner { padding: 6.5rem 1.75rem 3rem; }
.mobile-backdrop {
  position: fixed; inset: 0; background: rgba(5,15,28,.6); z-index: 45;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease);
}
body.menu-open .mobile-backdrop { opacity: 1; visibility: visible; }
.mobile-link { display: block; padding: .85rem 0; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-accordion { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.mobile-accordion.open { max-height: 500px; }
.mobile-sublink { display: block; padding: .6rem 0 .6rem 1rem; color: rgba(255,255,255,.65); font-size: .95rem; }
.mobile-accordion-toggle.active i { transform: rotate(180deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: var(--navy-dark); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img, .hero-bg video { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 22s ease-in-out infinite alternate; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(180deg, rgba(5,15,28,.75) 0%, rgba(5,15,28,.55) 45%, rgba(5,15,28,.92) 100%); }
.hero-content { position: relative; z-index: 2; }

@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }

.route-line { stroke-dasharray: 6 8; animation: dash 3s linear infinite; opacity: .55; }
@keyframes dash { to { stroke-dashoffset: -140; } }

.hero-dot { animation: pulseDot 2.4s ease-in-out infinite; }
@keyframes pulseDot { 0%,100% { opacity: .4; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }

.floating-shape { animation: floatY 7s ease-in-out infinite; }
.floating-shape.delay-1 { animation-delay: 1.2s; }
.floating-shape.delay-2 { animation-delay: 2.4s; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* ---- Hero slider (Swiper) — same visual language as the original single
   hero, repeated per slide, plus slider-only mechanics below. ---- */
.hero-swiper, .hero-swiper .swiper-wrapper { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide { position: relative; height: 100%; display: flex; align-items: center; overflow: hidden; }

.hero-slide-bg-img { transform: scale(1); }
.swiper-slide-active .hero-slide-bg-img { animation: heroKenBurns 7s cubic-bezier(.25,.46,.45,.94) both; }
@keyframes heroKenBurns { from { transform: scale(1); } to { transform: scale(1.08); } }

/* Per-slide content reveal, restarts every time Swiper marks a slide active */
.hero-anim { opacity: 0; transform: translateY(26px); }
.swiper-slide-active .hero-anim-1 { animation: heroContentUp .75s var(--ease) .15s both; }
.swiper-slide-active .hero-anim-2 { animation: heroContentUp .75s var(--ease) .3s both; }
.swiper-slide-active .hero-anim-3 { animation: heroContentUp .75s var(--ease) .45s both; }
.swiper-slide-active .hero-anim-4 { animation: heroContentUp .75s var(--ease) .6s both; }
@keyframes heroContentUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

/* Buttons are nowrap site-wide; a CTA containing the full company name is
   wider than a phone, and .hero's overflow:hidden would silently clip it. */
@media (max-width: 639px) {
  .hero-anim-4 a { white-space: normal; text-align: center; max-width: 100%; }
}

/* Minimal premium nav arrows — small, not the default oversized Swiper style */
.hero-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 20;
  width: 46px; height: 46px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: rgba(5,15,28,.35); border: 1px solid rgba(255,255,255,.25); color: #fff;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
@media (min-width: 640px) { .hero-nav-btn { display: flex; } }
.hero-nav-btn:hover { background: var(--gold); border-color: var(--gold); }
.hero-nav-btn:active { transform: translateY(-50%) scale(.94); }
.hero-nav-prev { left: 20px; } .hero-nav-prev:hover { transform: translateY(-50%) translateX(-2px); }
.hero-nav-next { right: 20px; } .hero-nav-next:hover { transform: translateY(-50%) translateX(2px); }
.hero-nav-btn.swiper-button-disabled { opacity: .35; pointer-events: none; }
@media (min-width: 1024px) { .hero-nav-prev { left: 32px; } .hero-nav-next { right: 32px; } }

/* Pagination dots — minimal, gold active state */
.hero-pagination {
  /* .hero uses min-height:100vh but sits below the fixed-nav spacer, so its
     own bottom ~80-96px (the spacer height) lands just past the initial
     fold — push the dots up enough to clear that and stay reliably visible. */
  position: absolute; left: 0; right: 0; bottom: 112px !important; z-index: 20;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.hero-pagination .swiper-pagination-bullet {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4);
  opacity: 1; margin: 0; transition: all .3s var(--ease); cursor: pointer;
}
.hero-pagination .swiper-pagination-bullet-active { width: 24px; border-radius: 4px; background: var(--gold-light); }

@media (prefers-reduced-motion: reduce) {
  .hero-slide-bg-img { animation: none !important; }
  .hero-anim { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* =========================================================
   Reveal-on-scroll (driven by IntersectionObserver in main.js)
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal].reveal-instant { transition: none !important; }
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="scale"].revealed { transform: scale(1); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="left"].revealed { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="right"].revealed { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-bg img, .hero-bg video, .floating-shape, .route-line, .hero-dot { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* =========================================================
   Cards
   ========================================================= */
.service-card {
  position: relative; background: #fff; border: 1px solid rgba(11,35,64,.08); border-radius: 14px;
  padding: 2.25rem 1.85rem; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(11,35,64,.12); border-color: transparent; }
.service-card .service-num { font-family: 'Cormorant Garamond', serif; font-size: 3rem; color: rgba(184,145,47,.18); line-height: 1; }
.service-card .service-icon {
  width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: var(--gold-light); font-size: 1.35rem;
  transition: transform .4s var(--ease);
}
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.08); }

.category-card { position: relative; overflow: hidden; border-radius: 14px; }
.category-card img { transition: transform .7s var(--ease); }
.category-card:hover img { transform: scale(1.1); }
.category-card .category-overlay {
  position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,15,28,.92) 0%, rgba(5,15,28,.35) 55%, rgba(5,15,28,.1) 100%);
}
.category-card .category-explore { transform: translateY(12px); opacity: 0; transition: all .35s var(--ease); }
.category-card:hover .category-explore { transform: translateY(0); opacity: 1; }

.product-card { background: #fff; border-radius: 12px; border: 1px solid rgba(11,35,64,.08); overflow: hidden; transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.product-card:hover { box-shadow: 0 20px 40px rgba(11,35,64,.12); transform: translateY(-6px); }
.product-card .product-img-wrap { overflow: hidden; aspect-ratio: 4/3; background: var(--cream); }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover img { transform: scale(1.08); }

.why-block { position: relative; padding: 1.75rem; border-radius: 14px; transition: background .35s var(--ease), transform .35s var(--ease); }
.why-block:hover { background: rgba(255,255,255,.06); transform: translateY(-4px); }
.why-icon { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(184,145,47,.4); display: flex; align-items: center; justify-content: center; color: var(--gold-light); font-size: 1.2rem; }

/* Stats */
.stat-number { font-family: 'Cormorant Garamond', serif; font-weight: 700; }

/* Filter pills (products / gallery) */
.filter-pill {
  padding: .55rem 1.35rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  border: 1.5px solid rgba(11,35,64,.14); color: var(--navy); background: #fff;
  transition: all .25s var(--ease);
}
.filter-pill:hover { border-color: var(--gold); color: var(--gold); }
.filter-pill.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* World map section */
.trade-map-wrap { position: relative; }
.trade-map-wrap svg { width: 100%; height: auto; }
.trade-point circle { transform-origin: center; }
.trade-route { stroke-dasharray: 5 7; animation: dash 3.2s linear infinite; }
.trade-label { font-family: Inter, sans-serif; font-size: 11px; letter-spacing: .04em; }

/* Gallery */
.gallery-item { position: relative; overflow: hidden; border-radius: 10px; break-inside: avoid; cursor: zoom-in; min-height: 180px; background: var(--cream); }
.gallery-item img { width: 100%; display: block; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,15,28,.85), transparent 60%);
  opacity: 0; transition: opacity .35s var(--ease); display: flex; align-items: flex-end; padding: 1rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.masonry { column-count: 1; column-gap: 1rem; }
@media (min-width: 640px) { .masonry { column-count: 2; } }
@media (min-width: 1024px) { .masonry { column-count: 3; } }
.masonry .gallery-item { margin-bottom: 1rem; width: 100%; }
/* Uniform tiles (homepage "Our Global Trade Journey"): every image gets the same
   4:3 frame and is cropped to fill it; the lightbox shows the full image. */
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid .gallery-item { aspect-ratio: 4 / 3; min-height: 0; }
.gallery-grid .gallery-item img { height: 100%; object-fit: cover; object-position: center; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,15,28,.94); display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 6px; }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.75rem; color: #fff; font-size: 1.75rem; cursor: pointer; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 1.75rem; cursor: pointer; padding: .75rem; }
.lightbox-prev { left: 1rem; } .lightbox-next { right: 1rem; }

/* Certifications marquee */
/* duration scales with the number of entries (26s was tuned for 4; 11 now) to keep the same speed */
.cert-track { display: flex; gap: 3rem; animation: scrollX 72s linear infinite; width: max-content; }
.cert-track:hover { animation-play-state: paused; }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Testimonials */
.testimonial-card { background: #fff; border-radius: 16px; padding: 2.25rem; border: 1px solid rgba(11,35,64,.08); }
.testimonial-quote { font-family: 'Cormorant Garamond', serif; font-size: 3.5rem; line-height: 1; color: rgba(184,145,47,.35); }

/* Footer */
.footer-heading {
  color: #fff; font-weight: 600; margin-bottom: 1.1rem; font-size: .95rem; letter-spacing: .03em;
  display: flex; align-items: center; gap: .6rem;
}
.footer-heading-icon {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(184,145,47,.15); color: var(--gold-light); font-size: .8rem;
}
.footer-link-item { display: flex; align-items: center; gap: .55rem; transition: transform .25s var(--ease); }
.footer-link-item:hover { transform: translateX(4px); }
.footer-link-item i { color: var(--gold); font-size: .75rem; width: 14px; text-align: center; flex-shrink: 0; }
.footer-link { color: rgba(255,255,255,.6); transition: color .25s var(--ease); }
.footer-link:hover { color: var(--gold-light); }
.footer-social-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: .7rem; }
.footer-social-icon {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; color: #fff; transition: all .3s var(--ease);
}
.footer-social-icon:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.footer-texture { background-image: radial-gradient(circle at 20% 20%, rgba(184,145,47,.06), transparent 40%), radial-gradient(circle at 85% 75%, rgba(47,125,111,.08), transparent 45%); }
.footer-accent-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--gold-light), var(--teal)); }
.footer-watermark {
  position: absolute; right: -.5rem; bottom: -3.5rem; z-index: 0;
  font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 13rem; line-height: 1;
  color: rgba(255,255,255,.035); pointer-events: none; user-select: none; letter-spacing: -.02em;
}
@media (max-width: 768px) { .footer-watermark { display: none; } }

/* WhatsApp float */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
  box-shadow: 0 10px 30px rgba(37,211,102,.45); transition: transform .3s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float-ping { position: absolute; inset: 0; border-radius: 50%; background: #25D366; animation: waPing 2.2s ease-out infinite; }
@keyframes waPing { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.9); opacity: 0; } }
.whatsapp-tooltip {
  position: absolute; right: 68px; top: 50%; transform: translateY(-50%);
  background: var(--navy-dark); color: #fff; font-size: .8rem; padding: .5rem .85rem; border-radius: 6px; white-space: nowrap;
  opacity: 0; visibility: hidden; transition: all .25s var(--ease);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; visibility: visible; right: 72px; }
@media (max-width: 768px) { .whatsapp-tooltip { display: none; } }

/* Back to top */
.back-to-top {
  position: fixed; right: 22px; bottom: 90px; z-index: 59; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold); }

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

/* Forms */
.form-input, .form-select, .form-textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid rgba(11,35,64,.14); border-radius: 8px;
  background: #fff; font-size: .95rem; transition: border-color .25s, box-shadow .25s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184,145,47,.15);
}
.form-label { display: block; font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.form-error { color: #b3261e; font-size: .8rem; margin-top: .3rem; }

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2.5px solid var(--gold); outline-offset: 2px;
}

/* Timeline (Why Choose Us detail page) */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: rgba(184,145,47,.3); }
.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -2.5rem; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--cream); border: 3px solid var(--gold);
}

/* Utility */
.text-balance { text-wrap: balance; }
img { max-width: 100%; }

/* Homepage Featured Products: centre a lone pair of cards in the 4-column row
   so it sits under the centred heading instead of leaving the right half empty */
@media (min-width: 1024px) {
  .featured-grid > .product-item:first-child:nth-last-child(2) { grid-column-start: 2; }
}

/* Certifications: logos keep their own proportions inside a fixed-height box
   (never upscaled past their natural size); text badge where no logo is shown */
.cert-logo-box { height: 96px; display: flex; align-items: center; justify-content: center; }
.cert-logo-box img { max-height: 80px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.cert-text-badge {
  height: 80px; min-width: 120px; padding: 0 1.25rem; border-radius: 12px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .3rem; background: #faf6ea; border: 1px solid #f0e4c0;
}
.cert-text-badge-label { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.6rem; font-weight: 700; letter-spacing: .06em; color: #93711f; line-height: 1; }
.cert-text-badge-note { font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(11,35,64,.45); }
.cert-doc { aspect-ratio: 4 / 3; min-height: 0; }
.cert-doc img { height: 100%; object-fit: cover; }
.cert-strip-logo { height: 56px; min-width: 56px; max-width: 150px; padding: .4rem; border-radius: 8px; border: 1px solid rgba(11,35,64,.1); background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cert-strip-logo img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.cert-strip-logo-text { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: .95rem; letter-spacing: .04em; color: #93711f; padding: 0 .35rem; white-space: nowrap; }
