/* Sami Jaz Photography — built from the Figma design */
@font-face { font-family: "Bubblegum Sans"; font-weight: 400; font-display: swap; src: url(../assets/fonts/bubblegum-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(../assets/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans"; font-weight: 400; font-display: swap; src: url(../assets/fonts/noto-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans"; font-weight: 700; font-display: swap; src: url(../assets/fonts/noto-sans-latin-700-normal.woff2) format("woff2"); }
:root {
  --cream: #fff6ec;
  --tan: #e2c9ad;
  --brown: #72593d;
  --link: #2c63ca;
  --muted: #828282;
  --ink: #000;
  --gutter: 80px;
  --font-display: "Bubblegum Sans", "Comic Sans MS", cursive;
  --font-ui: "Inter", system-ui, sans-serif;
  --font-body: "Noto Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.5 var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.5; margin: 0; }
p { margin: 0; }
a { color: inherit; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(var(--gutter) - 28px) 0 52px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 20;
}
.brand {
  display: flex; align-items: center; gap: 6px;
  text-decoration: none;
  font: 14px/1.5 var(--font-display);
  color: var(--brown);
}
.brand img { width: 67px; height: 67px; object-fit: cover; }
.nav { display: flex; align-items: center; gap: 48px; }
.nav a {
  font: 500 20px/1.5 var(--font-ui);
  text-decoration: none;
  color: var(--ink);
  position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: currentColor; transform: scaleX(0); transition: transform .2s;
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 8px 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  background: transparent;
  font: 500 20px/1.5 var(--font-ui);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn:hover, .btn[aria-current="page"] { background: var(--ink); color: var(--cream); }
.menu-toggle {
  display: none;
  background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink);
}
.menu-toggle svg { width: 28px; height: 28px; }

/* ---------- Page title band ---------- */
.page-title {
  position: relative;
  height: 145px;
}
.page-title::before {
  /* the soft brown shadow under the band */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 128px;
  background: linear-gradient(to bottom,
    rgb(114 89 61) 38%, rgba(114 89 61 / .05) 88.3%,
    rgba(114 89 61 / .02) 93.1%, rgba(114 89 61 / 0) 97.9%);
}
.page-title h1 {
  position: relative; z-index: 2;
  height: 78px;
  display: flex; align-items: center; justify-content: center;
  background: var(--tan);
  font-size: 36px;
  text-align: center;
  padding: 0 16px;
}

/* ---------- Footer ---------- */
.site-footer {
  min-height: 140px;
  padding: 48px var(--gutter);
  background: linear-gradient(to bottom, rgba(226 201 173 / 0) 2%, var(--tan) 97.6%);
  margin-top: 40px;
}
.site-footer ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 40px;
}
.site-footer li a, .site-footer li span {
  display: flex; align-items: center; gap: 11px;
  color: var(--link); text-decoration: none;
}
.site-footer li a:hover { text-decoration: underline; }
.site-footer svg { width: 32px; height: 32px; stroke-width: 2; flex: none; margin-left: 4px; }

/* ---------- Home ---------- */
.home-cards {
  display: flex; justify-content: center; gap: 48px;
  padding: 0 var(--gutter);
}
.home-card {
  width: 400px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 12px;
}
.home-card h2 { font-size: 24px; text-align: center; }
.home-card .frame {
  aspect-ratio: 4 / 5; overflow: hidden; background: #fff;
  box-shadow: 0 4px 14px rgba(0 0 0 / .22);
}
.home-card .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.home-card:hover .frame img { transform: scale(1.03); }

/* ---------- Portfolio gallery ---------- */
.gallery {
  display: flex; gap: 31px; justify-content: center;
  padding: 0 var(--gutter);
  max-width: 1440px; margin: 0 auto;
}
.gallery .col { flex: 1 1 0; max-width: 407px; display: flex; flex-direction: column; gap: 31px; }
.tile {
  display: block; padding: 0; border: 0; cursor: zoom-in;
  background: #fff; overflow: hidden; width: 100%;
}
.tile.tall { aspect-ratio: 405 / 500; }
.tile.wide { aspect-ratio: 405 / 320; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile img.contain { object-fit: contain; padding: 6%; }
.tile:hover img { transform: scale(1.03); }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20 14 8 / .92);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; background: #fff; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer; padding: 12px;
}
.lightbox button svg { width: 36px; height: 36px; }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- Contact form block (portfolio + contact) ---------- */
.enquiry {
  display: flex; justify-content: space-between; gap: 32px;
  padding: 48px var(--gutter);
  max-width: 1440px; margin: 0 auto;
}
.enquiry-text { max-width: 563px; }
.enquiry-text h2 { font-size: 24px; margin-bottom: 29px; }
.enquiry form { flex: 0 1 687px; display: flex; flex-direction: column; gap: 12px; }
.enquiry input, .enquiry textarea {
  width: 100%; border: 0; background: #fff;
  font: 16px/1.5 var(--font-body); color: var(--ink);
  padding: 20px 22px;
}
.enquiry input { height: 65px; }
.enquiry textarea { height: 246px; resize: vertical; }
.enquiry ::placeholder { color: var(--muted); opacity: 1; }
.enquiry .btn { align-self: flex-end; font-size: 18px; padding: 6px 28px; }
.enquiry .hp { display: none; }

.contact-panel {
  margin: 0 0 48px var(--gutter);
  background: var(--tan);
  border-radius: 24px 0 0 24px;
  padding: 48px;
}
.contact-panel .enquiry {
  padding: 0 0 0 124px; max-width: none; justify-content: space-between;
}
.contact-panel form { flex-basis: 608px; }

/* ---------- Packages ---------- */
.pkg-tabs {
  display: flex; justify-content: center; gap: 24px;
  padding: 0 var(--gutter);
  margin-top: -88px; /* tuck under the title band */
  position: relative; z-index: 1;
}
.pkg-tab {
  flex: 0 1 302px;
  min-height: 130px;
  background: var(--tan);
  border-radius: 0 0 12px 12px;
  padding: 24px 12px 4px;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  text-decoration: none; color: var(--ink); text-align: center;
  transition: min-height .2s;
}
.pkg-tab .more { font-size: 16px; color: transparent; transition: color .2s; }
.pkg-tab strong { font: 24px/1.5 var(--font-display); }
.pkg-tab:hover { min-height: 140px; }
.pkg-tab:hover .more { color: var(--brown); }

.packages { display: flex; flex-direction: column; gap: 24px; padding: 48px 0; }
.pkg {
  background: var(--tan);
  padding: 24px var(--gutter);
  display: flex; align-items: center; gap: 48px;
  scroll-margin-top: 24px;
}
.pkg.left { margin-right: var(--gutter); border-radius: 0 24px 24px 0; padding-right: 40px; }
.pkg.right { margin-left: var(--gutter); border-radius: 24px 0 0 24px; flex-direction: row-reverse; }
.pkg-photos { display: flex; gap: 16px; flex: none; }
.pkg-photos .ph { width: 200px; height: 250px; background: #fff; overflow: hidden; }
.pkg-photos .ph.dark { background: #000; }
.pkg-photos img { width: 100%; height: 100%; object-fit: cover; }
.pkg-photos img.contain { object-fit: contain; padding: 6px; }
.pkg-info h2 { font-size: 24px; margin-bottom: 8px; }
.pkg-info ul { margin: 0; padding-left: 24px; }
.pkg.left .pkg-info { margin-left: 0; }

.addons, .faq { padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; }
.addons h2, .faq h2 { font-size: 24px; margin-bottom: 24px; }
.addons table { border-collapse: collapse; width: 100%; max-width: 902px; }
.addons td { padding: 0 14px; border-bottom: 1px solid rgba(0 0 0 / .25); }
.addons td:last-child { text-align: right; }
.faq { padding-top: 48px; padding-bottom: 48px; }
.faq-list { max-width: 910px; margin-left: 12px; display: flex; flex-direction: column; gap: 30px; }
.faq details summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.faq details summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; }
.faq summary .i-minus, .faq details[open] summary .i-plus { display: none; }
.faq details[open] summary .i-minus { display: block; }
.faq details p { margin-top: 4px; }
.todo { background: #fff3a8; padding: 0 4px; }

/* ---------- Inside Look ---------- */
.ba-row {
  display: flex; justify-content: center; gap: 34px;
  padding: 0 var(--gutter) 48px;
}
.ba { width: 284px; flex: 0 1 284px; margin: 0; }
.ba-frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #000;
  user-select: none; touch-action: pan-y; cursor: ew-resize;
  --pos: 50%;
}
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-frame .ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-line {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.4); pointer-events: none;
}
.ba-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center; color: var(--brown);
}
.ba-handle svg { width: 16px; height: 16px; stroke-width: 3; }
.ba-label {
  position: absolute; top: 10px; padding: 2px 10px; border-radius: 999px;
  background: rgba(0 0 0 / .55); color: #fff;
  font: 500 13px/1.5 var(--font-ui); pointer-events: none;
}
.ba-label.before { left: 10px; }
.ba-label.after { right: 10px; }
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
}
.ba-frame:has(.ba-range:focus-visible) { outline: 3px solid var(--brown); outline-offset: 3px; }
.ba .ba-cap { text-align: center; margin: 0 0 4px; font: 24px/1.5 var(--font-display); color: var(--ink); white-space: nowrap; }
@media (max-width: 1100px) { .ba .ba-cap { font-size: 20px; white-space: normal; } }
.ba-hint { text-align: center; color: var(--brown); font-size: 14px; margin: -36px 0 36px; }

