/* =============================================
   HALF PAST SIX — Shared Stylesheet
   Palette: paper / ink / blush / stone / border
   Type: Gloock (display) + Jost (body)
============================================= */

:root {
  --paper: #f9f8f5;
  --ink: #171412;
  --blush: #E8E3DB;
  --stone: #9B8D88;
  --border: #EAE3DF;
  --nav-h: 72px;
  --max: 1200px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; font: inherit; }
ul, ol { list-style: none; }

/* --- Base --- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* --- Type scale --- */
h1, h2, h3 { font-family: 'Gloock', serif; font-weight: 400; }
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); line-height: 1.2; }
p { font-size: 15px; line-height: 1.75; color: var(--stone); }

.label {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone);
}

/* --- Layout --- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; isolation: isolate; }
.section .container { position: relative; z-index: 1; }

/* =============================================
   NAV
============================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(245,240,231,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(232,227,219,0.6);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  transition: box-shadow 0.35s ease;
}
.nav.scrolled { box-shadow: 0 4px 28px rgba(23,20,18,0.07); }

.nav-wordmark {
  font-family: 'Gloock', serif;
  font-size: 1.45rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  white-space: nowrap;
  -webkit-text-stroke: 0.4px var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-links--right { justify-content: flex-end; }

.nav-link {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--stone);
  transition: color 0.22s;
  position: relative;
  display: flex;
  align-items: center;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }

.nav-logo-wrap { display: flex; justify-content: center; align-items: center; }
.nav-logo { height: 46px; width: auto; }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; width: 22px; }
.nav-hamburger span { display: block; height: 1px; background: var(--ink); transition: all 0.28s ease; width: 100%; }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed; inset: 0;
  background: var(--paper);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Gloock', serif;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  color: var(--ink);
  opacity: 0;
  transform: translateY(14px);
  animation: menuFade 0.32s forwards;
}
.mobile-menu.open a:nth-child(2) { animation-delay: 0.04s; }
.mobile-menu.open a:nth-child(3) { animation-delay: 0.08s; }
.mobile-menu.open a:nth-child(4) { animation-delay: 0.12s; }
.mobile-menu.open a:nth-child(5) { animation-delay: 0.16s; }
@keyframes menuFade { to { opacity: 1; transform: none; } }
.menu-close {
  position: absolute; top: 1.5rem; right: clamp(1.25rem, 4vw, 3rem);
  font-size: 1.25rem; cursor: pointer; color: var(--stone); font-family: 'Jost', sans-serif;
}

/* =============================================
   HERO — Editorial Float
============================================= */
.hero {
  background: var(--paper);
  min-height: calc(100vh - var(--nav-h));
  margin-top: var(--nav-h);
  display: flex;
  align-items: center;
}

.hero-content {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem) 2rem;
  display: grid;
  grid-template-columns: 42fr 58fr;
  gap: 3rem;
  align-items: end;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding-bottom: 2rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--ink);
  border-radius: 9999px;
  padding: 0.45rem 1rem;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.06;
  margin: 0;
}

.hero-text p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--stone);
  margin: 0;
}

.hero-visual {
  position: relative;
}

