/* ============================================================
   RED ESSENTIALS — Main Stylesheet
   Exact match to the original Next.js / Tailwind design
   ============================================================ */

/* ─── Fonts ──────────────────────────────────────────────── */
/* Loaded via <link> in _header.php (Google Fonts) */

/* ─── CSS Variables — exact match to globals.css ─────────── */
:root {
  /* Brand colours (HSL matching globals.css exactly) */
  --burgundy: hsl(349, 74%, 21%);
  /* #5D0E1D — primary */
  --gold: hsl(35, 43%, 64%);
  /* #C8A97E — secondary/accent */
  --charcoal: hsl(0, 0%, 10%);
  /* #1A1A1A */
  --off-white: hsl(0, 0%, 96%);
  /* muted */
  --background: hsl(0, 0%, 98%);
  /* #F9F9F9 */
  --foreground: hsl(0, 0%, 10%);
  /* #1A1A1A */
  --border: hsl(0, 0%, 90%);
  --muted: hsl(0, 0%, 45%);
  --card: #ffffff;

  /* Typography */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Layout */
  --container-max: 1280px;
  --container-px: 1.5rem;
  --radius: 0.5rem;
}

/* ─── Reset ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
}

/* ─── Container ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* ─── Utility ────────────────────────────────────────────── */
.text-center {
  text-align: center;
}

.text-burgundy {
  color: var(--burgundy);
}

.text-gold {
  color: var(--gold);
}

.text-muted {
  color: var(--muted);
}

.text-white {
  color: #fff;
}

.font-serif {
  font-family: var(--font-serif);
}

.uppercase {
  text-transform: uppercase;
}

.tracking-widest {
  letter-spacing: 0.15em;
}

.bg-white {
  background: #fff;
}

.bg-charcoal {
  background: var(--charcoal);
}

.bg-off-white {
  background: var(--off-white);
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 2rem;
  height: 3rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Gold (primary CTA on dark bg) */
.btn-gold {
  background: var(--gold);
  color: hsl(0, 0%, 10%);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: hsl(35, 50%, 72%);
  border-color: hsl(35, 50%, 72%);
}

/* White (secondary CTA) */
.btn-white {
  background: #fff;
  color: hsl(0, 0%, 10%);
  border-color: #fff;
}

.btn-white:hover {
  background: hsl(0, 0%, 94%);
  border-color: hsl(0, 0%, 94%);
}

/* Burgundy (default CTA on light bg) */
.btn-burgundy {
  background: var(--burgundy);
  color: #fff;
  border-color: var(--burgundy);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

.btn-burgundy:hover {
  background: hsl(349, 74%, 18%);
  border-color: hsl(349, 74%, 18%);
}

/* Outline (for nav-like buttons) */
.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--foreground);
  padding: 0 0.9rem;
  height: 2.2rem;
  font-size: 0.78rem;
}

.btn-outline:hover {
  border-color: var(--burgundy);
  color: var(--burgundy);
}

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s, background 0.3s, padding 0.3s;
  padding-block: 0.5rem;
}

.navbar.scrolled {
  background: rgba(249, 249, 249, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: clamp(0.25rem, 1vw, 1rem);
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 2vw, 0.75rem);
  flex-shrink: 1;
  min-width: 0;
}

.navbar-logo img {
  height: clamp(2.8rem, 12vw, 6.5rem);
  /* Allows scaling down more on tiny screens */
  width: clamp(2.8rem, 12vw, 6.5rem);
  object-fit: contain;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.navbar-logo:hover img {
  transform: scale(1.05);
}

.navbar-logo-text {
  font-family: var(--font-serif);
  font-size: clamp(0.75rem, 3.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: clamp(0.05em, 1vw, 0.18em);
  color: var(--foreground);
  white-space: nowrap;
  /* Prevents text from splitting into two lines on mobile */
}

/* Desktop nav links */
.navbar-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.navbar-nav a {
  color: hsl(0, 0%, 50%);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s;
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--burgundy);
  transition: width 0.2s;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--foreground);
}

.navbar-nav a:hover::after,
.navbar-nav a.active::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Language toggle */
.lang-toggle {
  background: transparent;
  border: 2px solid var(--border);
  padding: 0.3rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--foreground);
  border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s;
}

.lang-toggle:hover {
  border-color: var(--burgundy);
  color: var(--burgundy);
}

/* Hamburger button */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  order: -1;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 190;
  backdrop-filter: blur(2px);
}

