/* ===========================================================
   Efrata Pictures — Stylesheet
   =========================================================== */

:root {
  --black: #0B0A09;
  --charcoal: #16140F;
  --cream: #F3EEE3;
  --gold: #C9A667;
  --gold-dim: #8A7350;
  --line: rgba(243,238,227,0.14);
  --muted: rgba(243,238,227,0.62);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, .display { font-family: 'Cormorant Garamond', serif; font-weight: 500; letter-spacing: 0.01em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 22px; } }

/* ---------- Nav ---------- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
header.scrolled { background: rgba(11,10,9,0.92); backdrop-filter: blur(8px); border-color: var(--line); }
nav.wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo-link { display: block; }
.logo-img { height: 52px; width: auto; display: block; }
@media (max-width: 860px) { .logo-img { height: 42px; } }
.navlinks { display: flex; gap: 38px; list-style: none; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.navlinks a { text-decoration: none; opacity: 0.75; transition: opacity 0.2s, color 0.2s; }
.navlinks a:hover { opacity: 1; color: var(--gold); }
.nav-cta {
  border: 1px solid var(--gold-dim); color: var(--cream); padding: 11px 24px;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  transition: all 0.25s; white-space: nowrap;
}
.nav-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.burger {
  display: none; background: none; border: 1px solid var(--line); color: var(--cream);
  width: 44px; height: 44px; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem;
}
@media (max-width: 860px) {
  .navlinks { display: none; }
  .burger { display: flex; }
  .nav-cta.desktop-only { display: none; }
  .logo { font-size: 1.25rem; }
}
@media (max-width: 400px) {
  nav.wrap { height: 72px; }
}

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(11,10,9,0.98); backdrop-filter: blur(10px);
  flex-direction: column; align-items: center; justify-content: center; gap: 36px;
}
.mobile-menu.show { display: flex; }
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif; font-size: 2rem; text-decoration: none; color: var(--cream);
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .mm-cta {
  margin-top: 10px; font-family: 'Inter', sans-serif; font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; background: var(--gold); color: var(--black); padding: 16px 34px;
}
.mobile-menu-close {
  position: absolute; top: 26px; right: 24px; background: none; border: 1px solid var(--line);
  color: var(--cream); width: 44px; height: 44px; font-size: 1.3rem; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  position: relative;
  padding: 140px 24px 100px;
  overflow: hidden;
  background: var(--black);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,10,9,0.55) 0%, rgba(11,10,9,0.7) 55%, rgba(11,10,9,0.92) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center;
}
@media (max-width: 480px) {
  .hero { padding: 120px 20px 80px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero { background-image: linear-gradient(180deg, rgba(11,10,9,0.55) 0%, rgba(11,10,9,0.7) 55%, rgba(11,10,9,0.92) 100%), url('images/hero.jpg'); background-size: cover; background-position: center; }
}
.hero-tag {
  font-size: 0.72rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 30px; opacity: 0; animation: fadeUp 1s ease forwards 0.2s;
}
.hero-content h1 {
  font-size: clamp(3rem, 8vw, 6.4rem); line-height: 0.98; font-weight: 500;
  opacity: 0; animation: fadeUp 1.1s ease forwards 0.4s;
}
.hero-content h1 em { font-style: italic; color: var(--gold); font-weight: 400; }
.hero-content p.lede {
  margin-top: 28px; font-size: 1.1rem; color: var(--muted); max-width: 560px; font-weight: 300;
  opacity: 0; animation: fadeUp 1.1s ease forwards 0.6s;
}
.hero-actions {
  margin-top: 44px; display: flex; gap: 18px; flex-wrap: wrap; justify-content: center;
  opacity: 0; animation: fadeUp 1.1s ease forwards 0.8s;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px);} to { opacity: 1; transform: translateY(0);} }
.btn {
  display: inline-block; padding: 17px 34px; font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none; transition: all 0.25s;
}
.btn-primary { background: var(--gold); color: var(--black); }
.btn-primary:hover { background: var(--cream); }
.btn-ghost { border: 1px solid var(--line); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.scroll-cue {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.65rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted);
  opacity: 0; animation: fadeUp 1s ease forwards 1.1s;
  z-index: 2;
}
.scroll-cue .line { width: 1px; height: 40px; background: linear-gradient(var(--gold), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-tag, .hero-content h1, .hero-content p.lede, .hero-actions, .scroll-cue { animation: none; opacity: 1; }
  .scroll-cue .line { animation: none; }
}

/* ---------- Stat strip ---------- */
.stat-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--charcoal); }
.stat-strip .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; padding: 34px 32px; }
.stat { text-align: center; flex: 1; min-width: 130px; }
.stat .num { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; color: var(--gold); }
.stat .label { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
@media (max-width: 600px) {
  .stat-strip .wrap { gap: 22px 16px; padding: 28px 20px; }
  .stat { min-width: 40%; }
}

/* ---------- Section shell ---------- */
section { padding: 130px 0; }
.section-head { max-width: 640px; margin: 0 auto 70px; text-align: center; }
.eyebrow { font-size: 0.7rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.section-head h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 1.02rem; font-weight: 300; }
@media (max-width: 600px) {
  section { padding: 80px 0; }
  .section-head { margin-bottom: 46px; }
}

/* ---------- Services (numbered) ---------- */
.service-row {
  display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: center;
  padding: 60px 0; border-top: 1px solid var(--line);
}
.service-row > * { min-width: 0; }
.service-row:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 860px) {
  .service-row { grid-template-columns: 1fr; gap: 24px; padding: 44px 0; }
  .service-num { font-size: 1rem; }
  .service-copy h3 { font-size: 1.6rem; }
}
.service-num { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.1rem; color: var(--gold-dim); }
.service-copy .tag { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.service-copy h3 { font-size: 2rem; margin-bottom: 14px; }
.service-copy p { color: var(--muted); font-size: 0.98rem; font-weight: 300; max-width: 440px; margin-bottom: 20px; }
.service-copy .price { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream); }
.service-copy .price span { color: var(--gold); }
.service-visual {
  width: 100%;
  min-width: 0;
  aspect-ratio: 3/2; /* fallback before JS measures the real photo; auto-corrected on load */
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.service-visual.in-view { opacity: 1; transform: scale(1); }
.service-visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 0.7s ease;
  display: block;
}
.service-visual:hover img { transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) {
  .service-visual { opacity: 1; transform: none; transition: none; }
  .service-visual img { transition: none; }
  .service-visual:hover img { transform: none; }
}
.service-row:nth-child(even) .service-visual { order: -1; }
@media (max-width: 860px) {
  .service-row:nth-child(even) .service-visual { order: 0; }
}

