/* ---------- Design tokens ---------- */
:root {
  --bg: #0b0b0c;
  --bg-alt: #131315;
  --surface: #1a1a1d;
  --surface-hover: #222226;
  --border: #2a2a2e;
  --text: #f4f2ec;
  --text-muted: #a8a29a;
  --accent: #c9a659;
  --accent-hover: #e0bf7a;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --radius: 14px;
  --max-width: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 640px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 600;
}

section { padding: 100px 0; }
@media (max-width: 640px) {
  section { padding: 64px 0; }
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; margin: 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-head p { color: var(--text-muted); margin-top: 14px; font-size: 1.05rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--accent); color: #16130a; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-outline { border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 11, 12, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: rgba(11, 11, 12, 0.9);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
}

/* WP theme's native header block (see parts/header.html) */
#siteHeader {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
}
#siteHeader .wp-block-navigation {
  justify-content: flex-end;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-brand .site-logo {
  margin: 0;
  flex-shrink: 0;
}
.site-brand .site-logo img {
  display: block;
  border-radius: 50%;
}

/* WP theme's native hero heading (see templates/index.html) */
.wp-block-cover .wp-block-heading {
  white-space: nowrap;
}

/* WP theme's native hero cover (see templates/index.html) */
.hero-cover .wp-block-cover__inner-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  max-width: 780px;
  width: 100%;
}

/* On tall/narrow (portrait) viewports, object-fit:cover scales the hero
   photo by height and crops width heavily — the 15% desktop focal point
   lands mostly on empty background, so recenter on the subject instead. */
@media (orientation: portrait) {
  .hero-cover .wp-block-cover__image-background {
    object-position: 50% 20% !important;
  }
}

/* WP theme's native footer block (see parts/footer.html) */
#siteFooter {
  border-top: 1px solid #2a2a2e;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.logo img { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  padding: 8px;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 800px) {
  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li { border-top: 1px solid var(--border); }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 100px;
  background-size: cover;
  background-position: 15% 20%;
}
@media (orientation: portrait) {
  .hero { background-position: 50% 20%; }
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0.35) 0%, rgba(11,11,12,0.55) 55%, var(--bg) 100%);
}
.hero .container { position: relative; z-index: 1; max-width: 780px; }
.hero h1 {
  font-size: clamp(1.35rem, 7vw, 4.2rem);
  line-height: 1.08;
  margin: 0 0 20px;
  white-space: nowrap;
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 32px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { color: var(--text-muted); font-size: 1.05rem; margin: 0 0 18px; }
.about-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 24px; }

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 380px; margin: 0 auto; }
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.gallery-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  background: var(--surface);
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* ---------- Videos ---------- */
/* About through Contact share one tighter inter-section rhythm (32px each
   side, 64px combined gap) instead of the default 100px section padding. */
#videos { padding-top: 32px; padding-bottom: 32px; }
.video-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.video-tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.video-tab:hover { border-color: var(--accent); color: var(--text); }
.video-tab.active { background: var(--accent); border-color: var(--accent); color: #16130a; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.video-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.play-btn span {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: 1.5px solid rgba(255,255,255,0.8);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.video-card:hover .play-btn span { background: var(--accent); transform: scale(1.08); }
.play-btn svg { width: 20px; height: 20px; color: #fff; margin-left: 3px; }
.video-card:hover .play-btn svg { color: #16130a; }
.video-duration {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
}
.video-meta { padding: 16px 18px 18px; }
.video-meta h3 { font-size: 1rem; font-family: var(--font); font-weight: 600; margin-bottom: 6px; }
.video-meta p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }
.video-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
  grid-column: 1 / -1;
}

.video-embed {
  width: min(90vw, 1100px);
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.testimonial-card blockquote {
  flex: 1;
  margin: 0 0 20px;
  font-size: 1rem;
  color: var(--text);
  font-family: var(--font-serif);
  line-height: 1.6;
}
.testimonial-card .name { margin-bottom: 2px; }
.testimonial-card .name { font-weight: 600; font-size: 0.92rem; }
.testimonial-card .role { color: var(--text-muted); font-size: 0.82rem; }

#testimonials .wp-block-column {
  display: flex;
  flex-direction: column;
}
#testimonials blockquote {
  flex: 1;
  margin: 0 0 20px;
  font-size: 1rem;
  color: var(--text);
  font-family: var(--font-serif);
  line-height: 1.6;
}

/* ---------- Leave a Review ---------- */
.review-cta { text-align: center; margin-top: 40px; }
/* Only space the visitor-review grid off the curated cards once it has cards,
   so an empty grid doesn't leave a gap above the button. */
#reviewGrid:not(:empty) { margin-top: 24px; }
/* Reviews are stored as plain text, so keep the line breaks people typed —
   without this, separate paragraphs collapse and run into each other. */
#reviewGrid blockquote { white-space: pre-line; }

.modal-overlay .review-modal-content {
  width: min(90vw, 480px);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.review-modal-content h3 {
  font-size: 1.3rem;
  margin: 0 0 20px;
}
.review-form { display: flex; flex-direction: column; gap: 16px; }
.review-form .field { display: flex; flex-direction: column; gap: 6px; }
.review-form .field label { font-size: 0.82rem; color: var(--text-muted); }
.review-form .field-optional { opacity: 0.7; }
.review-form input, .review-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  resize: vertical;
}
.review-form input:focus, .review-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.review-form .form-status { font-size: 0.85rem; color: var(--text-muted); min-height: 1.2em; margin: 0; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Contact ---------- */
/* Same tighter rhythm as Videos/Testimonials above; bottom (into the footer)
   keeps the default padding since that gap wasn't reported as an issue. */
#contact { padding-top: 32px; }
.contact-simple {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.contact-simple h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 20px; }
.contact-simple p { color: var(--text-muted); margin-bottom: 32px; }
.email-btn { margin: 0 auto 28px; }
.email-btn svg { width: 20px; height: 20px; }
.social-row { display: flex; gap: 14px; justify-content: center; }
.hero-social { justify-content: flex-start; margin-top: 28px; }
.social-row a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
  color: var(--text-muted);
}
.social-row a:hover { border-color: var(--accent); color: var(--accent); }
.social-row svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Lightbox / Video modal ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-overlay img, .modal-overlay video {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute; top: 20px; right: 24px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.modal-close svg { width: 20px; height: 20px; }
.modal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.modal-nav svg { width: 22px; height: 22px; }
.modal-prev { left: 20px; }
.modal-next { right: 20px; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
