/* =========================================================
   Arete Photographers Perth — design system
   Editorial, airy, image-forward. One shared stylesheet.
   ========================================================= */

:root {
  --bg:        #F7F4EF;   /* warm cream */
  --bg-alt:    #EFEAE2;   /* soft sand */
  --ink:       #20201D;   /* warm near-black */
  --ink-soft:  #3A3833;
  --muted:     #726C63;   /* muted text */
  --accent:    #A47551;   /* warm camel */
  --accent-dk: #835B3C;
  --line:      rgba(32, 32, 29, 0.12);
  --white:     #FFFFFF;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 18px 50px -20px rgba(32, 32, 29, 0.35);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.section--alt { background: var(--bg-alt); }
.center { text-align: center; }
.stack > * + * { margin-top: 1.1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.9em;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 100px;
  transition: transform .4s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--accent-dk); box-shadow: var(--shadow); }
.btn--ghost { border: 1px solid currentColor; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--light { border: 1px solid rgba(255,255,255,.6); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dk); box-shadow: var(--shadow); }

/* =========================================================
   Header / nav
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: 1.15rem;
  transition: background .45s var(--ease), padding .45s var(--ease), box-shadow .45s var(--ease);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header.scrolled {
  background: rgba(247, 244, 239, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  padding-block: 0.7rem;
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; letter-spacing: 0.01em; }
.brand span { font-size: 0.6rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); margin-top: 0.35rem; }

/* light-on-dark over hero */
.site-header:not(.scrolled) .brand b,
.site-header:not(.scrolled) .nav a,
.site-header:not(.scrolled) .nav-toggle { color: #fff; }
.site-header:not(.scrolled) .brand span { color: rgba(255,255,255,.7); }

.nav ul { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.1rem); }
.nav a {
  position: relative; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em;
  padding-block: 0.4rem; transition: opacity .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: currentColor; transition: width .35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--accent); }
.site-header:not(.scrolled) .nav a[aria-current="page"] { color: #fff; opacity: .85; }

.nav-toggle { display: none; width: 30px; height: 22px; position: relative; z-index: 110; }
.nav-toggle span { position: absolute; left: 0; height: 2px; width: 100%; background: currentColor; transition: transform .4s var(--ease), opacity .3s; }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,18,15,.45) 0%, rgba(20,18,15,.1) 35%, rgba(20,18,15,.65) 100%);
}
.hero__inner { padding-bottom: clamp(4rem, 9vw, 8rem); padding-top: 9rem; max-width: 760px; }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 300; }
.hero .eyebrow { color: #fff; opacity: .85; margin-bottom: 1.4rem; }
.hero p { font-size: clamp(1.05rem, 1.7vw, 1.3rem); max-width: 48ch; margin-top: 1.5rem; color: rgba(255,255,255,.92); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.4rem; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%);
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; opacity: .8;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.scroll-cue::after { content: ""; width: 1px; height: 38px; background: #fff; animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0%,100% { transform: scaleY(.3); opacity:.3 } 50% { transform: scaleY(1); opacity:.9 } }

/* page hero (interior pages) */
.page-hero { position: relative; min-height: 64vh; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; padding: 8rem 1rem 3rem; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(180deg, rgba(20,18,15,.5), rgba(20,18,15,.45)); }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 300; }
.page-hero .eyebrow { color: #fff; opacity: .85; margin-bottom: 1rem; }
.page-hero p { max-width: 60ch; margin: 1.3rem auto 0; color: rgba(255,255,255,.92); }

/* =========================================================
   Section headers
   ========================================================= */
.sec-head { max-width: 720px; }
.sec-head.center { margin-inline: auto; }
.sec-head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-top: 0.9rem; }
.sec-head p { margin-top: 1.1rem; color: var(--muted); }

/* =========================================================
   Services grid (home)
   ========================================================= */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.svc { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); display: block; }
.svc img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.svc:hover img { transform: scale(1.06); }
.svc::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(20,18,15,0) 40%, rgba(20,18,15,.78)); transition: background .4s; }
.svc:hover::after { background: linear-gradient(180deg, rgba(20,18,15,.1) 30%, rgba(20,18,15,.85)); }
.svc__label { position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.4rem; color: #fff; z-index: 2; }
.svc__label h3 { font-size: 1.5rem; font-weight: 400; }
.svc__label span { display: inline-flex; align-items: center; gap: .5em; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); margin-top: .5rem; }
.svc:hover .svc__label span { opacity: .95; transform: translateY(0); }

/* =========================================================
   Split feature (image + text)
   ========================================================= */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.split__media .tag {
  position: absolute; bottom: -1.2rem; right: -1.2rem; background: var(--accent); color: #fff;
  padding: 1.1rem 1.4rem; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 220px;
}
.split__media .tag b { font-family: var(--font-display); font-size: 1.9rem; display: block; line-height: 1; }
.split__media .tag span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.split__body h2 { font-size: clamp(1.9rem, 4vw, 3rem); }