.hero-photo {
  position: relative;
  height: calc(100vh - var(--nav-h) - 8rem);
  overflow: hidden;
  background: var(--border);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-feature-card {
  position: absolute;
  bottom: 2rem;
  left: -1rem;
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 1.25rem 1.75rem;
  min-width: 180px;
  box-shadow: 0 8px 40px rgba(23,20,18,0.07);
  z-index: 2;
}

.hero-feature-card .label { display: block; margin-bottom: 0.35rem; }

.hero-card-name {
  font-family: 'Gloock', serif;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.hero-card-price {
  font-size: 13px;
  color: var(--stone);
}

/* =============================================
   BUTTONS
============================================= */
.btn {
  display: inline-block;
  padding: 0.875rem 2.5rem;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background 0.28s ease, color 0.28s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--filled { background: var(--ink); color: var(--paper); }
.btn--filled:hover { background: transparent; color: var(--ink); }

/* =============================================
   SECTION HEADER
============================================= */
.section-header { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-header .label { display: block; margin-bottom: 0.75rem; }
.section-header h2 { color: var(--ink); }

/* =============================================
   PRODUCT GRID
============================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
}

/* Staggered vertical offsets */
.products-grid .product-card:nth-child(1) { margin-top: 3rem; }
.products-grid .product-card:nth-child(2) { margin-top: 0; }
.products-grid .product-card:nth-child(3) { margin-top: 2rem; }
.products-grid .product-card:nth-child(4) { margin-top: 0.5rem; }

.product-card {
  transition: transform 0.4s ease;
}
.product-card:hover { transform: translateY(-4px); }
.product-card a { display: block; }
.product-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--border);
  margin-bottom: 1rem;
}
.product-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.product-card:hover .product-photo img { transform: scale(1.05); }

.product-name {
  font-family: 'Gloock', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.product-price {
  font-size: 13px;
  color: var(--stone);
  letter-spacing: 0.04em;
}

.view-all-row { display: flex; justify-content: center; margin-top: 3rem; }

/* =============================================
   COLLECTIONS
============================================= */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
  align-items: start;
}
.collection-card {
  position: relative;
  height: 380px;
  overflow: hidden;
  display: block;
}
.collection-card::before {
  content: '';
  position: absolute;
  inset: 1rem;
  z-index: -1;
  transition: transform 0.5s ease;
}
.collection-card:nth-child(1)::before { background: rgba(232,227,219,0.35); transform: translate(6px, 6px); }
.collection-card:nth-child(2) { margin-top: 1.5rem; }
.collection-card:nth-child(2)::before { background: rgba(155,141,136,0.15); transform: translate(-6px, 6px); }
.collection-card:nth-child(3)::before { background: rgba(232,227,219,0.28); transform: translate(6px, -6px); }
.collection-card:hover::before { transform: translate(10px, 10px); }
.collection-card:nth-child(2):hover::before { transform: translate(-10px, 10px); }
.collection-card:nth-child(3):hover::before { transform: translate(10px, -10px); }

.collection-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
  background: var(--border);
}
.collection-card:hover .collection-photo { transform: scale(1.06); }
.collection-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(23,20,18,0.54) 0%, rgba(23,20,18,0.0) 55%);
}
.collection-label {
  position: absolute;
  bottom: 1.75rem; left: 0; right: 0;
  text-align: center;
}
.collection-label h3 {
  font-size: 1.35rem;
  color: var(--paper);
  margin-bottom: 0.4rem;
  text-shadow: 0 1px 10px rgba(23,20,18,0.25);
}
.collection-label .label {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: rgba(249,246,243,0.85);
}
.collection-card:hover .collection-label .label { opacity: 1; transform: translateY(0); }

/* =============================================
   BRAND STORY
============================================= */
.brand-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.brand-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
  background: var(--border);
}
.brand-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.clock-wm {
  position: absolute;
  width: 200px; height: auto;
  right: -1.5rem; bottom: 2rem;
  opacity: 0.08;
  color: var(--ink);
  pointer-events: none;
}
.brand-text .label { display: block; margin-bottom: 1rem; }
.brand-text h2 { color: var(--ink); margin-bottom: 1.5rem; }
.brand-text p { margin-bottom: 1rem; }
.brand-text .btn { margin-top: 1rem; }

