/* ===========================================================================
   Avlin Foods — stylesheet
   Light-dominant theme with burgundy/charcoal contrast and gold accents.
   Mobile-first; breakpoints at 768px, 1024px, 1440px.
   =========================================================================== */

:root {
  --burgundy: #740516;
  --burgundy-dark: #560410;
  --gold: #F0B325;
  --gold-dark: #d99e12;
  --charcoal: #222222;
  --white: #FFFFFF;
  --cream: #FAF6F0;

  --text: #222222;
  --text-muted: #5a5048;
  --border: #e7ddd0;

  --font-head: 'Raleway', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --shadow-sm: 0 1px 3px rgba(34, 34, 34, 0.08);
  --shadow-md: 0 6px 20px rgba(34, 34, 34, 0.08);
  --shadow-lg: 0 14px 40px rgba(34, 34, 34, 0.12);

  --radius: 10px;
  --maxw: 1200px;
  --header-h: 112px;
  --transition: 0.2s ease;
  --menu-transition: 0.28s ease;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--charcoal);
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

a { color: var(--burgundy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--burgundy-dark); }

img { max-width: 100%; height: auto; display: block; }

address { font-style: normal; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--charcoal);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: var(--white); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding: 3rem 0; }
.section-cream { background: var(--cream); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2rem; }
.section-head p { color: var(--text-muted); }
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 0.5rem;
}

.gold-divider {
  width: 64px; height: 3px;
  background: var(--gold);
  border: 0; border-radius: 3px;
  margin: 0.75rem auto 1.25rem;
}
.section-head .gold-divider { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--burgundy); color: var(--white); }
.btn-primary:hover { background: var(--burgundy-dark); color: var(--white); }

.btn-secondary { background: var(--gold); color: var(--charcoal); }
.btn-secondary:hover { background: var(--gold-dark); color: var(--charcoal); }

.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--burgundy); }

.btn-phone {
  background: var(--gold);
  color: var(--charcoal);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
}
.btn-phone:hover { background: var(--gold-dark); color: var(--charcoal); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ===========================================================================
   HEADER
   =========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 100px; width: 100px; }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 26px; height: 3px;
  background: var(--burgundy);
  border-radius: 3px;
  margin-inline: auto;
}

/* Nav (mobile: collapsed) */
.site-nav {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--menu-transition);
}
.site-nav.is-open { max-height: 420px; }
.nav-list {
  list-style: none;
  margin: 0; padding: 0.5rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-link {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--charcoal);
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid var(--border);
}
.nav-link.is-active { color: var(--burgundy); }
.nav-link:hover { color: var(--burgundy); }

/* ===========================================================================
   HERO
   =========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--burgundy-dark);
  color: var(--white);
  padding: 4.5rem 0 5rem;
  text-align: center;
}
/* Photo fills the hero; a burgundy/charcoal overlay keeps the text readable. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(86, 4, 16, 0.93) 0%, rgba(86, 4, 16, 0.82) 45%, rgba(34, 34, 34, 0.6) 100%);
}
.hero-inner { display: block; }
.hero-copy { max-width: 620px; margin-inline: auto; }
.hero h1 { color: var(--white); font-size: 2.1rem; }
.hero p { color: rgba(255, 255, 255, 0.92); margin: 1rem 0 1.75rem; font-size: 1.1rem; }
.hero .btn-row { justify-content: center; }

/* ===========================================================================
   PRODUCT CATEGORIES
   =========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-image { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.cat-body { padding: 1.25rem 1.1rem 1.5rem; border-top: 3px solid var(--gold); }
.cat-card h3 { margin-bottom: 0.35rem; }
.cat-card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* ===========================================================================
   WHY US
   =========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--gold);
}
.why-card h3 { color: var(--burgundy); }
.why-card p { color: var(--text-muted); margin: 0; }

/* ===========================================================================
   CTA BANDS
   =========================================================================== */
.cta-band {
  background:
    linear-gradient(rgba(86, 4, 16, 0.92), rgba(86, 4, 16, 0.92)),
    var(--burgundy);
  color: var(--white);
  text-align: center;
  padding: 3rem 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 55ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.5rem; }

.contact-strip {
  background: var(--charcoal);
  color: var(--white);
  padding: 2rem 0;
}
.contact-strip-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
.contact-strip .phone-big {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--gold);
}
.contact-strip .phone-big:hover { color: var(--white); }

/* ===========================================================================
   PAGE BANNER (inner pages)
   =========================================================================== */
.page-banner {
  background:
    linear-gradient(rgba(86, 4, 16, 0.9), rgba(34, 34, 34, 0.9)),
    var(--burgundy-dark);
  color: var(--white);
  text-align: center;
  padding: 3rem 0;
}
.page-banner h1 { color: var(--white); }
.page-banner p { color: rgba(255,255,255,0.9); margin: 0; max-width: 60ch; margin-inline: auto; }

