/* ============================================================
   SF LIVING — style.css
   Modern, minimal, elegant landing page for a sofa brand
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --bg:           #faf9f7;
  --surface:      #ffffff;
  --border:       #e5ded6;
  --text:         #2a2825;
  --text-muted:   #6e6860;
  --accent:       #8b7355;
  --accent-dark:  #6d5a42;
  --accent-light: #b09a7e;
  --hero-bg:      #efebe5;
  --about-bg:     #f4f1ed;
  --footer-bg:    #0d0d0d;
  --footer-txt:   #b8b0a7;
  --badge-bg:     #eee6dc;
  --badge-txt:    #8b7355;

  --r-sm:  6px;
  --r-md:  14px;
  --r-lg:  22px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow-md: 0 4px 22px rgba(0,0,0,.09);
  --shadow-lg: 0 14px 44px rgba(0,0,0,.14);

  --nav-h: 96px;
  --t: .3s ease;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ============================================================
   SPLASH SCREEN
   ============================================================ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--footer-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  /* Fade-out class added by JS */
  transition: opacity .6s ease, visibility .6s ease;
}
.splash.splash--out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Wrapper keeps ring and logo stacked in the same space */
.splash__logo-wrap {
  position: relative;
  width: 148px;
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated ring — fills the wrapper */
.splash__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent-light);
  border-right-color: var(--accent-light);
  animation: spin-ring 1.1s cubic-bezier(.6,.05,.4,.95) infinite;
}
@keyframes spin-ring {
  to { transform: rotate(360deg); }
}

/* Second, slower ring */
.splash__ring::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-bottom-color: var(--accent);
  border-left-color: var(--accent);
  animation: spin-ring-rev 1.7s cubic-bezier(.6,.05,.4,.95) infinite;
}
@keyframes spin-ring-rev {
  to { transform: rotate(-360deg); }
}

.splash__logo {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  animation: splash-pop .55s cubic-bezier(.34,1.56,.64,1) both;
  box-shadow: 0 0 0 4px rgba(139,115,85,.25);
}
@keyframes splash-pop {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: scale(1); }
}

.splash__brand {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
  animation: splash-fade-up .5s .2s ease both;
}
.splash__brand em {
  font-style: italic;
  color: var(--accent-light);
}
@keyframes splash-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Prevent scroll while splash is showing */
body.splash-visible { overflow: hidden; }

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

html { scroll-behavior: smooth; font-size: 16px; }

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

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ---- Utilities ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Shared section padding */
.section { padding: 96px 0; }

/* Badge pill */
.badge {
  display: inline-block;
  background: var(--badge-bg);
  color: var(--badge-txt);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

/* Section header */
.section-head {
  text-align: center;
  margin-bottom: 52px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-lead {
  font-size: .97rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--r-sm);
  font-size: .93rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background var(--t),
    color var(--t),
    border-color var(--t),
    transform var(--t),
    box-shadow var(--t);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(139,115,85,.32);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* Form fields */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.field label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
}
.field input,
.field textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: .93rem;
  transition: border-color var(--t), box-shadow var(--t);
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(139,115,85,.13);
}
.field input::placeholder,
.field textarea::placeholder { color: #b5aea7; }

/* Form success message */
.form-ok {
  display: none;
  margin-top: 14px;
  padding: 12px 16px;
  background: #edf7ed;
  border-left: 3px solid #4caf50;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: #2e7d32;
  font-size: .88rem;
}
.form-ok.visible { display: block; }

/* Scroll-reveal base state */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: #0d0d0d;
  border-bottom: 1px solid transparent;
  z-index: 900;
  transition: border-color var(--t), box-shadow var(--t);
}
.navbar.scrolled {
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 2px 18px rgba(0,0,0,.45);
}

.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
}
.navbar__logo-img {
  height: calc(var(--nav-h) - 10px);
  width:  calc(var(--nav-h) - 10px);
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.navbar__nav {
  display: flex;
  gap: 34px;
  align-items: center;
}

.nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  position: relative;
  transition: color var(--t);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent-light);
  border-radius: 2px;
  transition: width var(--t);
}
.nav-link:hover,
.nav-link.active { color: #fff; }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--hero-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 48px) 24px 80px;
  display: flex;
  align-items: center;
  gap: 64px;
  width: 100%;
}

.hero__text {
  flex: 1;
  max-width: 540px;
}

.hero__heading {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.035em;
  margin-bottom: 20px;
  color: var(--text);
}
.hero__heading em {
  font-style: normal;
  color: var(--accent);
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero__media {
  flex: 1;
  max-width: 580px;
}
.hero__img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

/* ============================================================
   CATALOG
   ============================================================ */
.catalog { background: var(--surface); }

.catalog__footer {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}
.btn-outline {
  padding: 12px 40px;
  border-radius: 100px;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t), color var(--t);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* Filter buttons */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}

.filter {
  padding: 8px 22px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: .86rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t);
}
.filter:hover {
  border-color: var(--accent-light);
  color: var(--accent);
}
.filter.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Product grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
}

