/* Design tokens: 5 colors total */
:root {
  --color-bg: #0b0c10; /* near black */
  --color-fg: #f5f7fa; /* off-white */
  --color-muted: #9aa3af; /* neutral gray */
  --color-brand: #0ea5e9; /* brand blue */
  --color-accent: #14b8a6; /* accent teal */
  --radius: 0.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Roboto, Helvetica Neue, Arial, Noto Sans, Apple
    Color Emoji, Segoe UI Emoji;
  line-height: 1.6;
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 4px);
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  margin: 0.5rem 0 0;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5rem;
  line-height: 1.2;
}
.h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.h4 {
  font-size: 1.0625rem;
  font-weight: 600;
}

.lead {
  font-size: 1.0625rem;
  color: var(--color-muted);
  max-width: 50ch;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}
.section {
  padding: 3.5rem 0;
}
.section-head {
  margin-bottom: 1.25rem;
}
.muted {
  color: var(--color-muted);
}

.text-balance {
  text-wrap: balance;
}

/* Accessibility helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  background: var(--color-brand);
  color: var(--color-fg);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transform: translateY(-150%);
  transition: transform .2s ease;
  z-index: 1000;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--color-accent);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(11, 12, 16, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(154, 163, 175, 0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: .5rem;
  background: var(--color-brand);
  color: var(--color-bg);
  font-weight: 900;
}
.brand-text {
  font-size: 1.05rem;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: .75rem;
  padding: 0;
  margin: 0;
}

@media(max-width: 520px) {
  .site-nav ul {
    flex-direction: column;
  }
}

.site-nav a {
  display: inline-block;
  padding: .5rem .75rem;
  border-radius: .5rem;
  color: var(--color-muted);
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-fg);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

/* Mobile nav */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: .3rem;
  padding: .5rem;
  border: 1px solid rgba(154, 163, 175, 0.35);
  border-radius: .5rem;
  background: transparent;
  color: var(--color-fg);
}
.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--color-fg);
  border-radius: 2px;
}
.site-nav {
  position: fixed;
  inset: 3.5rem 1rem auto 1rem;
  background: rgba(22, 23, 28, 0.97);
  border: 1px solid rgba(154, 163, 175, 0.2);
  border-radius: var(--radius);
  padding: .5rem;
  display: none;
}
.site-nav.open {
  display: block;
}
@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
  .site-nav {
    position: static;
    display: block;
    background: transparent;
    border: 0;
    padding: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .6rem .95rem;
  border-radius: .75rem;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: .01em;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, opacity .15s ease, color .15s
    ease;
  cursor: pointer;
}
.btn:active {
  transform: translateY(1px);
}
.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--color-brand);
  color: var(--color-fg);
}
.btn--primary:hover {
  opacity: 0.92;
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-fg);
  border-color: rgba(154, 163, 175, 0.35);
}
.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(154, 163, 175, 0.35);
  color: var(--color-fg);
}
.btn--ghost:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}
.btn--sm {
  min-height: 38px;
  padding: .45rem .7rem;
  font-weight: 650;
}




/* Hero */
.hero {
  padding-top: 5rem;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.hero-copy .hero-cta{
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: .75rem;
}


.hero-cta .btn {
  margin: 1rem 0;
}

@media (max-width: 700px) {
  .hero {
    padding-top: 3rem;
  }

  .hero .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-cta {
    width: 100%;
  }

  .hero-cta .btn{
    margin: 1rem 0;
    width: 100%;
  }

  .hero .h1, .lead {
    text-align: center;
  }
}


.hero-points {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: .75rem 0 0;
  color: var(--color-muted);
}
.hero-media {
  display: flex;
  justify-content: center;
  justify-self: center;
}
.hero-img {
  width: min(100%, 420px);
  border-radius: 1rem;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); */
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr .9fr;
    gap: 2rem;
  }
}


/* Catalogue */
.catalogue .section-menu-catalogue {
  display: flex;
  justify-content: space-between;
}

.catalogue .section-filter {
  display: flex;
}


.catalogue .section-menu-catalogue 
.section-filter .reset{
  padding: 0 4px;
}

