/* ============================================================
   THE NOSH BAR — Styles
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:        #F9F6F0;
  --surface:   #FFFFFF;
  --dark:      #0E0A06;
  --dark-soft: #1C1610;
  --gold:      #D4A843;
  --gold-light:#F0C96B;
  --amber:     #C2622A;
  --green:     #2E5B2A;
  --green-light:#4A8C45;
  --cream:     #FDF5E6;
  --muted:     #7A6F62;

  --font-display: 'Noto Serif Display', serif;
  --font-body:    'Montserrat', sans-serif;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  28px;
  --radius-xl:  48px;
  --radius-pill:100px;

  --shadow-sm:  0 2px 8px rgba(14,10,6,.06);
  --shadow-md:  0 8px 32px rgba(14,10,6,.10);
  --shadow-lg:  0 24px 64px rgba(14,10,6,.14);

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:cubic-bezier(0.45, 0, 0.55, 1);

  --nav-h: 96px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ── Placeholders para imágenes faltantes ───────────────────── */
.img-placeholder {
  background: linear-gradient(135deg, #e8dcc8 0%, #d4c4a4 100%);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-placeholder::after {
  content: 'Imagen próximamente';
  font-family: var(--font-body);
  font-size: 13px;
  color: #9a8a72;
  letter-spacing: .05em;
}
.img-placeholder img { display: none; }

/* ── Tipografía global ──────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--dark);
}

.section-title em {
  font-style: italic;
  font-weight: 700;
  color: var(--amber);
}

/* ── Botones ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all .28s var(--ease-out);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--dark);
  color: #fff;
  padding: 14px 28px;
}
.btn--primary:hover {
  background: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(194,98,42,.35);
}

.btn--ghost {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
  padding: 14px 28px;
}
.btn--ghost:hover {
  background: var(--dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn--nav {
  background: var(--dark);
  color: #fff;
  padding: 10px 22px;
  font-size: 14px;
}
.btn--nav:hover {
  background: var(--amber);
}

.btn--small {
  background: var(--dark);
  color: #fff;
  padding: 8px 18px;
  font-size: 13px;
}
.btn--small:hover {
  background: var(--amber);
}

.btn--lg { padding: 17px 36px; font-size: 16px; }

.btn--full { width: 100%; justify-content: center; }

/* ── Reveal animation ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }

/* ============================================================
   NAVEGACIÓN
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(249,246,240,.88);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 1px 0 rgba(14,10,6,.08);
}

.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 40px;
  overflow: hidden;
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav__logo-img {
  height: 100px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.nav__links {
  display: flex;
  gap: 36px;
  margin-left: auto;
}

.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  position: relative;
  padding-bottom: 2px;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--amber);
  transition: width .25s var(--ease-out);
  border-radius: 2px;
}
.nav__link:hover::after { width: 100%; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .28s var(--ease-out);
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  background: rgba(249,246,240,.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(14,10,6,.08);
  padding: 24px 32px 32px;
}
.nav__mobile.open { display: block; }
.nav__mobile ul { display: flex; flex-direction: column; gap: 20px; }
.nav__mobile .nav__link { font-size: 18px; }
.nav__mobile .btn { margin-top: 8px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) 32px 80px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  gap: 60px;
}

.hero__bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  animation: blobFloat 8s ease-in-out infinite;
}
.hero__blob--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #F0C96B40, transparent 70%);
  top: -150px; right: -100px;
}
.hero__blob--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #C2622A30, transparent 70%);
  bottom: 0; left: -100px;
  animation-delay: -3s;
}
.hero__blob--3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #2E5B2A20, transparent 70%);
  top: 50%; right: 30%;
  animation-delay: -6s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 15px) scale(.97); }
}

.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(14,10,6,.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(212,168,67,.12);
  border: 1px solid rgba(212,168,67,.3);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -.03em;
  color: var(--dark);
}
.hero__title em {
  font-style: italic;
  color: var(--amber);
  font-weight: 700;
}

.hero__desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Imagen hero */
.hero__visual { position: relative; }

.hero__img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #e8dcc8, #d4c4a4);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero__img-wrap--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__img-wrap--placeholder::after {
  content: 'Foto principal';
  font-family: var(--font-body);
  font-size: 13px;
  color: #9a8a72;
}

