/* ─────────────────────────────────────────────────────────────
   A. Morgan Photography — Main Stylesheet
   Replace font names, colors, and variables to customize.
───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@200;300;400;500&display=swap');

/* ─── CSS VARIABLES — edit these to retheme the whole site ── */
:root {
  --paper:  #f7f5f0;   /* page background */
  --cream:  #ede9e1;   /* card / section backgrounds */
  --stone:  #c8c3b8;   /* borders, decorative rules */
  --ash:    #8a8680;   /* muted text */
  --ink:    #1c1b18;   /* primary text & buttons */
  --warm:   #a89070;   /* accent (italic highlights) */
  --rule:   #e2ddd6;   /* divider lines */

  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'Jost', sans-serif;
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img  { display: block; width: 100%; height: 100%; object-fit: cover; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
}

/* Subtle grain overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ─── NAVIGATION ─────────────────────────────────────────────── */
/* Header/nav bar — muted cool slate gray */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 4rem;
  background: rgba(174, 184, 195, 0.92);   /* muted slate */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s;
}
nav.scrolled { border-color: rgba(0, 0, 0, 0.12); }

.nav-logo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
}

.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: #3d3a35;                          /* darker for readable contrast on slate */
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 100%;
  height: 1px;
  background: var(--ink);
  transition: right 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn-ink {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  background: var(--ink);
  color: var(--paper);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s, transform 0.2s;
}
.btn-ink:hover { background: #333; transform: translateY(-1px); }

.btn-ghost {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
  text-decoration: none;
  border-bottom: 1px solid var(--stone);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
  background: none;
  border-top: none; border-left: none; border-right: none;
  cursor: pointer;
  font-family: var(--sans);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }

.btn-paper {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  background: var(--paper);
  color: var(--ink);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.btn-paper:hover { background: var(--cream); transform: translateY(-1px); }

/* ─── DIVIDER ────────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 4rem;
  margin: 1rem 0;
}
.divider-line  { flex: 1; height: 1px; background: var(--rule); }
.divider-text  {
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--stone);
  white-space: nowrap;
}

/* ─── SECTION HEADER ─────────────────────────────────────────── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3.5rem;
}
.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--ash); }
.section-link {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.section-link:hover { color: var(--ink); border-color: var(--stone); }

/* ─── LIGHTBOX ───────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0;
  z-index: 1000;
  background: rgba(10,10,8,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox-inner {
  width: min(85vw, 1000px);
  position: relative;
  transform: scale(0.96);
  transition: transform 0.4s ease;
}
.lightbox.open .lightbox-inner { transform: scale(1); }

.lightbox-img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -2.5rem; right: 0;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #666;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.3s;
  font-family: var(--sans);
}
.lightbox-close:hover { color: var(--paper); }

.lightbox-caption {
  margin-top: 1rem;
  font-family: var(--serif);
  font-size: 0.85rem;
  font-style: italic;
  color: #666;
  text-align: center;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--ink);
  color: #444;
  border-top: 1px solid #222;
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 300;
  color: #666;
  letter-spacing: 0.08em;
  text-transform: none;
}
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { color: #444; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: #888; }

/* ─── SCROLL REVEAL ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── RESPONSIVE — basic mobile breakpoint ───────────────────── */
@media (max-width: 768px) {
  nav { padding: 1.25rem 1.5rem; }
  .nav-links { gap: 1.25rem; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
}
