/* Noor Halvorsen — Photography portfolio template
   Theme tokens: override these to recolour the whole site. */
:root {
  --brand: #d8b27a;
  --accent: #8fb3c9;
  --bg: #0f0e0d;
  --surface: #1a1816;
  --surface-2: #24211e;
  --text: #ede7de;
  --muted: #a39b90;
  --line: rgba(237, 231, 222, .14);
  --on-brand: #15120e;
  --radius: 4px;
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1320px;
  --gap: 8px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.7 var(--font-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
em { font-style: italic; color: var(--brand); }
p { margin: 0 0 1em; }
ul[role="list"], ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--brand); color: var(--on-brand); padding: .7rem 1rem; text-decoration: none; }
.skip-link:focus { top: 1rem; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 860px; }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-tight { padding-bottom: clamp(3rem, 7vw, 6rem); }
.kicker { font: 600 .75rem var(--font-body); letter-spacing: .28em; text-transform: uppercase; color: var(--brand); margin-bottom: 1.2rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: .95rem 1.7rem; background: var(--brand); color: var(--on-brand); font: 600 .82rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--brand); border-radius: var(--radius); cursor: pointer; transition: background .3s, color .3s, transform .3s var(--ease); }
.btn:hover { background: transparent; color: var(--brand); }
.btn-line { background: transparent; color: var(--text); border-color: rgba(237, 231, 222, .5); }
.btn-line:hover { border-color: var(--text); color: var(--text); background: rgba(237, 231, 222, .08); }
.link-arrow { text-decoration: none; font-size: .9rem; font-weight: 600; letter-spacing: .06em; border-bottom: 1px solid var(--line); padding-bottom: .2rem; }
.link-arrow:hover { border-color: var(--brand); color: var(--brand); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(15, 14, 13, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header.overlay { position: absolute; left: 0; right: 0; background: linear-gradient(rgba(0, 0, 0, .45), transparent); backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.logo span { font: 500 1.55rem var(--font-display); letter-spacing: .01em; }
.logo small { font: 600 .62rem var(--font-body); letter-spacing: .38em; text-transform: uppercase; color: var(--muted); margin-top: .35rem; }
.overlay .logo small { color: rgba(237, 231, 222, .8); }
.nav-menu ul { display: flex; align-items: center; gap: 2.2rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a { text-decoration: none; font-size: .84rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding: .3rem 0; border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { border-color: var(--brand); }
.nav-menu a.nav-cta { border: 1px solid rgba(237, 231, 222, .45); padding: .6rem 1rem; border-radius: var(--radius); }
.nav-menu a.nav-cta:hover, .nav-menu a.nav-cta[aria-current="page"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; color: var(--text); cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 1.5px; background: currentColor; position: relative; margin: auto; transition: transform .3s var(--ease); }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 24s var(--ease) forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 9, 8, .88) 0%, rgba(10, 9, 8, .25) 45%, rgba(10, 9, 8, .15) 100%); }
.hero-inner { position: relative; padding-bottom: clamp(5rem, 12vh, 8rem); }
.hero h1 { font-size: clamp(2.8rem, 7.5vw, 6.8rem); font-weight: 400; max-width: 13ch; line-height: .98; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero-credit { position: absolute; bottom: 1.6rem; left: 0; right: 0; text-align: right; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(237, 231, 222, .75); margin: 0 auto; }

/* Intro */
.intro { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(4rem, 9vw, 7rem); align-items: end; }
.intro-text { font: 400 clamp(1.6rem, 3.2vw, 2.6rem)/1.25 var(--font-display); margin: 0; }
.intro-stats { margin: 0; display: grid; gap: 1.2rem; }
.intro-stats div { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: .8rem; }
.intro-stats dt { color: var(--muted); font-size: .88rem; }
.intro-stats dd { margin: 0; font: 400 2.2rem var(--font-display); color: var(--brand); }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 400; }
.section-head p { color: var(--muted); max-width: 44ch; margin: 0; font-size: .95rem; }

/* Full-bleed masonry */
.masonry { columns: 3 320px; column-gap: var(--gap); padding-inline: var(--gap); }
.masonry-3 { columns: 3 300px; }
.masonry li { break-inside: avoid; margin-bottom: var(--gap); }
.lb-item { display: block; position: relative; overflow: hidden; background: var(--surface); cursor: zoom-in; }
.lb-item img { width: 100%; transition: transform 1.2s var(--ease), filter .6s; }
.lb-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent 45%); opacity: 0; transition: opacity .5s var(--ease); }
.tile-cap { position: absolute; left: 1.2rem; bottom: 1rem; z-index: 1; font: italic 400 1.25rem var(--font-display); opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.lb-item:hover img, .lb-item:focus-visible img { transform: scale(1.04); }
.lb-item:hover::after, .lb-item:focus-visible::after, .lb-item:hover .tile-cap, .lb-item:focus-visible .tile-cap { opacity: 1; transform: none; }
.lb-item:focus-visible { outline-offset: -4px; }

/* Gallery cards */
.gallery-cards { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.25rem; }
.gallery-cards.all { grid-template-columns: repeat(3, 1fr); row-gap: 3rem; }
.gcard { display: block; text-decoration: none; }
.gcard img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1s var(--ease), opacity .5s; border-radius: var(--radius); }
.gallery-cards li:first-child .gcard img { aspect-ratio: auto; height: 100%; max-height: none; }
.gallery-cards:not(.all) li:first-child .gcard { height: 100%; display: flex; flex-direction: column; }
.gallery-cards:not(.all) li:first-child .gcard img { flex: 1; min-height: 0; aspect-ratio: auto; }
.gallery-cards.all li:first-child .gcard img { height: auto; aspect-ratio: 4 / 5; }
.gcard { overflow: hidden; }
.gcard:hover img { opacity: .82; }
.gcard-body { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1rem; flex-wrap: wrap; }
.gcard-title { font: 400 1.7rem var(--font-display); }
.gcard-meta { font-size: .8rem; color: var(--muted); letter-spacing: .04em; }

