/* Gman Photography — editorial one-page site
   Palette: ivory, charcoal, muted gold. Mobile-first. */

:root {
  --ivory: #f6f1e8;
  --ivory-deep: #ebe4d6;
  --paper: #fffaf3;
  --charcoal: #1a1714;
  --ink: #2b2622;
  --muted: #6d655c;
  --gold: #9a8150;
  --gold-soft: #c4b489;
  --gold-deep: #7a6640;
  --line: rgba(26, 23, 20, 0.12);
  --line-strong: rgba(26, 23, 20, 0.22);
  --overlay: rgba(14, 12, 10, 0.42);
  --shadow: 0 18px 50px rgba(26, 23, 20, 0.18);
  --serif: "Cormorant Garamond", Cormorant, "Times New Roman", serif;
  --sans: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --nav-h: 4.5rem;
  --pad: clamp(1.25rem, 4.5vw, 3.5rem);
  --max: 72rem;
  --max-wide: 82rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0 0 1.15em; }
a[href^="sms:"], a[href^="tel:"] { white-space: nowrap; }
p:last-child { margin-bottom: 0; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

:focus-visible {
  outline: 1.5px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn:hover { background: var(--gold); color: var(--charcoal); }

.btn--dark {
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn--dark:hover { background: var(--charcoal); color: var(--ivory); }

.btn--solid {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--charcoal);
}
.btn--solid:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--ivory); }

.btn--gold-ghost {
  color: var(--charcoal);
  border-color: var(--gold);
}
.btn--gold-ghost:hover { background: var(--gold); color: var(--charcoal); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  color: var(--ivory);
  background: linear-gradient(to bottom, rgba(14, 12, 10, 0.45), rgba(14, 12, 10, 0));
  transition: background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(246, 241, 232, 0.92);
  color: var(--charcoal);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav.is-open {
  background: var(--ivory);
  color: var(--charcoal);
  /* backdrop-filter would trap the fixed menu panel inside the nav bar */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.menu-open { overflow: hidden; }

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  z-index: 82;
}
.logo-mark {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.04em;
}
.logo-sub {
  margin-top: 0.18rem;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.8;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.88;
  transition: opacity 0.25s ease, color 0.25s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-cta { margin-left: 0.4rem; padding: 0.7rem 1.15rem; }

.nav-toggle {
  z-index: 82;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-panel {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  background: var(--ivory);
  color: var(--charcoal);
  z-index: 81;
  padding: calc(var(--nav-h) + 2rem) var(--pad) 3rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
}
.nav.is-open .nav-panel { display: flex; }
.nav-panel a {
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 500;
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}
.nav-panel .nav-panel-cta {
  margin-top: 2rem;
  align-self: flex-start;
  font-family: var(--sans, inherit);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  padding: 1rem 1.6rem;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle, .nav-panel { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  overflow: hidden;
  background: var(--charcoal);
}
.hero-image {
  position: absolute;
  inset: 0;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
@media (max-width: 699px) {
  .hero-image img { object-position: 70% 16%; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(14, 12, 10, 0.78) 0%, rgba(14, 12, 10, 0.38) 38%, rgba(14, 12, 10, 0.18) 100%),
    linear-gradient(to right, rgba(14, 12, 10, 0.42), transparent 58%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(4rem, 10vh, 7rem);
  text-shadow: 0 2px 28px rgba(14, 12, 10, 0.45);
}
.hero-content h1,
.hero-lede { text-shadow: 0 2px 24px rgba(14, 12, 10, 0.55); }
.eyebrow {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.1rem;
}
.hero h1 {
  color: var(--ivory);
  font-size: clamp(2.7rem, 8.4vw, 6.4rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.02;
  max-width: 14ch;
  margin-bottom: 1.25rem;
}
.hero-lede {
  max-width: 28rem;
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(246, 241, 232, 0.86);
  margin-bottom: 2rem;
}
.hero .btn { color: var(--ivory); }

/* ---------- Layout ---------- */
.section {
  padding: clamp(4.5rem, 11vw, 8.5rem) var(--pad);
}
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-inner--wide { max-width: var(--max-wide); margin: 0 auto; }

.kicker {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2.1rem, 5vw, 3.55rem);
  font-weight: 500;
  max-width: 18ch;
  margin-bottom: 1.5rem;
}
.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 38rem;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.about-image {
  margin: 0;
  overflow: hidden;
  background: var(--ivory-deep);
}
.about-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
}
.about-copy .section-title { margin-bottom: 1.35rem; }
.about-copy p { color: var(--ink); max-width: 36rem; }
.about-meta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-meta strong {
  display: block;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 5rem;
  }
}

/* ---------- Services ---------- */
.services-head { margin-bottom: 3rem; }
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.service-card {
  position: relative;
  display: block;
  text-decoration: none;
  background: var(--ivory-deep);
  overflow: hidden;
  min-height: 14rem;
  color: var(--ivory);
}
.service-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.service-card:hover img { transform: scale(1.05); }
.service-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 12, 10, 0.7) 0%, rgba(14, 12, 10, 0.05) 55%);
  pointer-events: none;
}
.service-card-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1rem 1.05rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 3.2vw, 1.7rem);
  font-weight: 500;
  color: var(--ivory);
  z-index: 1;
}
.service-card--text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  aspect-ratio: 3 / 4;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 1.2rem 1.05rem;
  min-height: 0;
}
.service-card--text .service-card-name {
  position: static;
  padding: 0;
  color: var(--ivory);
}
.service-card-note {
  margin-top: 0.45rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  overflow-wrap: anywhere;
  max-width: 100%;
}
.service-card--text:hover { background: #241f1b; }

@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (min-width: 1100px) {
  .services-grid { grid-template-columns: repeat(5, 1fr); gap: 1.05rem; }
  .service-card { min-height: 0; }
}

/* ---------- Portfolio ---------- */
.portfolio { background: var(--paper); }
.portfolio-head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}
.filters-wrap {
  position: relative;
}
.filters {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.15rem 1.5rem 0.5rem 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }
.filters-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0.5rem;
  width: 2rem;
  pointer-events: none;
  background: linear-gradient(to right, transparent, var(--paper));
}
.filter-btn {
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.filter-btn:hover { border-color: var(--charcoal); }
.filter-btn.is-active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--ivory);
}

