/* css/styles.css */
:root {
  --bg-cream: #F5EFE6;
  --bg-white: #FFFDF9;
  --bg-dark: #3A2820;
  --brown-deep: #5C4033;
  --brown-mid: #8B6E5A;
  --terracotta: #C17F5E;
  --sand: #D4A97A;
  --brown-section: #8B4E2F;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg-cream); color: var(--brown-deep); font-family: var(--font-sans); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── SECTION LABEL ── */
.section-label {
  font-weight: normal;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--brown-deep);
  color: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 56px;
  gap: 24px;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--bg-cream);
  white-space: nowrap;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--bg-cream);
  opacity: 0.8;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }
.lang-toggle {
  background: transparent;
  border: 1px solid var(--sand);
  color: var(--sand);
  font-size: 12px;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 16px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.lang-toggle:hover { background: var(--sand); color: var(--brown-deep); }

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  /* --vhpx is frozen by js/viewport.js so in-app browsers (Instagram etc.)
     can't resize the hero mid-scroll; falls back to svh without JS */
  height: calc(var(--vhpx, 1svh) * 100);
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  padding: 64px 64px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--brown-section) 100%);
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(92,64,51,0.85) 0%, rgba(92,64,51,0.2) 60%, transparent 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; color: var(--bg-white); }
.hero-location {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 8px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: normal;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero-tagline {
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  letter-spacing: 1px;
  opacity: 0.9;
}
.hero--person {
  height: 70vh;
  height: calc(var(--vhpx, 1svh) * 70);
  min-height: 420px;
}
.hero--person .hero-bg img { opacity: 0.5; }

/* ── SECTIONS ── */
.section { padding: 72px 64px; }
.section--cream { background: var(--bg-cream); }
.section--white { background: var(--bg-white); }
.section--dark { background: var(--brown-deep); color: var(--bg-cream); }
.section--dark .section-label { color: var(--sand); }

/* ── ABOUT (home) ── */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: center;
  max-width: 960px;
}
.about-heading {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: normal;
  line-height: 1.4;
  margin-bottom: 16px;
}
.about-text { font-size: 15px; color: var(--brown-mid); line-height: 1.8; }
.about-image { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; }

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 960px;
}
.service-card {
  background: var(--bg-white);
  border-radius: 12px;
  border-bottom: 3px solid var(--terracotta);
  padding: 28px 24px;
  text-align: center;
}
.service-icon { font-size: 28px; margin-bottom: 12px; }
.service-name { font-family: var(--font-serif); font-weight: normal; font-size: 20px; color: var(--brown-deep); margin-bottom: 6px; }
.service-desc { font-size: 13px; color: var(--brown-mid); }

/* ── PRICE LIST ── */
.price-list { max-width: 720px; }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 3px 0;
  border-bottom: 1px solid rgba(212,169,122,0.2);
  gap: 16px;
}
.price-row:last-child { border-bottom: none; }
.price-service { font-size: 15px; color: var(--bg-cream); }
.price-detail { font-size: 12px; color: var(--brown-mid); margin-top: 3px; }
.price-amount { font-family: var(--font-serif); font-size: 18px; color: var(--sand); white-space: nowrap; }