.drawer-overlay.open {
  display: block;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(300px, 85vw);
  height: 100vh;
  background: var(--background);
  z-index: 200;
  padding: 5rem 1.5rem 2rem;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(-110%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--foreground);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.2s;
}

.mobile-drawer a:hover {
  color: var(--burgundy);
  padding-left: 0.5rem;
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.875rem;
}

.footer-brand .footer-logo img {
  height: 3rem;
  width: 3rem;
  object-fit: contain;
  filter: brightness(1.3);
}

.footer-logo-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #fff;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 260px;
}

.footer-section h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.footer-section a,
.footer-section>p {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
  line-height: 1.6;
}

.footer-section a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ─── Hero (Home page) ───────────────────────────────────── */
.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  background: var(--charcoal);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero_section_red.jpeg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(26, 26, 26, 0.25) 0%,
      rgba(26, 26, 26, 0.55) 60%,
      rgba(26, 26, 26, 0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  animation: heroFadeIn 0.9s ease both;
}

.hero-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200, 169, 126, 0.4);
  padding: 0.35rem 1rem;
  border-radius: 999px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 52rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 36rem;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Value Pillars ──────────────────────────────────────── */
.pillars {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.pillar:hover {
  background: hsl(0, 0%, 96%);
}

.pillar-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--off-white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--gold);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.pillar h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--burgundy);
  margin-bottom: 0.4rem;
}

.pillar p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── Section label / heading ────────────────────────────── */
.section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--foreground);
  line-height: 1.15;
}

.section-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 36rem;
  margin-inline: auto;
  margin-top: 0.75rem;
}

/* ─── Brand Tiles (Home alternating layout) ──────────────── */
.brand-tile-wrap {
  border-bottom: 1px solid var(--border);
}

.brand-tile-wrap:last-of-type {
  border-bottom: none;
}

.brand-tile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 4rem 0;
  align-items: center;
}

.brand-tile-image {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--off-white);
}

.brand-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  transition: transform 0.5s ease;
}

.brand-tile-wrap:hover .brand-tile-image img {
  transform: scale(1.04);
}

.brand-tile-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.875rem;
}

.brand-tile-content p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* ─── Brands Grid Page ───────────────────────────────────── */
.brands-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 3rem 0;
}

.brand-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}

.brand-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.brand-card-img {
  height: 200px;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.brand-card-img img {
  max-height: 100%;
  object-fit: contain;
}

.brand-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.brand-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.brand-card-body p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

/* ─── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: var(--burgundy);
  color: #fff;
  padding: 5rem 1rem;
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 2rem;
  line-height: 1.75;
}

/* ─── Page Hero (inner pages) ────────────────────────────── */
.page-hero {
  position: relative;
  min-height: 42vh;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(93, 14, 29, 0.2);
  mix-blend-mode: multiply;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 1rem;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: #fff;
  margin-bottom: 0.875rem;
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 36rem;
  margin-inline: auto;
  line-height: 1.7;
}

/* ─── About ──────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.vision-box {
  padding: 1.5rem;
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 1.5rem;
}

.vision-box h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.vision-box p {
  color: hsl(0, 0%, 40%);
  font-size: 0.9rem;
  line-height: 1.7;
}

.values-card {
  background: hsl(349, 74%, 21%, 0.05);
  border-radius: var(--radius);
  padding: 2rem;
}

.values-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--burgundy);
  margin-bottom: 1.5rem;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.values-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.values-list .check {
  color: var(--gold);
  flex-shrink: 0;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.cap-card {
  padding: 2rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  text-align: center;
  transition: background 0.2s;
}

.cap-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.cap-card h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.cap-card p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ─── Catalog ────────────────────────────────────────────── */
.catalog-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 3rem 0;
}

.cat-feature {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.cat-feature h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--burgundy);
  margin-bottom: 0.5rem;
}

.cat-feature p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

.custom-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.custom-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.custom-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.custom-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── Contact ────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 64rem;
  margin-inline: auto;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-info-item .icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-item h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.contact-map {
  width: 100%;
  height: 16rem;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 0.5rem;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.contact-form-box h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

/* ─── Forms ──────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--foreground);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  background: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--foreground);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(93, 14, 29, 0.1);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.form-btn {
  width: 100%;
  height: 3rem;
  margin-top: 0.5rem;
}

/* Alerts */
.alert {
  padding: 0.875rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  border: 1px solid;
}

.alert-success {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
}

.alert-error {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

/* ─── Prose (Privacy / Terms) ────────────────────────────── */
.prose-page {
  max-width: 52rem;
  margin-inline: auto;
  padding: 5rem 1rem;
}

.prose-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--burgundy);
  margin-bottom: 0.4rem;
}