/* Testimonial */
.testimonial { background: var(--surface); padding-block: clamp(4rem, 9vw, 7rem); text-align: center; }
.testimonial figure { margin: 0; }
.testimonial blockquote { margin: 0; }
.testimonial p { font: italic 400 clamp(1.6rem, 3.4vw, 2.6rem)/1.3 var(--font-display); }
.testimonial figcaption { color: var(--muted); font-size: .88rem; letter-spacing: .06em; margin-top: 1.4rem; }

/* CTA */
.cta { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding-block: clamp(4rem, 9vw, 7rem); border-bottom: 1px solid var(--line); }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 400; max-width: 20ch; }

/* Page heads */
.page-head { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 5vw, 4rem); }
.page-head h1 { font-size: clamp(3rem, 8vw, 7rem); font-weight: 400; max-width: 16ch; }
.page-lead { color: var(--muted); font-size: 1.1rem; max-width: 56ch; margin-top: 1.5rem; }
.back { display: inline-block; font-size: .85rem; text-decoration: none; color: var(--muted); margin-bottom: 2rem; letter-spacing: .06em; }
.back:hover { color: var(--brand); }
.meta-row { display: flex; flex-wrap: wrap; gap: 1rem 3.5rem; margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.meta-row dt { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.meta-row dd { margin: .2rem 0 0; font: 400 1.35rem var(--font-display); }
.next-gallery a { display: block; text-align: center; padding: clamp(4rem, 10vw, 8rem) 1.25rem; text-decoration: none; }
.next-gallery small { display: block; font-size: .75rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.next-gallery span { display: inline-block; font: 400 clamp(2.6rem, 7vw, 5.5rem) var(--font-display); margin-top: .6rem; transition: color .4s, transform .5s var(--ease); }
.next-gallery a:hover span { color: var(--brand); transform: translateX(10px); }

/* About */
.about-hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.about-portrait { margin: 0; }
.about-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about-copy h1 { font-size: clamp(2.6rem, 5.5vw, 4.8rem); font-weight: 400; margin-bottom: 1.8rem; }
.about-copy p { color: var(--muted); max-width: 56ch; font-size: 1.05rem; }
.about-copy .btn { margin-top: 1rem; }
.approach h2, .two-col h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; margin-bottom: 2rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.steps li::before { content: "0" counter(s); display: block; font: italic 400 1.1rem var(--font-display); color: var(--brand); margin-bottom: .6rem; }
.steps h3 { font-size: 1.7rem; margin-bottom: .5rem; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); padding-top: 0; }
.plain li { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.plain span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); padding-top: .2rem; }

/* Booking */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.package { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem 2rem; }
.package.featured { border-color: var(--brand); background: linear-gradient(180deg, rgba(216, 178, 122, .1), var(--surface) 55%); }
.badge { position: absolute; top: -.8rem; left: 2rem; background: var(--brand); color: var(--on-brand); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: .3rem .7rem; margin: 0; }
.package h3 { font-size: 2rem; }
.price { font: 400 2.6rem var(--font-display); color: var(--brand); margin: .5rem 0 1.4rem; }
.price span { font: 500 .78rem var(--font-body); color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.package ul li { padding: .55rem 0 .55rem 1.5rem; border-top: 1px solid var(--line); position: relative; font-size: .95rem; color: var(--muted); }
.package ul li::before { content: ""; position: absolute; left: 0; top: 1.1rem; width: .7rem; height: 1px; background: var(--brand); }
.booking { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 6vw, 6rem); padding-top: 0; }
.booking-aside h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; margin-bottom: 1rem; }
.booking-aside > p { color: var(--muted); }
details { border-top: 1px solid var(--line); padding: 1rem 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: .7rem 0 0; font-size: .95rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; background: var(--surface); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); border: 1px solid var(--line); }
.field { display: grid; gap: .45rem; min-width: 0; }
.full { grid-column: 1 / -1; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.field label, .field legend { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 0; }
.field legend { margin-bottom: .45rem; }
.field input:not([type="radio"]), .field textarea { font: inherit; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid rgba(237, 231, 222, .3); padding: .55rem 0; width: 100%; border-radius: 0; transition: border-color .3s; }
.field input::placeholder, .field textarea::placeholder { color: rgba(237, 231, 222, .4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.choices { display: flex; flex-wrap: wrap; gap: .6rem; }
.choices label { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line); padding: .55rem .9rem; border-radius: 99px; font: 500 .9rem var(--font-body); letter-spacing: 0; text-transform: none; color: var(--text); cursor: pointer; transition: border-color .3s, background .3s; }
.choices label:has(input:checked) { border-color: var(--brand); background: rgba(216, 178, 122, .12); }
.choices input { accent-color: var(--brand); margin: 0; }
.form-foot { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.form-status { margin: 0; color: var(--brand); }

/* Footer */
.site-footer { padding-top: clamp(3.5rem, 7vw, 5rem); color: var(--muted); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; }
.site-footer .logo { color: var(--text); margin-bottom: 1rem; }
.footer-note { max-width: 36ch; }
.site-footer nav li { margin-bottom: .5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.socials { display: flex; gap: 1.2rem; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid var(--line); padding-block: 1.5rem; font-size: .8rem; }
.footer-base p { margin: 0; }

/* Lightbox (built by JS) */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(8, 7, 6, .96); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; touch-action: pan-y; }
.lightbox.open { opacity: 1; visibility: visible; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; font-size: .8rem; letter-spacing: .16em; color: var(--muted); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(.5rem, 6vw, 6rem); }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100svh - 150px); width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transition: opacity .25s, transform .35s var(--ease); }
.lb-stage img.swap { opacity: 0; transform: scale(.985); }
.lb-caption { text-align: center; padding: 1rem 1.25rem 1.4rem; font: italic 400 1.3rem var(--font-display); margin: 0; }
.lb-btn { background: rgba(237, 231, 222, .08); border: 1px solid var(--line); color: var(--text); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 1.3rem; line-height: 1; transition: background .3s, border-color .3s; }
.lb-btn:hover { background: rgba(237, 231, 222, .18); border-color: var(--text); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; }
.lb-prev { left: clamp(.5rem, 2vw, 1.5rem); }
.lb-next { right: clamp(.5rem, 2vw, 1.5rem); }
body.lb-lock { overflow: hidden; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .intro, .about-hero, .booking, .two-col { grid-template-columns: 1fr; }
  .gallery-cards, .gallery-cards.all, .packages { grid-template-columns: 1fr 1fr; }
  .gallery-cards:not(.all) li:first-child { grid-column: 1 / -1; }
  .gallery-cards:not(.all) li:first-child .gcard img { aspect-ratio: 3 / 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .about-portrait { max-width: 480px; }
}
@media (max-width: 760px) {
  .nav { height: 72px; }
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .nav-menu { position: fixed; inset: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; z-index: 1; }
  .nav-menu.open { opacity: 1; visibility: visible; }
  .nav-menu ul { flex-direction: column; gap: 1.6rem; text-align: center; }
  .nav-menu a { font: 400 2.2rem var(--font-display); letter-spacing: 0; text-transform: none; }
  .nav-menu a.nav-cta { font: 600 .85rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; display: inline-block; margin-top: 1rem; }
  html:not(.js) .nav-menu { position: static; opacity: 1; visibility: visible; background: none; }
  html:not(.js) .nav { flex-wrap: wrap; height: auto; padding-block: 1rem; }
  html:not(.js) .nav-menu ul { flex-direction: row; flex-wrap: wrap; gap: 1rem; }
  html:not(.js) .nav-menu a { font-size: 1rem; }
  html:not(.js) .nav-toggle { display: none; }
  .masonry, .masonry-3 { columns: 2; --gap: 5px; }
  .tile-cap { display: none; }
  .packages, .gallery-cards.all, .steps, .form { grid-template-columns: 1fr; }
  .hero-credit { display: none; }
  .lb-prev, .lb-next { top: auto; bottom: -3.4rem; transform: none; }
  .lb-stage { padding-inline: .5rem; }
  .lb-caption { padding-inline: 4.5rem; font-size: 1.1rem; }
}
@media (max-width: 480px) {
  .gallery-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
/* backdrop-filter creates a containing block for fixed children — disable it while the menu is open */
.site-header.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; }
.about-copy .kicker { color: var(--brand); font-size: .75rem; }