/* ===========================================================================
   CATALOGUE PLACEHOLDER
   =========================================================================== */
.placeholder {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.placeholder .btn-row { justify-content: center; margin-top: 1.5rem; }

/* ===========================================================================
   CONTACT
   =========================================================================== */
.contact-layout {
  max-width: 680px;
  margin: 0 auto;
}
.contact-phone-block {
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.contact-phone-block .phone-big {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--burgundy);
  display: inline-block;
  margin-bottom: 1rem;
}

.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--charcoal);
}
.form-field .req { color: var(--burgundy); }
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(116, 5, 22, 0.12);
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field .field-error { color: var(--burgundy); font-size: 0.85rem; margin-top: 0.35rem; }

/* Honeypot — visually hidden from users, available to bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.alert {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
}
.alert-success {
  background: #eef7ee;
  border-color: #cfe6cf;
  color: #22561f;
}
.alert-error {
  background: #fbeaec;
  border-color: #f0c7cd;
  color: var(--burgundy-dark);
}
.alert ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }

/* ===========================================================================
   FOOTER
   =========================================================================== */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.85);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-block: 2.5rem;
}
.footer-logo {
  height: 160px; width: 160px;
  background: var(--white);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
}
.footer-positioning {
  font-family: var(--font-head);
  color: var(--gold);
  margin-top: 1rem;
}
.footer-heading {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-links, .footer-contact {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a, .footer-contact a { color: rgba(255,255,255,0.85); }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }

.footer-bottom {
  background: var(--burgundy-dark);
  text-align: center;
  padding-block: 1rem;
  font-size: 0.9rem;
}
.footer-bottom p { margin: 0; color: rgba(255,255,255,0.85); }

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
@media (min-width: 768px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }
  .hero h1 { font-size: 2.8rem; }

  .section { padding: 4rem 0; }

  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-strip-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  /* Desktop navigation — show inline, hide hamburger */
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
    border-top: 0;
    box-shadow: none;
  }
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
  }
  .nav-link { border-bottom: 0; padding: 0.5rem 0; }
  .nav-link.is-active { border-bottom: 3px solid var(--gold); }

  .hero { padding: 7rem 0 7.5rem; text-align: left; }
  .hero-copy { margin-inline: 0; }
  .hero .btn-row { justify-content: flex-start; }
  .card-grid { grid-template-columns: repeat(5, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }

  h1 { font-size: 2.7rem; }
  .hero h1 { font-size: 3rem; }
}

@media (min-width: 1440px) {
  :root { --maxw: 1280px; }
}

/* ---------- Reduced motion ---------- */
/* Neutralise transitions by zeroing the shared duration variables
   (every transition on the site reads one of these), with no overrides. */
@media (prefers-reduced-motion: reduce) {
  :root { --transition: 0s; --menu-transition: 0s; }
  html { scroll-behavior: auto; }
}

/* ===========================================================================
   HOME — ADDITIONAL SECTIONS (about, who we serve, steps, FAQ)
   =========================================================================== */
.gold-divider--left { margin-inline: 0; }

.about-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
.about-media img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-copy p { color: var(--text-muted); }
.check-list { list-style: none; margin: 1rem 0 1.5rem; padding: 0; display: grid; gap: 0.5rem; }
.check-list li { position: relative; padding-left: 1.9rem; font-weight: 500; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.35rem;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--gold);
}
.check-list li::after {
  content: "";
  position: absolute; left: 0.37rem; top: 0.52rem;
  width: 0.3rem; height: 0.55rem;
  border: solid var(--charcoal); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.serve-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.serve-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--burgundy);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.serve-card h3 { color: var(--burgundy); }
.serve-card p { color: var(--text-muted); margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.step { text-align: center; padding: 0 1rem; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--burgundy); color: var(--white);
  font-family: var(--font-head); font-weight: 800; font-size: 1.4rem;
  box-shadow: 0 0 0 6px rgba(240, 179, 37, 0.35);
}
.step p { color: var(--text-muted); margin: 0; }

.faq-wrap { max-width: 800px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 3rem 1rem 1.25rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--charcoal);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 1.25rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem; line-height: 1; color: var(--burgundy);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 1.25rem 1.25rem; color: var(--text-muted); }

@media (min-width: 768px) {
  .serve-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .brand-logo { height: 110px; width: 110px; }
}

/* ===========================================================================
   FOOTER — horizontal layout (logo | quick links | contact in one row)
   =========================================================================== */
