/*
Theme Name: Ermey House of Sante V5
Theme URI: https://ermeyhos.com
Author: themafis
Description: Corporate portfolio theme for Ermey House of Sante. Designed for atelier storytelling, product presentation, and WhatsApp integration.
Version: 5.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ermey-hos
Tags: portfolio, custom-background, featured-images, custom-menu, one-column
*/

/* ========================================================================
   1. CUSTOM PROPERTIES
   ======================================================================== */
:root {
  --color-porcelain: #f7f3ec;
  --color-paper: #fffdf8;
  --color-ink: #1a1512;
  --color-muted: #706862;
  --color-line: #d9d0c4;
  --color-gold: #c5a258;
  --color-gold-light: #d4b76a;
  --color-gold-dark: #a8893e;
  --color-oxblood: #651b24;
  --color-oxblood-dark: #421116;
  --color-brass: #b39a66;
  --color-olive: #2f3d34;
  --color-british: #1a3a2a;
  --shadow-soft: 0 24px 70px rgba(26, 21, 18, 0.13);
  --shadow-tight: 0 12px 34px rgba(26, 21, 18, 0.1);
  --max-page: 1240px;
  --header-height: 78px;
  --sans: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

/* ========================================================================
   2. RESET & BASE
   ======================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-porcelain);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

::selection {
  color: var(--color-paper);
  background: var(--color-gold);
}

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link:focus {
  position: fixed; z-index: 999; top: 12px; left: 12px;
  width: auto; height: auto; padding: 10px 14px;
  color: var(--color-paper); background: var(--color-ink); clip: auto;
}

/* ========================================================================
   3. HEADER & NAVIGATION
   ======================================================================== */
.site-header {
  position: sticky; z-index: 100; top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(217, 208, 196, 0.72);
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  width: min(calc(100% - 40px), var(--max-page));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}

.brand {
  display: inline-flex; align-items: center; gap: 12px; min-width: 218px;
}

.brand__mark {
  width: 42px; height: 42px; object-fit: contain;
  transition: filter 300ms ease;
}

.brand:hover .brand__mark {
  
}

.brand__text { display: grid; gap: 0; line-height: 1.05; }

.brand__name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 0.06em;
}

.brand__sub {
  color: var(--color-muted);
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.12em;
}

.nav-menu, .site-nav ul {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 6px; padding: 0; margin: 0; list-style: none;
}

.nav-menu a, .site-nav a {
  display: inline-flex; align-items: center; min-height: 42px;
  padding: 9px 13px; border-radius: 999px;
  color: #39322d; font-size: 14px; font-weight: 400;
  transition: background 180ms ease, color 180ms ease;
}

.nav-menu a:hover, .site-nav a:hover,
.nav-menu a:focus-visible, .site-nav a:focus-visible {
  color: var(--color-paper); outline: none; background: var(--color-ink);
}

.header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 10px 16px;
  border: 1px solid var(--color-ink); border-radius: 999px;
  color: var(--color-paper); background: var(--color-ink);
  font-size: 14px; font-weight: 500;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.header-cta:hover, .header-cta:focus-visible {
  color: var(--color-ink); outline: none; background: transparent;
}

.mobile-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--color-line); border-radius: 999px;
  color: var(--color-ink); background: transparent; cursor: pointer;
}

.mobile-toggle span {
  display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor;
}

/* Home header: floating pill */
body.home .site-header {
  position: fixed; right: 0; left: 0;
  border-bottom: 0; background: transparent; backdrop-filter: none;
}

body.home .site-header__inner {
  width: min(calc(100% - 32px), 1380px);
  min-height: 64px; margin-top: 12px; padding: 0 12px 0 14px;
  border: 1px solid rgba(255, 253, 248, 0.36); border-radius: 999px;
  background: rgba(247, 243, 236, 0.72);
  box-shadow: 0 18px 58px rgba(22, 17, 14, 0.16);
  backdrop-filter: blur(18px) saturate(132%);
  transition: background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

body.home.has-solid-header .site-header__inner {
  border-color: rgba(217, 208, 196, 0.78);
  background: rgba(247, 243, 236, 0.94);
  box-shadow: 0 16px 44px rgba(22, 17, 14, 0.12);
}

body.home .brand { min-width: 214px; }

/* ========================================================================
   4. VIDEO HERO
   ======================================================================== */
.video-hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: #0a0806;
}

