/* ============================================
   ACE PHOTOGRAPHY v2 — SHARED CSS
   Ultra-minimal redesign · Hartwell Digital
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Jost:wght@200;300;400&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--body); background: var(--ivory); color: var(--ink); overflow-x: hidden; }
img { max-width: 100%; display: block; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── BRAND PALETTE — ACE Photography ──
   Pulled directly from acephotography.com.au
   Ivory background, near-black ink, warm sand accent
   ─────────────────────────────────────────────── */
:root {
  --ivory:        #f5f2ee;   /* site background — warm white */
  --ivory-mid:    #ede9e3;   /* subtle divider / card bg */
  --sand:         #c9b49a;   /* primary accent — warm sand/tan */
  --sand-light:   #ddd0bf;   /* lighter accent */
  --sand-pale:    #f0e9df;   /* very pale tint */
  --ink:          #1a1612;   /* near-black for text */
  --ink-mid:      #3d3730;   /* body text, labels */
  --ink-light:    #7a7069;   /* muted / captions */
  --white:        #ffffff;

  /* Typography */
  --display: 'Cormorant Garamond', Georgia, serif;
  --body:    'Jost', system-ui, sans-serif;

  /* Layout */
  --max:      1120px;
  --pad:      112px;
  --pad-mob:  56px;
  --nav-h:    72px;

  /* Motion */
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --fast:       0.3s var(--ease);
  --mid:        0.55s var(--ease);
  --slow:       0.85s var(--ease);

  /* Misc */
  --shadow: 0 12px 48px rgba(26,22,18,0.08);
}

/* ── PAGE WIPE TRANSITION ── */
.wipe {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--ink);
  transform-origin: top;
  transform: scaleY(0);
  pointer-events: none;
}
.page-out .wipe { animation: wipeDown 0.45s var(--ease) forwards; }
.page-in  .wipe { animation: wipeUp   0.45s var(--ease) forwards; }
@keyframes wipeDown { to { transform: scaleY(1); transform-origin: top; } }
@keyframes wipeUp   { from { transform: scaleY(1); transform-origin: bottom; } to { transform: scaleY(0); transform-origin: bottom; } }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 48px;
  transition: background var(--mid), backdrop-filter var(--mid);
}
.nav.solid {
  background: rgba(245,242,238,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ivory-mid);
}
/* Logo — SVG wordmark recreation */
.nav-logo {
  display: flex; align-items: center; gap: 0;
  flex-shrink: 0;
  margin-right: auto;
}
.nav-logo svg { height: 32px; width: auto; }
/* On transparent hero: white logo */
.nav:not(.solid) .logo-ink { fill: var(--white); }
.nav:not(.solid) .logo-sand { fill: rgba(255,255,255,0.55); }
/* On solid nav: brand colours */
.nav.solid .logo-ink  { fill: var(--ink); }
.nav.solid .logo-sand { fill: var(--sand); }

.nav-links {
  display: flex; align-items: center; gap: 40px;
}
.nav-links a {
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color var(--fast);
  position: relative;
}
.nav.solid .nav-links a { color: var(--ink-mid); }
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; width: 0; height: 1px;
  background: var(--sand);
  transition: width var(--fast);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--white); }
.nav.solid .nav-links a:hover { color: var(--ink); }

/* Nav dropdown */
.nav-has-drop { position: relative; }
.nav-drop {
  position: absolute; top: calc(100% + 16px); left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  padding-top: 8px;
  opacity: 0; visibility: hidden;
  transition: opacity var(--fast), visibility var(--fast);
  pointer-events: none;
}
.nav-has-drop:hover .nav-drop { opacity: 1; visibility: visible; pointer-events: auto; }
.nav-drop-inner {
  background: var(--ink);
  border-top: 1px solid var(--sand);
  padding: 10px 0;
}
.nav-drop a {
  display: block; padding: 9px 20px;
  font-size: 0.66rem; letter-spacing: 0.16em;
  color: rgba(255,255,255,0.6) !important;
  transition: color var(--fast), background var(--fast);
}
.nav-drop a::after { display: none !important; }
.nav-drop a:hover { color: var(--sand) !important; background: rgba(201,180,154,0.07); }

/* Book CTA */
.nav-book {
  font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sand) !important;
  border: 1px solid var(--sand);
  padding: 9px 22px;
  transition: var(--fast);
  margin-left: 8px;
}
.nav-book::after { display: none !important; }
.nav-book:hover { background: var(--sand); color: var(--white) !important; }
.nav.solid .nav-book { color: var(--sand) !important; }

