/* Brianna Doucette Photography — public site */
:root {
  --paper: #fbf9f6;
  --cream: #f3eee7;
  --ink: #26231f;
  --muted: #6f675e;
  --line: #e4dcd1;
  --accent: #9a7b5f;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --header-h: 84px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 17px/1.7 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.display { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; font-size: clamp(38px, 5.4vw, 72px); }
h2.display { font-size: clamp(32px, 4vw, 54px); }
.display.small { font-size: clamp(28px, 3vw, 38px); }
.eyebrow { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; font-weight: 500; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: 21px; font-family: var(--display); font-style: italic; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { padding-left: 1.2em; }
.prose a { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); background: transparent; color: var(--ink); padding: 14px 26px;
  font: 500 12px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }
.btn-light { border-color: #fff; color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-ghost { border-color: transparent; }
.btn-small { padding: 10px 16px; font-size: 11px; }
.btn .icon { width: 16px; height: 16px; }

/* Header */
.site-header { height: var(--header-h); padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 20; }
.site-header.over-hero { position: absolute; inset: 0 0 auto 0; color: #fff; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand-name { font-family: var(--display); font-size: 26px; letter-spacing: .02em; }
.brand-tag { font-size: 10px; letter-spacing: .42em; text-transform: uppercase; margin-top: 4px; }
.site-nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.site-nav a { text-decoration: none; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { border-color: currentColor; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .25s; }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 26px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.notice { max-width: 760px; margin: 20px auto; padding: 14px 20px; border-left: 3px solid var(--accent); background: var(--cream); }
.notice-error { border-color: #b3261e; }

/* Sections */
.section { padding: clamp(64px, 9vw, 130px) var(--gutter); }
.tint { background: var(--cream); }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.page-head { padding: clamp(40px, 7vw, 90px) var(--gutter) clamp(24px, 4vw, 40px); }
.page-head .prose { color: var(--muted); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: #2b2724; overflow: hidden; }
.hero-empty { min-height: 78svh; background: linear-gradient(135deg, #3a332d, #7a6450); }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; transform: scale(1.03); }
.hero-slides img.is-active { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,.05) 60%), linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%); }
.hero-copy { position: relative; padding: 0 var(--gutter) clamp(60px, 11vh, 120px); max-width: 900px; }
.hero-copy .eyebrow { color: #fff; opacity: .9; }
.hero-copy .display { font-size: clamp(46px, 7.5vw, 104px); }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); max-width: 560px; opacity: .92; }

/* Split image/text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-reverse .split-img { order: 2; }
.split-img img, .img-placeholder { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.img-placeholder { background: linear-gradient(135deg, var(--cream), var(--line)); }
.split-text { max-width: 560px; }

/* Gallery cards */
.gallery-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(20px, 3vw, 40px); max-width: 1400px; margin: 0 auto 48px; }
.gallery-card { text-decoration: none; display: block; }
.gallery-card-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream); }
.gallery-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.gallery-card:hover img { transform: scale(1.04); }
.gallery-card-text { display: block; padding-top: 16px; }
.gallery-card-text .eyebrow { display: block; margin-bottom: 4px; }
.gallery-card-title { font-family: var(--display); font-size: 28px; line-height: 1.2; }
.gallery-card[hidden] { display: none; }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 0 var(--gutter); }
.filter { background: none; border: 0; border-bottom: 1px solid transparent; padding: 6px 0; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; color: var(--muted); }
.filter.is-active, .filter:hover { color: var(--ink); border-color: var(--ink); }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; max-width: 1200px; margin: 0 auto 40px; }
.service { background: var(--paper); padding: 40px 32px; text-align: center; }
.service h3 { font-family: var(--display); font-weight: 400; font-size: 30px; }
.price { color: var(--accent); letter-spacing: .12em; text-transform: uppercase; font-size: 13px; font-weight: 500; }

/* Testimonials */
.quotes { display: grid; max-width: 860px; margin: 0 auto; }
.quote { grid-area: 1 / 1; margin: 0; opacity: 0; transition: opacity .8s; pointer-events: none; }
.quote.is-active { opacity: 1; pointer-events: auto; }
.quote blockquote { margin: 0 0 20px; font-family: var(--display); font-style: italic; font-size: clamp(24px, 3vw, 36px); line-height: 1.35; }
.quote figcaption { letter-spacing: .2em; text-transform: uppercase; font-size: 12px; color: var(--muted); }

/* CTA */
.cta { position: relative; background: var(--cream); overflow: hidden; }
.cta-image { color: #fff; background: #2b2724; }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-inner { position: relative; }
.cta .prose { margin-bottom: 28px; }

/* About */
.about-hero { padding-top: clamp(32px, 5vw, 60px); }
.highlight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto; }
.highlight h3 { font-family: var(--display); font-weight: 400; font-size: 28px; }
.mosaic { columns: 3 280px; column-gap: 16px; max-width: 1400px; margin: 0 auto; }
.mosaic img { margin-bottom: 16px; width: 100%; }

