/* ============================================
   Rangreza Studio — tokens
   ============================================ */
:root {
  --ivory: #FAF6EF;
  --paper: #F3ECDF;
  --ink: #241C1A;
  --ink-soft: #5A4E48;
  --wine-700: #6C1F2E;
  --wine-800: #551725;
  --wine-050: #F7E9EB;
  --gold-500: #C0902F;
  --gold-050: #F4E7CC;
  --line: rgba(36, 28, 26, 0.12);
  --shadow: 0 18px 40px rgba(36, 20, 18, 0.14);
  --radius-s: 4px;
  --radius-m: 10px;
  --font-display: "Cormorant Garamond", serif;
  --font-body: "Jost", sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--wine-800);
  margin: 0 0 0.4em;
  line-height: 1.15;
}
p { margin: 0 0 1em; color: var(--ink-soft); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold-500); color: #fff; }
.btn-primary:hover { background: #a97a24; }
.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-call {
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 10px 18px;
  border: 1px solid var(--wine-700);
  color: var(--wine-700);
  border-radius: var(--radius-s);
}
.btn-call:hover { background: var(--wine-700); color: #fff; }

/* ============================================
   Header
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(250, 246, 239, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--wine-800);
}
.logo span { color: var(--gold-500); }
.main-nav ul {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
}
.main-nav a {
  font-size: 0.92rem;
  color: var(--ink);
  position: relative;
  padding-bottom: 3px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold-500);
  transition: width 0.2s ease;
}
.main-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  width: 30px; height: 22px;
  background: none; border: none;
  flex-direction: column; justify-content: space-between;
  cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; height: 2px; background: var(--wine-800); border-radius: 2px; }

/* ============================================
   Hero (home)
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.hero-media { position: absolute; inset: 0; }
.hero-video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36,20,18,0.35) 0%, rgba(36,20,18,0.35) 40%, rgba(36,20,18,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 32px 90px;
  max-width: 720px;
}
.hero-kicker { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--gold-050); margin-bottom: 10px; }
.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,0.88); max-width: 560px; }
.hero-actions { display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap; }

/* ============================================
   Stats (counting)
   ============================================ */
.stats { background: var(--wine-800); color: #fff; padding: 56px 0; }
.stats-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--gold-050);
}
.stat-label { font-size: 0.86rem; color: rgba(255,255,255,0.75); letter-spacing: 0.01em; }

/* ============================================
   Section heads
   ============================================ */
.section-head { max-width: 620px; margin: 0 auto 44px; padding: 0 32px; text-align: left; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head p { max-width: 52ch; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ============================================
   Book CTA + slider
   ============================================ */
.book-section {
  background: var(--paper);
  padding: 90px 0 0;
}
.book-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.book-kicker { font-family: var(--font-display); font-style: italic; color: var(--gold-500); font-size: 1.1rem; margin-bottom: 8px; }
.book-heading { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.book-copy { max-width: 48ch; margin-left: auto; margin-right: auto; }
.book-actions { display: flex; gap: 16px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.book-section .btn-outline { border-color: var(--wine-700); color: var(--wine-700); }
.book-section .btn-outline:hover { background: var(--wine-700); color: #fff; }

.book-slider {
  position: relative;
  margin-top: 56px;
  height: 62vh;
  min-height: 380px;
  overflow: hidden;
}
.slider-track { position: relative; width: 100%; height: 100%; }
.slider-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.slider-slide.is-active { opacity: 1; }
.slider-slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(36,20,18,0.3);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 3;
}
.slider-prev { left: 22px; }
.slider-next { right: 22px; }
.slider-dots {
  position: absolute; bottom: 20px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px; z-index: 3;
}
.slider-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid #fff; background: transparent; cursor: pointer; padding: 0;
}
.slider-dots button.is-active { background: var(--gold-500); border-color: var(--gold-500); }

/* ============================================
   Stories
   ============================================ */
.stories-section { padding: 90px 0; background: var(--ivory); }
.stories-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.story-card {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  border: none;
  padding: 0;
  background: none;
  text-align: left;
}
.story-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.story-card:hover img { transform: scale(1.06); }
.story-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(20,10,10,0.82) 100%);
}
.story-card-info { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; color: #fff; }
.story-card-info .story-loc { font-size: 0.78rem; letter-spacing: 0.03em; color: var(--gold-050); margin: 0; }
.story-card-info h3 { color: #fff; font-size: 1.3rem; margin: 2px 0 0; }
.story-card-count { position: absolute; top: 14px; right: 14px; z-index: 2; font-size: 0.75rem; color: #fff; background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.5); border-radius: 20px; padding: 3px 10px; }

.story-modal, .video-modal {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(20, 12, 11, 0.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.story-modal.is-open, .video-modal.is-open { display: flex; }
.story-modal-panel {
  background: var(--ivory);
  border-radius: var(--radius-m);
  max-width: 980px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 44px 40px;
  position: relative;
}
.story-modal-kicker { color: var(--gold-500); font-family: var(--font-display); font-style: italic; margin-bottom: 2px; }
.story-modal-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.story-modal-grid img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius-s); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1.4rem; line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

/* ============================================
   Services
   ============================================ */
.services { padding: 90px 0; background: var(--paper); }
.services-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card { background: var(--ivory); border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); }
.service-card figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; }
.service-card img { width: 100%; height: 100%; object-fit: cover; }
.service-body { padding: 20px; }
.service-body h3 { font-size: 1.2rem; }
.service-body p { font-size: 0.92rem; margin: 0; }

/* ============================================
   Page hero (used by gallery / contact / about)
   ============================================ */
.page-hero { position: relative; height: 52vh; min-height: 320px; display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.page-hero .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .hero-overlay { background: linear-gradient(180deg, rgba(36,20,18,0.25) 0%, rgba(36,20,18,0.82) 100%); }
.page-hero .hero-content { padding: 0 32px 44px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }

/* ============================================
   Gallery
   ============================================ */
.gallery-page { max-width: var(--container); margin: 0 auto; padding: 56px 32px 90px; }
.filter-bar { display: flex; gap: 10px; justify-content: center; margin-bottom: 34px; flex-wrap: wrap; }
.filter-btn {
  padding: 9px 20px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink-soft);
}
.filter-btn.is-active, .filter-btn:hover { background: var(--wine-700); border-color: var(--wine-700); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.g-item { aspect-ratio: 1/1; overflow: hidden; border-radius: var(--radius-s); cursor: pointer; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.g-item:hover img { transform: scale(1.07); }
.g-item.is-hidden { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(15, 9, 8, 0.94);
  display: none; align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 84vw; max-height: 84vh; border-radius: var(--radius-s); }
.lightbox-close { position: absolute; top: 24px; right: 30px; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: #fff; font-size: 2.4rem; cursor: pointer; padding: 10px 16px; }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

/* ============================================
   Videos
   ============================================ */
.videos-section { padding: 90px 0; background: var(--ivory); }
.videos-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.video-card { position: relative; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 16/10; cursor: pointer; border: none; padding: 0; background: none; }
.video-card img { width: 100%; height: 100%; object-fit: cover; }
.video-card::after { content: ""; position: absolute; inset: 0; background: rgba(20,10,10,0.3); transition: background 0.2s ease; }
.video-card:hover::after { background: rgba(20,10,10,0.45); }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--wine-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  z-index: 2;
}
.video-info { position: absolute; left: 16px; bottom: 14px; z-index: 2; color: #fff; text-align: left; }
.video-info h3 { color: #fff; font-size: 1.05rem; margin: 0; }
.video-info p { color: rgba(255,255,255,0.78); font-size: 0.78rem; margin: 2px 0 0; }

.video-modal-panel { position: relative; width: 100%; max-width: 920px; }
.video-modal-panel video { width: 100%; max-height: 78vh; border-radius: var(--radius-m); background: #000; }
.video-modal-caption { color: rgba(255,255,255,0.85); text-align: center; margin-top: 14px; font-size: 0.9rem; }
.video-modal .modal-close { position: absolute; top: -50px; right: 0; background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }

/* ============================================
   Testimonials
   ============================================ */
.testimonials { padding: 90px 0; background: var(--wine-050); text-align: center; }
.testimonial-track { max-width: 640px; margin: 0 auto; padding: 0 32px; position: relative; min-height: 150px; }
.testimonial-card { display: none; }
.testimonial-card.is-active { display: block; }
.testimonial-card .quote { font-family: var(--font-display); font-size: 1.4rem; font-style: italic; color: var(--wine-800); line-height: 1.4; }
.testimonial-name { font-weight: 500; color: var(--ink); margin-bottom: 0; }
.testimonial-role { font-size: 0.82rem; color: var(--ink-soft); margin: 0; }
.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.testimonial-dots button { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--wine-700); background: transparent; cursor: pointer; padding: 0; }
.testimonial-dots button.is-active { background: var(--wine-700); }

/* ============================================
   Contact
   ============================================ */
.contact-section { max-width: var(--container); margin: 0 auto; padding: 70px 32px 100px; }
.contact-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; }
.contact-info h3 { font-size: 1rem; color: var(--wine-700); margin-top: 22px; margin-bottom: 4px; font-family: var(--font-body); font-weight: 500; }
.contact-info p { font-size: 0.94rem; }
.contact-map { margin-top: 24px; border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); }
.contact-map iframe { width: 100%; height: 220px; border: 0; display: block; }

.contact-form { background: var(--paper); border-radius: var(--radius-m); padding: 34px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-size: 0.94rem;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold-500);
  outline-offset: 1px;
}
.field .error { display: none; color: #a02b2b; font-size: 0.78rem; margin-top: 4px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #a02b2b; }
.field.has-error .error { display: block; }
.form-status { min-height: 20px; font-size: 0.88rem; color: var(--wine-700); margin-bottom: 12px; }
.btn-submit { background: var(--wine-700); color: #fff; }
.btn-submit:hover { background: var(--wine-800); }

/* ============================================
   About
   ============================================ */
.about-intro { max-width: var(--container); margin: 70px auto 0; padding: 0 32px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; }
.about-intro figure { margin: 0; border-radius: var(--radius-m); overflow: hidden; }
.about-intro img { width: 100%; }
.about-intro h2 { font-size: 1.7rem; }
.about-intro p { font-size: 0.95rem; }

.values { max-width: var(--container); margin: 90px auto 0; padding: 0 32px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 26px; background: var(--paper); }
.value-card h3 { font-size: 1.1rem; }
.value-card p { font-size: 0.9rem; margin: 0; }

.team { max-width: var(--container); margin: 90px auto 0; padding: 0 32px 100px; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card { text-align: center; }
.avatar {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--wine-700); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.3rem;
  margin: 0 auto 14px;
}
.team-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.team-role { font-size: 0.8rem; color: var(--gold-500); margin-bottom: 6px; }
.bio { font-size: 0.86rem; margin: 0; }

/* ============================================
   Footer
   ============================================ */
.site-footer { background: var(--wine-800); color: rgba(255,255,255,0.8); padding: 64px 0 0; }
.footer-grid {
  max-width: var(--container); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 34px;
}
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
}
.site-footer h4 { color: #fff; font-family: var(--font-body); font-weight: 500; font-size: 0.9rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 0.86rem; }
.footer-bottom {
  margin-top: 50px; border-top: 1px solid rgba(255,255,255,0.15);
  padding: 20px 32px; display: flex; justify-content: space-between;
  max-width: var(--container); margin-left: auto; margin-right: auto;
  font-size: 0.8rem; color: rgba(255,255,255,0.55);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  .main-nav { position: fixed; top: 66px; left: 0; right: 0; background: var(--ivory); border-bottom: 1px solid var(--line); padding: 12px 0; transform: translateY(-120%); transition: transform 0.25s ease; }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 0; align-items: center; padding: 10px 0; }
  .main-nav li { width: 100%; text-align: center; }
  .main-nav a { display: block; padding: 12px 0; }
  .nav-toggle { display: flex; }
  .header-actions .btn-call { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .videos-grid, .stories-grid, .gallery-grid, .values-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .story-modal-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .about-intro { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .header-inner { padding: 14px 20px; }
  .container, .section-head, .stats-inner, .stories-grid, .services-grid, .gallery-page, .videos-grid, .contact-section, .about-intro, .values, .team, .footer-grid { padding-left: 20px; padding-right: 20px; }
  .stats-inner, .services-grid, .videos-grid, .stories-grid, .gallery-grid, .values-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .story-modal-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .book-slider { height: 46vh; min-height: 280px; }
}