/* Hamburger */
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 8px;
  margin-left: auto;
}
.nav-burger span {
  display: block; width: 24px; height: 1px;
  background: var(--white); transition: var(--mid);
}
.nav.solid .nav-burger span { background: var(--ink); }
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile panel */
.mob-panel {
  position: fixed; inset: 0; z-index: 8999;
  background: var(--ink);
  transform: translateX(100%);
  transition: transform 0.55s var(--ease);
  display: flex; flex-direction: column;
  justify-content: center; padding: 80px 40px 48px;
  overflow-y: auto;
}
.mob-panel.open { transform: translateX(0); }
.mob-panel ul { margin-bottom: auto; }
.mob-panel li { border-bottom: 1px solid rgba(255,255,255,0.06); }
.mob-panel li > a {
  display: block; padding: 18px 0;
  font-family: var(--display);
  font-size: 2rem; font-weight: 300;
  color: rgba(255,255,255,0.8);
  transition: var(--fast);
}
.mob-panel li > a:hover { color: var(--sand); }
.mob-sub { display: none; padding: 4px 0 14px 20px; }
.mob-sub.open { display: block; }
.mob-sub a {
  display: block; padding: 7px 0;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.mob-sub a:hover { color: var(--sand); }
.mob-acc { cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.mob-acc::after { content: '+'; font-size: 1.2rem; color: var(--sand); transition: transform 0.3s; }
.mob-acc.open::after { transform: rotate(45deg); }
.mob-panel-footer {
  padding-top: 40px;
  display: flex; flex-direction: column; gap: 12px;
}
.mob-panel-footer a {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); transition: color var(--fast);
}
.mob-panel-footer a:hover { color: var(--sand); }

/* ── REVEAL ANIMATIONS ── */
.r {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--slow), transform var(--slow);
}
.r.up    { transform: translateY(24px); }
.r.left  { transform: translateX(-24px); }
.r.right { transform: translateX(24px); }
.r.show  { opacity: 1; transform: translate(0); }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }

/* ── SHARED LAYOUT ── */
.wrap { max-width: var(--max); margin: 0 auto; }
.section { padding: var(--pad) 48px; }
.s-label {
  display: block;
  font-family: var(--body);
  font-size: 0.6rem; font-weight: 300;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--sand); margin-bottom: 18px;
}
.s-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 300; line-height: 1.1;
  color: var(--ink);
}
.s-title em { font-style: italic; color: var(--sand); }
.s-title-light { color: var(--white); }
.s-title-light em { color: var(--sand-light); }
.s-body {
  font-family: var(--body);
  font-size: 0.9rem; font-weight: 300; line-height: 1.9;
  color: var(--ink-light);
  max-width: 540px;
}
.s-rule {
  width: 48px; height: 1px; background: var(--sand);
  margin: 20px 0;
}
.s-rule-c { margin: 20px auto; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body);
  font-size: 0.65rem; font-weight: 300;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 13px 30px;
  transition: var(--mid); cursor: pointer;
  border: none; white-space: nowrap;
}
.btn-dark  { background: var(--ink); color: var(--white); }
.btn-dark:hover  { background: var(--ink-mid); color: var(--sand-light); }
.btn-sand  { background: var(--sand); color: var(--white); }
.btn-sand:hover  { background: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid rgba(26,22,18,0.25); }
.btn-ghost:hover { border-color: var(--sand); color: var(--sand); }
.btn-ghost-light { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.4); }
.btn-ghost-light:hover { border-color: var(--sand); color: var(--sand); }

/* ── IMAGE PLACEHOLDER ── */
.img-slot {
  background: var(--ivory-mid);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; position: relative;
  overflow: hidden;
}
.img-slot::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--ivory-mid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ivory-mid) 1px, transparent 1px);
  background-size: 40px 40px;
  background-color: #ede9e3;
  opacity: 0.4;
}
.img-slot::after {
  content: '';
  position: absolute;
  width: 32px; height: 32px;
  border: 1px solid var(--sand-light);
  border-radius: 50%;
}
.img-slot-text {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-top: 52px;
}
.img-slot-icon {
  font-size: 1rem; color: var(--sand); opacity: 0.5;
  letter-spacing: 0; font-family: var(--body); font-weight: 300;
}
.img-slot-label {
  font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--sand); opacity: 0.65; font-family: var(--body);
}

/* ── PAGE HERO ── */
.page-hero {
  position: relative; height: 68vh; min-height: 480px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.page-hero .img-slot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.page-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(26,22,18,0.72) 0%, rgba(26,22,18,0.2) 70%, transparent 100%);
}
.page-hero-content {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto;
  padding: 0 48px 72px; width: 100%;
}
.page-hero-label {
  font-size: 0.6rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--sand); display: block; margin-bottom: 14px;
}
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 300; color: var(--white); line-height: 1.08;
  margin-bottom: 20px;
}
.page-hero h1 em { font-style: italic; color: var(--sand-light); }
.page-hero-sub {
  font-size: 0.78rem; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.5); margin-bottom: 28px;
  font-family: var(--body); font-weight: 300;
}