.video-hero__slides {
  position: absolute; inset: 0;
}

.video-hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-hero__slide.is-active {
  opacity: 1;
}

.video-hero__slide video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.04) brightness(0.95);
}

/* Cinematic vignette */
.video-hero__vignette {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.06) 45%, rgba(0,0,0,0.38) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.02) 35%, rgba(0,0,0,0.04) 60%, rgba(0,0,0,0.52) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.04) 30%, rgba(0,0,0,0.04) 70%, rgba(0,0,0,0.28) 100%);
}

/* Hero content overlay */
.video-hero__content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  color: var(--color-paper);
  padding: calc(var(--header-height) + 30px) 24px 80px;
}

.video-hero__brand {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: hero-fade-in 1.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.video-hero__logo {
  width: 170px; height: 170px; object-fit: contain;
  margin-bottom: -35px;
}

.video-hero__name {
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 400;
  letter-spacing: 0.22em;
  margin-right: -0.22em;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 4px 40px rgba(0,0,0,0.4);
}

.video-hero__subtitle {
  font-family: var(--serif);
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.06em;
  color: rgba(255, 253, 248, 0.82);
  margin-top: -85px;
}

.video-hero__tagline {
  margin-top: -20px;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 253, 248, 0.68);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video-hero__actions {
  position: absolute; 
  bottom: 60px; /* Butonları ekranın en altına iter */
  left: 0;
  width: 100%;
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
  animation: hero-fade-in 1.6s 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Video indicator dots */
.video-hero__indicators {
  position: absolute; z-index: 3;
  bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px;
}

.video-hero__dot {
  width: 10px; height: 10px;
  border: 1.5px solid rgba(255,253,248,0.6);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 300ms ease, border-color 300ms ease, transform 300ms ease;
}

.video-hero__dot.is-active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  transform: scale(1.25);
}

.video-hero__dot:hover {
  border-color: var(--color-gold-light);
}

/* Scroll hint */
.video-hero__scroll {
  position: absolute; z-index: 3;
  bottom: 58px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,253,248,0.5);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  animation: scroll-pulse 2.4s ease-in-out infinite;
}

.video-hero__scroll-line {
  width: 1px; height: 28px;
  background: linear-gradient(180deg, rgba(255,253,248,0.5) 0%, transparent 100%);
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(4px); }
}

/* ========================================================================
   5. LIFESTYLE BAND (between hero and products)
   ======================================================================== */
.lifestyle-band {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.lifestyle-band__image {
  width: 100%; height: 420px;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}

.lifestyle-band__overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(180deg, rgba(26,21,18,0.18) 0%, rgba(26,21,18,0.52) 100%);
}

.lifestyle-band__text {
  color: var(--color-paper);
  text-align: center;
  padding: 24px;
}

.lifestyle-band__text p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.lifestyle-band__text span {
  display: block;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-light);
}

/* ========================================================================
   6. BUTTONS
   ======================================================================== */
.button, .wp-element-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 12px 20px;
  border: 1px solid var(--color-ink); border-radius: 999px;
  color: var(--color-paper); background: var(--color-ink);
  font-size: 14px; font-weight: 500; line-height: 1.2;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover, .button:focus-visible,
.wp-element-button:hover, .wp-element-button:focus-visible {
  transform: translateY(-1px);
  color: var(--color-ink); outline: none; background: transparent;
}

.button--light {
  color: var(--color-ink);
  border-color: var(--color-paper); background: var(--color-paper);
}

.button--light:hover, .button--light:focus-visible {
  color: var(--color-paper); background: transparent;
}

.button--ghost {
  color: var(--color-paper);
  border-color: rgba(255,253,248,0.58); background: transparent;
}