/* Contact */
.contact-page { align-items: start; }
.contact-details { list-style: none; padding: 0; margin: 28px 0; }
.contact-details li { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.contact-details .icon { color: var(--accent); flex: none; }
.contact-img { margin-top: 24px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; }
input, select, textarea { font: 300 17px/1.5 var(--body); color: var(--ink); background: #fff; border: 1px solid var(--line); padding: 12px 14px; width: 100%; border-radius: 0; text-transform: none; letter-spacing: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; }
.form-error { color: #b3261e; font-size: 14px; text-transform: none; letter-spacing: 0; margin: 0; }
.sent-card { background: var(--cream); padding: 48px 40px; }

/* Lock / error pages */
.lock { min-height: 70vh; display: grid; place-items: center; padding: 60px var(--gutter); background: var(--cream); }
.lock-card { background: var(--paper); max-width: 480px; width: 100%; padding: clamp(32px, 6vw, 56px); text-align: center; }
.lock-icon .icon { width: 32px; height: 32px; color: var(--accent); margin: 0 auto 12px; }
.lock-card .display { font-size: clamp(32px, 5vw, 48px); }
.lock-form { display: grid; gap: 14px; margin: 24px 0; }
.pin-input { text-align: center; font-size: 28px; letter-spacing: .5em; padding-left: .5em; }

/* Gallery page */
.gallery-head .display { font-size: clamp(40px, 6vw, 80px); }
.admin-note { font-size: 14px; background: #fff7e0; display: inline-block; padding: 6px 14px; }
.gallery-toolbar { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px var(--gutter);
  background: rgba(251, 249, 246, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.toolbar-note { font-size: 14px; color: var(--muted); flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 99px; cursor: pointer; font-size: 14px; }
.chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.chip .count { background: var(--cream); border-radius: 99px; padding: 0 8px; font-size: 12px; }
.dropdown { position: relative; }
.dropdown summary { list-style: none; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); min-width: 280px; padding: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.08); z-index: 5; }
.dropdown-menu a { display: block; padding: 10px 12px; text-decoration: none; font-size: 15px; }
.dropdown-menu a:hover { background: var(--cream); }
.dropdown-menu a[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.dropdown-note { font-size: 13px; color: var(--muted); padding: 6px 12px 2px; margin: 0; }

.photo-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; padding: 24px var(--gutter) 80px; }
.photo-grid::after { content: ""; flex-grow: 999; }
.photo { position: relative; margin: 0; flex-grow: calc(var(--ar) * 100); flex-shrink: 1; flex-basis: calc(var(--ar) * 260px); aspect-ratio: var(--ar); background: var(--cream); overflow: hidden; }
.photo a { display: block; height: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.photo:hover img { transform: scale(1.02); }
.photo[hidden] { display: none; }
.fav-btn { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .2s, transform .2s; }
.photo:hover .fav-btn, .photo.is-fav .fav-btn, .fav-btn:focus-visible { opacity: 1; }
.fav-btn:active { transform: scale(.9); }
.is-fav .fav-btn, [data-lb-fav][aria-pressed="true"] { color: #c2415b; }
.is-fav .fav-btn path, [data-lb-fav][aria-pressed="true"] path { fill: currentColor; }
@media (hover: none) { .fav-btn { opacity: 1; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(18, 16, 14, .97); z-index: 100; display: grid; place-items: center; color: #fff; touch-action: pan-y; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100svh - 110px); object-fit: contain; transition: opacity .25s; }
.lightbox img.loading { opacity: .2; }
.lb-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.lb-count { font-size: 14px; letter-spacing: .1em; opacity: .7; }
.lb-actions { display: flex; gap: 4px; align-items: center; }
.lb-btn { background: none; border: 0; color: #fff; min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-decoration: none; font-size: 13px; padding: 0 8px; border-radius: 22px; }
.lb-btn:hover { background: rgba(255,255,255,.1); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; width: 56px; height: 80px; cursor: pointer; opacity: .7; }
.lb-nav:hover { opacity: 1; }
.lb-nav .icon { width: 32px; height: 32px; }
.lb-prev { left: 4px; }
.lb-next { right: 4px; }

/* Modal */
.modal { border: 0; padding: 0; max-width: 440px; width: calc(100% - 32px); }
.modal::backdrop { background: rgba(0,0,0,.5); }
.modal-body { padding: 32px; display: grid; gap: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

.client-access { padding-top: 60px; padding-bottom: 60px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px var(--gutter) 32px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { text-decoration: none; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.social { display: flex; gap: 14px; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; }
.social a:hover { border-color: var(--ink); }
.footer-copy { margin: 32px 0 0; font-size: 13px; color: var(--muted); }

/* Responsive */
@media (max-width: 860px) {
  .menu-toggle { display: block; z-index: 2; }
  .site-nav { position: fixed; inset: 0; background: var(--paper); color: var(--ink); flex-direction: column; align-items: center; justify-content: center; gap: 28px;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .site-nav a { font-size: 18px; }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-header.nav-open { color: var(--ink); }
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-img { order: 0; }
  .form-row { grid-template-columns: 1fr; }
  .photo { flex-basis: calc(var(--ar) * 160px); }
  .dropdown-menu { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
