/* ==========================================================================
   CORE / BASE & SHARED COMPONENTS (Minimalist Claude × Apple v2.1.0)
   Seamless hover-bridge dropdown · Light cohesive Apple footer · Clean controls
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--bg-paper);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap;
}

.font-serif { font-family: var(--font-serif); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent-clay); font-family: var(--font-mono);
}

.section-pad { padding-block: var(--section-py); }

.section-linen {
  background: var(--bg-linen);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header { max-width: 660px; margin-bottom: var(--sp-10); }
.section-header.center { margin-inline: auto; text-align: center; }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.3vw, 2.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.024em;
  margin: var(--sp-3) 0 var(--sp-3);
  color: var(--ink-primary);
}
.section-title em { font-style: italic; color: var(--accent-clay); }

.section-subtitle {
  font-size: 16px; line-height: 1.68; color: var(--ink-secondary);
  margin: 0; max-width: 62ch;
}

/* Shared Minimalist Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 44px; font-size: 14.5px; font-weight: 500; line-height: 1;
  padding: var(--sp-3) var(--sp-5); border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.24s var(--ease-apple), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--accent-clay); outline-offset: 2px; }
.btn-primary { background: var(--ink-primary); color: var(--bg-paper); }
.btn-primary:hover { background: #2D2C29; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-clay { background: var(--accent-clay); color: var(--p-white); }
.btn-clay:hover { background: var(--accent-clay-hover); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(212, 114, 82, 0.26); }
.btn-outline { background: rgba(255, 255, 255, 0.78); color: var(--ink-primary); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--p-white); border-color: var(--ink-primary); transform: translateY(-1px); }
.btn-sm { min-height: 38px; font-size: 13.5px; padding: var(--sp-2) var(--sp-4); }

/* Translucent Glass Navigation + ZERO-GAP Hover Dropdown */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--nav-height);
  background: rgba(250, 249, 245, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled { background: rgba(250, 249, 245, 0.96); box-shadow: 0 4px 20px rgba(25, 25, 24, 0.04); }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; min-width: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(145deg, var(--p-clay-400) 0%, var(--p-clay-500) 52%, var(--p-clay-600) 100%);
  display: grid; place-items: center; color: var(--bg-paper);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 4px 12px rgba(212, 114, 82, 0.24);
  transition: transform 0.26s var(--ease-apple);
}
.brand:hover .brand-mark { transform: translateY(-1px) scale(1.03); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-serif); font-weight: 600; font-size: 16px; letter-spacing: -0.02em; white-space: nowrap; }
.brand-tagline { font-size: 11px; color: var(--ink-muted); letter-spacing: 0.015em; }

.nav-links { display: flex; align-items: center; gap: var(--sp-1); list-style: none; margin: 0; padding: 0; height: 100%; }
.nav-item { position: relative; display: flex; align-items: center; height: 100%; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14px; font-weight: 450; color: var(--ink-secondary);
  padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-pill); white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.nav-link:hover, .nav-link:focus-visible, .nav-link.is-active { color: var(--ink-primary); background: rgba(25, 25, 24, 0.055); }
.nav-link.is-active { font-weight: 500; }