.button--ghost:hover, .button--ghost:focus-visible {
  color: var(--color-ink); background: var(--color-paper);
}

.button--outline {
  color: var(--color-ink); background: transparent;
}

.button--outline:hover, .button--outline:focus-visible {
  color: var(--color-paper); background: var(--color-ink);
}

.button--gold {
  color: var(--color-ink);
  border-color: var(--color-gold); background: var(--color-gold);
}

.button--gold:hover, .button--gold:focus-visible {
  color: var(--color-gold); background: transparent;
}

/* ========================================================================
   7. SECTIONS
   ======================================================================== */
.section { padding: 96px 0; }
.section--paper { background: var(--color-paper); }
.section--ink { color: var(--color-paper); background: var(--color-ink); }

.section__inner {
  width: min(calc(100% - 40px), var(--max-page));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 48px; align-items: end; margin-bottom: 44px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--color-gold);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
}

.section--ink .section-kicker { color: var(--color-gold-light); }

.section-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 44px; font-weight: 500; line-height: 1.08;
}

.section-copy {
  margin: 0;
  color: var(--color-muted); font-size: 17px;
}

.section--ink .section-copy { color: rgba(255,253,248,0.72); }

/* ========================================================================
   8. INTRO / ATELIER STATS
   ======================================================================== */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 52px; align-items: center;
}

.intro-copy {
  font-family: var(--sans);
  font-size: 28px; font-weight: 400; line-height: 1.4;
}

.intro-copy p { margin: 0; }
.intro-copy strong { color: var(--color-gold); font-weight: 500; }

.atelier-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--color-line); background: var(--color-line);
}

.stat {
  min-height: 148px; padding: 22px;
  display: grid; align-content: space-between;
  background: var(--color-paper);
}

.stat__number {
  font-family: var(--sans);
  font-size: 38px; font-weight: 500; line-height: 1;
  color: var(--color-gold);
}

.stat__label { color: var(--color-muted); font-size: 14px; }

/* ========================================================================
   9. CATEGORIES
   ======================================================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category-tile {
  position: relative; min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(26,21,18,0.1);
  background: var(--color-ink);
  box-shadow: var(--shadow-tight);
}

.category-tile img {
  width: 100%; height: 100%; min-height: 520px;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 600ms ease;
}

.category-tile:hover img { transform: scale(1.06); }

.category-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,13,0.1) 0%, rgba(20,16,13,0.62) 100%);
}

.category-tile__content {
  position: absolute; z-index: 2;
  inset: auto 0 0; padding: 28px;
  color: var(--color-paper);
}

.category-tile__number {
  color: var(--color-gold-light);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em;
}

.category-tile h3 {
  margin: 12px 0 10px;
  font-family: var(--sans);
  font-size: 28px; font-weight: 500; line-height: 1.1;
}

.category-tile p {
  margin: 0;
  color: rgba(255,253,248,0.78); font-size: 14px;
}

/* ========================================================================
   10. COLLECTION / PRODUCT GRID
   ======================================================================== */
.collection-tools {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 18px; margin-bottom: 28px;
}

.filter-bar {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px;
  border: 1px solid var(--color-line); border-radius: 999px;
  background: rgba(255,253,248,0.74);
}

.filter-button {
  min-height: 38px; padding: 8px 14px;
  border: 0; border-radius: 999px;
  color: var(--color-muted); background: transparent;
  font-size: 14px; cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.filter-button.is-active,
.filter-button:hover,
.filter-button:focus-visible {
  color: var(--color-paper); outline: none; background: var(--color-ink);
}

.catalog-link {
  color: var(--color-gold-dark);
  font-size: 14px; font-weight: 500;
  border-bottom: 1px solid currentColor;
  transition: color 180ms ease;
}

.catalog-link:hover { color: var(--color-gold); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: grid; grid-template-rows: auto 1fr;
  min-height: 100%;
  border: 1px solid var(--color-line); background: var(--color-paper);
  box-shadow: 0 1px 0 rgba(26,21,18,0.04);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(197,162,88,0.5);
  box-shadow: var(--shadow-tight);
}

.product-card.is-hidden { display: none; }

.product-card__media {
  position: relative; aspect-ratio: 4 / 5;
  overflow: hidden; background: #fbfaf6;
}

.product-card__media img {
  width: 100%; height: 100%;
  object-fit: contain; padding: 18px;
}

.product-card__badge {
  position: absolute; top: 14px; left: 14px;
  max-width: calc(100% - 28px);
  padding: 6px 10px;
  color: var(--color-paper); background: var(--color-gold-dark);
  font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
}

.product-card__body {
  display: grid; gap: 13px;
  align-content: start; padding: 20px;
}

.product-card h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 20px; font-weight: 500; line-height: 1.2;
}