.prose-page .updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
  display: block;
}

.prose-page h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
}

.prose-page p {
  color: hsl(0, 0%, 30%);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* ─── Section padding helpers ────────────────────────────── */
.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* ─── Animation ──────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-up {
  animation: fadeUp 0.6s ease both;
}

/* ─── Responsive: Tablet (≥ 768px) ──────────────────────── */
@media (min-width: 768px) {
  .navbar-nav {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .pillars-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .brand-tile {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .brand-tile.reverse>.brand-tile-image {
    order: 2;
  }

  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .capabilities-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .custom-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

/* ─── Responsive: Desktop (≥ 1024px) ────────────────────── */
@media (min-width: 1024px) {
  .brands-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .brand-tile-image {
    height: 420px;
  }
}

/* ─── RTL (Arabic) ───────────────────────────────────────── */
[dir="rtl"] .hamburger {
  order: 1;
}

[dir="rtl"] .navbar-logo {
  flex-direction: row-reverse;
}

[dir="rtl"] .vision-box {
  border-left: none;
  border-right: 4px solid var(--gold);
  border-radius: var(--radius) 0 0 var(--radius);
}

[dir="rtl"] .values-list li {
  flex-direction: row-reverse;
}

[dir="rtl"] .contact-info-item {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .footer-brand p {
  max-width: 100%;
}

[dir="rtl"] .mobile-drawer a:hover {
  padding-left: 0;
  padding-right: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════
   BRAND TILE HOVER-REVEAL
   Matches the exact BrandTile.tsx from the original Next.js project
   ═══════════════════════════════════════════════════════════ */

/* Each brand occupies 70vh on mobile, 80vh on desktop */
.bt-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  opacity: 0;
  animation: btFadeIn 0.7s ease forwards;
}

@keyframes btFadeIn {
  to {
    opacity: 1;
  }
}

.bt-inner {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ── Image pane ── */
.bt-image-pane {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    left 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    right 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  /* Default: full width */
  width: 100%;
  left: 0;
  right: 0;
}

/* Image positioned left (even tiles) */
.bt-left {
  left: 0;
  right: auto;
}

/* Image positioned right (odd tiles) */
.bt-right {
  right: 0;
  left: auto;
}

/* On hover (desktop): image pane shrinks to 50% */
@media (min-width: 768px) {
  .bt-section:hover .bt-image-pane {
    width: 50%;
  }

  /* Even: stays pinned left, odd: stays pinned right */
  .bt-section:hover .bt-left {
    left: 0;
  }

  .bt-section:hover .bt-right {
    right: 0;
    left: auto;
  }
}

.bt-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2rem;
  transition: opacity 0.5s ease;
  user-select: none;
  pointer-events: none;
}

/* ── Mobile "VIEW" hint ── */
.bt-mobile-hint {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.bt-mobile-hint span {
  background: rgba(26, 26, 26, 0.8);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 0.6rem 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
  }
}

/* Hide hint on desktop */
@media (min-width: 768px) {
  .bt-mobile-hint {
    display: none;
  }
}

/* ── Desktop content panel (hidden by default, slides in on hover) ── */
.bt-content-pane {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  display: none;
  /* hidden on mobile */
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, rgba(93, 14, 29, 0.95), #5D0E1D);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  pointer-events: none;
}

/* Even tile: panel on the RIGHT, starts translated right */
.bt-content-right {
  right: 0;
  left: auto;
  transform: translateX(100%);
}

/* Odd tile: panel on the LEFT, starts translated left */
.bt-content-left {
  left: 0;
  right: auto;
  transform: translateX(-100%);
}

/* On hover: slide in and make clickable */
@media (min-width: 768px) {
  .bt-content-pane {
    display: flex;
  }

  .bt-section:hover .bt-content-pane {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
}

.bt-content-inner {
  padding: 3rem;
  color: #fff;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bt-name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.1;
  color: #fff;
}

.bt-divider {
  width: 4rem;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
}

.bt-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
}

/* White outline button — exact match to original */
.bt-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border: 2px solid #fff;
  background: #fff;
  color: hsl(0, 0%, 10%);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 0;
  /* square corners — matches original */
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  width: fit-content;
}

.bt-visit-btn:hover {
  background: var(--burgundy);
  color: #fff;
  border-color: #fff;
}

/* ── Mobile Slide-up Panel ── */
.bt-mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 100;
  animation: btFadeIn 0.3s ease;
}

.bt-mobile-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #4A0B17;
  /* Matches Next.js dark burgundy */
  color: #fff;
  padding: 3rem 1.5rem 1rem;
  /* Reduced bottom padding, relying on button margin instead */
  border-radius: 1.5rem 1.5rem 0 0;
  z-index: 101;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 85vh;
  /* Reduced from 90vh to 85vh to avoid address bar issues */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.5);
}

.bt-mobile-panel.open {
  transform: translateY(0);
  opacity: 1;
}

/* Only show mobile panel on small screens */
@media (min-width: 768px) {
  .bt-mobile-panel {
    display: none !important;
  }

  .bt-mobile-backdrop {
    display: none !important;
  }
}

.bt-mobile-drag-bar {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.bt-mobile-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}

.bt-mobile-close:hover {
  color: #fff;
}

/* Mobile visit button gets full width */
.bt-visit-btn-mobile {
  width: 100%;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 1rem 2rem;
  flex-shrink: 0;
  /* Prevent the button from getting squished in flex container */
  margin-bottom: calc(2rem + env(safe-area-inset-bottom));
  /* Ensure explicit space below the button so it's fully scrollable */
}

/* ═══════════════════════════════════════════════════════════
   CATALOG PAGE
   Matches the Next.js catalog/page.tsx exactly
   ═══════════════════════════════════════════════════════════ */

/* ── Hero ── */
.cat-hero {
  position: relative;
  background: linear-gradient(135deg, #5D0E1D 0%, #5D0E1D 60%, #1A1A1A 100%);
  padding: 6rem 0;
  overflow: hidden;
  text-align: center;
  color: #fff;
}

/* Faint background image overlay (10% opacity — same as Next.js `opacity-10`) */
.cat-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.1;
}

.cat-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 48rem;
  margin-inline: auto;
}

