/* ==========================================================================
   Relax Homewear — Wholesale Showroom
   ========================================================================== */

:root {
  --white: #FFFFFF;
  --off-white: #F7F5F2;
  --stone: #E4DFD6;
  --charcoal: #211C1F;
  --mid: #756E70;
  --brand: #681A50;
  --brand-dark: #4E1339;
  --brand-tint: #F6ECF2;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;
  --radius: 2px;
  --max: 1240px;
  --nav-h: 92px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--brand);
  display: inline-block;
}

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--off { background: var(--off-white); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-top: 14px; }
.section-head p { color: var(--mid); margin-top: 14px; font-size: 17px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--charcoal); color: var(--white); }
.btn-primary:hover { background: var(--brand); }
.btn-ghost { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn-ghost:hover { background: var(--charcoal); color: var(--white); }
.btn-ghost.on-dark { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-ghost.on-dark:hover { background: var(--white); color: var(--charcoal); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stone);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 84px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--brand);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--brand); }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 12px 22px; }
.nav-inline-cta { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: var(--charcoal);
  position: relative;
  transition: all 0.25s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); top: 0; }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h));
    background: var(--white); flex-direction: column; justify-content: flex-start;
    padding: 36px 24px; gap: 28px; transform: translateX(100%);
    transition: transform 0.3s ease; overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 15px; }
  .nav-cta .btn-ghost { display: none; }
  .nav-links .nav-inline-cta { display: flex; margin-top: 12px; padding: 15px 30px; color: var(--white); }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(100svh, 560px);
  padding-top: calc(var(--nav-h) + 32px); /* keep text clear of the fixed nav on short screens */
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--charcoal);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
}
.hero-media video { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
.hero-media video.is-active { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,15,18,0.72) 0%, rgba(20,15,18,0.42) 45%, rgba(20,15,18,0.15) 75%),
              linear-gradient(0deg, rgba(20,15,18,0.55) 0%, rgba(20,15,18,0.1) 40%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 0 24px 76px;
  max-width: 640px;
}
.hero-content .eyebrow { color: #E9C9DB; }
.hero-content .eyebrow::before { background: #E9C9DB; }
.hero-content h1 {
  font-size: clamp(34px, min(6vw, 8.5vh), 60px);
  line-height: 1.08;
  margin: 18px 0 20px;
  font-weight: 600;
}
.hero-content h1 em { font-style: italic; font-weight: 400; color: #F3D8E7; }
.hero-content .lead { font-size: 17px; color: rgba(255,255,255,0.85); max-width: 480px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-scroll {
  position: absolute; z-index: 2; right: 28px; bottom: 28px;
  color: rgba(255,255,255,0.75); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 10px;
}
.hero-scroll::after { content: ""; width: 1px; height: 40px; background: rgba(255,255,255,0.5); }
@media (max-width: 700px) { .hero-scroll { display: none; } }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
  overflow: hidden;
  padding: 18px 0;
  background: var(--off-white);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  white-space: nowrap;
}
.marquee-item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Category grid ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.cat-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: block;
  background: var(--stone);
}
.cat-card.span-2 { grid-column: span 2; grid-row: span 2; }
.cat-card.span-wide { grid-column: span 2; aspect-ratio: 3 / 2; } /* fills the last row so the grid stays even */
.cat-card.span-wide img { object-position: center 15%; }
.cat-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.7,.3,1);
}
.cat-card:hover img { transform: scale(1.04); }
.cat-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,10,13,0.78) 0%, rgba(15,10,13,0.05) 55%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
  color: var(--white);
}
.cat-card .overlay .name { font-size: 18px; font-weight: 600; }
.cat-card.span-2 .overlay .name { font-size: 24px; }
.cat-card .overlay .sub { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-top: 4px; }

@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card.span-2 { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/10; }
  .cat-card.span-wide { aspect-ratio: 16/10; }
  .cat-card.span-2 img { object-position: center 10%; } /* wide crop of a portrait photo: keep the face */
}

/* ---------- Trust pillars ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.trust-item { padding-top: 20px; border-top: 1px solid var(--stone); }
.trust-item .num { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 42px; color: var(--brand); line-height: 1; }
.trust-item h3 { margin: 16px 0 10px; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; }
.trust-item p { color: var(--mid); font-size: 15px; margin: 0; }
.trust-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .trust-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .trust-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Product / Lookbook cards ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--stone);
  background: var(--white);
  border-radius: 999px;
  cursor: pointer;
  color: var(--mid);
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--charcoal); color: var(--charcoal); }
.filter-btn.active { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}
.product-card { position: relative; }
.product-media {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--off-white);
  border: 1px solid var(--stone);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover .product-media img { transform: scale(1.04); }
.badge-new {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--brand); color: var(--white);
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  padding: 5px 10px; text-transform: uppercase;
}
.product-panel {
  position: absolute; inset: auto 0 0 0;
  background: rgba(255,255,255,0.97);
  border-top: 1px solid var(--stone);
  padding: 16px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.product-card:hover .product-panel,
.product-card:focus-within .product-panel { transform: translateY(0); }
.product-panel dl { margin: 0 0 12px; font-size: 12.5px; }
.product-panel dt { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mid); display: inline; }
.product-panel dd { margin: 0 0 4px; display: inline; }
.product-panel .row { margin-bottom: 4px; }
.product-panel .wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; background: var(--whatsapp); color: var(--white);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 11px; border-radius: 2px;
}
.product-panel .wa-btn:hover { background: var(--whatsapp-dark); }
.product-info { padding-top: 14px; }
.product-info .pname { font-size: 15px; font-weight: 600; }
.product-info .pfabric { font-size: 13px; color: var(--mid); margin-top: 2px; }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
  /* No hover on touch: let the panel sit below the image instead of being clipped by it */
  .product-media { aspect-ratio: auto; overflow: visible; border: none; background: none; }
  .product-media img { aspect-ratio: 3/4; height: auto; border: 1px solid var(--stone); background: var(--off-white); }
  .product-card:hover .product-media img { transform: none; }
  .product-panel { position: static; transform: none; border: none; padding: 12px 0 0; background: none; }
}