.product-card p {
  margin: 0; color: var(--color-muted); font-size: 14px;
}

.product-card__meta { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  display: inline-flex; align-items: center;
  min-height: 28px; padding: 5px 9px;
  border: 1px solid var(--color-line); border-radius: 999px;
  color: #504841; font-size: 12px;
  background: rgba(247,243,236,0.7);
}

.product-card__actions {
  display: grid; grid-template-columns: 1fr;
  gap: 8px; margin-top: 4px;
}

.product-card .button { width: 100%; }

/* ========================================================================
   11. ATELIER BAND
   ======================================================================== */
.atelier-band { position: relative; overflow: hidden; }

.atelier-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.72fr);
  gap: 58px; align-items: center;
}

.atelier-photo {
  min-height: 580px; overflow: hidden;
  border: 1px solid rgba(255,253,248,0.12);
}

.atelier-photo img {
  width: 100%; height: 100%; min-height: 580px; object-fit: cover;
}

.process-list {
  display: grid; gap: 1px; margin-top: 36px;
  border: 1px solid rgba(255,253,248,0.16);
  background: rgba(255,253,248,0.14);
}

.process-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px; padding: 22px;
  background: rgba(255,253,248,0.05);
}

.process-item__step {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,253,248,0.26); border-radius: 999px;
  color: var(--color-gold-light);
  font-family: var(--sans); font-size: 18px; font-weight: 500;
}

.process-item h3 {
  margin: 0 0 5px;
  font-family: var(--sans); font-size: 20px; font-weight: 500;
}

.process-item p {
  margin: 0; color: rgba(255,253,248,0.72);
}

/* ========================================================================
   12. CERTIFICATE
   ======================================================================== */
.certificate-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: 52px; align-items: center;
}

.certificate-copy { display: grid; gap: 24px; }

.certificate-copy blockquote {
  margin: 0; padding: 0 0 0 24px;
  border-left: 2px solid var(--color-gold);
  color: #4f4740;
  font-family: var(--serif);
  font-size: 24px; font-style: italic; line-height: 1.35;
}

.signature { width: 220px; mix-blend-mode: multiply; }

.certificate-preview {
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-paper);
  box-shadow: var(--shadow-soft);
}

.certificate-preview img { width: 100%; object-fit: cover; }

/* ========================================================================
   13. JOURNAL / ATELIER DETAILS
   ======================================================================== */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.journal-item { display: grid; gap: 18px; align-content: start; }

.journal-item__image {
  aspect-ratio: 1 / 1; overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-paper);
}

.journal-item__image img { width: 100%; height: 100%; object-fit: cover; }

.journal-item h3 {
  margin: 0;
  font-family: var(--sans); font-size: 22px; font-weight: 500;
}

.journal-item p { margin: 0; color: var(--color-muted); }

/* ========================================================================
   14. CONTACT BAND
   ======================================================================== */
.contact-band {
  padding: 76px 0;
  color: var(--color-paper);
  background: var(--color-ink);
}

.contact-inner {
  width: min(calc(100% - 40px), var(--max-page));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px; align-items: center;
}

.contact-inner h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 40px; font-weight: 500; line-height: 1.1;
}

.contact-inner p {
  margin: 10px 0 0;
  color: rgba(255,253,248,0.76);
}

/* ========================================================================
   15. FOOTER
   ======================================================================== */
