/* =========================================================
   JATARI PHOTOGRAPHY: main stylesheet
   Mobile-first: base styles are for phones, then
   @media (min-width: ...) blocks add tablet/desktop styles.
   ========================================================= */

/* ---------- 1. BRAND COLORS & SETTINGS ----------
   Change a color here and it updates everywhere.
   Contrast notes (WCAG AA needs 4.5:1 for normal text):
   - --pink (#E0457B) is the signature color for big/decorative use.
   - --pink-deep (#C72F66) is for buttons and small pink text on light
     backgrounds (white text on it passes at ~5.2:1).
   - --pink-light (#F06A98) is for pink text on dark backgrounds (~6.3:1). */
:root {
  --pink: #E0457B;
  --pink-deep: #C72F66;
  --pink-light: #F06A98;
  --blush: #F7D9E0;
  --blush-soft: #FBEBEF;
  --cream: #FAF6F2;
  --cocoa: #3B2A26;
  --ink: #141414;
  --white: #FFFFFF;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --shadow: 0 12px 40px rgba(59, 42, 38, 0.10);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
  --container: 1200px;
  --measure: 62ch; /* comfortable reading line length */
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--cocoa);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-deep); text-underline-offset: 3px; }
p { margin: 0 0 1.1em; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.45em;
  color: var(--ink);
  text-wrap: balance; /* evens out line lengths in headings */
}
h1 { font-size: clamp(2.8rem, 8vw, 5.75rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h3 { font-size: 1.65rem; }
h1 em, h2 em { color: var(--pink-deep); font-style: italic; font-weight: 500; }
section { padding: clamp(4.5rem, 10vw, 7.5rem) 1.5rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.container { max-width: var(--container); margin: 0 auto; }
.narrow { max-width: 780px; }

/* Visible focus outline for keyboard users (accessibility) */
:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--ink); color: var(--white);
  padding: 0.75rem 1.25rem; border-radius: 8px; z-index: 1000;
}
.skip-link:focus { top: 1rem; }

/* Small uppercase label above headings */
.eyebrow {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--pink-deep); margin: 0 0 1rem;
}
/* Version with thin lines on both sides */
.eyebrow-lines { display: inline-flex; align-items: center; gap: 1rem; }
.eyebrow-lines::before, .eyebrow-lines::after {
  content: ""; width: 36px; height: 1px; background: currentColor; opacity: 0.7;
}

/* Every section heading is centered with a short pink line under it */
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head h2::after {
  content: ""; display: block; width: 56px; height: 2px;
  background: var(--pink); margin: 1.1rem auto 0;
}
.section-sub { max-width: 52ch; margin: 1rem auto 0; opacity: 0.8; }
.center { text-align: center; margin-top: 3rem; }

/* Section color themes */
.dark { background: var(--ink); color: #EDE6E1; }
.dark h1, .dark h2, .dark h3 { color: var(--white); }
.dark h1 em { color: var(--pink-light); }
.dark h2 em { color: var(--pink-light); }
.dark .eyebrow, .dark a:not(.btn) { color: var(--pink-light); }
.blush { background: var(--blush-soft); }

/* ---------- 3. BUTTONS ----------
   Clean pill buttons, no arrows or icons.
   Minimum 48px tall so they're easy to tap on phones. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0.85rem 2rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 0.85rem var(--font-body); letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-pink { background: var(--pink-deep); color: var(--white); }
.btn-pink:hover { background: var(--ink); box-shadow: 0 10px 28px rgba(199, 47, 102, 0.3); }
.dark .btn-pink:hover { background: var(--white); color: var(--ink); }
.btn-ghost { border-color: var(--white); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-outline-light { border-color: var(--pink-light); color: var(--pink-light); }
.btn-outline-light:hover { background: var(--pink-light); color: var(--ink); }
.btn-small { min-height: 44px; padding: 0.5rem 1.4rem; font-size: 0.78rem; }
.btn-large { padding: 1.1rem 2.75rem; font-size: 0.9rem; }

/* ---------- 4. HEADER & NAV ----------
   Solid cream header so the logo always shows in its true colors. */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h);
  z-index: 100; background: rgba(250, 246, 242, 0.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(59, 42, 38, 0.08);
  transition: box-shadow 0.4s;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06); }
