/* ============================================
   PALOMAN — Main Stylesheet
   Crafted with Intent · Spring 2027
   ============================================ */

/* --- Google Fonts loaded via <link> in HTML head for performance --- */

/* --- CSS Variables --- */
:root {
  --cream:      #F5F0EB;
  --black:      #1A1A1A;
  --brown:      #8B5E3C;
  --olive:      #6B7F5E;
  --oxblood:    #6E2C2C;
  --mid-grey:   #9A9590;
  --light-grey: #E8E3DD;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
  --nav-h:      64px;
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- Typography --- */
.t-serif     { font-family: var(--serif); }
.t-label     { font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mid-grey); }
.t-h1        { font-family: var(--serif); font-size: clamp(48px, 7vw, 96px); font-weight: 300; line-height: 1.05; }
.t-h2        { font-family: var(--serif); font-size: clamp(32px, 4vw, 56px); font-weight: 300; line-height: 1.1; }
.t-h3        { font-family: var(--serif); font-size: clamp(22px, 2.5vw, 34px); font-weight: 400; line-height: 1.2; }
.t-body      { font-size: 14px; font-weight: 300; line-height: 1.75; color: #4A4540; }
.t-price     { font-family: var(--sans); font-size: 13px; font-weight: 400; letter-spacing: 0.04em; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

/* Transparent on hero */
.nav.is-top {
  background: transparent;
  box-shadow: none;
}

/* Solid after scroll */
.nav.is-scrolled {
  background: var(--cream);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

/* On inner pages — always solid */
.nav.is-solid {
  background: var(--cream);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}
/* Two separate logo files — dark PNG on light, white PNG on dark */
/* Logo text — Yellowtail brush script, always transparent, no image needed */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-text {
  font-family: 'Yellowtail', cursive;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  color: var(--black);          /* dark on light nav */
  transition: color 0.3s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
/* Over hero: white */
.nav.is-top .logo-text {
  color: #ffffff;
}
/* Hero center logo — large */
.logo-text-hero {
  font-size: clamp(72px, 13vw, 140px);
  color: #ffffff;
  display: block;
  text-align: center;
  letter-spacing: 0.01em;
  line-height: 1;
}

/* Center nav links */
.nav-links {
  display: flex;
  gap: 36px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--brown); }

/* White links over hero */
.nav.is-top .nav-links a { color: rgba(255,255,255,0.9); }
.nav.is-top .nav-links a:hover { color: #fff; }

/* Right side */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-cart {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  transition: color 0.2s ease;
}
.nav.is-top .nav-cart { color: rgba(255,255,255,0.9); }
.nav-cart:hover { color: var(--brown); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--black);
  transition: all 0.3s ease;
}
.nav.is-top .nav-hamburger span { background: #fff; }

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu a {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 300;
  color: var(--black);
}
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 28px;
  color: var(--black);
  padding: 8px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #2a2521;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transition: transform 12s var(--ease);
}
.hero.is-loaded .hero-img { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.5) 50%,
    rgba(0,0,0,0.6) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-season {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 8px;
}

/* Hero logo wrap */
.hero-logo-wrap {
  margin-bottom: 4px;
}

.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.06em;
  opacity: 0.85;
  margin-top: 4px;
}

.hero-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 13px 36px;
  border: 1px solid rgba(255,255,255,0.7);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.hero-cta:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: #fff;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.3); }
}

/* ============================================
   SECTIONS & LAYOUT
   ============================================ */
.section {
  padding: 96px 32px;
  max-width: 1440px;
  margin: 0 auto;
}
.section-full {
  padding: 96px 32px;
}
.section-tight { padding: 64px 32px; }

.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-head .t-label { margin-bottom: 12px; }
.section-head h2 { margin-bottom: 16px; }
.section-divider {
  width: 40px;
  height: 1px;
  background: var(--brown);
  margin: 0 auto;
}

/* ============================================
   CATEGORIES GRID
   ============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 1440px;
  margin: 0 auto;
}

.category-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  display: block;
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.category-card:hover img { transform: scale(1.04); }

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
  color: #fff;
}
.category-overlay .t-label { color: rgba(255,255,255,0.6); margin-bottom: 6px; }
.category-overlay h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 12px;
}
.category-overlay .cat-link {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.category-overlay .cat-link::after {
  content: '';
  width: 20px;
  height: 1px;
  background: currentColor;
}

/* ============================================
   BRAND STATEMENT
   ============================================ */
.statement-section {
  background: var(--black);
  color: #fff;
  padding: 112px 32px;
  text-align: center;
}
.statement-section blockquote {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 38px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  max-width: 820px;
  margin: 0 auto 32px;
  color: rgba(255,255,255,0.9);
}
.statement-section cite {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown);
  font-style: normal;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  cursor: pointer;
}
.product-card-img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--light-grey);
  margin-bottom: 14px;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--oxblood);
  color: #fff;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
}

.product-card-info { padding: 0 2px; }
.product-card-cat {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid-grey);
  margin-bottom: 4px;
}
.product-card-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 6px;
  line-height: 1.3;
}
.product-card-price {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--black);
}

/* ============================================
   EDITORIAL STRIP
   ============================================ */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.editorial-card {
  position: relative;
  overflow: hidden;
}
.editorial-card img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.editorial-card:hover img { transform: scale(1.03); }

