:root {
  --bg: #0f1115;
  --panel: #141820;
  --muted: #a9b3c9;
  --text: #e8ecf5;
  --accent: #d4af37;
  --accent-2: #2f8bf8;
  --border: rgba(255, 255, 255, 0.07);
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(145deg, #0b0c10 0%, #0f1115 50%, #0c1018 100%);
  color: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img, video {
  max-width: 100%;
  display: block;
  border-radius: 14px;
  object-fit: cover;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(12, 14, 20, 0.72);
  border-bottom: 1px solid var(--border);
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 20px;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

/* Icon helper for inline SVG icons in links/buttons */
.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 8px;
  color: var(--text);
}

.btn .icon {
  margin-right: 10px;
}

.icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.nav a:hover {
  color: var(--accent);
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-1px);
}

.hero {
  padding: 96px 0 72px;
}

.hero__content {
  display: grid;
  gap: 36px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.hero__text h1 {
  font-size: 52px;
  line-height: 1.05;
  margin: 12px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.hero__text .lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 650px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin: 20px 0 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--accent), #f4d35e);
  color: #0e1016;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn--ghost:hover {
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--accent);
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.hero__meta strong {
  display: block;
  font-size: 17px;
}

.hero__meta span {
  color: var(--muted);
  font-size: 14px;
}

.hero__media {
  display: grid;
}

.media-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.media-card__video,
.media-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.media-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);
  color: var(--text);
}

.media-card--light .media-card__overlay {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(15, 17, 23, 0.7) 100%);
}

.hero__card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero__list {
  list-style: none;
  padding: 0;
  margin: 16px 0 12px;
  display: grid;
  gap: 14px;
}

.hero__list span {
  display: block;
  font-weight: 600;
}

.hero__list small {
  color: var(--muted);
}

.inline-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

.section {
  padding: 80px 0;
}

.section--light {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Compact rules for the Assurance section so it fits on a single viewport */
#assurance.section {
  padding: 28px 0; /* reduce vertical space */
}

#assurance .section__header h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

#assurance .section__header .lede {
  font-size: 13px;
  margin-bottom: 8px;
}

#assurance .timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  align-items: start;
}

#assurance .timeline__item {
  padding: 12px 12px;
  gap: 10px;
  border-radius: 12px;
}

#assurance .timeline__step {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 14px;
}

#assurance .timeline__item h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

#assurance .timeline__item p {
  font-size: 13px;
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  #assurance.section {
    padding: 36px 0;
  }
  #assurance .timeline {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.section--accent {
  background: linear-gradient(120deg, #162033 0%, #0f1115 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section__header {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section__header h2 {
  margin: 8px 0 4px;
  font-size: 36px;
}

.lede {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid--three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--two {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--panel);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.1);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 12px;
}

/* Header inside a card: align icon and title on one row */
.card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.card__header .card__icon {
  margin-bottom: 0; /* remove default spacing when inline */
}

.card__header h3 {
  margin: 0;
  font-size: 18px;
}

.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 12px 0 0;
}

.pill-list li {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 13px;
  border: 1px solid var(--border);
}

.timeline {
  display: grid;
  gap: 18px;
  margin-top: 14px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 14px;
  align-items: center; 
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}

.timeline__step {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.12);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent);
}

.card--highlight {
  position: relative;
  overflow: hidden;
}

.card--highlight::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.16), transparent 35%);
  pointer-events: none;
}

.card--highlight img {
  border-radius: 12px;
  margin-bottom: 10px;
  aspect-ratio: 4 / 3;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
}

.gallery {
  gap: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
}

/* Bottom gallery (used to place some gallery images below the split content) */
.gallery--bottom {
  margin-top: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery__item {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  display: block;
  transition: transform 260ms cubic-bezier(.2,.9,.3,1), box-shadow 260ms ease;
}

.gallery__item img {
  aspect-ratio: 4 / 3;
  background: radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.12), transparent 38%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms cubic-bezier(.2,.9,.3,1);
  transform-origin: center center;
}

.gallery__item:hover img,
.gallery__item:focus-within img {
  transform: scale(1.05);
}

.gallery__item:hover,
.gallery__item:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  border-color: rgba(212, 175, 55, 0.12);
}

/* Accessible focus outlines for interactive elements */
.btn:focus-visible,
.nav a:focus-visible,
.gallery__item:focus-within {
  outline: 3px solid rgba(212, 175, 55, 0.14);
  outline-offset: 4px;
}

.gallery--cards .card {
  padding: 0 0 16px;
}

.gallery--cards .card h3,
.gallery--cards .card p,
.gallery--cards .card .tag {
  padding: 0 16px;
}

.container--split {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center; /* This line is redundant and can be removed */
}

/* Wholesale: make left column top-aligned and center its action buttons */
#wholesale .container--split {
  align-items: start;
}

