/* FIORE Eyewear — Custom styles on top of Tailwind */

:root {
  --ivory:  #FAF7F2;
  --ivory-2:#F2EDE2;
  --gold:   #C9A068;
  --gold-2: #B08850;
  --carbon: #1C1917;
  --muted:  #8A7A66;
  --line:   #E4DDCE;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--ivory);
  color: var(--carbon);
  font-weight: 300;
  letter-spacing: 0.01em;
}

.font-display {
  font-family: 'Cormorant Garamond', 'Garamond', serif;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.tracked-xs { letter-spacing: 0.15em; }
.tracked-sm { letter-spacing: 0.25em; }
.tracked-md { letter-spacing: 0.4em; }
.tracked-lg { letter-spacing: 0.6em; }

.text-gold { color: var(--gold); }
.bg-gold { background: var(--gold); }
.border-gold { border-color: var(--gold); }
.text-carbon { color: var(--carbon); }
.bg-carbon { background: var(--carbon); }
.text-ivory { color: var(--ivory); }
.bg-ivory { background: var(--ivory); }
.text-muted { color: var(--muted); }
.border-line { border-color: var(--line); }

/* Thin gold divider */
.divider-gold {
  width: 48px; height: 1px; background: var(--gold); margin: 1.5rem auto;
}
.divider-gold.long { width: 96px; }

/* "Per sempre" — brand signature (Italian, stays across all languages) */
.per-sempre {
  font-family: 'Cormorant Garamond', 'Garamond', serif;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.35em;
  font-size: 12px;
  text-transform: uppercase;
}

/* Button */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid var(--carbon);
  color: var(--carbon);
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  transition: all .25s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--carbon); color: var(--ivory); }
.btn-gold { border-color: var(--gold); color: var(--gold); }
.btn-gold:hover { background: var(--gold); color: var(--ivory); border-color: var(--gold); }
.btn-dark { border-color: var(--ivory); color: var(--ivory); }
.btn-dark:hover { background: var(--ivory); color: var(--carbon); }

/* Fixed header: solid translucent ivory (Tailwind's bg-ivory/80 doesn't resolve for custom colors) */
body > header.fixed {
  background: rgba(250, 247, 242, 0.90);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Nav */
.nav-link {
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--carbon);
  transition: color .2s ease;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lang-switch button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.25em;
  padding: 4px 2px;
  cursor: pointer;
  transition: color .2s ease;
}
.lang-switch button:hover { color: var(--gold); }
.lang-switch button.active { color: var(--gold); }
.lang-switch .sep { color: var(--line); font-size: 10px; }

/* Dark footer variant */
footer .lang-switch button { color: rgba(250,247,242,0.6); }
footer .lang-switch button:hover,
footer .lang-switch button.active { color: var(--gold); }

/* Logo symbol — FIORE isotipo: the "F" laid on its side.
   Exact vector proportions from FIORE_isotipo_dorado.svg (viewBox 110×188).
   Brandbook: always Champagne Gold (Pantone 872 C), keep aspect ratio, no outline, no tint. */
.fiore-symbol {
  display: inline-block;
  position: relative;
  width: 18px;
  aspect-ratio: 110 / 188;
  color: var(--gold);
  flex: none;
}
.fiore-symbol::before,
.fiore-symbol::after,
.fiore-symbol > span {
  content: '';
  position: absolute;
  background: currentColor;
}
/* tall left vertical */
.fiore-symbol::before { left: 0;   top: 0;      width: 23.64%; height: 87.23%; }
/* short right vertical */
.fiore-symbol > span  { left: 40%; top: 34.04%; width: 23.64%; height: 53.19%; }
/* base horizontal (spans full width) */
.fiore-symbol::after  { left: 0;   top: 87.23%; width: 100%;   height: 12.77%; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Model card */
.model-card {
  background: var(--ivory);
  border: 1px solid transparent;
  transition: border-color .3s ease, transform .3s ease;
  cursor: pointer;
}
.model-card:hover {
  border-color: var(--gold);
}
.model-card .img-wrap {
  aspect-ratio: 1 / 1;
  background: var(--ivory-2);
  overflow: hidden;
  position: relative;
}
.model-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.model-card:hover img { transform: scale(1.03); }

/* Modal */
.modal {
  position: fixed; inset: 0;
  background: rgba(28,25,23,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}
.modal.open { display: flex; }
.modal-content {
  background: var(--ivory);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 20px;
  font-size: 28px; line-height: 1;
  background: transparent; border: 0;
  color: var(--carbon); cursor: pointer;
  z-index: 2;
}

/* Form */
.form-field {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--carbon);
  font-family: inherit;
  font-size: 14px;
  transition: border-color .2s ease;
}
.form-field:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.form-field::placeholder { color: var(--muted); }
.form-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
select.form-field {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3e%3cpath fill='none' stroke='%23C9A068' stroke-width='1' d='M1 1l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 20px;
}
textarea.form-field {
  resize: vertical;
  min-height: 100px;
  padding: 14px 0;
}

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-2) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(201,160,104,0.06), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(201,160,104,0.04), transparent 40%);
  pointer-events: none;
}