@media (max-width: 472px) {
  .catalogue .section-menu-catalogue {
    display: flex;
    flex-direction: column;
  }
}

.catalogue-button {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.catalogue-button a {
  font-weight: 500;
  width: 50%;
}

@media (max-width: 700px) {
  .catalogue-button .btn {
    font-weight: 500;
    width: 100%;
  }
}

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #0d0d0d, #111);
  border: 1px solid #222;
  color: #ccc;
}

.empty-state h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #fff;
}

.empty-state p {
  color: #888;
  margin-bottom: 20px;
}

.btn-reset {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  background: #1a2247;
  color: #fff;
  text-decoration: none;
  transition: background .2s ease;
}

.btn-reset:hover {
  background: #24307a;
}


/* Grids */
.grid {
  display: grid;
  gap: .5rem;
}
.cards {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

@media(max-width: 520px) {
  .cards {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}


/* Cards */
.card {
  position: relative;
  border: 1px solid rgba(154, 163, 175, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s ease, border-color .15s ease, background-color .15s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(154, 163, 175, 0.35);
}

.card-media {
  padding: .5rem;
}
.card-body {
  padding: .75rem;
}

.badge-soldout {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e70000;
  color: #fff;
  padding: 6px 10px;
  font-size: 16px;
  font-weight: 600;
  display: none;
  border-radius: 6px;
}

.card[data-status="soldout"] .badge-soldout {
  display: inline-block;
}

.card[data-status="soldout"] {
  opacity: 0.6;
  pointer-events: none; /* optional */
}

.card[data-status="soldout"] .card-media img {
  background-color: #0b0c10;
  opacity: 0.6;
  pointer-events: none; /* optional */
}

@media(max-width : 520px) { 
.card-body-title {
    font-size: .8rem;
    font-weight: 600;
  }

.card-body-subtitle {
    font-size: .8rem;
    font-weight: 600;
  }

  .price {
    font-size: .9rem;
  }
}

.price-row {
  margin-top: .5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.price {
  font-weight: 400;
  color: var(--color-brand);
}

.cta-pair {
  display: flex;
  justify-content: end;;
  gap: .25rem;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Lightbox modal + slider */
.lightbox {
  position: fixed;
  inset: 0;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  overflow-y: scroll;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
}
.lightbox-dialog {
  position: relative;
  width: min(960px, 100%);
  max-height: 100%;
  overflow-y: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(154, 163, 175, 0.25);
  background: rgba(22, 23, 28, 0.98);
  padding: .75rem;
  display: grid;
  gap: .75rem;
  top: 0;
  right: 0;
}
.lightbox-close {
  position: absolute;
  top: 0;
  right: .5rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0);
  border: 1px solid rgba(154, 163, 175, 0.35);
  border-radius: .5rem;
  color: var(--color-fg);
  z-index: 99;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media(min-width: 500px) {
  .lightbox-media-container {
    width: 50%;
  }

  .lightbox-container {
    display: flex;
  }
}

.lightbox-media {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 240px;
}
.lightbox-media img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  display: block;
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(154, 163, 175, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: var(--color-fg);
  display: grid;
  place-items: center;
}
.lightbox-prev {
  left: .5rem;
}
.lightbox-next {
  right: .5rem;
}

.lightbox-thumbs {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .25rem;
  margin-top: 12px;
}
.lightbox-thumbs button {
  background: transparent;
  border: 2px solid transparent;
  border-radius: .5rem;
  padding: 0;
  flex: 0 0 auto;
}
.lightbox-thumbs img {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: .4rem;
  display: block;
}
.lightbox-thumbs button[aria-selected="true"] {
  border-color: var(--color-brand);
}

.lightbox-details {
  display: grid;
  padding-left: 30px;
}

@media(max-width: 520px) {
  .lightbox-meta {
    border-top: solid 1px #9aa3af;
    padding-top: 10px;
    margin-top: 10px;
  }

  .lightbox-meta .price {
    font-size: 18px;
  }

  .lightbox-details { 
    padding-left: 0px;
  }

  .lightbox-detail-title {
    margin: 0;
    padding-top: 14px;
  }
}

.lightbox-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  border-top: solid 1px #9aa3af;
  padding-top: 10px;
  margin-top: 10px;
}

.lightbox-meta .price {
    font-size: 18px;
  }

@media (min-width: 900px) {
  .lightbox-dialog {
    grid-template-columns: 1fr;
  }
}

/* Features */
.features {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.feature {
  border: 1px solid rgba(154, 163, 175, 0.18);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius);
  padding: 1rem;
  transition: transform .15s ease, border-color .15s ease;
}
.feature:hover {
  transform: translateY(-2px);
  border-color: rgba(154, 163, 175, 0.35);
}
.feature-icon {
  font-size: 1.4rem;
  margin-bottom: .35rem;
}

/* Testimonials */
.testimonials-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: .25rem;
  scroll-snap-type: x mandatory;
}
.testimonial-card {
  scroll-snap-align: start;
  border: 1px solid rgba(154, 163, 175, 0.18);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius);
  padding: 1rem;
}
.testimonial-card blockquote {
  margin: 0 0 .5rem;
  font-weight: 600;
}

/* About */
.about-grid {
  display: grid;
  gap: 1rem;
  align-items: start;
}
@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.1fr .9fr;
    gap: 1.5rem;
  }
}
.checklist {
  padding-left: 1.1rem;
  margin: .5rem 0 0;
}
.checklist li {
  margin: .25rem 0;
}