.footer-grid { gap: 1.75rem; padding-block: 2rem; text-align: center; justify-items: center; }
.footer-logo { height: 150px; width: 150px; }
.footer-positioning { margin: 0.75rem 0 0; }
.footer-links, .footer-contact { align-items: center; }

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2.5rem;
    text-align: left;
    justify-items: stretch;
  }
  .footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
  .footer-col[aria-label="Footer"] { text-align: center; }
  .footer-links { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 0.5rem 2rem; }
  .footer-col[aria-label="Footer"] .footer-heading { text-align: center; }
  .footer-contact { align-items: flex-start; }
}

/* ===========================================================================
   CONTACT PAGE — minimal, form-first
   =========================================================================== */
.contact-intro { background: var(--cream); padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--border); }
.contact-intro h1 { margin-bottom: 0.5rem; }
.contact-intro p { color: var(--text-muted); max-width: 60ch; margin: 0; }

.contact-section { padding-top: 2.5rem; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }

.contact-main .form-field input,
.contact-main .form-field textarea { padding: 0.9rem 1rem; border-color: #d9cdbd; }
.contact-main .form-field textarea { min-height: 170px; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

.contact-aside { border-top: 3px solid var(--gold); padding-top: 1.5rem; }
.aside-block { margin-bottom: 1.75rem; }
.aside-block h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--burgundy); margin-bottom: 0.75rem; }
.aside-block p { color: var(--text-muted); margin: 0; }
.detail-list { margin: 0; display: grid; gap: 1rem; }
.detail-list dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.detail-list dd { margin: 0.15rem 0 0; font-weight: 500; }
.detail-list a { color: var(--charcoal); font-weight: 700; }
.detail-list a:hover { color: var(--burgundy); }
.plain-list { margin: 0; padding-left: 1.1rem; color: var(--text-muted); display: grid; gap: 0.4rem; }

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 4rem; }
  .contact-aside { border-top: 0; padding-top: 0; border-left: 3px solid var(--gold); padding-left: 2rem; }
}

/* ===========================================================================
   ANIMATIONS
   Scroll fade-ins (.rv* classes are added by assets/js/main.js), load
   animations for the header and page intros, and small hover effects.
   All of it is disabled under prefers-reduced-motion (see the end).
   =========================================================================== */
:root { --ease-out: cubic-bezier(0.2, 0.65, 0.2, 1); }