/* ── TEAM CARDS ── */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 720px;
}
.team-card {
  background: var(--bg-cream);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid #E8D5C4;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(92,64,51,0.12); }
.team-photo {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  background: var(--sand);
}
.team-name { font-family: var(--font-serif); font-weight: normal; font-size: 22px; color: var(--brown-deep); margin-bottom: 8px; }
.team-specialties { font-size: 12px; color: var(--brown-mid); margin-bottom: 20px; line-height: 1.6; }
.btn-pill {
  display: inline-block;
  background: var(--terracotta);
  color: var(--bg-white);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 24px;
  transition: background 0.2s;
}
.btn-pill:hover { background: var(--brown-section); }

/* ── FOOTER ── */
.footer {
  background: var(--bg-dark);
  color: var(--brown-mid);
  padding: 32px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { font-family: var(--font-serif); font-size: 14px; color: var(--bg-cream); letter-spacing: 2px; }
.footer-location { font-size: 12px; margin-top: 4px; }
.footer-legal { margin-top: 8px; font-size: 12px; }
.footer-legal a { color: var(--brown-mid); text-decoration: underline; }
.footer-legal a:hover { color: var(--sand); }
.footer-links { display: flex; gap: 20px; font-size: 13px; }
.footer-links a { display: flex; align-items: center; gap: 6px; color: var(--brown-mid); transition: color 0.2s; }
.footer-links a:hover { color: var(--sand); }
.footer-links svg { width: 15px; height: 15px; fill: currentColor; }
.footer-contact { font-size: 13px; text-align: right; }
.footer-contact > div:first-child { text-align: center; }
.footer-phone { color: var(--sand); margin-top: 4px; }

/* ── PERSON ABOUT ── */
.person-about { max-width: 720px; }
.person-quote {
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  color: var(--brown-deep);
  line-height: 1.7;
  margin-bottom: 20px;
  padding-left: 20px;
  border-left: 3px solid var(--terracotta);
}
.person-bio { font-size: 15px; color: var(--brown-mid); line-height: 1.8; }
.person-bio a { color: var(--terracotta); }

/* ── SERVICE LIST (subpages) ── */
.service-list { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.service-item {
  background: var(--bg-white);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 3px solid var(--terracotta);
  gap: 16px;
}
.service-item-name { font-size: 15px; color: var(--brown-deep); margin-bottom: 4px; }
.service-item-detail { font-size: 13px; color: var(--brown-mid); }
.service-item-price { font-family: var(--font-serif); font-size: 18px; color: var(--terracotta); white-space: nowrap; }

/* ── PRICE GROUPS (grouped price list on subpages) ── */
.price-groups { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.price-group {
  background: var(--bg-white);
  border-radius: 10px;
  padding: 24px 28px;
  border-left: 3px solid var(--terracotta);
}
.section--white .price-group { background: var(--bg-cream); }
a.price-group {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
a.price-group:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.price-group-title {
  font-family: var(--font-serif);
  font-weight: normal;
  font-size: 18px;
  color: var(--brown-deep);
}
.price-group-detail { font-size: 13px; color: var(--brown-mid); margin-bottom: 14px; }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 3px 0;
}
.price-row + .price-row { border-top: 1px solid rgba(0, 0, 0, 0.06); }
.price-row-label { font-size: 14px; color: var(--brown-mid); }
.price-row-value { font-family: var(--font-serif); font-size: 17px; color: var(--terracotta); white-space: nowrap; }
.price-row-value--free { color: var(--brown-deep); }

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 960px;
}
.gallery-img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; width: 100%; height: auto; cursor: zoom-in; }

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  max-height: 90svh;
  object-fit: contain;
  border-radius: 6px;
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
}
.lightbox-close:hover { opacity: 1; }

/* ── CONTACT ── */
.contact-section {
  background: linear-gradient(135deg, var(--terracotta), var(--sand));
  padding: 72px 64px;
  text-align: center;
}
.contact-title {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--bg-white);
  font-weight: normal;
  margin-bottom: 8px;
}
.contact-subtitle { font-size: 14px; color: rgba(255,253,249,0.85); font-style: italic; margin-bottom: 32px; }
.contact-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-white);
  color: var(--brown-deep);
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 28px;
  transition: transform 0.2s;
}
.contact-btn:hover { transform: translateY(-2px); }
.contact-btn--outline {
  background: transparent;
  color: var(--bg-white);
  border: 1px solid rgba(255,253,249,0.5);
}

/* ── SERVICE SUBPAGES ── */
.hero--service {
  height: 52vh;
  height: calc(var(--vhpx, 1svh) * 52);
  min-height: 320px;
}
.hero--service .hero-bg img { opacity: 0.45; }

a.service-card {
  color: inherit;
  cursor: pointer;
}
a.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(92,64,51,0.12);
}

/* ── RELATED SERVICES (cross-links on service subpages) ── */
.related-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 960px;
}
.related-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(212,169,122,0.18);
  border: 1px solid var(--sand);
  color: var(--brown-deep);
  font-family: var(--font-serif);
  font-size: 15px;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.related-pill:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(92,64,51,0.18);
}

.service-page-intro { max-width: 720px; }
.service-page-lead {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.7;
  color: var(--brown-deep);
  margin-bottom: 16px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
}
.benefit-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 28px 24px;
  border-top: 3px solid var(--terracotta);
}
.benefit-icon { font-size: 28px; margin-bottom: 12px; }
.benefit-title {
  font-family: var(--font-serif);
  font-weight: normal;
  font-size: 16px;
  color: var(--brown-deep);
  margin-bottom: 10px;
}
.benefit-text { font-size: 14px; color: var(--brown-mid); line-height: 1.7; }

/* ── LEGAL PAGE ── */
.legal-content { max-width: 760px; }
.legal-content .about-heading { margin-top: 32px; }
.legal-content .about-heading:first-child { margin-top: 0; }
.legal-content .about-text { margin-top: 10px; }
.legal-content ul { list-style: disc; padding-left: 20px; margin-top: 10px; }
.legal-content li { font-size: 15px; color: var(--brown-mid); line-height: 1.8; margin-bottom: 6px; }
.legal-content li:has(strong) { margin-bottom: 16px; }
.legal-updated { font-size: 12px; color: var(--brown-mid); opacity: 0.75; margin-top: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav { padding: 0 16px; }
  .nav-links { display: none; }
  .hero, .section, .footer, .contact-section { padding-left: 24px; padding-right: 24px; }
  .hero { padding-bottom: 48px; }
  .about-inner { grid-template-columns: 1fr; }
  .about-image { max-width: 100%; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: 1fr; max-width: 480px; }
  .team-grid { grid-template-columns: 1fr; max-width: 100%; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer { flex-direction: column; text-align: center; }
  .footer-contact { text-align: center; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