.nav {
  max-width: 1300px; height: 100%; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo { display: block; line-height: 0; position: relative; z-index: 120; }
.logo img {
  height: 44px; width: auto; max-width: 60vw;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.logo:hover img { transform: scale(1.04); }

.nav-toggle {
  width: 48px; height: 48px; background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 12px;
  position: relative; z-index: 120;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu: full-screen panel */
.nav-menu {
  position: fixed; inset: 0; background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  transform: translateX(100%); transition: transform 0.5s var(--ease);
  visibility: hidden;
}
.nav-open .nav-menu { transform: none; visibility: visible; }
.nav-menu a:not(.btn) {
  font-family: var(--font-display); font-size: 2.1rem; color: var(--ink); text-decoration: none;
}
.nav-menu a:not(.btn):hover { color: var(--pink-deep); }

/* ---------- 5. HERO (editorial split layout) ---------- */
.hero { padding: calc(var(--header-h) + 3rem) 1.5rem 4.5rem; overflow: hidden; }
.hero-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; gap: 3rem; align-items: center;
}
.hero-content { max-width: 560px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); margin-bottom: 0.45em; }
.hero-sub { font-size: 1.1rem; max-width: 40ch; margin-bottom: 2.25rem; opacity: 0.88; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-photo { margin: 0; }
.hero-frame { overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5; background: #222; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hero-photo:hover .hero-frame img { transform: scale(1.03); }

/* Small label with a thin line before it */
.eyebrow-line { display: inline-flex; align-items: center; gap: 0.9rem; }
.eyebrow-line::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: 0.7; }

/* Caption row under photos: title left, link right, aligned to the photo edges */
.caption-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-top: 0.9rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.caption-row a { color: inherit; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 5px; white-space: nowrap; }
.caption-row a:hover { color: var(--pink-deep); }
.dark .caption-row a { color: var(--white); }
.dark .caption-row a:hover { color: var(--pink-light); }

/* ---------- 6. INTRO STATEMENT ---------- */
.intro { text-align: center; padding-bottom: 2rem; }
.intro-text {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.4; color: var(--ink);
  text-wrap: balance; margin-bottom: 1.25rem;
}
.signature {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--pink-deep); margin: 0;
}
.signature::before { content: "\2014\00a0"; }

/* ---------- 7. PHOTO PLACEHOLDERS ----------
   Delete these once you add real <img> tags. */
.ph { position: relative; background: var(--cocoa); min-height: 100%; }
.ph-1 { background: linear-gradient(160deg, #F7D9E0, #E0457B); }
.ph-2 { background: linear-gradient(160deg, #D8C3B5, #3B2A26); }
.ph-3 { background: linear-gradient(160deg, #E0457B, #3B2A26); }
.ph-4 { background: linear-gradient(160deg, #FAF6F2, #CDB4A6); }
.ph-5 { background: linear-gradient(160deg, #7A3E52, #141414); }
.ph-6 { background: linear-gradient(160deg, #F06A98, #F7D9E0); }

/* ---------- 8. FEATURED GALLERIES ----------
   Phones: swipeable row. Desktop: 3 even columns. */
.featured { padding-left: 0; padding-right: 0; }
.strip {
  display: flex; gap: 1.25rem; overflow-x: auto; padding: 0 1.5rem 1rem;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.strip::-webkit-scrollbar { display: none; }
.strip.dragging { cursor: grabbing; scroll-snap-type: none; }
.strip-item { flex: 0 0 80vw; margin: 0; scroll-snap-align: center; }
.frame { overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5; background: #e9e1db; }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); pointer-events: none; }
.strip-item:hover .frame img { transform: scale(1.04); }

/* ---------- 9. PORTFOLIO GALLERY ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: 2.75rem; }
.filter {
  min-height: 44px; padding: 0.5rem 1.4rem; border-radius: 999px;
  background: transparent; color: #EDE6E1; border: 1.5px solid rgba(255,255,255,0.3);
  font: 700 0.78rem var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s;
}
.filter:hover { border-color: var(--pink-light); color: var(--pink-light); }
.filter.is-active { background: var(--pink-light); border-color: var(--pink-light); color: var(--ink); }

/* 1 column on phones, 2 on tablet, 3 on desktop (see media queries) */
.gallery {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
.g-item { aspect-ratio: 4 / 5; }
.g-item.is-hidden { display: none; }
.g-item.fade-in { animation: fadeUp 0.5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.g-btn {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0;
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: none;
}
.g-btn .ph, .g-btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--ease); }
.g-btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(199, 47, 102, 0.75));
  opacity: 0; transition: opacity 0.4s;
}
.g-label {
  position: absolute; left: 1.25rem; bottom: 1rem; z-index: 1; color: var(--white);
  font-family: var(--font-display); font-size: 1.6rem; font-style: italic;
  opacity: 0; transform: translateY(10px); transition: all 0.4s var(--ease);
}
.g-btn:hover .ph, .g-btn:hover img, .g-btn:focus-visible .ph { transform: scale(1.05); }
.g-btn:hover::after, .g-btn:focus-visible::after { opacity: 1; }
.g-btn:hover .g-label, .g-btn:focus-visible .g-label { opacity: 1; transform: none; }

/* ---------- 10. LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 500; background: rgba(10, 10, 10, 0.96);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.25rem; padding: 4.5rem 1rem 1.5rem;
}
.lightbox[hidden] { display: none; }
.lb-stage { width: min(92vw, 1100px); height: min(74vh, 880px); border-radius: var(--radius); overflow: hidden; }
.lb-stage > * { width: 100%; height: 100%; object-fit: contain; }
.lb-controls { display: flex; align-items: center; gap: 1.5rem; }
.lb-close, .lb-prev, .lb-next {
  min-height: 44px; padding: 0.5rem 1.4rem; border-radius: 999px;
  background: rgba(255,255,255,0.1); color: var(--white); border: 0;
  font: 700 0.78rem var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; transition: background 0.3s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--pink-deep); }
.lb-close { position: absolute; top: 1rem; right: 1rem; }
.lb-count { color: #ccc; font-size: 0.85rem; margin: 0; min-width: 5ch; text-align: center; }

/* ---------- 11. ABOUT ---------- */
.about-grid { max-width: 1100px; margin: 0 auto; display: grid; gap: 3rem; align-items: center; }
.about-photo { aspect-ratio: 4 / 5; border-radius: 220px 220px var(--radius) var(--radius); box-shadow: var(--shadow); }
.about-text p:not(.eyebrow) { max-width: var(--measure); }
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin: 2rem 0 2.25rem; padding: 1.5rem 0;
  border-top: 1px solid rgba(59,42,38,0.15); border-bottom: 1px solid rgba(59,42,38,0.15);
}
.facts div { text-align: left; }
.facts dt { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--pink-deep); line-height: 1.1; }
.facts dd { margin: 0.3rem 0 0; font-size: 0.82rem; line-height: 1.4; opacity: 0.8; }

/* ---------- 12. HOW IT WORKS ---------- */
.steps {
  max-width: var(--container); margin: 0 auto;
  display: grid; gap: 2.5rem; counter-reset: none;
}
.step { text-align: center; max-width: 360px; margin: 0 auto; }
.step-num {
  display: block; font-family: var(--font-display); font-style: italic;
  font-size: 3.5rem; line-height: 1; color: var(--pink); margin-bottom: 0.75rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { margin: 0; }

/* ---------- 13. SERVICES ---------- */
.cards { max-width: 1150px; margin: 0 auto; display: grid; gap: 1.75rem; }
.card {
  position: relative; background: var(--white); border-radius: var(--radius);
  padding: 2.5rem 2rem; box-shadow: var(--shadow); text-align: center;
  display: flex; flex-direction: column;
  border: 1px solid rgba(59,42,38,0.06);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(199, 47, 102, 0.15); }
.card-featured { border: 2px solid var(--pink); }
.card-desc { font-size: 0.95rem; opacity: 0.85; margin: 0 auto 1.25rem; max-width: 30ch; }
.card-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--pink-deep); margin-bottom: 0.75rem;
}
.price { font-family: var(--font-display); font-size: 2rem; color: var(--ink); margin: 0 0 1.5rem; line-height: 1.2; }
.price span {
  display: block; font-family: var(--font-body); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--cocoa); opacity: 0.7;
}
.card ul { margin-bottom: 2rem; flex: 1; }
.card li { padding: 0.7rem 0; border-top: 1px solid rgba(59,42,38,0.1); }
.card li:last-child { border-bottom: 1px solid rgba(59,42,38,0.1); }
.card .btn { align-self: center; }

/* ---------- 14. TESTIMONIALS ---------- */
.slider { max-width: 820px; margin: 0 auto; text-align: center; }
.slides { display: grid; }
.slide {
  grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden;
  transform: translateY(12px); transition: opacity 0.6s, transform 0.6s var(--ease), visibility 0.6s;
}
.slide.is-active { opacity: 1; visibility: visible; transform: none; }
.slide p { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.3rem); font-style: italic; color: var(--ink); line-height: 1.35; text-wrap: balance; }
.slide cite {
  font-style: normal; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--pink-deep);
}
.slider-dots { display: flex; justify-content: center; gap: 0.25rem; margin-top: 2rem; }
.slider-dots button {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0;
  display: grid; place-items: center;
}
.slider-dots button::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--cocoa); opacity: 0.3; transition: all 0.3s;
}
.slider-dots button[aria-current="true"]::before { background: var(--pink); opacity: 1; width: 28px; border-radius: 6px; }

/* ---------- 15. FAQ ---------- */
.faq-list { max-width: 1000px; margin: 0 auto; display: grid; gap: 0.85rem; align-items: start; }
.faq details { background: var(--white); border-radius: var(--radius); border: 1px solid rgba(59,42,38,0.08); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.3rem 3.5rem 1.3rem 1.5rem;
  font-weight: 700; color: var(--ink); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
/* Plus sign that turns into an X when open (not an arrow) */
.faq summary::after {
  content: "+"; position: absolute; right: 1.5rem; top: 50%; translate: 0 -50%;
  font-size: 1.6rem; font-weight: 400; color: var(--pink-deep); transition: transform 0.3s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 1.5rem 1.5rem; }

/* ---------- 16. CONTACT ---------- */
.contact { text-align: center; }
.contact-inner { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.contact-inner > p:not(.eyebrow) { max-width: 46ch; margin-bottom: 2rem; }
.contact-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2rem; margin-top: 2rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.contact-row a { color: var(--white) !important; text-decoration: none; padding: 0.4rem 0; display: inline-block; }
.contact-row a:hover { color: var(--pink-light) !important; }

/* ---------- 17. FOOTER ----------
   Light background so the logo displays in its real colors. */
.site-footer { background: var(--blush); color: var(--cocoa); padding: 4.5rem 1.5rem 7rem; }
.footer-inner { max-width: var(--container); margin: 0 auto; text-align: center; }
.footer-logo { display: inline-block; line-height: 0; transition: transform 0.4s var(--ease); }
.footer-logo img { width: min(80vw, 440px); height: auto; }
.footer-logo:hover { transform: scale(1.03); }
.footer-cta {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--pink-deep); margin: 1.25rem 0 3rem;
}
.footer-rows {
  display: grid; gap: 2rem; padding: 2.5rem 0;
  border-top: 1px solid rgba(59,42,38,0.15); border-bottom: 1px solid rgba(59,42,38,0.15);
}
.footer-heading {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); margin: 0 0 0.75rem;
}
.footer-rows li { margin: 0.15rem 0; }
.site-footer a:not(.footer-logo) { color: var(--cocoa); text-decoration: none; display: inline-block; padding: 0.35rem 0; }
.site-footer a:not(.footer-logo):hover { color: var(--pink-deep); text-decoration: underline; }
.footer-bottom { padding-top: 2rem; }
.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.5rem; margin-bottom: 1rem; font-size: 0.88rem; }
.copyright { font-size: 0.82rem; opacity: 0.75; margin: 0 auto; max-width: 60ch; }

/* ---------- 18. STICKY BOOK BUTTON (phones) ---------- */
.sticky-book {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
  box-shadow: 0 10px 30px rgba(199, 47, 102, 0.4);
  transform: translateY(150%); transition: transform 0.5s var(--ease);
}
.sticky-book.show { transform: none; }

/* ---------- 19. CUSTOM CURSOR (desktop mouse only) ---------- */
.cursor {
  position: fixed; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--pink); pointer-events: none; z-index: 999;
  translate: -50% -50%; mix-blend-mode: multiply;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s;
}
.cursor.big { width: 64px; height: 64px; opacity: 0.35; }

/* ---------- 20. SCROLL REVEAL ANIMATION ---------- */
/* Only hides content if JavaScript is running, so the site never looks empty */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   TABLET (768px and up)
   ========================================================= */
@media (min-width: 768px) {
  .strip-item { flex-basis: 44vw; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr 1.1fr; gap: 4.5rem; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .faq-list { grid-template-columns: 1fr 1fr; }
  .footer-rows { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   LAPTOP / DESKTOP (1024px and up)
   ========================================================= */
@media (min-width: 1024px) {
  .logo img { height: 50px; }
  /* Desktop menu sits in the header instead of a full-screen panel */
  .nav-toggle { display: none; }
  .nav-menu {
    position: static; flex-direction: row; gap: 2.25rem; background: none;
    transform: none; visibility: visible;
  }
  .nav-menu a:not(.btn) {
    font-family: var(--font-body); font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); position: relative;
  }
  /* Pink underline grows on hover */
  .nav-menu a:not(.btn)::after {
    content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
    background: var(--pink); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
  }
  .nav-menu a:not(.btn):hover::after { transform: scaleX(1); }

  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 5rem; }
  .hero { min-height: 100svh; display: flex; align-items: center; }
  .hero-grid { width: 100%; }
  /* Featured galleries become an even 3-column row */
  .strip {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem;
    max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; overflow: visible;
  }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; }
  .g-item.tall { grid-row: span 2; aspect-ratio: auto; }
  .cards { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .sticky-book { display: none; }
  .site-footer { padding-bottom: 3.5rem; }
}

/* Large desktop / ultrawide */
@media (min-width: 1440px) {
  body { font-size: 1.125rem; }
}

/* Hide the custom cursor on touch screens */
@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* =========================================================
   REDUCED MOTION: respects visitors who turn off animations
   in their device settings (accessibility requirement)
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .cursor { display: none; }
}

/* Original branding and integration refinements. */
.logo-circle{width:64px;height:64px;display:block;background:#fff;border:3px solid #fff;border-radius:50%;overflow:hidden}.logo-circle span{display:block;width:100%;height:100%;background:var(--pink-deep);mask:url('../images/jatari-wordmark.png') center/112% auto no-repeat;-webkit-mask:url('../images/jatari-wordmark.png') center/112% auto no-repeat}.footer-logo .logo-circle{width:180px;height:180px}.hero-contact{margin-top:1.5rem;display:flex;flex-direction:column;align-items:flex-start;gap:.2rem}.hero-contact a{display:inline-flex;align-items:center;min-height:44px;font-size:.8rem;color:var(--cream)!important;overflow-wrap:anywhere}.hero-contact a:first-child{font-size:1.25rem}.hero-actions{margin-top:1.7rem}.nav{max-width:calc(var(--container) + 3rem)}.caption-row a{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap}.caption-row{align-items:center;gap:.7rem}.caption-row span{min-width:0}.hero-photo .hero-frame{display:block}.frame-link{display:block}.page a{overflow-wrap:anywhere}.page h2{scroll-margin-top:100px}.contact-row a{overflow-wrap:anywhere}.site-footer a:not(.footer-logo){min-height:44px}.gallery{grid-auto-flow:row}.g-item.tall{grid-row:auto;aspect-ratio:3/4}.g-item{aspect-ratio:3/4}.js .reveal{opacity:1;transform:none}.page .updated{font-size:.85rem}.page{overflow-wrap:anywhere}@media(min-width:1024px){.gallery{grid-template-columns:repeat(4,1fr)}.hero-grid{gap:3.5rem}.hero h1{font-size:clamp(3.4rem,5.5vw,5rem)}}@media(max-width:767px){.hero h1{font-size:clamp(2.6rem,10.5vw,4rem)}.hero-actions .btn{padding:.85rem 1.2rem;font-size:.73rem}.contact-row{flex-direction:column}.caption-row{font-size:.65rem}}@media(prefers-reduced-motion:reduce){.hero-photo:hover .hero-frame img{transform:none}}
/* A filtered header creates a containing block for fixed descendants. Keep the mobile panel tied to the viewport. */
.site-header{background:var(--cream);backdrop-filter:none;-webkit-backdrop-filter:none}
@media(max-width:1023px){.nav-menu{height:100dvh;bottom:auto}.nav-menu a{min-height:44px;display:inline-flex;align-items:center}.nav-open main,.nav-open .site-footer{visibility:hidden}}
.nav-menu{transition:none}

/* Contact details share a baseline with matching line icons. */
.contact-icon{width:19px;height:19px;flex:0 0 19px;vertical-align:middle}a[href^="tel:"],a[href^="mailto:"]{display:inline-flex!important;align-items:center;gap:9px;text-decoration:none!important;min-height:44px}a[href^="tel:"]:hover span,a[href^="mailto:"]:hover span{text-decoration:underline;text-underline-offset:4px}.hero-contact{flex-direction:row;align-items:center;flex-wrap:wrap;gap:4px 22px}.hero-contact a,.hero-contact a:first-child{font-size:clamp(.72rem,.95vw,.85rem);line-height:1.5}.hero-contact .contact-icon{color:var(--pink-light)}.contact-row{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;flex-direction:row;gap:8px 24px}.contact-row a{font-size:.78rem;letter-spacing:.035em}.footer-rows a[href^="mailto:"] span{overflow-wrap:anywhere}.gallery-kind{display:block;font-size:.64rem;letter-spacing:.06em;line-height:1.5;margin-top:3px;font-weight:400}.caption-row{align-items:flex-start}.caption-row a{flex-shrink:0}.page a[href^="mailto:"] span{overflow-wrap:anywhere;min-width:0}@media(max-width:480px){.hero{padding-inline:18px}.hero-contact{flex-wrap:nowrap;gap:12px}.hero-contact a,.hero-contact a:first-child{font-size:10px;letter-spacing:-.015em;gap:5px;white-space:nowrap}.hero-contact .contact-icon{width:14px;height:14px;flex-basis:14px}.contact-row{gap:8px 16px}.contact-row a{font-size:.7rem;letter-spacing:0}}@media(max-width:350px){.hero-contact{flex-wrap:wrap}.hero-contact a,.hero-contact a:first-child{font-size:11px}}

/* Refined portfolio and compact contact footer. */
.footer-wordmark{display:block;width:280px;height:125px;background:var(--pink-deep);mask:url('../images/jatari-wordmark.png') center/contain no-repeat;-webkit-mask:url('../images/jatari-wordmark.png') center/contain no-repeat}
.site-footer{background:var(--cream);padding-top:3rem;scroll-margin-top:90px}.footer-logo{margin-bottom:1.5rem}.footer-rows{text-align:left;align-items:start;gap:2rem}.footer-rows>div:last-child ul{display:flex;flex-wrap:wrap;gap:.25rem 1.5rem}.footer-rows>div:last-child li{margin:0}.footer-rows a{font-size:.85rem}.footer-heading{letter-spacing:.12em}.g-label{letter-spacing:.12em}.gallery{gap:20px}.g-item{border-radius:2px}.g-item img{object-position:center}.g-item:nth-child(5) img{object-position:center}.footer-bottom{padding-top:1.5rem}
@media(min-width:768px){.footer-rows{grid-template-columns:1fr 1fr 2fr}.gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.footer-rows{grid-template-columns:1fr 1fr}.footer-rows>div:last-child{grid-column:1/-1}.footer-wordmark{width:230px;height:105px}.gallery{gap:12px}}

.footer-wordmark{mask-size:220% auto;-webkit-mask-size:220% auto}.g-item.landscape{aspect-ratio:3/2}
@media(min-width:768px){.gallery{grid-template-columns:repeat(6,minmax(0,1fr))}.g-item{grid-column:span 2}.g-item.landscape{grid-column:span 3}}

/* Shared lower-page alignment and uncropped original wordmark. */
.cards,.footer-inner{max-width:var(--container);width:100%;margin-inline:auto}.card{border-width:1px;padding:2.5rem 1.75rem}.card h3{min-height:2.6em;display:flex;align-items:center;justify-content:center}.card-desc{flex:1}.card .btn{margin-top:auto}.footer-wordmark{width:280px;height:140px;mask-size:100% auto;-webkit-mask-size:100% auto}.footer-logo{margin:0 auto 2rem}.site-footer{padding-top:1.5rem}.footer-rows{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.75rem;text-align:left}.footer-rows>div:last-child{grid-column:auto}.footer-rows>div:last-child ul{display:flex;flex-direction:row;flex-wrap:wrap;gap:0 14px}.footer-rows a{font-size:.78rem}.footer-rows li{margin:0}.footer-rows .contact-icon{width:16px;height:16px;flex-basis:16px}.hero-frame img{object-position:center}
@media(max-width:900px){.footer-rows{grid-template-columns:1fr 1fr}.footer-rows>div:last-child{grid-column:1/-1}.cards{grid-template-columns:1fr}.card h3{min-height:0}.card-desc{flex:initial}.card .btn{margin-top:auto}}
@media(max-width:480px){.footer-wordmark{width:240px;height:120px}.footer-rows{gap:1.5rem}.footer-rows>div:last-child ul{gap:0 16px}.footer-rows a{font-size:.75rem}}

/* Clear wordmark and quieter contact typography. */
.site-header .logo-circle{width:112px;height:64px;border:0;border-radius:0;background:transparent;overflow:visible}.site-header .logo-circle span{mask-size:100% auto;-webkit-mask-size:100% auto}.hero .service-area{letter-spacing:.08em;font-size:.75rem}.hero h1>span{color:#fff}.hero h1 em{color:var(--pink);font-style:normal}.hero-contact{display:flex;flex-direction:column;align-items:flex-start;flex-wrap:nowrap;gap:0}.hero-contact a,.hero-contact a:first-child,.footer-rows a[href^="mailto:"],.footer-rows a[href^="tel:"]{font-family:var(--font-body);font-size:14px;font-weight:400;letter-spacing:0;text-transform:none;line-height:1.5;gap:10px;white-space:normal}.hero-contact .contact-icon,.footer-rows .contact-icon{width:17px;height:17px;flex-basis:17px;stroke-width:1.5}.footer-rows>div:last-child ul{flex-direction:column;align-items:flex-start;gap:0}.hero h1{max-width:11ch}
@media(max-width:480px){.site-header .logo-circle{width:102px;height:58px}.hero-contact a,.hero-contact a:first-child{font-size:13px;gap:9px}.hero .service-area{font-size:.65rem;letter-spacing:.06em}}