/* Seamless Dropdown with Invisible Top Hover Bridge (Fixes cursor drop-off!) */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 8px;
  min-width: 296px;
  z-index: 120;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.2s var(--ease-apple), visibility 0.18s ease;
}
.nav-dropdown-inner {
  padding: var(--sp-2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.dropdown-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.dropdown-link { display: flex; flex-direction: column; padding: 10px 12px; border-radius: var(--radius-sm); transition: background-color 0.15s ease; }
.dropdown-link:hover { background: var(--bg-linen); }
.dropdown-link strong { font-size: 14px; font-weight: 500; color: var(--ink-primary); white-space: nowrap; }
.dropdown-link span { font-size: 12.5px; color: var(--ink-muted); margin-top: 2px; }

.nav-actions { display: flex; align-items: center; gap: var(--sp-2); flex-shrink: 0; }
.lang-pill { font-size: 12.5px; font-weight: 500; color: var(--ink-muted); padding: 7px 11px; border-radius: var(--radius-pill); border: 1px solid var(--border-subtle); transition: all 0.18s ease; }
.lang-pill:hover { color: var(--ink-primary); border-color: var(--border-strong); background: var(--p-white); }

.mobile-toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border-subtle); background: var(--p-white); color: var(--ink-primary);
  align-items: center; justify-content: center; cursor: pointer;
}
.mobile-drawer {
  display: none; position: fixed; inset: var(--nav-height) 0 0 0; z-index: 99;
  background: rgba(250, 249, 245, 0.98); backdrop-filter: blur(20px); padding: var(--sp-6); overflow-y: auto;
}
.mobile-drawer.open { display: block; }
.mobile-drawer-links { display: flex; flex-direction: column; gap: var(--sp-1); margin-bottom: var(--sp-6); }
.mobile-drawer-links a { padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm); font-size: 16px; font-weight: 500; }
.mobile-drawer-links a:hover { background: var(--bg-linen); }

/* Quiet Light Apple-Style Footer (100% Unified Warm Linen Palette) */
.site-footer {
  background: var(--bg-linen);
  color: var(--ink-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: var(--sp-16) 0 var(--sp-10);
}
.footer-grid { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1.05fr; gap: var(--sp-10); padding-bottom: var(--sp-10); border-bottom: 1px solid var(--border-subtle); }
.footer-brand-name { font-family: var(--font-serif); font-size: 19px; font-weight: 600; color: var(--ink-primary); margin: 0 0 var(--sp-2); }
.footer-col h4 { font-size: 11.5px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); margin: 0 0 var(--sp-4); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); font-size: 14px; }
.footer-links a { color: var(--ink-secondary); transition: color 0.16s ease; }
.footer-links a:hover { color: var(--accent-clay); }
.footer-bottom { padding-top: var(--sp-6); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); font-size: 13px; color: var(--ink-muted); }

/* Lightbox & Toast */
.lightbox-backdrop {
  position: fixed; inset: 0; z-index: 260; background: rgba(25, 25, 24, 0.82);
  backdrop-filter: blur(12px); display: none; align-items: center; justify-content: center; padding: var(--sp-5);
}
.lightbox-backdrop.open { display: flex; }
.lightbox-dialog { max-width: 960px; width: 100%; display: flex; flex-direction: column; gap: var(--sp-3); color: var(--bg-paper); animation: fadeSlideUp 0.25s var(--ease-apple) both; }
.lightbox-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.modal-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-subtle); background: var(--p-white); color: var(--ink-primary); font-size: 18px; cursor: pointer; flex-shrink: 0; }
.lightbox-img-wrap { border-radius: var(--radius-md); overflow: hidden; background: #141413; max-height: 75vh; display: grid; place-items: center; }
.lightbox-img-wrap img { max-height: 75vh; width: auto; max-width: 100%; object-fit: contain; }
.lightbox-caption { color: rgba(250, 249, 245, 0.78); font-size: 14.5px; margin: 0; }

.check-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--accent-clay-soft); color: var(--accent-clay); display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; font-size: 12px; font-weight: 700; }

.toast {
  position: fixed; bottom: 24px; right: 20px; z-index: 300; background: var(--ink-primary); color: var(--bg-paper);
  padding: var(--sp-3) var(--sp-5); border-radius: var(--radius-pill); font-size: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: all 0.25s var(--ease-apple);
}
.toast.show { opacity: 1; transform: translateY(0); }

@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1119px) {
  .nav-links { display: none; }
  .mobile-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1120px) { .mobile-drawer { display: none !important; } }
@media (max-width: 680px) {
  .brand-tagline, .nav-actions .lang-pill { display: none; }
  .brand-name { font-size: 15px; }
  .nav-actions .btn-sm { padding: var(--sp-2) var(--sp-3); font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr; }
}