.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--color-line);
  background: #efe8dd;
}

.site-footer__inner {
  width: min(calc(100% - 40px), var(--max-page));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; color: var(--color-muted); font-size: 14px;
}

.footer-brand {
  color: var(--color-ink);
  font-family: var(--sans);
  font-size: 20px; font-weight: 500; letter-spacing: 0.04em;
}

.footer-brand em {
  font-family: var(--serif);
  font-style: italic; font-weight: 400;
}

.footer-bottom { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-separator { color: var(--color-line); }

.footer-powered a {
  color: var(--color-gold-dark); font-weight: 500;
  text-decoration: none; transition: color 180ms ease;
}

.footer-powered a:hover, .footer-powered a:focus-visible {
  color: var(--color-gold); text-decoration: underline;
}

/* ========================================================================
   16. WHATSAPP FLOAT
   ======================================================================== */
.wa-float {
  position: fixed; z-index: 90; right: 22px; bottom: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 13px 18px;
  border-radius: 999px;
  color: var(--color-paper); background: #1f6f4a;
  box-shadow: 0 14px 34px rgba(24,78,54,0.28);
  font-size: 14px; font-weight: 500;
  transition: background 180ms ease, transform 180ms ease;
}

.wa-float:hover, .wa-float:focus-visible {
  outline: none; background: #18563a;
  transform: translateY(-2px);
}

/* ========================================================================
   17. SUBPAGE HERO
   ======================================================================== */
.hero {
  position: relative; min-height: calc(100svh - 210px);
  isolation: isolate; display: grid; align-items: end;
  overflow: hidden; background-color: var(--color-ink);
}

.hero::before {
  content: ""; position: absolute; inset: -2%; z-index: 0;
  background-image: var(--hero-image);
  background-position: center center; background-size: cover;
  transform: scale(1.035) translate3d(-0.3%, 0, 0);
  animation: hero-live-pan 24s ease-in-out infinite alternate;
  will-change: transform;
}

.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(8,6,5,0.9) 0%, rgba(12,9,8,0.78) 35%, rgba(16,11,9,0.3) 62%, rgba(16,11,9,0.08) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.06) 54%, rgba(0,0,0,0.32) 100%),
    linear-gradient(112deg, rgba(255,255,255,0) 43%, rgba(255,238,196,0.13) 52%, rgba(255,255,255,0) 62%);
  background-size: 100% 100%, 100% 100%, 180% 100%;
  background-position: 0 0, 0 0, -45% 0;
  animation: hero-light-drift 12s ease-in-out infinite alternate;
}

@keyframes hero-live-pan {
  from { transform: scale(1.035) translate3d(-0.3%, 0, 0); }
  to { transform: scale(1.07) translate3d(0.6%, -0.7%, 0); }
}

@keyframes hero-light-drift {
  from { background-position: 0 0, 0 0, -45% 0; }
  to { background-position: 0 0, 0 0, 85% 0; }
}

.hero__inner {
  position: relative; z-index: 1;
  width: min(calc(100% - 40px), var(--max-page));
  margin: 0 auto; padding: 78px 0 38px;
  color: var(--color-paper);
}

.hero__content { width: min(860px, 100%); text-shadow: 0 2px 18px rgba(0,0,0,0.28); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  color: rgba(255,253,248,0.78); font-size: 13px;
}

.eyebrow::before {
  content: ""; width: 34px; height: 1px; background: currentColor;
}

.display-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 62px; font-weight: 500; line-height: 1;
}

.hero__copy {
  width: min(610px, 100%);
  margin: 22px 0 0;
  color: rgba(255,253,248,0.84); font-size: 18px;
}

.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px; margin-top: 34px; text-shadow: none;
}

.hero__meta {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px; width: min(760px, 100%); margin-top: 42px;
  border: 1px solid rgba(255,253,248,0.2);
  background: rgba(255,253,248,0.16);
}

.hero__meta span {
  min-height: 78px; padding: 16px 18px;
  display: grid; align-items: center;
  color: rgba(255,253,248,0.9);
  background: rgba(22,17,14,0.34); font-size: 14px;
}