/* =========================================================
   Pricing band
   ========================================================= */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: clamp(2.5rem,5vw,3.5rem); }
.pricing__cell { background: var(--bg); padding: clamp(1.8rem, 3vw, 2.6rem); }
.section--alt .pricing__cell { background: var(--bg-alt); }
.pricing__cell .num { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--accent-dk); line-height: 1; }
.pricing__cell h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-top: 1rem; }
.pricing__cell p { color: var(--muted); margin-top: .5rem; font-size: .95rem; }

/* =========================================================
   Galleries + lightbox
   ========================================================= */
.gallery { columns: 3; column-gap: clamp(.6rem, 1.4vw, 1rem); margin-top: clamp(2rem, 4vw, 3rem); }
.gallery a { display: block; margin-bottom: clamp(.6rem, 1.4vw, 1rem); break-inside: avoid; overflow: hidden; border-radius: var(--radius); position: relative; }
.gallery img { width: 100%; transition: transform 1s var(--ease), filter .5s; }
.gallery a::after { content: ""; position: absolute; inset: 0; background: rgba(32,32,29,0); transition: background .4s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery a:hover::after { background: rgba(32,32,29,.12); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(18,16,14,.94); display: none; place-items: center; opacity: 0; transition: opacity .35s var(--ease); }
.lightbox.open { display: grid; opacity: 1; }
.lightbox img { max-width: 90vw; max-height: 86vh; object-fit: contain; border-radius: 2px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb-btn { position: absolute; color: #fff; font-size: 2rem; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; transition: background .3s; }
.lb-btn:hover { background: rgba(255,255,255,.12); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .8rem; letter-spacing: .15em; }

/* =========================================================
   Locations
   ========================================================= */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: clamp(1rem,2vw,1.6rem); margin-top: clamp(2.5rem,5vw,3.5rem); }
.loc { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; transition: transform .4s var(--ease), border-color .4s; background: var(--bg); }
.loc:hover { transform: translateY(-4px); border-color: var(--accent); }
.loc h4 { font-size: 1.25rem; }
.loc p { color: var(--muted); font-size: .92rem; margin-top: .5rem; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band { position: relative; color: #fff; text-align: center; overflow: hidden; }
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width:100%; height:100%; object-fit: cover; }
.cta-band::after { content:""; position:absolute; inset:0; z-index:-1; background: rgba(20,18,15,.62); }
.cta-band h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 300; }
.cta-band p { max-width: 50ch; margin: 1.2rem auto 2rem; color: rgba(255,255,255,.9); }

/* =========================================================
   Contact
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: start; }
.contact-card a { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); transition: color .3s; }
.contact-card a:hover { color: var(--accent); }
.contact-card .ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.contact-card .ico svg { width: 18px; height: 18px; }
.contact-card small { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-card b { font-weight: 500; font-size: 1.05rem; }
.contact-form label { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: .5rem; }
.contact-form .field { margin-bottom: 1.3rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); font: inherit; color: var(--ink); transition: border-color .3s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 130px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding-block: clamp(3.5rem,6vw,5rem) 2.5rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { font-family: var(--font-body); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 1.2rem; }
.site-footer .brand b { color: #fff; font-size: 1.5rem; }
.site-footer .brand span { color: rgba(255,255,255,.5); }
.site-footer a { transition: color .3s; }
.site-footer a:hover { color: #fff; }
.site-footer li + li { margin-top: .7rem; }
.site-footer .socials { display: flex; gap: .8rem; margin-top: 1.2rem; }
.site-footer .socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.site-footer .socials a:hover { background: var(--accent); border-color: var(--accent); }
.site-footer .socials svg { width: 18px; height: 18px; }
.foot-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .8rem; color: rgba(255,255,255,.45); }

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .split, .split--rev .split__media { grid-template-columns: 1fr; order: 0; }
  .split__media { order: -1 !important; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .gallery { columns: 2; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; background: var(--bg); z-index: 105;
    display: grid; place-items: center;
    clip-path: circle(0% at calc(100% - 2.5rem) 2.5rem);
    transition: clip-path .6s var(--ease); pointer-events: none;
  }
  body.nav-open .nav { clip-path: circle(150% at calc(100% - 2.5rem) 2.5rem); pointer-events: auto; }
  .nav ul { flex-direction: column; gap: 1.6rem; text-align: center; }
  .nav a { font-size: 1.4rem; color: var(--ink) !important; font-family: var(--font-display); }
  .site-header:not(.scrolled) .nav a[aria-current="page"] { color: var(--accent) !important; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .gallery { columns: 1; }
  .split__media .tag { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