#wholesale .hero__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

/* Make wholesale buttons stack on small screens and sit side-by-side centered on larger screens */
@media (max-width: 960px) {
  #wholesale .hero__actions {
    flex-direction: column;
  }
  #wholesale .hero__actions .btn {
    width: 100%;
    max-width: 320px;
  }
}
@media (min-width: 961px) {
  #wholesale .hero__actions {
    flex-direction: row;
  }
  #wholesale .hero__actions .btn {
    width: auto;
  }
}

.list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  margin: 0;
}

.list li {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.quote {
  background: var(--panel);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.quote__meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.quote__name {
  display: block;
  color: var(--text);
  font-weight: 700;
}

.section--accent h2 {
  margin: 8px 0 8px;
}

.container--center {
  text-align: center;
  max-width: 720px;
}

.contact-options {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.small-print {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  padding: 36px 0 30px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: start;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

@media (max-width: 960px) {
  .hero__content,
  .container--split {
    grid-template-columns: 1fr;
  }

  .hero__text h1 {
    font-size: 42px;
  }

  .hero__meta {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 640px) {
  .header__content {
    padding: 14px 0;
  }

  .nav {
    display: none;
  }

  .hero {
    padding-top: 72px;
  }

  .hero__text h1 {
    font-size: 34px;
  }

  .hero__meta {
    grid-template-columns: 1fr;
  }

  .section__header h2 {
    font-size: 28px;
  }
}

/* Compact wholesale layout: reduce spacing and image heights
   so text + four gallery images are likely to fit within one viewport. */
#wholesale {
  padding: 44px 0; /* slightly smaller section padding */
}

#wholesale .container--split {
  gap: 18px;
  grid-template-columns: 1fr 0.95fr; /* give a bit more room to images */
}

#wholesale .hero__text h2 {
  font-size: 28px;
  line-height: 1.08;
  margin-bottom: 8px;
}

#wholesale .list li {
  padding: 10px 12px;
  font-size: 14px;
}

/* Force both galleries to use two columns and smaller gaps */
#wholesale .gallery,
#wholesale .gallery--bottom {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* Make gallery rows equal height and images fill their cells */
#wholesale .gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr; /* equal-height rows */
  gap: 10px;
  height: 100%;
}

#wholesale .gallery__item {
  border-radius: 10px;
  height: 100%;
  overflow: hidden;
}

#wholesale .gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* Slightly larger images on very wide screens */
@media (min-width: 1200px) {
  #wholesale .gallery {
    gap: 12px;
  }
}

@media (max-width: 960px) {
  /* on narrow screens revert to stacked layout but keep images compact */
  #wholesale .gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    height: auto;
  }
  #wholesale .gallery__item img {
    height: 120px;
  }
}

/* ===== Mobile-first responsive rules (append) ===== */
/* Small screens: stack columns, scale typography and images */
@media (max-width: 559px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero__content,
  .container--split,
  .grid--three {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .hero {
    padding: 36px 0;
  }

  .hero__text h1 {
    font-size: 28px;
    line-height: 1.15;
  }

  .hero__meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .grid--three {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .gallery__item img {
    height: 120px;
  }

  .section {
    padding: 28px 0;
  }

  .section__header h2 {
    font-size: 20px;
  }
}

/* Medium screens (tablet) */
@media (min-width: 560px) and (max-width: 899px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .grid--three { grid-template-columns: repeat(2, 1fr); }
  .hero__content { grid-template-columns: 1fr; gap: 18px; }
  .gallery__item img { height: 160px; }
  .hero__text h1 { font-size: 34px; }
}

/* Desktop */
@media (min-width: 900px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .grid--three { grid-template-columns: repeat(3, 1fr); }
  .hero__content { grid-template-columns: 1fr 520px; gap: 28px; }
  .container--split { grid-template-columns: 1fr 520px; align-items: start; gap: 24px; }
  #wholesale .gallery { grid-auto-rows: 1fr; }
  .gallery__item img { height: 180px; }
  .section__header h2 { font-size: 32px; }
}

/* Wide screens */
@media (min-width: 1200px) {
  .hero__content { grid-template-columns: 1fr 640px; }
  .container--split { grid-template-columns: 1fr 560px; }
  .gallery__item img { height: 220px; }
  .container { max-width: 1200px; }
}

/* Wholesale gallery: desktop 2×2, tablet/mobile single-column
   Use `.gallery--table` as an optional helper but enforce single-column
   only on tablet/mobile via the media query below. */
#wholesale .gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 10px;
}

@media (max-width: 899px) {
  /* On tablet and smaller: show single column (one image per row) */
  #wholesale .gallery,
  #wholesale .gallery.gallery--table {
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto;
    gap: 10px !important;
  }

  #wholesale .gallery .gallery__item {
    height: auto;
  }

  #wholesale .gallery .gallery__item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    display: block;
  }
}
