/* ========================================
   Croqui Studio — Global Design System v3
   Stark minimal. Fashion-forward. No fluff.
   ======================================== */

/* ── Design Tokens ── */
:root {
  /* Palette: high contrast, no beige */
  --color-bg:         #FFFFFF;
  --color-surface:    #FAFAFA;
  --color-warm:       #F2F0ED;
  --color-dark:       #0A0A0A;

  /* Text */
  --color-text:       #0A0A0A;
  --color-text-muted: #5C5C5C;

  /* Accent — burnt sienna, not gold */
  --color-accent:     #A0522D;
  --color-accent-hover: #8B4726;

  /* Compat alias for pages still using --color-gold */
  --color-gold:       #A0522D;
  --color-gold-light: #8B4726;

  /* Borders */
  --color-border:     #E0E0E0;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-width:    1200px;
  --section-gap:  80px;
  --nav-height:   64px;

  /* Modern CSS opt-ins */
  interpolate-size: allow-keywords;
}

/* ── View Transitions ── */
@view-transition {
  navigation: auto;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Layout System ── */
.contained {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.section-full {
  width: 100%;
  padding: var(--section-gap) 0;
}

.section {
  padding: var(--section-gap) 0;
}

/* Background variants */
.bg-white   { background: var(--color-bg); }
.bg-surface { background: var(--color-surface); }
.bg-warm    { background: var(--color-warm); }
.bg-dark    { background: var(--color-dark); color: #fff; }

/* ── Section Headers ── */
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-sub {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-top: 10px;
  max-width: 520px;
}

.section-header-center {
  text-align: center;
  margin-bottom: 48px;
}

.section-header-center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  view-transition-name: nav;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo { display: flex; align-items: center; }

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  transition: 0.3s;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  text-align: center;
}

.btn-primary {
  background: var(--color-dark);
  color: #fff;
}
.btn-primary:hover {
  background: #000;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-text);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn-sm { padding: 10px 20px; font-size: 0.8rem; }
.btn-lg { padding: 16px 36px; font-size: 0.9rem; }

/* ── Text Link ── */
.link-arrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.link-arrow:hover { border-color: var(--color-text); }

/* ── Newsletter Form ── */
.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border: 1.5px solid var(--color-border);
  border-radius: 2px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input[type="email"]:focus {
  border-color: var(--color-text);
}

.bg-dark .newsletter-form input[type="email"] {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.bg-dark .newsletter-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.4);
}
.bg-dark .newsletter-form input[type="email"]:focus {
  border-color: rgba(255,255,255,0.5);
}

.subscribe-msg {
  font-size: 0.85rem;
  margin-top: 8px;
  min-height: 1.2em;
}
.subscribe-msg.success { color: #16a34a; }
.subscribe-msg.error   { color: #dc2626; }

/* ── Footer ── */
.footer {
  padding: 56px 0 36px;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand .logo-text { font-size: 1.1rem; }
.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  margin-top: 6px;
  max-width: 260px;
  line-height: 1.6;
}

.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.footer-nav a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.footer-nav a:hover { color: var(--color-text); }

.footer-newsletter p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.footer-bottom a { color: var(--color-text-muted); }
.footer-bottom a:hover { color: var(--color-text); }

/* ── Scroll-Driven Reveal Animation ── */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  animation: reveal-up linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 25%;
}

/* ── Responsive ── */
@media (max-width: 968px) {
  :root { --section-gap: 60px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  :root { --section-gap: 40px; --nav-height: 56px; }

  .footer { padding-top: 32px; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 20px clamp(20px, 4vw, 48px);
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-links.active { display: flex; }
  .nav-toggle { display: flex; }

  .newsletter-form { flex-direction: column; }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}