.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero__img-badge {
  position: absolute;
  bottom: 24px; right: 24px;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.hero__img-badge-num {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
.hero__img-badge-text {
  display: block;
  font-size: 11px;
  opacity: .7;
  margin-top: 2px;
  letter-spacing: .05em;
}

.hero__scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .4; transform: scaleY(1); }
  50%       { opacity: 1;  transform: scaleY(1.3); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 120px 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.about__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}

.about__img-cell {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, #e8dcc8, #d4c4a4);
  min-height: 180px;
}
.about__img-cell--tall {
  grid-row: span 2;
  min-height: 380px;
}
.about__img-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.about__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-light);
  color: var(--dark);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  margin-top: 16px;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__text p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
}

.about__stats {
  display: flex;
  gap: 32px;
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1px solid rgba(14,10,6,.08);
  justify-content: center;
}

.about__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  max-width: 160px;
}
.about__stat strong {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}
.about__stat span {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .03em;
}

/* ============================================================
   CATÁLOGO
   ============================================================ */
.catalog {
  padding: 120px 0;
  background: var(--dark-soft);
  overflow: hidden;
}

.catalog__header {
  text-align: center;
  padding: 0 32px;
  margin-bottom: 60px;
}
.catalog__header .section-title,
.catalog__header .section-label { color: #fff; }
.catalog__header .section-label { color: var(--gold); }
.catalog__header .section-title em { color: var(--gold-light); }

.catalog__subtitle {
  color: rgba(255,255,255,.55);
  margin-top: 12px;
  font-size: 16px;
}

/* ── Carrusel compartido ───────────────────────────────────── */
.carousel {
  position: relative;
}

.carousel__track {
  display: flex;
  gap: 24px;
  padding: 0 32px 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  transition: transform .5s var(--ease-out);
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { cursor: grabbing; }

.carousel__slide {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 320px;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s var(--ease-out);
  background: #fff;
  color: var(--dark);
  box-shadow: var(--shadow-md);
}
.carousel__btn svg { width: 20px; height: 20px; }
.carousel__btn:hover {
  background: var(--amber);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
.carousel__btn--prev { left: 16px; }
.carousel__btn--next { right: 16px; }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  padding: 0 32px;
}

.carousel__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: none;
  cursor: pointer;
  transition: all .25s;
  padding: 0;
}
.carousel__dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--gold);
}

/* Tarjetas de producto */
.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .35s var(--ease-out), box-shadow .35s;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card__img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e8dcc8, #d4c4a4);
  overflow: hidden;
}
.product-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.product-card:hover .product-card__img-wrap img {
  transform: scale(1.04);
}

.product-card__tag {
  position: absolute;
  top: 14px; left: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--dark);
  color: #fff;
}
.product-card__tag--new     { background: var(--green); }
.product-card__tag--limited { background: var(--amber); }

.product-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}
.product-card__body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.product-card__price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 120px 32px;
  background: var(--cream);
}

.features__container {
  max-width: 1280px;
  margin: 0 auto;
}

.features__header {
  text-align: center;
  margin-bottom: 64px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  font-size: 2.2rem;
  line-height: 1;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}
.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
   GALERÍA
   ============================================================ */
.gallery {
  padding: 120px 0;
  background: var(--bg);
  overflow: hidden;
}

.gallery__header {
  text-align: center;
  padding: 0 32px;
  margin-bottom: 60px;
}

.carousel__track--gallery { gap: 16px; }

.carousel__slide--gallery {
  width: 380px;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #e8dcc8, #d4c4a4);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery__prev, .gallery__next { background: var(--dark); color: #fff; }
.gallery__prev:hover, .gallery__next:hover { background: var(--amber); }

/* dots oscuros para galería */
.gallery .carousel__dot { background: rgba(14,10,6,.15); }
.gallery .carousel__dot.active { background: var(--amber); }

/* ============================================================
   CTA BANNER (marquee)
   ============================================================ */
.cta-banner {
  background: var(--amber);
  padding: 20px 0;
  overflow: hidden;
}

.cta-banner__marquee {
  overflow: hidden;
  white-space: nowrap;
}

.cta-banner__track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 22s linear infinite;
}

.cta-banner__track span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact {
  padding: 120px 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.contact__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__text p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
}

.contact__links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  transition: all .25s var(--ease-out);
}
.contact__link svg { width: 18px; height: 18px; flex-shrink: 0; }

.contact__link--wa {
  background: #25D366;
  color: #fff;
}
.contact__link--wa:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,211,102,.3);
}

.contact__link--ig {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}
.contact__link--ig:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220,39,67,.3);
}

.contact__link--fb {
  background: #1877F2;
  color: #fff;
}
.contact__link--fb:hover {
  background: #0e65d9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(24,119,242,.3);
}

/* Formulario */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--dark);
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #b8a898; }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(212,168,67,.15);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e84040;
}

