/* ==========================================================================
   Viterra Bathware – shared theme
   Design tokens + reusable components for the catalogue, home and contact
   pages. Loaded after the legacy stylesheets.
   Palette: brand navy (from the logo) + warm gold accent on ivory.
   ========================================================================== */

:root {
  --vt-navy-900: #0a1626;
  --vt-navy-800: #0f2038;
  --vt-navy-600: #1d3a63;
  --vt-brand: #2a4580;
  --vt-gold: #c9a24b;
  --vt-gold-strong: #9a7425; /* AA contrast on ivory/white */
  --vt-gold-soft: #efe3c2;
  --vt-accent: #a77f2b; /* gold accent for links / highlights on light and dark */
  --vt-accent-dark: #86651f; /* hover / pressed accent */
  --vt-ivory: #f8f5ef;
  --vt-white: #ffffff;
  --vt-ink: #17202e;
  --vt-muted: #5a6577;
  --vt-line: rgba(15, 32, 56, 0.12);
  --vt-radius: 14px;
  --vt-shadow: 0 18px 40px -22px rgba(10, 22, 38, 0.45);
  --vt-font-body: "Outfit", system-ui, sans-serif;
  --vt-font-display: "Playfair Display", Georgia, serif;
  --vt-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Buttons ---------- */
.vt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 500 15px/1 var(--vt-font-body);
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--vt-ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.vt-btn:hover { transform: translateY(-2px); }
.vt-btn:focus-visible,
.vt-card a:focus-visible,
.vt-contact-card a:focus-visible {
  outline: 3px solid var(--vt-gold);
  outline-offset: 3px;
}
.vt-btn--primary { background: var(--vt-gold); color: var(--vt-navy-900); }
.vt-btn--primary:hover { background: #d8b45f; color: var(--vt-navy-900); }
.vt-btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.vt-btn--ghost:hover { background: #fff; color: var(--vt-navy-900); }
.vt-btn--outline { border-color: var(--vt-navy-800); color: var(--vt-navy-800); background: transparent; }
.vt-btn--outline:hover { background: var(--vt-navy-800); color: #fff; }

.vt-eyebrow {
  display: block;
  margin-bottom: 14px;
  font: 500 13px/1.2 var(--vt-font-body);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--vt-gold);
}

/* ---------- Page hero (catalogue / contact) ---------- */
.vt-pagehero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52vh;
  padding: 260px 20px 80px;
  background: var(--vt-navy-900) center / cover no-repeat;
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.vt-pagehero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 22, 38, 0.55), rgba(10, 22, 38, 0.88));
}
.vt-pagehero__inner { max-width: 760px; margin: 0 auto; }
.vt-pagehero h1 {
  margin: 0 0 18px;
  font: 600 clamp(36px, 5.2vw, 60px)/1.1 var(--vt-font-display);
  color: #fff;
}
.vt-pagehero p {
  margin: 0 auto;
  max-width: 620px;
  font: 300 18px/1.7 var(--vt-font-body);
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Catalogue cards ---------- */
.vt-section { padding: clamp(60px, 8vw, 110px) 20px; background: var(--vt-ivory); }
.vt-section--dark { background: var(--vt-navy-900); color: #fff; }
.vt-section__head { max-width: 680px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.vt-section__head h2 {
  margin: 0 0 14px;
  font: 600 clamp(30px, 4vw, 44px)/1.15 var(--vt-font-display);
  color: var(--vt-navy-900);
}
.vt-section--dark .vt-section__head h2 { color: #fff; }
.vt-section__head p { margin: 0; font: 300 17px/1.7 var(--vt-font-body); color: var(--vt-muted); }
.vt-section--dark .vt-section__head p { color: rgba(255, 255, 255, 0.75); }
.vt-section .vt-eyebrow { color: var(--vt-gold-strong); }
.vt-section--dark .vt-eyebrow { color: var(--vt-gold); }

.vt-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}
.vt-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--vt-white);
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius);
  box-shadow: var(--vt-shadow);
  color: var(--vt-ink);
  transition: transform 0.4s var(--vt-ease), box-shadow 0.4s var(--vt-ease);
}
.vt-card:hover { transform: translateY(-6px); }
.vt-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--vt-navy-800); }
.vt-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--vt-ease); }
.vt-card:hover .vt-card__media img { transform: scale(1.05); }
.vt-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 22, 38, 0.85);
  font: 500 12px/1 var(--vt-font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vt-gold);
}
.vt-card__body { display: flex; flex: 1; flex-direction: column; padding: 26px 26px 28px; }
.vt-card__title { margin: 0 0 10px; font: 600 24px/1.25 var(--vt-font-display); color: var(--vt-navy-900); }
.vt-card__text { margin: 0 0 18px; font: 300 16px/1.65 var(--vt-font-body); color: var(--vt-muted); }
.vt-card__meta {
  display: flex;
  gap: 18px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font: 400 14px/1 var(--vt-font-body);
  color: var(--vt-muted);
}
.vt-card__meta i { margin-right: 6px; color: var(--vt-gold-strong); }
.vt-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.vt-card__actions .vt-btn { flex: 1 1 130px; min-height: 46px; padding: 0 18px; font-size: 14px; }