@keyframes fadeUp   { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translate3d(0, -16px, 0); } to { opacity: 1; transform: none; } }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes pop      { 0% { transform: scale(0.5); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@keyframes answerIn { from { opacity: 0; transform: translate3d(0, -6px, 0); } to { opacity: 1; transform: none; } }

/* ---- Scroll reveal ---- */
.rv {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.8s var(--ease-out) var(--rv-delay, 0ms),
              transform 0.8s var(--ease-out) var(--rv-delay, 0ms);
}
.rv-left  { transform: translate3d(-40px, 0, 0); }
.rv-right { transform: translate3d(40px, 0, 0); }
.rv-zoom  { transform: translate3d(0, 20px, 0) scale(0.95); }
.rv-fade  { transform: none; }
.rv.is-in { opacity: 1; transform: none; }

/* Gold dividers draw themselves in with their section heading */
.section-head.rv .gold-divider { width: 0; transition: width 0.7s var(--ease-out) 0.4s; }
.section-head.rv.is-in .gold-divider { width: 64px; }

/* Step numbers pop in */
.step.is-in .step-num { animation: pop 0.6s var(--ease-out) calc(var(--rv-delay, 0ms) + 150ms) both; }

/* ---- Load animations (no JavaScript needed) ---- */
body { animation: fadeIn 0.5s ease both; }
.site-header { animation: slideDown 0.6s var(--ease-out) both; }

.hero-bg { animation: heroZoom 2.4s var(--ease-out) both; }
.hero-copy > *,
.page-banner .container > *,
.contact-intro .container > * { animation: fadeUp 0.9s var(--ease-out) both; }
.hero-copy > :nth-child(1), .page-banner .container > :nth-child(1), .contact-intro .container > :nth-child(1) { animation-delay: 0.15s; }
.hero-copy > :nth-child(2), .page-banner .container > :nth-child(2), .contact-intro .container > :nth-child(2) { animation-delay: 0.3s; }
.hero-copy > :nth-child(3) { animation-delay: 0.45s; }

/* ---- Small hover / interaction effects ---- */
.brand-logo { transition: transform 0.3s var(--ease-out); }
.brand:hover .brand-logo { transform: scale(1.05); }

.nav-link { position: relative; }
@media (min-width: 1024px) {
  .nav-link:not(.is-active)::after {
    content: "";
    position: absolute; left: 0; bottom: 0;
    width: 100%; height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
  }
  .nav-link:not(.is-active):hover::after { transform: scaleX(1); }
}

.btn { transition: background var(--transition), color var(--transition), border-color var(--transition),
                   transform var(--transition), box-shadow var(--transition); }
.btn:hover { box-shadow: 0 8px 18px rgba(34, 34, 34, 0.18); }
.btn:active { transform: translateY(0) scale(0.97); box-shadow: none; }

.cat-card { overflow: hidden; }
.cat-image { transition: transform 0.6s var(--ease-out); }
.cat-card:hover .cat-image { transform: scale(1.07); }

.why-card, .serve-card { transition: transform var(--transition), box-shadow var(--transition); }
.why-card:hover, .serve-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.step-num { transition: transform 0.3s var(--ease-out); }
.step:hover .step-num { transform: scale(1.1) rotate(-4deg); }

.about-media img { transition: transform 0.6s var(--ease-out), box-shadow 0.3s ease; }
.about-media:hover img { transform: scale(1.02); }

.faq-item { transition: box-shadow var(--transition), border-color var(--transition); }
.faq-item:hover { border-color: var(--gold); }
.faq-item[open] { box-shadow: var(--shadow-md); border-color: var(--gold); }
.faq-item[open] > p { animation: answerIn 0.35s var(--ease-out) both; }
.faq-item summary::after { transition: transform 0.25s var(--ease-out); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(180deg); }

.footer-links a, .footer-contact a { display: inline-block; transition: color var(--transition), transform var(--transition); }
.footer-links a:hover, .footer-contact a:hover { transform: translateX(3px); }

.detail-list a, .phone-big { transition: color var(--transition); }

.alert { animation: fadeUp 0.5s var(--ease-out) both; }

/* ---- Reduced motion: switch every animation and transition off ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms;
    animation-delay: 0s;
    animation-iteration-count: 1;
    transition-duration: 0.001ms;
    transition-delay: 0s;
  }
  .rv { opacity: 1; transform: none; }
}

/* ---- Navigation, page-leave and extra coverage ---- */
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
body.is-leaving { animation: fadeOut 0.22s ease both; }

/* Nav links drop in one after another (desktop on load, mobile when opened) */
@media (min-width: 1024px) {
  .nav-list > li { animation: slideDown 0.6s var(--ease-out) both; }
  .nav-list > li:nth-child(1) { animation-delay: 0.25s; }
  .nav-list > li:nth-child(2) { animation-delay: 0.35s; }
  .nav-list > li:nth-child(3) { animation-delay: 0.45s; }
}
@media (max-width: 1023px) {
  .site-nav.is-open .nav-list > li { animation: fadeUp 0.4s var(--ease-out) both; }
  .site-nav.is-open .nav-list > li:nth-child(1) { animation-delay: 0.05s; }
  .site-nav.is-open .nav-list > li:nth-child(2) { animation-delay: 0.12s; }
  .site-nav.is-open .nav-list > li:nth-child(3) { animation-delay: 0.19s; }
}

/* Text links and form controls */
main p a, footer a { transition: color var(--transition), transform var(--transition); }
.form-field input, .form-field textarea { transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); }
.form-field input:focus, .form-field textarea:focus { transform: translateY(-1px); }
.check-list li { transition: transform var(--transition); }
.check-list li:hover { transform: translateX(4px); }
.faq-item summary { transition: color var(--transition); }
.faq-item summary:hover { color: var(--burgundy); }
.footer-logo { transition: transform 0.3s var(--ease-out); }
.footer-logo:hover { transform: scale(1.04); }
.cat-body h3, .serve-card h3, .why-card h3 { transition: color var(--transition); }
.cat-card:hover .cat-body h3 { color: var(--burgundy); }

/* ---- Catalogue page (PDF viewer) ---- */
.catalogue-actions { justify-content: center; margin-bottom: 1.75rem; }
.pdf-frame {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--cream);
}
.pdf-frame object { display: block; width: 100%; height: 75vh; min-height: 480px; }
.pdf-fallback { padding: 3rem 1.5rem; text-align: center; }
.catalogue-note { text-align: center; color: var(--text-muted); margin: 1.75rem 0 0; }
.catalogue-note a { font-weight: 700; }

/* ---- No sideways scrolling: off-screen slide-in elements must never widen the page.
   "clip" (unlike "hidden") keeps the sticky header working. ---- */
main, footer { overflow-x: clip; }
@media (max-width: 767px) {
  .rv-left  { transform: translate3d(-24px, 0, 0); }
  .rv-right { transform: translate3d(24px, 0, 0); }
}

/* ---- Replaces former inline styles (keeps the strict Content-Security-Policy possible) ---- */
.strip-title { margin: 0; color: var(--white); }
.alert-detail { margin: 0.5rem 0 0; }

/* ---- 404 page ---- */
.error-page { min-height: 100vh; display: flex; align-items: center; background: var(--cream); text-align: center; padding: 3rem 0; }
.error-inner img { margin: 0 auto 1rem; width: 140px; height: 140px; }
.error-inner .btn-row { justify-content: center; margin-top: 1.5rem; }