.form-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* Botón con estado cargando */
.btn--primary.loading .btn__text { opacity: 0; }
.btn--primary.loading .btn__icon::before { content: '⏳'; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: #fff;
  padding: 64px 32px 0;
}

.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer__logo {
  height: 64px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.footer__logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}
.footer__brand p {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  max-width: 280px;
  line-height: 1.65;
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer__nav a {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.footer__nav a:hover { color: var(--gold); }

.footer__social {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.footer__social a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .2s, transform .2s;
}
.footer__social a svg { width: 18px; height: 18px; }
.footer__social a:hover {
  background: var(--amber);
  transform: translateY(-3px);
}

.footer__bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Tablet landscape ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner  { grid-template-columns: 1fr 1fr; }
  .footer__brand  { grid-column: span 2; }

  .about__container { gap: 48px; }
  .hero { gap: 40px; }
}

/* ── Tablet portrait / large phone (≤768px) ─────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 72px; }

  /* Nav */
  .nav__links, .btn--nav { display: none; }
  .nav__burger            { display: flex; }
  .nav__logo-img          { height: 56px; max-width: 180px; }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: calc(var(--nav-h) + 36px) 24px 64px;
    gap: 36px;
    min-height: auto;
  }
  .hero__content  { gap: 18px; }
  .hero__badge    { margin: 0 auto; }
  .hero__title    { font-size: clamp(2.6rem, 8vw, 4rem); }
  .hero__desc     { margin: 0 auto; font-size: 15px; max-width: 520px; }
  .hero__ctas     { justify-content: center; }
  .hero__scroll   { display: none; }
  .hero__visual   { order: -1; }
  .hero__img-wrap { max-width: 380px; margin: 0 auto; aspect-ratio: 3/2; }
  .hero__img-badge { padding: 12px 16px; }
  .hero__img-badge-num { font-size: 22px; }

  /* About */
  .about              { padding: 80px 24px; }
  .about__container   { grid-template-columns: 1fr; gap: 40px; }
  .about__img-grid    { max-width: 500px; margin: 0 auto; }
  .about__img-cell--tall { min-height: 280px; }
  .about__img-cell       { min-height: 130px; }
  .about__stats       { gap: 20px; flex-wrap: wrap; }
  .about__stat strong { font-size: 2rem; }

  /* Catalog */
  .catalog            { padding: 80px 0; }
  .catalog__header    { margin-bottom: 40px; padding: 0 24px; }
  .carousel__track    { padding: 0 24px 20px; gap: 16px; }
  .carousel__slide    { width: calc(100vw - 96px); max-width: 320px; }
  .carousel__slide--gallery { width: calc(100vw - 80px); max-width: 360px; }
  .carousel__btn      { width: 40px; height: 40px; }

  /* Features */
  .features           { padding: 80px 24px; }
  .features__grid     { grid-template-columns: 1fr 1fr; gap: 16px; }
  .feature-card       { padding: 28px 20px; }

  /* Gallery */
  .gallery            { padding: 80px 0; }
  .gallery__header    { padding: 0 24px; margin-bottom: 40px; }

  /* Contact */
  .contact            { padding: 80px 24px; }
  .contact__container { grid-template-columns: 1fr; gap: 40px; }
  .contact__form      { padding: 32px 24px; }
  .contact__links     { gap: 10px; }

  /* Footer */
  .footer             { padding: 56px 24px 0; }
  .footer__inner      { grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
  .footer__brand      { grid-column: 1; }
  .footer__logo       { height: 52px; }
}

