/* =============================================
   Mara Ellison Photography — styles.css
   ============================================= */

:root {
  --bg: #0f0f11;
  --surface: #16161a;
  --surface-2: #1e1e24;
  --text: #f1ede6;
  --muted: #a6a199;
  --accent: #d9a441;
  --accent-dark: #b58430;
  --border: #2a2a31;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1120px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--accent); color: #141414; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #141414;
  padding: 0.6rem 1.1rem;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
}

.kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 1rem; }
.section-head p { color: var(--muted); }
.section-head--center { text-align: center; margin-inline: auto; }

.text-link {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.text-link:hover { border-bottom-color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #141414;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  border-radius: 3px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { background: rgba(217, 164, 65, 0.12); border-color: var(--accent); color: var(--accent); }

a:focus-visible,
button:focus-visible,
figure:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 15, 17, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  position: relative;
}

.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.brand span { color: var(--accent); font-style: italic; }

.site-nav { display: flex; gap: 2rem; }
.site-nav a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.9rem;
  border-radius: 3px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 17, 0.5) 0%, rgba(15, 15, 17, 0.08) 45%, rgba(15, 15, 17, 0.88) 100%);
}

.hero-content { position: relative; z-index: 1; padding-top: 6rem; padding-bottom: 4.5rem; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  max-width: 14ch;
  margin-bottom: 1.2rem;
}
.hero p { max-width: 52ch; color: #ddd6cb; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0.6rem 0 1.1rem;
  max-width: 20ch;
}
.page-hero p { color: var(--muted); max-width: 62ch; font-size: 1.05rem; }

/* ---------- Work grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1.4rem;
}

.work-grid figure {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  aspect-ratio: 4 / 3;
}
.work-grid[data-filterable] figure { cursor: zoom-in; }
.work-grid--static figure { cursor: default; }

.work-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.work-grid figure:hover img,
.work-grid figure:focus-visible img { transform: scale(1.06); }

.work-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 2.4rem 1.1rem 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(8, 8, 10, 0.88));
}

.w-title { font-family: var(--serif); font-size: 1rem; }
.w-meta {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
}

.work-grid figure[hidden] { display: none; }

.grid-more { margin-top: 2rem; }
.grid-note { margin-top: 2rem; color: var(--muted); font-size: 0.92rem; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.2rem; }

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--muted); }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #141414;
  font-weight: 600;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.9rem 1.7rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(217, 164, 65, 0.5); }
.card h3 { font-size: 1.3rem; margin-bottom: 0.7rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

.price {
  display: block;
  margin-top: 1.2rem;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
}
.split img { border-radius: 8px; border: 1px solid var(--border); }
.split h2 { font-size: clamp(1.7rem, 3.5vw, 2.2rem); margin-bottom: 1.1rem; }
.split p { color: var(--muted); margin-bottom: 1rem; }
.split .btn--ghost { margin-top: 0.6rem; }

.signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--accent);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--accent);
}
.stat span {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ---------- Two-column lists ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.two-col h3 { font-size: 1.25rem; margin-bottom: 1.1rem; }

.plain-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}
.plain-list li:last-child { border-bottom: none; }

.info-list li strong {
  display: block;
  color: var(--text);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.15rem;
}
.info-list li a { color: var(--accent); }
.info-list li a:hover { border-bottom: 1px solid var(--accent); }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 4.5rem 0;
  background: linear-gradient(135deg, #1a1520 0%, #261b10 100%);
  border-top: 1px solid var(--border);
}
.cta-band h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 0.9rem; }
.cta-band p { color: var(--muted); margin-bottom: 1.8rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-info h2 { font-size: 1.6rem; margin-bottom: 1.4rem; }

.note-box {
  margin-top: 1.8rem;
  background: rgba(217, 164, 65, 0.08);
  border: 1px solid rgba(217, 164, 65, 0.35);
  border-radius: 6px;
  padding: 1.1rem 1.3rem;
  font-size: 0.95rem;
  color: var(--text);
}
.note-box strong { color: var(--accent); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-field { margin-bottom: 1.2rem; }

label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  color: var(--muted);
}
.optional { font-size: 0.78rem; opacity: 0.7; }

input,
select,
textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.8rem 1rem;
  border-radius: 4px;
  font: inherit;
  font-size: 0.95rem;
}

textarea { resize: vertical; min-height: 130px; }

input::placeholder,
textarea::placeholder { color: #6d6961; }

.form-note {
  margin-top: 1.1rem;
  font-size: 0.92rem;
  color: var(--accent);
}

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  margin-bottom: 0.8rem;
}

.faq summary {
  cursor: pointer;
  padding: 1.1rem 3rem 1.1rem 1.3rem;
  font-family: var(--serif);
  font-size: 1.08rem;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.3rem;
}
.faq details[open] summary::after { content: "\2013"; }

.faq details p {
  padding: 0 1.3rem 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0b0b0d;
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand { font-size: 1.15rem; margin-bottom: 0.8rem; }
.footer-grid > div > p:not(.brand) { color: var(--muted); font-size: 0.92rem; }

.footer-grid h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.footer-grid li { margin-bottom: 0.5rem; color: var(--muted); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: #6f6b64;
  font-size: 0.82rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 8, 10, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: min(1000px, 92vw);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
}

.lightbox-caption { color: var(--muted); font-size: 0.95rem; text-align: center; }

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lightbox-close:hover { border-color: var(--accent); color: var(--accent); }

body.no-scroll { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split,
  .two-col,
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 3.5rem 0; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.5rem 1.2rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .work-grid figcaption { flex-direction: column; gap: 0.15rem; }
  .w-meta { white-space: normal; }
}

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