/* ---------- About page ---------- */
.about-hero {
  position: relative;
  height: 46vh;
  min-height: 320px;
  overflow: hidden;
}
.about-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
@media (min-width: 900px) { .about-hero img { object-position: center 4%; } } /* wide strip: show treetops only, no cropped head under the title */
.about-hero .scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,10,13,0.6), rgba(15,10,13,0.1)); }
.about-hero .cap { position: absolute; left: 0; right: 0; bottom: 32px; text-align: center; color: var(--white); }
.about-hero h1 { font-size: clamp(28px,4vw,42px); }

.about-copy { max-width: 720px; margin: 0 auto; }
.about-copy p { font-size: 17px; color: var(--charcoal); }
.about-copy h2 { font-size: 22px; margin: 40px 0 14px; }

.dark-strip {
  background: var(--charcoal);
  color: var(--white);
}
.dark-strip .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.dark-strip .eyebrow { color: #E9C9DB; }
.dark-strip .eyebrow::before { background: #E9C9DB; }
.dark-strip h2 { font-size: clamp(24px,3vw,32px); margin: 16px 0 18px; }
.dark-strip p { color: rgba(255,255,255,0.78); font-size: 16px; }
.dark-strip img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
@media (max-width: 850px) {
  .dark-strip .two-col { grid-template-columns: 1fr; gap: 32px; }
  .dark-strip img { order: -1; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 44px; } }

.info-list { margin: 28px 0 32px; }
.info-item { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--stone); }
.info-item:last-child { border-bottom: 1px solid var(--stone); }
.info-item .ico { width: 20px; height: 20px; flex-shrink: 0; color: var(--brand); margin-top: 2px; }
.info-item .lbl { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid); margin-bottom: 4px; }
.info-item .val { font-size: 15.5px; font-weight: 500; }

.map-wrap { border: 1px solid var(--stone); margin-top: 28px; }
.map-wrap iframe { width: 100%; height: 260px; border: 0; display: block; }

.form-card { background: var(--off-white); border: 1px solid var(--stone); padding: 40px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--stone);
  background: var(--white);
  border-radius: var(--radius);
  color: var(--charcoal);
}
.field input:focus, .field textarea:focus { border-color: var(--brand); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 12.5px; color: var(--mid); margin-top: 14px; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--charcoal); color: rgba(255,255,255,0.75); padding: 64px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 34px; width: auto; }
.footer-brand span { color: var(--white); font-weight: 700; letter-spacing: 0.08em; font-size: 14px; text-transform: uppercase; }
.footer-desc { font-size: 14px; max-width: 320px; color: rgba(255,255,255,0.55); }
.footer h4 { color: var(--white); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--white); }
.footer-social { display: flex; gap: 14px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { border-color: var(--white); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: 12.5px; color: rgba(255,255,255,0.45); }
.footer-bottom .dev-credit { color: rgba(255,255,255,0.7); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom .dev-credit:hover { color: var(--white); }
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Floating WhatsApp ---------- */
.float-wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  transition: transform 0.2s ease;
}
.float-wa:hover { transform: scale(1.07); background: var(--whatsapp-dark); }
.float-wa svg { width: 28px; height: 28px; fill: var(--white); }
/* Social shortcuts stacked above the WhatsApp button, same size, brand colours */
.float-social {
  position: fixed;
  right: 20px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
.float-social:hover { transform: scale(1.07); }
.float-social svg { width: 28px; height: 28px; }
.float-ig {
  bottom: 90px;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  box-shadow: 0 8px 24px rgba(214,36,159,0.35);
}
.float-fb {
  bottom: 160px;
  background: #1877F2;
  box-shadow: 0 8px 24px rgba(24,119,242,0.35);
}
.float-fb svg { fill: var(--white); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 56px;
  background: var(--off-white);
  border-bottom: 1px solid var(--stone);
}
.page-hero h1 { font-size: clamp(30px, 4.5vw, 46px); margin-top: 14px; }
.page-hero p { color: var(--mid); max-width: 560px; margin-top: 14px; font-size: 16px; }

main { display: block; }
.pad-top { padding-top: var(--nav-h); }

/* Utility */
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 900px) {
  .section { padding: 60px 0; }
}