.story {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 0 var(--gutter);
  max-width: 1440px; margin: 0 auto;
}
.story-text { flex: 0 1 485px; }
.story-text p { max-width: 432px; }
.story-text p + p { margin-top: 24px; }
.story .ph { background: #000; height: 526px; overflow: hidden; }
.story .ph img { width: 100%; height: 100%; object-fit: cover; }
.story .ph.a { flex: 0 1 331px; }
.story .ph.b { flex: 0 1 416px; }

.thanks { text-align: center; padding: 48px var(--gutter); }
.thanks p + p { margin-top: 16px; }

/* ---------- Placeholder (until real photos are added) ---------- */
.placeholder {
  background: repeating-linear-gradient(45deg, #efe2d2 0 12px, #f6ebde 12px 24px) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  :root { --gutter: 40px; }
  .home-cards { gap: 24px; }
  .home-card { width: auto; flex: 1 1 0; max-width: 400px; }
  .pkg { gap: 32px; }
  .pkg-photos .ph { width: 160px; height: 200px; }
  .contact-panel .enquiry { padding-left: 0; }
  .story { flex-wrap: wrap; }
  .story-text { flex-basis: 100%; }
  .story-text p { max-width: 70ch; }
  .story .ph { height: auto; aspect-ratio: 331 / 526; }
  .story .ph.b { aspect-ratio: 416 / 526; }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .site-header { padding: 0 12px 0 16px; }
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 80px; left: 0; right: 0;
    flex-direction: column; gap: 20px; padding: 24px;
    background: var(--cream); box-shadow: 0 8px 16px rgba(0,0,0,.08);
  }
  .nav.open { display: flex; }
  .page-title h1 { font-size: 30px; }
  .home-cards { flex-direction: column; align-items: center; gap: 40px; }
  .home-card { width: 100%; }
  .gallery { flex-direction: column; gap: 16px; }
  .gallery .col { max-width: none; gap: 16px; }
  .enquiry { flex-direction: column; }
  .enquiry form { flex-basis: auto; }
  .contact-panel { margin-left: 12px; padding: 24px; }
  .pkg-tabs { flex-wrap: wrap; margin-top: -88px; gap: 8px; }
  .pkg-tab { flex: 1 1 40%; min-height: 110px; }
  .pkg-tab strong { font-size: 20px; }
  .pkg, .pkg.right { flex-direction: column; align-items: flex-start; padding: 24px; gap: 20px; }
  .pkg.left { margin-right: 12px; }
  .pkg.right { margin-left: 12px; }
  .pkg-photos { width: 100%; gap: 8px; }
  .pkg-photos .ph { flex: 1 1 0; width: auto; height: auto; aspect-ratio: 4 / 5; }
  .ba-row { flex-direction: column; align-items: center; gap: 24px; }
  .ba { width: 100%; max-width: 360px; flex-basis: auto; }
  .ba-hint { margin-top: -24px; }
  .story .ph.a, .story .ph.b { flex: 1 1 100%; }
  .site-footer ul { flex-direction: column; align-items: flex-start; width: fit-content; margin: 0 auto; }
}