/* ===== Editorial photography system ===== */

/* Full-bleed photo hero (home / section pages) */
.photo-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  isolation: isolate;
  background: var(--carbon);
}
.photo-hero.short { min-height: 62vh; padding-top: 110px; }
.photo-hero.compact { min-height: 48vh; padding-top: 104px; }
.photo-hero > img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}
.photo-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(28,25,23,0.30) 0%,
    rgba(28,25,23,0.38) 55%,
    rgba(28,25,23,0.60) 100%);
  z-index: -1;
}
.photo-hero.veil-soft::after {
  background: linear-gradient(180deg,
    rgba(28,25,23,0.22) 0%,
    rgba(28,25,23,0.30) 55%,
    rgba(28,25,23,0.52) 100%);
}
/* Light photo (ivory silk): dark text, ivory veil for legibility */
.photo-hero.on-light::after {
  background: linear-gradient(180deg,
    rgba(250,247,242,0.34) 0%,
    rgba(250,247,242,0.22) 55%,
    rgba(250,247,242,0.30) 100%);
}
.photo-hero.on-light h1,
.photo-hero.on-light .display-xl,
.photo-hero.on-light .display-lg { color: var(--carbon); }
.photo-hero.on-light p { color: rgba(28,25,23,0.88); }
.photo-hero.on-light .btn { border-color: var(--carbon); color: var(--carbon); }
.photo-hero.on-light .btn:hover { background: var(--carbon); color: var(--ivory); }
.photo-hero .kicker { color: var(--gold); }
.photo-hero h1, .photo-hero .display-xl, .photo-hero .display-lg { color: var(--ivory); }
.photo-hero p { color: rgba(250,247,242,0.92); }
.photo-hero .btn { border-color: var(--ivory); color: var(--ivory); }
.photo-hero .btn:hover { background: var(--ivory); color: var(--carbon); }
.photo-hero .btn-gold { border-color: var(--gold); color: var(--gold); }
.photo-hero .btn-gold:hover { background: var(--gold); color: var(--carbon); }

/* Full-width editorial band with quote overlay */
.editorial-band {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px;
  overflow: hidden;
  isolation: isolate;
  background: var(--carbon);
}
.editorial-band > img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}
.editorial-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28,25,23,0.42);
  z-index: -1;
}
.editorial-band blockquote {
  color: var(--ivory);
  max-width: 720px;
  margin: 0 auto;
}
/* Light photo band (ivory silk): dark text, ivory veil */
.editorial-band.on-light::after { background: rgba(250,247,242,0.30); }
.editorial-band.on-light blockquote { color: var(--carbon); }

/* Editorial triptych */
.editorial-trio figure {
  margin: 0;
  overflow: hidden;
  position: relative;
}
.editorial-trio .img-wrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ivory-2);
}
.editorial-trio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.6,.2,1);
}
.editorial-trio figure:hover img { transform: scale(1.04); }
.editorial-trio figcaption {
  padding: 20px 8px 0;
  text-align: center;
}

/* ===== Catalog (collezione): worn photo + color swatches ===== */
.catalog-card { display: block; text-decoration: none; }
.catalog-card .ph {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ivory-2);
  position: relative;
}
.catalog-card .ph img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(.2,.6,.2,1);
}
.catalog-card:hover .ph img { transform: scale(1.045); }
.catalog-card .meta { padding: 18px 4px 0; text-align: center; }
.catalog-card .name {
  font-family: 'Cormorant Garamond', 'Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--carbon);
}
.catalog-card .name .fiore-pre {
  display: block;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
}
.catalog-swatches {
  display: flex; gap: 7px; justify-content: center;
  margin-top: 12px; flex-wrap: wrap;
}
.swatch {
  width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid rgba(28,25,23,0.18);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35);
  position: relative;
}
.catalog-card .ncolor {
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--muted); margin-top: 11px;
}

/* Mobile heights */
@media (max-width: 767px) {
  .photo-hero { min-height: 86vh; }
  .photo-hero.short { min-height: 56vh; }
  .editorial-band { min-height: 60vh; background-attachment: scroll; }
  /* prevent tracked kickers from overflowing narrow screens */
  .tracked-lg { letter-spacing: 0.3em; }
  .tracked-md { letter-spacing: 0.28em; }
  .photo-hero .kicker, .photo-hero p.tracked-lg { font-size: 10px; }
  .display-xl { font-size: clamp(34px, 11vw, 60px); }
}

/* Responsive typography */
.display-xl { font-size: clamp(40px, 8vw, 88px); line-height: 1.02; }
.display-lg { font-size: clamp(32px, 5vw, 56px); line-height: 1.05; }
.display-md { font-size: clamp(24px, 3.5vw, 36px); line-height: 1.1; }

/* Section spacing */
.section { padding: 96px 24px; }
.section-sm { padding: 64px 24px; }
@media (min-width: 768px) {
  .section { padding: 128px 48px; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--ivory);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { font-size: 24px; margin: 16px 0; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 64px 24px 32px;
  background: var(--carbon);
  color: var(--ivory);
}
footer a { color: var(--ivory); text-decoration: none; }
footer a:hover { color: var(--gold); }