/* Product card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .45s cubic-bezier(.22,.61,.36,1),
              box-shadow var(--t),
              opacity .45s ease;
}
.card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
}
/* hidden via JS — uses display:none after fade-out */
.card.hidden { display: none; }
/* fade-out state (before display:none) */
.card.card-fading-out {
  opacity: 0 !important;
  transform: translateY(14px) scale(0.96) !important;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease !important;
}
/* fade-in entry state */
.card.card-fading-in {
  opacity: 0;
  transform: translateY(14px) scale(0.96);
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card-img-wrap img { transform: scale(1.05); }

.card-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,.9);
  color: var(--accent);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

.card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.card-body p {
  font-size: .86rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 18px;
}
.card-body .btn {
  align-self: flex-start;
  font-size: .86rem;
  padding: 9px 20px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--about-bg); }

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

.about__media img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

/* About slider */
.about-slider {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 580 / 480;
}
.about-slider__track {
  display: flex;
  height: 100%;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.about-slider__track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  display: block;
}
.about-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.85);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background var(--t), transform var(--t);
  z-index: 2;
}
.about-slider__btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.about-slider__btn--prev { left: 12px; }
.about-slider__btn--next { right: 12px; }
.about-slider__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}
.about-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--t), transform var(--t);
}
.about-slider__dot.active {
  background: #fff;
  transform: scale(1.25);
}

.about__content .section-title { text-align: left; }

.about__lead {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.75;
}

.about__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.about__list li {
  display: flex;
  gap: 12px;
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.about__icon {
  color: var(--accent);
  font-size: .85rem;
  flex-shrink: 0;
  margin-top: 2px;
  font-weight: 700;
}

.about__callout {
  background: var(--badge-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.about__callout p {
  font-size: .92rem;
  color: var(--text);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}
.contact__grid--single {
  grid-template-columns: 1fr;
  max-width: 480px;
  margin: 0 auto;
}

/* Contact cards */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

/* Contact two-column layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}
.contact-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: var(--r-lg);
  display: block;
  box-shadow: var(--shadow-sm);
}
.contact-card--addr { text-align: center; }
.contact-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: box-shadow var(--t), transform var(--t);
}
.contact-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.contact-card__icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 4px;
}
.contact-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.contact-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}
.contact-card--wa { gap: 14px; }
.contact-card--wa .btn-whatsapp {
  width: 100%;
  justify-content: center;
  padding: 10px 18px;
  font-size: .9rem;
}
@media (max-width: 700px) {
  .contact-cards { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT — Right column (info cards)
   ============================================================ */
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t);
}
.info-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.info-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.info-card__icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0,0,0,.06), rgba(0,0,0,.02));
  color: var(--text);
}
.info-card__icon--wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 6px 14px rgba(37,211,102,.28);
}
.info-card__title { flex: 1; min-width: 0; }
.info-card__title h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  letter-spacing: -.01em;
}
.info-card__sub {
  display: block;
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: rgba(34,197,94,.12);
  color: #15803d;
  white-space: nowrap;
}
.status-pill--closed {
  background: rgba(148,163,184,.18);
  color: #475569;
}
.status-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.55);
  animation: pulse-dot 1.8s ease-out infinite;
}
.status-pill--closed .status-pill__dot {
  background: #94a3b8;
  animation: none;
  box-shadow: none;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* Hours list */
.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.hours-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: .92rem;
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list__period {
  color: var(--text-muted);
  font-weight: 500;
}
.hours-list__time {
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.hours-list__closed .hours-list__time {
  color: #94a3b8;
  font-weight: 600;
}

/* Agent cards (WhatsApp contacts) */
.agent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.agent-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--t), background var(--t), transform var(--t), box-shadow var(--t);
}
.agent-card:hover {
  border-color: #25d366;
  background: rgba(37,211,102,.05);
  transform: translateX(3px);
  box-shadow: 0 6px 18px rgba(37,211,102,.12);
}
.agent-card__avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .02em;
  position: relative;
}
.agent-card__avatar::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  background: #22c55e;
  border: 2px solid var(--surface);
  border-radius: 50%;
}
.agent-card__avatar--alt {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}
.agent-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.agent-card__name {
  font-size: .98rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.agent-card__role {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.agent-card__cta {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  transition: transform var(--t), background var(--t);
}
.agent-card:hover .agent-card__cta {
  background: #1da851;
  transform: scale(1.08) rotate(-6deg);
}

.contact-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.contact-info ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-info li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: .91rem;
  color: var(--text-muted);
}
.contact-info li span:first-child {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--footer-bg); color: var(--footer-txt); }

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding: 64px 24px 40px;
}

.footer__logo {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 12px;
}
.footer__logo em { font-style: normal; color: var(--accent-light); }
.footer__logo-img { height: 60px; width: 60px; object-fit: cover; border-radius: 50%; display: block; margin-bottom: 12px; }

.footer__brand p {
  font-size: .87rem;
  line-height: 1.7;
  max-width: 260px;
}

.footer__col h4 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col a {
  font-size: .88rem;
  color: var(--footer-txt);
  transition: color var(--t);
}
.footer__col a:hover { color: var(--accent-light); }