/* ── Large phones  (≤480px) — iPhone Pro Max, Pixel 7 Pro ────── */
@media (max-width: 480px) {
  :root { --nav-h: 68px; }

  /* Nav */
  .nav__inner         { padding: 0 20px; gap: 0; }
  .nav__logo-img      { height: 48px; max-width: 160px; }

  /* Hero */
  .hero               { padding: calc(var(--nav-h) + 28px) 20px 56px; gap: 28px; }
  .hero__title        { font-size: clamp(2.2rem, 9vw, 3rem); letter-spacing: -.02em; }
  .hero__desc         { font-size: 14px; }
  .hero__ctas         { flex-direction: column; align-items: center; gap: 10px; }
  .hero__ctas .btn    { width: 100%; justify-content: center; max-width: 320px; }
  .hero__img-wrap     { max-width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-md); }
  .hero__img-badge    { bottom: 14px; right: 14px; padding: 10px 14px; }
  .hero__img-badge-num  { font-size: 18px; }
  .hero__img-badge-text { font-size: 10px; }

  /* About */
  .about              { padding: 64px 20px; }
  .about__img-grid    { max-width: 100%; }
  .about__img-cell--tall { min-height: 220px; }
  .about__img-cell       { min-height: 110px; }
  .about__text p      { font-size: 15px; }
  .about__stats       { gap: 0; justify-content: space-between; }
  .about__stat strong { font-size: 1.8rem; }

  /* Catalog */
  .catalog            { padding: 64px 0; }
  .catalog__header    { padding: 0 20px; margin-bottom: 32px; }
  .carousel__track    { padding: 0 20px 16px; gap: 14px; }
  .carousel__slide    { width: calc(100vw - 56px); }
  .carousel__slide--gallery { width: calc(100vw - 48px); }
  .carousel__btn      { width: 36px; height: 36px; }
  .carousel__btn svg  { width: 16px; height: 16px; }
  .carousel__btn--prev { left: 8px; }
  .carousel__btn--next { right: 8px; }

  /* Product card */
  .product-card__body     { padding: 18px; }
  .product-card__body h3  { font-size: 1.1rem; }
  .product-card__body p   { font-size: 13px; }

  /* Features */
  .features           { padding: 64px 20px; }
  .features__grid     { grid-template-columns: 1fr; gap: 14px; }
  .feature-card       { padding: 24px 20px; flex-direction: row; align-items: flex-start; gap: 16px; }
  .feature-card__icon { font-size: 1.8rem; flex-shrink: 0; }

  /* Gallery */
  .gallery            { padding: 64px 0; }
  .gallery__header    { padding: 0 20px; }
  .gallery-item       { aspect-ratio: 4/3; border-radius: var(--radius-md); }

  /* Contact */
  .contact            { padding: 64px 20px; }
  .contact__form      { padding: 24px 18px; gap: 16px; }
  .contact__links     { flex-direction: column; gap: 10px; }
  .contact__link      { justify-content: center; }
  .form-group input,
  .form-group textarea { padding: 12px 14px; font-size: 14px; }

  /* Footer */
  .footer             { padding: 48px 20px 0; }
  .footer__inner      { gap: 28px; padding-bottom: 32px; }
  .footer__logo       { height: 44px; }
  .footer__brand p    { font-size: 13px; }
  .footer__nav ul     { gap: 10px; }
  .footer__bottom     { font-size: 11px; padding: 16px 0; }

  /* Section typography */
  .section-title       { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .catalog__subtitle   { font-size: 14px; }
}

/* ── Standard phones (≤390px) — iPhone 14/15, Pixel 7 ────────── */
@media (max-width: 390px) {
  :root { --nav-h: 64px; }

  .nav__logo-img      { height: 42px; max-width: 140px; }
  .nav__inner         { padding: 0 16px; }

  .hero               { padding: calc(var(--nav-h) + 24px) 16px 48px; }
  .hero__title        { font-size: clamp(2rem, 10vw, 2.6rem); }
  .hero__badge        { font-size: 10px; padding: 5px 12px; }
  .hero__img-wrap     { border-radius: var(--radius-sm); }

  .about              { padding: 56px 16px; }
  .about__img-grid    { gap: 8px; }
  .about__stats       { padding-top: 20px; }

  .catalog__header    { padding: 0 16px; }
  .carousel__track    { padding: 0 16px 14px; gap: 12px; }
  .carousel__slide    { width: calc(100vw - 44px); }
  .carousel__slide--gallery { width: calc(100vw - 36px); }

  .features           { padding: 56px 16px; }

  .gallery__header    { padding: 0 16px; }

  .contact            { padding: 56px 16px; }
  .contact__form      { padding: 20px 16px; border-radius: var(--radius-md); }

  .footer             { padding: 40px 16px 0; }
  .footer__social a   { width: 38px; height: 38px; }

  .section-title       { font-size: clamp(1.6rem, 8vw, 2.2rem); }
}

/* ── Small phones (≤320px) — iPhone SE, older Android ──────────── */
@media (max-width: 320px) {
  .nav__logo-img      { height: 36px; max-width: 120px; }

  .hero__title        { font-size: 1.9rem; }
  .hero__desc         { font-size: 13px; }

  .about__img-cell--tall { min-height: 180px; }

  .carousel__slide    { width: calc(100vw - 36px); }
  .carousel__slide--gallery { width: calc(100vw - 28px); }

  .feature-card       { padding: 20px 16px; }

  .contact__form      { padding: 18px 14px; }

  .section-title       { font-size: 1.5rem; }
  .section-label       { font-size: 10px; }

  .btn--lg            { padding: 14px 24px; font-size: 14px; }
}