.cat-hero-badge {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.cat-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.5rem;
}

.cat-hero-sub {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 42rem;
  margin-inline: auto;
  line-height: 1.75;
}

/* ── Shared section wrapper ── */
.cat-section {
  padding: 5rem 0;
}

/* max-w-4xl centred inner wrapper */
.cat-inner {
  max-width: 56rem;
  margin-inline: auto;
}

/* ── Section header ── */
.cat-hdr {
  margin-bottom: 3rem;
}

.cat-section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.cat-h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--burgundy);
  margin-bottom: 1rem;
}

.cat-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 36rem;
  margin-inline: auto;
  line-height: 1.75;
}

/* ── 4-feature icon + text grid (2-col on md+) ── */
.cat-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .cat-features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.cat-feat-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cat-feat-icon {
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}

.cat-feat-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--foreground);
}

.cat-feat-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── CTA button row (Brands + Request a Quote) ── */
.cat-btn-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .cat-btn-row {
    flex-direction: row;
  }
}

/* outline-burgundy button variant */
.btn-outline-burgundy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 2rem;
  border: 1.5px solid var(--burgundy);
  background: transparent;
  color: var(--burgundy);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.btn-outline-burgundy:hover {
  background: var(--burgundy);
  color: #fff;
}

/* ── 3-card customization grid ── */
.cat-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .cat-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cat-card {
  background: #fff;
  padding: 2rem;
  border-radius: 2px;
  /* rounded-sm = 2px */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
}

.cat-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Circular icon container — h-14 w-14 bg-burgundy/10 rounded-full */
.cat-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(93, 14, 29, 0.1);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--burgundy);
  margin-bottom: 1.5rem;
}

.cat-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--burgundy);
  margin-bottom: 0.75rem;
}

.cat-card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* gold-dark button (used in catalog CTA sections) */
.btn-gold-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2.5rem;
  background: var(--gold);
  color: #1A1A1A;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.btn-gold-dark:hover {
  background: #fff;
  color: #1A1A1A;
}

/* ── 2×2 wholesale border cards ── */
.cat-wholesale-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .cat-wholesale-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.cat-ws-card {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.5rem;
  background: transparent;
}

.cat-ws-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.cat-ws-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Catalog CTA banner (solid burgundy) ── */
.cat-cta {
  background: var(--burgundy);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}

.cat-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: #fff;
  margin-bottom: 1.25rem;
}

.cat-cta-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-inline: auto;
  line-height: 1.75;
}