.footer__bar {
  border-top: 1px solid rgba(255,255,255,.07);
  text-align: center;
  padding: 20px 24px;
  font-size: .8rem;
  color: rgba(184,176,167,.45);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(42,40,37,.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal__box {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 40px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
  transform: scale(.93) translateY(12px);
  transition: transform .25s ease;
}
.modal.is-open .modal__box {
  transform: scale(1) translateY(0);
}

.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  background: var(--bg);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: background var(--t), color var(--t);
}
.modal__close:hover {
  background: var(--border);
  color: var(--text);
}

.modal__heading {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.modal__desc {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 26px;
}

/* ============================================================
   CARD ACTIONS (two-button row)
   ============================================================ */
.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-details {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  font-size: .86rem;
  padding: 9px 20px;
}
.btn-details:hover {
  background: #111;
  border-color: #111;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
}

/* ============================================================
   DETAILS MODAL
   ============================================================ */
.details-modal__box {
  max-width: 860px;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.details-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.details-modal__img-wrap {
  display: flex;
  flex-direction: column;
  background: var(--hero-bg);
}
.details-modal__img-wrap > img {
  width: 100%;
  flex: 1;
  object-fit: cover;
  display: block;
  min-height: 300px;
  overflow: hidden;
  transition: transform .5s ease, opacity .18s ease;
  cursor: zoom-in;
}
.details-modal__img-wrap > img:hover { transform: scale(1.04); }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  cursor: zoom-out;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  transform: scale(.92);
  transition: transform .35s cubic-bezier(.34,1.28,.64,1);
}
.lightbox.is-open .lightbox__img {
  transform: scale(1);
}
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--t);
}
.lightbox__close:hover { background: rgba(255,255,255,.25); }

.details-modal__info {
  padding: 38px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  max-height: 88vh;
}

.details-modal__tag {
  position: static;
  display: inline-block;
  backdrop-filter: none;
  background: var(--badge-bg);
  color: var(--badge-txt);
  align-self: flex-start;
}

.details-modal__info h3 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 0;
}

.details-modal__info > p {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.7;
}

/* Dimensions table */
.dims-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.dims-table tr { border-bottom: 1px solid var(--border); }
.dims-table tr:last-child { border-bottom: none; }
.dims-table td { padding: 8px 4px; vertical-align: middle; }
.dims-table td:first-child {
  color: var(--text-muted);
  width: 50%;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.dims-table td:last-child { font-weight: 700; }

/* WhatsApp button */
.btn-whatsapp {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  background: #25d366;
  color: #fff;
  border: 2px solid #25d366;
  border-radius: var(--r-sm);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
  text-decoration: none;
}
.btn-whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,.38);
}

/* ============================================================
   GALLERY THUMBNAILS
   ============================================================ */
.details-modal__thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(0,0,0,.05);
  flex-wrap: wrap;
}
.details-modal__thumbs[hidden] { display: none; }

.thumb-btn {
  width: 62px;
  height: 48px;
  padding: 2px;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--t), transform var(--t);
  overflow: hidden;
  flex-shrink: 0;
}
.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}
.thumb-btn:hover  { transform: translateY(-2px); border-color: var(--accent-light); }
.thumb-btn.active { border-color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about__media {
    max-width: 520px;
    margin: 0 auto;
  }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid  { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --nav-h: 68px; }

  /* Mobile nav */
  .nav-toggle { display: flex; }

  .navbar__logo-img {
    height: 52px;
    width:  52px;
  }

  .navbar__nav {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: #0d0d0d;
    border-bottom: 1px solid rgba(255,255,255,.1);
    flex-direction: column;
    padding: 12px 24px 20px;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.55);
    z-index: 899;
  }
  .navbar__nav.open {
    display: flex;
    animation: navSlideDown .22s ease;
  }
  @keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav-link {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    width: 100%;
  }
  .nav-link:last-child { border-bottom: none; }
  .nav-link::after { display: none; }

  /* Hero stacked */
  .hero__inner {
    flex-direction: column;
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 60px;
    text-align: center;
    gap: 40px;
  }
  .hero__text { max-width: 100%; }
  .hero__media { max-width: 100%; }

  /* Grid adjustments */
  .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }

  /* About */
  .about__content .section-title { text-align: center; }
  .about__inner { text-align: center; }
  .about__list li { text-align: left; }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }
  .footer__brand { grid-column: auto; }
}

@media (max-width: 480px) {
  .section { padding: 72px 0; }
  .grid { grid-template-columns: 1fr; }
  .hero__heading { font-size: 2rem; }
  .modal__box { padding: 28px 20px; }
  .filters { gap: 8px; }
  .filter { padding: 7px 16px; font-size: .8rem; }
  .card-actions { flex-direction: column; }
  .card-actions .btn { width: 100%; justify-content: center; }
}

/* Details modal — stack on small screens */
@media (max-width: 700px) {
  .details-modal__grid { grid-template-columns: 1fr; }
  .details-modal__img-wrap > img { min-height: 220px; max-height: 260px; flex: none; }
  .details-modal__info { padding: 24px 20px; max-height: none; }
}
