/* ========================================================================
   Scallero — Stylesheet
   Colors + type sourced from the official Scallero Brand Guidelines.
   ======================================================================== */

:root {
  --cream:        #F0EDE6;
  --cream-soft:   #E8E3D9;
  --ink:          #434343;
  --ink-mid:      #676662;
  --ink-soft:     rgba(67, 67, 67, 0.62);
  --line:         rgba(67, 67, 67, 0.14);
  --line-strong:  rgba(67, 67, 67, 0.28);
  --white:        #ffffff;

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1320px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul { list-style: none; }

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink-mid);
  display: block;
}

h1, h2, h3 { font-weight: 300; letter-spacing: -0.01em; line-height: 1.08; }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-head h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 300;
}
.section-head p {
  margin-top: 1.3rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-mid);
  font-weight: 400;
  max-width: 540px;
}

/* ---------------------------------- Language toggle ---------------------------------- */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.lang-toggle button {
  padding: 0.3rem 0.5rem;
  opacity: 0.5;
  transition: opacity 0.2s var(--ease);
}
.lang-toggle button.active { opacity: 1; }
.lang-toggle span { opacity: 0.4; }

/* ---------------------------------- Header ---------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.35rem 0;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.site-header .brand-logo { justify-self: start; }
.site-header .nav-links { justify-self: center; }
.site-header .header-right { justify-self: end; }
.site-header.is-scrolled {
  padding: 0.85rem 0;
  background: rgba(240, 237, 230, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

.brand-logo { display: flex; align-items: center; }
.brand-logo img { height: 34px; width: auto; }
.brand-logo .logo-light { display: block; }
.brand-logo .logo-dark { display: none; }
.site-header.is-scrolled .logo-light { display: none; }
.site-header.is-scrolled .logo-dark { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.6rem;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.3s var(--ease);
}
.nav-links a:hover::after { right: 0; }

.site-header.is-scrolled .nav-links a,
.site-header.is-scrolled .lang-toggle,
.site-header.is-scrolled .hamburger span { color: var(--ink); }
.nav-links a, .lang-toggle { color: var(--white); }

.header-right { display: flex; align-items: center; gap: 2.4rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.hamburger span {
  height: 1.5px;
  width: 100%;
  background: var(--white);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.site-header.is-scrolled .hamburger span { background: var(--ink); }
.hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav a {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .site-header .container { grid-template-columns: 1fr auto; }
  .brand-logo img { height: 34px; }
}

/* ---------------------------------- Hero ---------------------------------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,30,30,0.35) 0%, rgba(30,30,30,0.05) 30%, rgba(30,30,30,0.55) 100%);
}
.hero-content {
  width: 100%;
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
.hero-content .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.6rem;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 5.6vw, 4.2rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  max-width: 16ch;
  margin: 0 auto;
}
.hero-content .hero-sub {
  font-size: 1.08rem;
  font-weight: 400;
  max-width: 46ch;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  margin: 0 auto;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 2rem; margin-top: 0.6rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-light { color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--ink); }
.btn-dark { color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: var(--cream); }

/* ---------------------------------- Sections (general) ---------------------------------- */
section { position: relative; }
.section-pad { padding: clamp(5rem, 10vw, 8.5rem) 0; }

/* ---------------------------------- Collection ---------------------------------- */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.piece {
  background: var(--cream);
  padding-bottom: 2rem;
}
.piece-media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 1.3rem;
}
.piece-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.piece:hover .piece-media img { transform: scale(1.04); }
.piece-info { padding: 0 1.6rem; }
.piece-info .piece-name {
  font-size: 1.02rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.piece-info .piece-material {
  font-size: 0.85rem;
  color: var(--ink-mid);
  margin-bottom: 0.9rem;
}
.piece-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  border: 1px solid var(--line-strong);
  padding: 0.3rem 0.7rem;
}

@media (max-width: 1000px) {
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .collection-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------- Philosophy ---------------------------------- */
.philosophy {
  background: var(--ink);
  color: var(--cream);
}
.philosophy .eyebrow, .philosophy .eyebrow::before { color: var(--cream); background: var(--cream); opacity: 0.7; }
.philosophy-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.philosophy h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: 1.6rem;
  max-width: 14ch;
}
.philosophy p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(240,237,230,0.78);
  margin-bottom: 1.3rem;
  max-width: 52ch;
}
.philosophy-media { aspect-ratio: 4 / 5; overflow: hidden; }
.philosophy-media img { width: 100%; height: 100%; object-fit: cover; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(240,237,230,0.18);
}
.pillar .pillar-num { font-size: 0.78rem; letter-spacing: 0.16em; color: rgba(240,237,230,0.5); margin-bottom: 0.6rem; }
.pillar .pillar-label { font-size: 1rem; font-weight: 500; color: var(--cream); }