.btn-maps {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

.btn-maps .btn {
  width: 100%;
}

/* Contact form */
.form-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.form-field {
  display: grid;
  gap: .35rem;
}
.form-field--full {
  grid-column: 1 / -1;
}
label {
  font-weight: 650;
}
input,
textarea {
  width: 100%;
  color: var(--color-fg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(154, 163, 175, 0.35);
  border-radius: .65rem;
  min-height: 44px;
  padding: .65rem .75rem;
  outline: none;
  transition: border-color .15s ease, background-color .15s ease;
}
input::placeholder,
textarea::placeholder {
  color: rgba(154, 163, 175, 0.9);
}
input:focus,
textarea:focus {
  border-color: var(--color-brand);
}
.field-error {
  color: #ff6b6b;
  font-size: .875rem;
  min-height: 1rem;
} /* error text only; not counting as palette color */
.form-actions {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: .75rem;
}
.form-toast {
  margin-top: .75rem;
  border: 1px solid rgba(20, 184, 166, 0.45);
  color: var(--color-fg);
  background: rgba(20, 184, 166, 0.12);
  padding: .6rem .75rem;
  border-radius: .6rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(154, 163, 175, 0.15);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  gap: .75rem;
  flex-wrap: wrap;
}
.footer-links {
  list-style: none;
  display: flex;
  gap: .75rem;
  padding: 0;
  margin: 0;
}
.footer-links a {
  color: var(--color-muted);
}
.footer-links a:hover {
  color: var(--color-fg);
}

/* Filter bar */
.filter-bar {
  margin: .5rem 0 1rem;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: .75rem;
}
.filters {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.cta-div {
  display: flex;
  justify-content: center;
  margin: 16px 0px;
}

.cta-div .btn {
  width: 50%;
}

@media (max-width: 700px) {
  .cta-div .btn {
    width: 100%;
  }
}


/* PAGINATION */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin: 3rem 0 2rem;
}

.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Item */
.page-item {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  background: #111;
  color: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #222;
  transition: all 0.2s ease;
  user-select: none;
}

/* Hover */
.page-item:hover {
  background: #1a2247;
  border-color: #1a2247;
  color: #fff;
}

/* Active */
.page-item.active {
  background: #1a2247;
  border-color: #1a2247;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(26, 34, 71, 0.5);
}

/* Disabled */
.page-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Dots */
.page-item.dots {
  cursor: default;
  background: transparent;
  border: none;
  color: #666;
}

.page-item:hover {
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .page-item {
    min-width: 32px;
    height: 32px;
    font-size: 14px;
  }
}