/* ---------- CTA strip ---------- */
.vt-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 56px auto 0;
  padding: 32px 36px;
  border-radius: var(--vt-radius);
  background: var(--vt-navy-900);
  color: #fff;
}
.vt-cta h3 { margin: 0 0 6px; font: 600 24px/1.25 var(--vt-font-display); color: #fff; }
.vt-cta p { margin: 0; font: 300 16px/1.6 var(--vt-font-body); color: rgba(255, 255, 255, 0.75); }
.vt-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Intro copy ---------- */
.vt-prose { max-width: 820px; margin: 0 auto; text-align: center; }
.vt-prose h2 { margin: 0 0 20px; font: 600 clamp(26px, 3.4vw, 36px)/1.2 var(--vt-font-display); color: var(--vt-navy-900); }
.vt-prose p { margin: 0 0 18px; font: 300 17px/1.8 var(--vt-font-body); color: var(--vt-muted); }
.vt-prose a { color: var(--vt-gold-strong); font-weight: 500; }

/* ---------- Contact ---------- */
.vt-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
}
.vt-contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 26px;
  background: var(--vt-white);
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius);
  box-shadow: var(--vt-shadow);
  transition: transform 0.4s var(--vt-ease);
}
.vt-contact-card:hover { transform: translateY(-5px); }
.vt-contact-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--vt-navy-900);
  color: var(--vt-gold);
  font-size: 20px;
}
.vt-contact-card h2 { margin: 0 0 10px; font: 600 20px/1.3 var(--vt-font-display); color: var(--vt-navy-900); }
.vt-contact-card p,
.vt-contact-card a.vt-contact-card__link {
  display: block;
  margin: 0 0 4px;
  font: 300 16px/1.65 var(--vt-font-body);
  color: var(--vt-muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.vt-contact-card a.vt-contact-card__link { color: var(--vt-ink); font-weight: 400; }
.vt-contact-card a.vt-contact-card__link:hover { color: var(--vt-gold-strong); }
.vt-contact-card .vt-btn { margin-top: auto; align-self: stretch; }
.vt-contact-card__body { flex: 1; margin-bottom: 20px; }

.vt-map { display: block; width: 100%; height: clamp(320px, 45vw, 460px); border: 0; filter: saturate(0.85); }
.vt-social { display: flex; gap: 12px; justify-content: center; margin-top: 36px; }
.vt-social a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--vt-navy-800);
  color: var(--vt-navy-800);
  transition: background-color 0.3s, color 0.3s;
}
.vt-social a:hover { background: var(--vt-navy-800); color: #fff; }

/* ---------- Home hero CTAs ---------- */
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .vt-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .vt-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .vt-pagehero { padding-top: 230px !important; min-height: 0; }
  .vt-catalog-grid,
  .vt-contact-grid { grid-template-columns: 1fr; }
  .vt-cta { padding: 26px 22px; }
  .vt-cta__actions, .vt-cta__actions .vt-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .vt-btn, .vt-card, .vt-card__media img, .vt-contact-card { transition: none; }
  .vt-card:hover, .vt-contact-card:hover, .vt-btn:hover { transform: none; }
}

/* ---------- Shared chrome ---------- */
.footer-modern-section { background-color: var(--vt-navy-900); }
.nav-link.active,
.mobile-nav-link.active { color: var(--vt-brand); }

/* Page-transition overlay (logo link) follows the brand navy */
.animsition-overlay-slide { background-color: var(--vt-navy-900); }

/* ---------- Product page heroes ----------
   .hero-* class names are shared with the home slider (custome.css), which
   turns .hero-content into a full-height flex row. Scope the product hero. */
.panel-hero { padding-top: 180px; /* clears the fixed header + main-content overlap */ }
.panel-hero .hero-content { display: block; width: 100%; max-width: 900px; height: auto; }
.panel-hero .hero-subtitle { font-style: normal; text-shadow: none; }
.panel-hero .hero-title { font-size: clamp(2.2rem, 5.5vw, 4rem); margin-bottom: 28px; }
.panel-hero .hero-desc { max-width: 640px; margin-left: auto; margin-right: auto; }
.panel-hero { background-color: var(--vt-navy-800); background-blend-mode: multiply; }
.panel-hero .hero-title {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
  text-shadow: 0 2px 24px rgba(10, 22, 38, 0.6);
}
.panel-hero .hero-subtitle { color: var(--vt-gold); text-shadow: 0 1px 12px rgba(10, 22, 38, 0.8); }

/* ---------- Home hero slider: keep text readable on light photos ---------- */
.hero-overlay {
  background: linear-gradient(90deg, rgba(10, 22, 38, 0.72) 0%, rgba(10, 22, 38, 0.35) 55%, rgba(10, 22, 38, 0.15) 100%);
}
.hero-section .hero-subtitle { font-style: normal; }