.masonry {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.masonry-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.masonry figure {
  margin: 0;
  background: var(--ivory-deep);
}
.masonry button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
}
.masonry img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s var(--ease), opacity 0.4s ease;
}
.masonry button:hover img { transform: scale(1.03); }

@media (min-width: 800px) {
  .masonry { gap: 1.05rem; }
  .masonry-col { gap: 1.05rem; }
  .filters { flex-wrap: wrap; overflow: visible; padding-right: 0; }
  .filters-wrap::after { display: none; }
}

/* ---------- Process ---------- */
.process-list {
  display: grid;
  gap: 0;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.process-list li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.35rem 1.25rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.process-list h3 { grid-column: 2; grid-row: 1; }
.process-list p { grid-column: 2; grid-row: 2; }
.process-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold);
  line-height: 1.2;
}
.process-list h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.35rem;
}
.process-list p { color: var(--muted); max-width: 36rem; }

@media (min-width: 800px) {
  .process-list li {
    grid-template-columns: 4rem 16rem 1fr;
    align-items: baseline;
    gap: 0.8rem 1.25rem;
  }
  .process-list h3 { grid-column: 2; grid-row: 1; }
  .process-list p { grid-column: 3; grid-row: 1; }
}

/* ---------- Booking ---------- */
.booking {
  background: var(--charcoal);
  color: var(--ivory);
}
.booking .kicker { color: var(--gold-soft); }
.booking .section-title { color: var(--ivory); max-width: 16ch; }
.booking .lede { color: rgba(246, 241, 232, 0.78); }
.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.booking a.btn { color: var(--ivory); }
.booking a.btn--solid { color: var(--charcoal); }
.booking a.btn--solid:hover { color: var(--ivory); }

/* ---------- Footer ---------- */
.footer {
  background: var(--charcoal);
  color: rgba(246, 241, 232, 0.75);
  padding: 0 var(--pad) 2.5rem;
  border-top: 1px solid rgba(246, 241, 232, 0.1);
}
.footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  padding-top: 2.5rem;
}
.footer-brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.7rem;
  color: var(--ivory);
}
.footer-brand span {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.6);
}
.footer a { color: var(--ivory); text-decoration: none; }
.footer a:hover { color: var(--gold-soft); }
.footer-col { font-size: 0.92rem; }
.footer-col p { margin: 0 0 0.35rem; }
.footer-copy {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(246, 241, 232, 0.1);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(246, 241, 232, 0.45);
}
@media (min-width: 800px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
  .footer-copy { grid-column: 1 / -1; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14, 12, 10, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem 2.5rem;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(100%, 1200px);
  max-height: calc(100svh - 6rem);
  max-height: calc(100dvh - 6rem);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: var(--shadow);
  user-select: none;
}
.lightbox-caption {
  position: absolute;
  bottom: 0.85rem;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(246, 241, 232, 0.7);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.lightbox-btn {
  position: absolute;
  border: 0;
  background: none;
  color: var(--ivory);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}
.lightbox-btn:hover { opacity: 1; }
.lightbox-close { top: 0.6rem; right: 0.4rem; font-size: 1.8rem; }
.lightbox-prev { left: 0.1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0.1rem; top: 50%; transform: translateY(-50%); }

body.lightbox-open { overflow: hidden; }

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .service-card:hover img,
  .masonry button:hover img { transform: none; }
}

/* ---------- Dark charcoal theme (overrides) ---------- */
:root {
  --ink: #e6dfd3;
  --muted: #a79e91;
  --ivory-deep: #26231f;
  --paper: #211e1b;
  --line: rgba(246, 241, 232, 0.12);
  --line-strong: rgba(246, 241, 232, 0.26);
}
body { background: #1c1a17; color: var(--ink); }
h1, h2, h3, h4, .about-meta strong { color: #f6f1e8; }
.btn--dark { color: #f6f1e8; border-color: rgba(246, 241, 232, 0.6); }
.btn--dark:hover { background: #f6f1e8; color: #1a1714; }
.btn--gold-ghost { color: #f6f1e8; }
.nav.is-scrolled { background: rgba(28, 26, 23, 0.92); color: #f6f1e8; box-shadow: 0 1px 0 rgba(246, 241, 232, 0.08); }
.nav.is-open, .nav-panel { background: #1c1a17; color: #f6f1e8; }
.filter-btn:hover { border-color: #f6f1e8; }
.filter-btn.is-active { background: #f6f1e8; border-color: #f6f1e8; color: #1a1714; }
.booking { background: #141210; }
.footer { background: #0f0e0c; }