.editorial-card.tall img { height: 720px; }

.editorial-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  padding: 48px 28px 28px;
  color: #fff;
}
.editorial-caption .t-label { color: rgba(255,255,255,0.55); margin-bottom: 8px; }
.editorial-caption h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.2;
}

/* ============================================
   JOURNAL / FIELD NOTES
   ============================================ */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.journal-card { cursor: pointer; }
.journal-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--light-grey);
  margin-bottom: 20px;
}
.journal-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.journal-card:hover .journal-card-img img { transform: scale(1.04); }

.journal-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.journal-card-tag {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--light-grey);
  color: var(--mid-grey);
  padding: 3px 8px;
}
.journal-card-date {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--mid-grey);
}
.journal-card-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 10px;
}
.journal-card-excerpt {
  font-size: 13px;
  font-weight: 300;
  color: #6A6560;
  line-height: 1.7;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
  background: var(--black);
  padding: 96px 32px;
  text-align: center;
  color: #fff;
}
.newsletter-section .t-label { color: var(--brown); margin-bottom: 16px; }
.newsletter-section h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  margin-bottom: 12px;
  color: #fff;
}
.newsletter-section p {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  margin-bottom: 40px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.2);
  border-right: none;
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-form input:focus { border-color: rgba(255,255,255,0.5); }
.newsletter-form button {
  padding: 14px 24px;
  background: var(--brown);
  color: #fff;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.newsletter-form button:hover { background: #7a5233; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--cream);
  border-top: 1px solid var(--light-grey);
  padding: 64px 32px 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1440px;
  margin: 0 auto 48px;
}
/* Footer logo text */
.footer-brand .logo-text {
  font-family: 'Yellowtail', cursive;
  font-size: 36px;
  color: var(--black);
  display: block;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
.footer-brand p {
  font-size: 13px;
  font-weight: 300;
  color: var(--mid-grey);
  line-height: 1.7;
  max-width: 240px;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 20px;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  font-size: 13px;
  font-weight: 300;
  color: var(--mid-grey);
  transition: color 0.2s ease;
}
.footer-col ul li a:hover { color: var(--black); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--light-grey);
  max-width: 1440px;
  margin: 0 auto;
}
.footer-bottom p {
  font-size: 11px;
  color: var(--mid-grey);
  letter-spacing: 0.04em;
}
.footer-social {
  display: flex;
  gap: 20px;
}
.footer-social a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-grey);
  transition: color 0.2s ease;
}
.footer-social a:hover { color: var(--black); }

/* ============================================
   SHOP PAGE
   ============================================ */
.page-hero {
  height: 340px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: var(--nav-h);
  background: var(--black);
}
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.page-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 40px 32px;
}
.page-hero-content .t-label { color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.page-hero-content h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  color: #fff;
}

/* Filters */
.shop-filters {
  padding: 24px 32px;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--light-grey);
}
.filter-btn {
  padding: 8px 20px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--light-grey);
  color: var(--mid-grey);
  background: transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
  height: 80vh;
  min-height: 560px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}
.about-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.about-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 0 32px;
  max-width: 700px;
  margin-top: var(--nav-h);
}
.about-hero-content .t-label { color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.about-hero-content h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 24px;
}
.about-hero-content p {
  font-family: var(--serif);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 300;
  font-style: italic;
  opacity: 0.8;
  line-height: 1.5;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 96px 32px;
  max-width: 1440px;
  margin: 0 auto;
}
.about-split img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.about-split-text .t-label { margin-bottom: 16px; }
.about-split-text h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 300;
  margin-bottom: 24px;
}
.about-split-text p {
  font-size: 14px;
  font-weight: 300;
  color: #5A5550;
  line-height: 1.8;
  margin-bottom: 16px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding: 96px 32px;
  max-width: 1440px;
  margin: 0 auto;
  border-top: 1px solid var(--light-grey);
}
.value-item .value-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 300;
  color: var(--light-grey);
  margin-bottom: 16px;
  line-height: 1;
}
.value-item h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 12px;
}
.value-item p {
  font-size: 13px;
  font-weight: 300;
  color: #6A6560;
  line-height: 1.8;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.45s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  .section, .section-full { padding: 64px 20px; }
  
  .nav-links, .nav-cart { display: none; }
  .nav-hamburger { display: flex; }
  .nav { padding: 0 20px; }

  .categories-grid { grid-template-columns: 1fr; }
  .category-card { aspect-ratio: 4/3; }
  
  .editorial-grid { grid-template-columns: 1fr; }
  .editorial-card img, .editorial-card.tall img { height: 400px; }
  
  .journal-grid { grid-template-columns: 1fr; gap: 40px; }
  
  .about-split { grid-template-columns: 1fr; gap: 40px; }
  .values-grid { grid-template-columns: 1fr; gap: 32px; }
  
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1/-1; }
  
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { border-right: 1px solid rgba(255,255,255,0.2); border-bottom: none; }
  
  .hero-logo-wrap img { height: clamp(60px, 18vw, 100px); }
  
  .shop-filters { flex-wrap: wrap; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .page-hero { height: 280px; }
}