/* Subpage hero */
.subpage-hero {
  position: relative; overflow: hidden;
  color: var(--color-paper); background: var(--color-ink);
}

.subpage-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--subpage-image);
  background-position: center; background-size: cover;
  opacity: 0.42; filter: saturate(0.96);
}

.subpage-hero::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(17,12,9,0.54);
}

.subpage-hero__inner {
  position: relative; z-index: 1;
  width: min(calc(100% - 40px), var(--max-page));
  margin: 0 auto; padding: 108px 0 88px;
}

.subpage-hero__content { width: min(760px, 100%); }

.subpage-hero h1 {
  margin: 0;
  font-family: var(--sans);
  font-size: 58px; font-weight: 500; line-height: 1.02;
}

.subpage-hero p {
  width: min(640px, 100%);
  margin: 20px 0 0;
  color: rgba(255,253,248,0.78); font-size: 18px;
}

/* ========================================================================
   18. EDITORIAL / CONTACT PAGE
   ======================================================================== */
.editorial-split {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: 56px; align-items: center;
}

.editorial-split__media {
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-paper);
  box-shadow: var(--shadow-tight);
}

.editorial-split__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

.editorial-list {
  display: grid; gap: 1px; margin-top: 30px;
  border: 1px solid var(--color-line); background: var(--color-line);
}

.editorial-list__item { padding: 22px; background: var(--color-paper); }

.editorial-list__item h3 {
  margin: 0 0 6px;
  font-family: var(--sans); font-size: 22px; font-weight: 500;
}

.editorial-list__item p { margin: 0; color: var(--color-muted); }

.category-detail-grid { display: grid; gap: 24px; }

.category-detail {
  display: grid;
  grid-template-columns: minmax(240px, 0.48fr) minmax(0, 1fr);
  gap: 34px; align-items: center;
  border: 1px solid var(--color-line); background: var(--color-paper);
}

.category-detail__image { height: 100%; min-height: 330px; overflow: hidden; }
.category-detail__image img { width: 100%; height: 100%; object-fit: cover; }
.category-detail__body { padding: 34px 34px 34px 0; }

.category-detail__body h2 {
  margin: 0 0 12px;
  font-family: var(--sans); font-size: 36px; font-weight: 500; line-height: 1.08;
}

.category-detail__body p { margin: 0 0 18px; color: var(--color-muted); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 0.58fr);
  gap: 44px; align-items: start;
}

.contact-card {
  padding: 32px;
  border: 1px solid var(--color-line);
  background: var(--color-paper);
  box-shadow: var(--shadow-tight);
}

.contact-card h2, .contact-card h3 {
  margin: 0 0 12px;
  font-family: var(--sans); font-size: 30px; font-weight: 500; line-height: 1.08;
}

.contact-card p { margin: 0 0 18px; color: var(--color-muted); }

.contact-options { display: grid; gap: 14px; }

.contact-option {
  display: grid; gap: 8px; padding: 18px;
  border: 1px solid var(--color-line);
  background: rgba(247,243,236,0.56);
}

.contact-option strong {
  font-family: var(--sans); font-size: 20px; font-weight: 500;
}

/* ========================================================================
   19. PAGES
   ======================================================================== */
.page-main { background: var(--color-paper); }

.content-page {
  width: min(calc(100% - 40px), 880px);
  margin: 0 auto; padding: 84px 0;
}

.content-page h1 {
  margin: 0 0 24px;
  font-family: var(--sans); font-size: 48px; font-weight: 500; line-height: 1.08;
}

.content-page :where(p, li) { color: var(--color-muted); }

.single-product {
  width: min(calc(100% - 40px), var(--max-page));
  margin: 0 auto; padding: 74px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  gap: 56px; align-items: start;
}

.single-product__media {
  border: 1px solid var(--color-line);
  background: var(--color-paper); box-shadow: var(--shadow-tight);
}

.single-product__media img {
  width: 100%; aspect-ratio: 4/5; object-fit: contain; padding: 28px;
}