/* ---------- Gallery ---------- */
/* ---------- Wedding Packages ---------- */
.packages-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  align-items: stretch;
}
@media (max-width: 960px) { .packages-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.package-card {
  background: var(--black);
  border: 1px solid var(--line);
  padding: 40px 32px;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.package-card:hover { transform: translateY(-4px); border-color: var(--gold-dim); }
.package-card.featured { border-color: var(--gold); position: relative; }
.package-card.featured::before {
  content: "Most Popular";
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--black); font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600; padding: 6px 16px;
}
.package-tag { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.package-card h3 { font-size: 1.6rem; margin-bottom: 18px; }
.package-price { font-family: 'Cormorant Garamond', serif; font-size: 2.6rem; color: var(--gold); margin-bottom: 24px; }
.package-price span { font-family: 'Inter', sans-serif; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.package-list { list-style: none; margin-bottom: 28px; flex-grow: 1; }
.package-list li {
  font-size: 0.88rem; color: var(--muted); font-weight: 300; padding: 9px 0 9px 22px;
  border-top: 1px solid var(--line); position: relative; line-height: 1.4;
}
.package-list li:first-child { border-top: none; }
.package-list li::before {
  content: "—"; position: absolute; left: 0; top: 9px; color: var(--gold);
}
.package-btn { width: 100%; text-align: center; }
.package-note { text-align: center; margin-top: 40px; font-size: 0.85rem; color: var(--muted); font-weight: 300; }

.gallery-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
}
@media (max-width: 780px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery-grid .g {
  width: 100%;
  min-width: 0;
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.gallery-grid .g.in-view { opacity: 1; transform: scale(1); }
.gallery-grid .g:nth-child(3n) { aspect-ratio: 3/5; }
.gallery-grid .g .g-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.7s ease;
}
.gallery-grid .g:hover .g-img { transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) {
  .gallery-grid .g { opacity: 1; transform: none; transition: none; }
  .gallery-grid .g .g-img { transition: none; }
  .gallery-grid .g:hover .g-img { transform: none; }
}

/* ---------- Booking ---------- */
.booking { background: var(--charcoal); }
.booking-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
@media (max-width: 900px) { .booking-layout { grid-template-columns: 1fr; } }
form.book-form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  background: rgba(243,238,227,0.04); border: 1px solid var(--line); color: var(--cream);
  padding: 14px 16px; font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 300;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 1px solid var(--gold); outline-offset: 2px; border-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 100px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; gap: 18px; } }
.submit-btn {
  background: var(--gold); color: var(--black); border: none; padding: 17px 24px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; cursor: pointer; margin-top: 8px; transition: background 0.25s;
  min-height: 50px;
}
.submit-btn:hover { background: var(--cream); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.deposit-panel { border: 1px solid var(--line); padding: 36px; }
.deposit-panel h3 { font-size: 1.3rem; margin-bottom: 10px; }
.deposit-panel p.small { font-size: 0.86rem; color: var(--muted); margin-bottom: 24px; font-weight: 300; }
.etransfer-box { background: rgba(201,166,103,0.07); border: 1px solid rgba(201,166,103,0.3); padding: 22px; margin-bottom: 18px; }
.etransfer-box .k { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 5px; }
.etransfer-box .v { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; margin-bottom: 16px; }
.etransfer-box .v:last-child { margin-bottom: 0; }
.confirm-banner { display: none; background: rgba(201,166,103,0.1); border: 1px solid var(--gold); padding: 24px; margin-top: 22px; }
.confirm-banner.show { display: block; }
.confirm-banner h4 { color: var(--gold); font-size: 1rem; margin-bottom: 8px; font-family: 'Cormorant Garamond', serif; }
.confirm-banner p { font-size: 0.88rem; color: var(--muted); font-weight: 300; }

/* ---------- Reviews ---------- */
.reviews-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; text-align: left; }
.write-review-btn {
  background: none; border: 1px solid var(--gold-dim); color: var(--cream); padding: 13px 26px;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  transition: all 0.25s; font-family: 'Inter', sans-serif;
}
.write-review-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 60px; }
.reviews-grid > * { min-width: 0; }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .reviews-grid { grid-template-columns: 1fr; } }
.review-card { background: var(--black); padding: 34px; }
.review-card .stars { color: var(--gold); font-size: 0.9rem; letter-spacing: 3px; margin-bottom: 16px; }
.review-card p.quote { font-size: 1.02rem; color: var(--cream); margin-bottom: 20px; font-family: 'Cormorant Garamond', serif; font-weight: 400; line-height: 1.5; }
.review-card .who { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.empty-reviews { color: var(--muted); font-size: 0.95rem; padding: 40px 0; text-align: center; grid-column: 1/-1; background: var(--black); }

/* Modal */
.modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(11,10,9,0.85); z-index: 300; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.show { display: flex; }
.modal { background: var(--charcoal); border: 1px solid var(--line); max-width: 480px; width: 100%; padding: 40px; position: relative; max-height: 90vh; overflow-y: auto; }
.modal h3 { font-size: 1.6rem; margin-bottom: 24px; }
.modal .close-x { position: absolute; top: 22px; right: 22px; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--cream); opacity: 0.6; width: 40px; height: 40px; }
.modal .close-x:hover { opacity: 1; color: var(--gold); }
.star-picker { display: flex; gap: 8px; margin-bottom: 4px; }
.star-picker button { background: none; border: none; font-size: 1.7rem; cursor: pointer; color: var(--line); transition: color 0.15s; padding: 6px; min-width: 44px; min-height: 44px; }
.star-picker button.active, .star-picker button:hover { color: var(--gold); }
.modal form { display: flex; flex-direction: column; gap: 18px; margin-top: 16px; }
.modal .submit-btn { background: var(--gold); color: var(--black); }
.modal .submit-btn:hover { background: var(--cream); }
@media (max-width: 480px) {
  .modal { padding: 30px 22px; }
  .modal h3 { font-size: 1.4rem; }
}

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 70px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
footer h4 { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
footer .flogo { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; margin-bottom: 14px; }
footer .footer-logo-img { height: 60px; width: auto; margin-bottom: 16px; }
footer p { font-size: 0.92rem; color: var(--muted); font-weight: 300; line-height: 1.7; max-width: 320px; }
footer ul { list-style: none; }
footer li { margin-bottom: 12px; font-size: 0.9rem; color: var(--muted); font-weight: 300; }
footer a { text-decoration: none; }
footer a:hover { color: var(--gold); }
.footer-bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 0.74rem; color: rgba(243,238,227,0.35); text-align: center; letter-spacing: 0.04em; }

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--charcoal); color: var(--cream); padding: 15px 26px; font-size: 0.85rem;
  z-index: 400; opacity: 0; pointer-events: none; transition: all 0.3s ease; border: 1px solid var(--gold);
  font-weight: 300;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