/* ── CTA BANNER ── */
.cta-band {
  position: relative; padding: var(--pad) 48px;
  text-align: center; overflow: hidden;
  background: var(--ink);
}
.cta-band-content { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300; color: var(--white); line-height: 1.15;
  margin-bottom: 16px;
}
.cta-band h2 em { font-style: italic; color: var(--sand-light); }
.cta-band p {
  font-size: 0.85rem; color: rgba(255,255,255,0.45);
  line-height: 1.9; margin-bottom: 36px;
  font-family: var(--body); font-weight: 300;
}
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── INSTAGRAM SECTION ── */
.ig-section { background: var(--ivory); }
.ig-header { text-align: center; margin-bottom: 48px; }
.ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  max-width: var(--max); margin: 0 auto;
}
.ig-cell {
  aspect-ratio: 1;
  position: relative; overflow: hidden;
  cursor: pointer;
  background: var(--ivory-mid);
}
.ig-cell .img-slot { width: 100%; height: 100%; }
.ig-cell-overlay {
  position: absolute; inset: 0;
  background: rgba(26,22,18,0.5);
  opacity: 0;
  transition: opacity var(--fast);
  display: flex; align-items: center; justify-content: center;
}
.ig-cell:hover .ig-cell-overlay { opacity: 1; }
.ig-cell-icon {
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--white); font-family: var(--body); font-weight: 300;
}
.ig-follow {
  text-align: center; margin-top: 32px;
}
.ig-handle {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sand); display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 300;
}
.ig-handle::before { content: '◎'; font-size: 0.85rem; }

/* ── SCROLL HINT ── */
.scroll-hint {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  z-index: 2;
}
.scroll-hint span {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  60% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
}

/* ── FOOTER ── */
footer {
  background: var(--ink);
  padding: 72px 48px 0;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.f-logo svg { height: 30px; width: auto; margin-bottom: 18px; }
.f-logo .logo-ink  { fill: var(--white); }
.f-logo .logo-sand { fill: var(--sand); }
.f-tagline {
  font-size: 0.8rem; font-weight: 300; line-height: 1.85;
  color: rgba(255,255,255,0.35); margin-bottom: 24px;
  font-family: var(--body);
}
.f-socials { display: flex; gap: 14px; }
.f-social {
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); transition: color var(--fast);
  font-family: var(--body); font-weight: 300;
  padding-bottom: 2px; border-bottom: 1px solid transparent;
}
.f-social:hover { color: var(--sand); border-bottom-color: var(--sand); }
.f-col-title {
  font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.25); margin-bottom: 18px; font-family: var(--body);
}
.f-col-links { display: flex; flex-direction: column; gap: 10px; }
.f-col-links a {
  font-size: 0.8rem; font-weight: 300;
  color: rgba(255,255,255,0.45); transition: color var(--fast);
  font-family: var(--body);
}
.f-col-links a:hover { color: var(--sand-light); }
.footer-base {
  max-width: var(--max); margin: 0 auto;
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.f-copy {
  font-size: 0.65rem; font-weight: 300; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.18); font-family: var(--body);
}
.f-credit a {
  font-size: 0.63rem; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.18); transition: color var(--fast);
  font-family: var(--body);
}
.f-credit a:hover { color: var(--sand); }

/* ── MOBILE ── */
@media (max-width: 860px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .section { padding: var(--pad-mob) 24px; }
  .page-hero-content { padding: 0 24px 56px; }
  .cta-band { padding: var(--pad-mob) 24px; }
  footer { padding: 56px 24px 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-base { flex-direction: column; gap: 10px; text-align: center; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .btn-row { flex-direction: column; align-items: center; }
}
@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── LIGHTBOX ── */
#lb {
  position: fixed; inset: 0; z-index: 99990;
  background: rgba(26,22,18,0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity var(--mid), visibility var(--mid);
}
#lb.open { opacity: 1; visibility: visible; }
#lb-img { max-width: 88vw; max-height: 84vh; object-fit: contain; transition: opacity 0.3s; }
#lb-close, #lb-prev, #lb-next {
  position: fixed; background: none; border: none;
  color: rgba(255,255,255,0.4); cursor: pointer;
  transition: color var(--fast); z-index: 99991;
  font-size: 1.4rem; padding: 20px;
}
#lb-close:hover, #lb-prev:hover, #lb-next:hover { color: var(--sand); }
#lb-close { top: 24px; right: 28px; }
#lb-prev  { top: 50%; left: 16px;  transform: translateY(-50%); }
#lb-next  { top: 50%; right: 16px; transform: translateY(-50%); }
#lb-cap {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); font-family: var(--body);
}