.single-product__content {
  position: sticky; top: calc(var(--header-height) + 24px);
}

.single-product h1 {
  margin: 0 0 16px;
  font-family: var(--sans); font-size: 48px; font-weight: 500; line-height: 1.06;
}

.single-product__lead { margin: 0 0 26px; color: var(--color-muted); font-size: 18px; }

.single-product__meta {
  display: grid; gap: 10px; margin: 28px 0; padding: 22px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.archive-hero {
  padding: 88px 0 56px;
  color: var(--color-paper); background: var(--color-ink);
}

.archive-hero__inner {
  width: min(calc(100% - 40px), var(--max-page)); margin: 0 auto;
}

.archive-hero h1 {
  margin: 0;
  font-family: var(--sans); font-size: 52px; font-weight: 500; line-height: 1.05;
}

.archive-hero p {
  width: min(620px, 100%); margin: 16px 0 0;
  color: rgba(255,253,248,0.72);
}

/* ========================================================================
   20. REVEAL ANIMATION
   ======================================================================== */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

.hero__content.reveal, .subpage-hero__content.reveal {
  opacity: 1; transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
  .video-hero__slide { transition-duration: 1ms !important; }
}

/* ========================================================================
   21. RESPONSIVE — TABLET
   ======================================================================== */
@media (max-width: 1120px) {
  .site-header__inner { gap: 14px; }
  .brand { min-width: 190px; }
  .nav-menu a, .site-nav a { padding: 9px 10px; }
  body.home .site-header__inner { gap: 12px; }
  body.home .brand { min-width: 184px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .site-header__inner { width: min(calc(100% - 28px), var(--max-page)); }

  .mobile-toggle { display: inline-grid; place-items: center; }

  .site-nav {
    position: fixed; inset: var(--header-height) 0 auto;
    display: none; padding: 20px;
    border-bottom: 1px solid var(--color-line);
    background: var(--color-porcelain);
  }

  body.home .site-nav {
    top: 88px; inset-inline: 14px;
    border: 1px solid rgba(217,208,196,0.78); border-radius: 24px;
    background: rgba(247,243,236,0.96);
    box-shadow: 0 18px 44px rgba(22,17,14,0.14);
  }

  body.nav-open .site-nav { display: block; }

  .nav-menu, .site-nav ul {
    display: grid; gap: 8px;
    justify-content: stretch; width: 100%;
  }

  .nav-menu li, .site-nav li { width: 100%; }

  .nav-menu a, .site-nav a {
    width: 100%; justify-content: center;
    border: 1px solid var(--color-line);
    border-radius: 0; background: var(--color-paper);
  }

  .header-cta { display: none; }

  .hero { min-height: calc(100svh - 110px); }
  .display-title { font-size: 52px; }
  .hero__copy { font-size: 17px; }

  .hero__meta, .section-head, .intro-grid, .atelier-grid,
  .certificate-grid, .contact-inner, .single-product,
  .editorial-split, .contact-grid {
    grid-template-columns: 1fr;
  }

  .category-detail { grid-template-columns: 1fr; }
  .category-detail__body { padding: 0 26px 28px; }
  .category-grid, .journal-grid { grid-template-columns: 1fr; }
  .category-tile, .category-tile img { min-height: 430px; }
  .atelier-photo, .atelier-photo img { min-height: 440px; }
  .single-product__content { position: static; }
  .lifestyle-band__image { height: 320px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ========================================================================
   22. RESPONSIVE — MOBILE
   ======================================================================== */
@media (max-width: 700px) {
  body { font-size: 15px; }

  .site-header__inner, .section__inner, .contact-inner,
  .site-footer__inner, .single-product, .content-page,
  .archive-hero__inner {
    width: min(calc(100% - 28px), var(--max-page));
  }

  .brand__name { font-size: 20px; }
  .brand__sub { display: block; font-size: 11px; margin-top: -2px; }

  body.home .site-header__inner {
    width: min(calc(100% - 18px), var(--max-page));
    min-height: 58px; margin-top: 8px; padding: 0 8px 0 10px;
  }

  body.home .brand { min-width: auto; }

  .hero__inner {
    width: min(calc(100% - 28px), var(--max-page));
    padding: 38px 0 92px;
  }

  .hero { align-items: center; min-height: calc(100svh - 150px); }

  .hero::before { background-position: 66% center; }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(15,10,8,0.34) 0%, rgba(15,10,8,0.76) 48%, rgba(15,10,8,0.86) 100%),
      linear-gradient(112deg, rgba(255,255,255,0) 38%, rgba(255,238,196,0.1) 52%, rgba(255,255,255,0) 68%);
    background-size: 100% 100%, 180% 100%;
  }

  .display-title { font-size: 40px; line-height: 1.04; }
  .hero__copy { font-size: 16px; }
  .hero__actions { margin-top: 24px; }
  .hero__meta { display: none; }

  .section { padding: 68px 0; }
  .section-head { gap: 20px; margin-bottom: 30px; }

  .section-title, .content-page h1, .single-product h1,
  .archive-hero h1, .subpage-hero h1 { font-size: 36px; }

  .subpage-hero__inner {
    width: min(calc(100% - 28px), var(--max-page));
    padding: 72px 0 64px;
  }

  .intro-copy { font-size: 24px; }
  .atelier-stats, .product-grid { grid-template-columns: 1fr; }

  .collection-tools { align-items: stretch; }

  .filter-bar {
    width: 100%; flex-wrap: wrap;
    justify-content: flex-start; gap: 6px;
    border-radius: 22px;
  }

  .filter-button {
    flex: 1 1 calc(50% - 6px); min-width: 132px; white-space: normal;
  }

  .contact-inner h2 { font-size: 32px; }
  .site-footer__inner { display: grid; }
  .wa-float { display: none; }

  /* Video hero mobile */
  .video-hero { min-height: 100svh; }
  .video-hero__logo { width: 52px; height: 52px; }
  .video-hero__name { letter-spacing: 0.08em; }
  .video-hero__tagline { font-size: 12px; }
  .video-hero__scroll { display: none; }
  .video-hero__indicators { bottom: 24px; }

  .lifestyle-band__image { height: 260px; }
}

/* ========================================================================
   23. CAREER PAGE
   ======================================================================== */
.career-section {
  padding: 80px 0;
  background: var(--color-ink);
  color: var(--color-paper);
}

.career-container {
  max-width: 760px;
  margin: 0 auto;
}

.career-header {
  text-align: center;
  margin-bottom: 50px;
}

.career-title {
  font-family: var(--sans);
  font-size: 48px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--color-gold);
}

.career-desc {
  font-size: 18px;
  color: rgba(255, 253, 248, 0.78);
  line-height: 1.6;
}

.career-alert {
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid var(--color-gold);
  border-radius: 4px;
  text-align: center;
  font-size: 16px;
}

.career-alert--success {
  background: rgba(197, 162, 88, 0.1);
  color: var(--color-gold);
}

.career-alert--error {
  background: rgba(220, 53, 69, 0.1);
  border-color: #dc3545;
  color: #ffb8b8;
}

.career-form {
  background: rgba(255, 253, 248, 0.03);
  border: 1px solid rgba(255, 253, 248, 0.1);
  padding: 50px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 30px;
}

.form-group label {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-gold-light);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: transparent;
  border: 1px solid rgba(255, 253, 248, 0.2);
  color: var(--color-paper);
  font-family: var(--sans);
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

.form-upload-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 253, 248, 0.1);
}

.file-upload-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-custom-button {
  background: rgba(197, 162, 88, 0.15);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  padding: 10px 20px;
  font-size: 14px;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.file-input:hover + .file-custom-button {
  background: var(--color-gold);
  color: var(--color-ink);
}

.file-name {
  font-size: 14px;
  color: rgba(255, 253, 248, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.form-submit {
  margin-top: 50px;
  text-align: center;
}

@media (max-width: 700px) {
  .form-row, .form-upload-group {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .career-form {
    padding: 30px 20px;
  }
}
