/* ===== FONTS ===== */
/* CDN fallback for Bariol (ensures cross-browser loading) */
@import url('https://fonts.cdnfonts.com/css/bariol');

/* Self-hosted overrides (faster when CORS works) */
@font-face {
  font-family: 'Bariol';
  font-style: normal;
  font-weight: 300;
  src: local('Bariol Light'), local('Bariol-Light'),
       url('../fonts/bariol-light.woff2') format('woff2'),
       url('../fonts/bariol-light.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'Bariol';
  font-style: normal;
  font-weight: 400;
  src: local('Bariol Regular'), local('Bariol'),
       url('../fonts/bariol-regular.woff2') format('woff2'),
       url('../fonts/bariol-regular.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'Bariol';
  font-style: normal;
  font-weight: 700;
  src: local('Bariol Bold'), local('Bariol-Bold'),
       url('../fonts/bariol-bold.woff2') format('woff2'),
       url('../fonts/bariol-bold.woff') format('woff');
  font-display: swap;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --text: #e8e8e8;
  --text-muted: #888888;
  --accent: #ffffff;
  --border: #1a1a1a;
  --font: 'Bariol', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --max-w: 1400px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header.scrolled {
  padding: 0.7rem 2.5rem;
}

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

.logo img {
  height: 32px;
  width: auto;
  border-radius: 0;
}

nav { display: flex; align-items: center; gap: 2.5rem; }

nav a {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

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

nav a:hover::after, nav a.active::after {
  width: 100%;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text);
  margin: 6px 0;
  transition: var(--transition);
}

/* ===== HERO SLIDESHOW ===== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-content .hero-logo {
  width: clamp(180px, 25vw, 320px);
  height: auto;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.2s ease forwards 0.3s;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards 0.6s;
}

.hero p {
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.9;
  font-weight: 400;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards 0.9s;
}

.hero .scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.2s;
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  margin: 0 auto;
  animation: scrollPulse 2.5s ease infinite;
}

/* Slide indicators */
.slide-indicators {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.slide-indicators button {
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.slide-indicators button.active {
  background: rgba(255,255,255,0.8);
  width: 40px;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== SECTION ===== */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  font-family: var(--font);
  font-weight: 400;
}

/* ===== MODEL GRID ===== */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.model-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 2/3;
  cursor: pointer;
  background: var(--bg-card);
}

.model-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
}

.model-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.6);
}

.model-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  transform: translateY(10px);
  opacity: 0;
  transition: var(--transition);
}

.model-card:hover .overlay {
  transform: translateY(0);
  opacity: 1;
}

.model-card .overlay h3 {
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.model-card .overlay span {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font);
}

/* ===== MODEL PAGE ===== */
.model-hero {
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.model-hero .bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
}

.model-hero .content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.model-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.model-hero .collection-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-family: var(--font);
}

.model-tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
  max-width: 500px;
  line-height: 1.7;
}

.model-gallery {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.model-gallery img {
  width: 100%;
  border-radius: 2px;
  transition: var(--transition);
}

.model-gallery img:hover {
  filter: brightness(1.1);
}

.model-info {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
}

.model-info .specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.model-info .spec-item {
  font-size: 0.85rem;
}

.model-info .spec-item dt {
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  font-family: var(--font);
}

/* Model nav */
.model-nav {
  display: flex;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem;
  border-top: 1px solid var(--border);
}

.model-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  font-family: var(--font);
}

.model-nav a:hover { color: var(--accent); }

/* ===== ABOUT PAGE ===== */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 10rem 2rem 4rem;
}

.about-content h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  margin-bottom: 3rem;
}

.about-section {
  margin-bottom: 3rem;
}

.about-section h2 {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--accent);
}

.about-section p {
  color: var(--text-muted);
  line-height: 1.9;
  font-size: 0.95rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.about-features li {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.about-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
}

/* Video section */
.video-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.video-wrapper {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-card);
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== BRAND STATEMENT ===== */
.brand-statement {
  text-align: center;
  padding: 4rem 2rem;
}

.brand-statement blockquote {
  max-width: 700px;
  margin: 0 auto;
  border-left: none;
  padding: 0;
}

.brand-statement blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.9;
}

/* ===== MODEL DESCRIPTION ===== */
.model-description {
  margin-bottom: 2rem;
}

.model-description h2 {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  color: var(--accent);
}

.model-description p {
  color: var(--text-muted);
  line-height: 1.9;
  font-size: 0.95rem;
}

.model-care {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.model-care h2 {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  color: var(--accent);
}

.model-care p {
  color: var(--text-muted);
  line-height: 1.9;
  font-size: 0.9rem;
}

/* ===== FAQ ===== */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
}

.faq-section .section-title {
  margin-bottom: 2rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}

/* Bulletproof summary reset for ALL browsers including Safari */
.faq-item summary {
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  position: relative;
  padding-right: 2.5rem;
  transition: color var(--transition);
  /* Remove default marker/triangle — multi-approach for Safari */
  list-style: none;
  list-style-type: none;
  -webkit-appearance: none;
  outline: none;
}

/* Safari/WebKit specific marker removal */
.faq-item summary::-webkit-details-marker {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Firefox and standards-based browsers */
.faq-item summary::marker {
  display: none !important;
  content: '' !important;
  font-size: 0 !important;
  color: transparent !important;
}

/* Additional Safari fix: hide marker via list-style on details */
.faq-item {
  list-style: none;
}

.faq-item > summary {
  display: block;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover { color: var(--accent); }

.faq-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-top: 0.8rem;
  padding-right: 2rem;
}

/* ===== ABOUT LEAD ===== */
.about-content .lead {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  line-height: 1.8;
}

/* ===== FOOTER ===== */
.footer {
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}

.footer p {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.2rem;
}

.footer-links a {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent); }

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.footer-social a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-social a:hover { color: var(--accent); }

.footer-contact {
  margin-top: 1.2rem;
  font-size: 0.65rem !important;
  letter-spacing: 0.05em !important;
}

.footer .footer-logo {
  height: 24px;
  width: auto;
  margin: 0 auto 1rem;
  opacity: 0.4;
}

/* ===== FADE-IN ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    transition: right var(--transition);
    z-index: 101;
  }

  nav.open { right: 0; }

  nav a { font-size: 1.1rem; letter-spacing: 0.2em; }

  .model-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .model-gallery {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }

  .section { padding: 4rem 1.5rem; }

  .header { padding: 1rem 1.5rem; }

  .hero-content .hero-logo {
    width: 160px;
  }

  .slide-indicators {
    right: 1.5rem;
    bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .model-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== LOADING ===== */
.page-enter {
  animation: pageEnter 0.6s ease forwards;
}

@keyframes pageEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}