@media (max-width: 860px) {
  .philosophy-grid { grid-template-columns: 1fr; }
  .philosophy-media { order: -1; }
  .pillars { grid-template-columns: 1fr; gap: 1.4rem; }
}

/* ---------------------------------- Lookbook ---------------------------------- */
.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 16vw;
  gap: 1rem;
}
.look { overflow: hidden; position: relative; }
.look img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.look:hover img { transform: scale(1.045); }
.look-a { grid-column: span 4; grid-row: span 2; }
.look-b { grid-column: span 2; grid-row: span 2; }
.look-c { grid-column: span 2; grid-row: span 3; }
.look-d { grid-column: span 2; grid-row: span 3; }
.look-e { grid-column: span 2; grid-row: span 3; }
.look-f { grid-column: span 3; grid-row: span 2; }
.look-g { grid-column: span 3; grid-row: span 2; }
.look-b img { object-position: 65% center; }
.look-d img { transform: scale(1.55); object-position: center 20%; }
.look-d:hover img { transform: scale(1.62); }

@media (max-width: 900px) {
  .lookbook-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 40vw; }
  .look-a, .look-b, .look-c, .look-d, .look-e, .look-f, .look-g { grid-column: span 1; grid-row: span 1; }
}

/* ---------------------------------- Newsletter ---------------------------------- */
.newsletter {
  background: var(--cream-soft);
  text-align: center;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.newsletter .container { max-width: 680px; }
.newsletter .eyebrow { justify-content: center; }
.newsletter .eyebrow::before { display: none; }
.newsletter h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 300;
  margin-bottom: 1.2rem;
}
.newsletter p {
  font-size: 1.05rem;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 2.6rem;
}
.newsletter-form {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.9rem;
  margin-bottom: 1.2rem;
}
.newsletter-form input {
  flex: 1;
  background: none;
  border: none;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 0.4rem 0;
}
.newsletter-form input::placeholder { color: var(--ink-soft); }
.newsletter-form button {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.4rem 0 0.4rem 1.4rem;
  transition: opacity 0.2s;
}
.newsletter-form button:hover { opacity: 0.6; }
.form-note, .newsletter .form-note { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 0; }
.form-status, .newsletter .form-status { font-size: 0.88rem; margin-top: 0.5rem; margin-bottom: 0; min-height: 1.2em; }
.form-status.is-success { color: #4a5d43; }
.form-status.is-error { color: #7a3b34; }
.newsletter-emblem { height: 92px; width: auto; margin: 1rem auto; opacity: 0.55; }

/* ---------------------------------- Footer ---------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(3.5rem, 7vw, 5rem) 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(240,237,230,0.16);
}
.footer-brand img { height: 24px; margin-bottom: 1.1rem; }
.footer-brand p { font-size: 0.92rem; color: rgba(240,237,230,0.62); max-width: 32ch; line-height: 1.6; }
.footer-col h4 {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240,237,230,0.5);
  margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { font-size: 0.94rem; color: rgba(240,237,230,0.85); transition: color 0.2s; }
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.8rem;
  font-size: 0.82rem;
  color: rgba(240,237,230,0.5);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom a { color: rgba(240,237,230,0.5); }
.footer-bottom a:hover { color: var(--cream); }
.footer-legal { display: flex; gap: 1.6rem; }

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------------------------------- Legal pages ---------------------------------- */
.legal-page { padding: clamp(8rem, 14vw, 11rem) 0 6rem; }
.legal-page .container { max-width: 760px; }
.legal-page h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 300; margin-bottom: 0.6rem; }
.legal-updated { color: var(--ink-mid); font-size: 0.9rem; margin-bottom: 3rem; }
.legal-section { margin-bottom: 2.2rem; }
.legal-section h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.7rem; }
.legal-section p, .legal-section li { font-size: 0.98rem; line-height: 1.75; color: var(--ink-mid); margin-bottom: 0.8rem; }
.legal-section a { text-decoration: underline; }
.legal-divider { border: none; border-top: 1px solid var(--line); margin: 2.4rem 0; }
.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 2.5rem; color: var(--ink-mid);
}
.placeholder { background: rgba(214,88,64,0.14); padding: 0.05em 0.4em; border-radius: 3px; }

/* ---------------------------------- Reveal-on-scroll ---------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