/* =============================================
   ROMAN NUMERAL BACKGROUND
============================================= */
.roman-num {
  position: absolute;
  font-family: 'Gloock', serif;
  font-size: clamp(130px, 14vw, 220px);
  color: #f5f0e7;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* =============================================
   INSTAGRAM
============================================= */
.instagram-section {
  background: var(--paper);
  text-align: center;
  padding-top: 2rem;
}
.ig-polaroid-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  margin: 3rem 0 2.5rem;
  flex-wrap: wrap;
}
.ig-card {
  position: relative;
  background: white;
  padding: 0.875rem 0.875rem 2.5rem;
  box-shadow: 0 20px 40px rgba(23,20,18,0.12), 0 4px 12px rgba(23,20,18,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}
.ig-card:hover { transform: rotate(0deg) !important; z-index: 10; box-shadow: 0 30px 60px rgba(23,20,18,0.16); }
.ig-card-inner {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.ig-card-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-card-hover {
  position: absolute; inset: 0;
  background: rgba(249,246,243,0.18);
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.ig-card:hover .ig-card-hover { opacity: 1; }
.ig-script {
  font-family: 'Alex Brush', cursive;
  font-size: 2rem;
  color: var(--blush);
  margin-bottom: 3rem;
  display: block;
}
.ig-handle-row {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.ig-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--ink);
  border-radius: 9999px;
  padding: 0.55rem 1.25rem;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.ig-pill:hover {
  background: var(--ink);
  color: var(--paper);
}
.ig-pill:hover img { filter: invert(1); }

.contact-ig-link {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--stone);
  transition: color 0.2s ease;
}
.contact-ig-link img { display: inline; flex-shrink: 0; }
.contact-ig-link:hover { color: var(--ink); }

/* =============================================
   FOOTER
============================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.footer-logo { height: 52px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 13px; max-width: 220px; }
.footer-col h4 {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1.25rem;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--ink);
  opacity: 0.65;
  margin-bottom: 0.65rem;
  transition: opacity 0.2s;
}
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy { font-size: 11px; color: var(--stone); letter-spacing: 0.05em; }
.footer-socials { display: flex; gap: 1.25rem; align-items: center; }
.footer-social-link { opacity: 0.55; transition: opacity 0.2s; display: flex; }
.footer-social-link:hover { opacity: 1; }
.footer-wordmark {
  font-family: 'Gloock', serif;
  font-size: 1.05rem;
  letter-spacing: 0.07em;
  color: var(--ink);
  margin-bottom: 1rem;
  display: block;
}
.footer-location {
  font-size: 12px;
  color: var(--stone);
  letter-spacing: 0.05em;
  margin-top: 0.4rem;
}
.footer-credit { font-size: 11px; color: var(--stone); letter-spacing: 0.05em; }
.footer-credit a { color: var(--stone); opacity: 0.7; transition: opacity 0.2s; }
.footer-credit a:hover { opacity: 1; }

/* =============================================
   SHOP PAGE
============================================= */
.page-header {
  margin-top: var(--nav-h);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--ink); }
.page-header p { margin-top: 0.75rem; }

.filter-bar {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.filter-bar-inner {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.filter-btn {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  color: var(--stone);
  background: transparent;
  cursor: pointer;
  transition: all 0.22s;
}
.filter-btn.active,
.filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

/* =============================================
   CONTACT PAGE
============================================= */
.contact-wrap {
  margin-top: var(--nav-h);
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.contact-info .label { display: block; margin-bottom: 1rem; }
.contact-info h2 { color: var(--ink); margin-bottom: 1.25rem; }
.contact-info p { margin-bottom: 1.75rem; }
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.contact-detail span { font-size: 13px; color: var(--stone); }
.contact-detail a { font-size: 14px; color: var(--ink); border-bottom: 1px solid var(--border); display: inline; padding-bottom: 1px; }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.22s;
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-bottom-color: var(--ink); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--border); }
.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

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

@media (max-width: 900px) {
  .brand-story-grid { grid-template-columns: 1fr; }
  .brand-photo { order: -1; aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .clock-wm { display: none; }
  .ig-polaroid-row { gap: 1.5rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: 44px 1fr 44px; }
  .nav-logo-wrap { grid-column: 2; justify-content: center; }
  .nav-hamburger { display: flex; grid-column: 3; min-width: 44px; min-height: 44px; justify-content: center; }

  /* Hero — photo first on mobile, remove forced full height */
  .hero { min-height: auto; }
  .hero-content { grid-template-columns: 1fr; align-items: start; padding: 2rem 1.25rem 3rem; gap: 1.5rem; }
  .hero-visual { order: -1; }
  .hero-text { padding-bottom: 0; gap: 1rem; }
  .hero-photo { height: 55vh; }
  .hero-feature-card { bottom: 1rem; left: 1rem; }

  /* Roman numerals — smaller + clipped within section so they can't bleed over content */
  .roman-num { font-size: clamp(60px, 18vw, 100px); }
  .section { overflow: hidden; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.875rem; }
  .products-grid .product-card:nth-child(n) { margin-top: 0; }
  .collections-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .collection-card { height: 420px; margin-top: 0 !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Instagram — reset rotations, square photos sized to viewport */
  .ig-polaroid-row { flex-direction: column; align-items: center; gap: 2rem; }
  .ig-card { transform: none !important; width: auto !important; }
  .ig-card:hover { transform: none !important; }
  .ig-card-inner { width: 72vw !important; height: 72vw !important; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 2rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .ig-card-inner { width: 82vw !important; height: 82vw !important; }
}

/* =============================================
   SCROLL REVEAL
============================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
