/* ============================================================
   KRISTIAN EUSTACE PHOTOGRAPHY — style.css
   ============================================================ */

:root {
  --dark1:     #161C2A;
  --dark2:     #1F2535;
  --champagne: #C8B99A;
  --warm-grey: #6E6A60;
  --cream:     #F5F2EC;
  --light:     #FAFAF8;
  --white:     #FFFFFF;
  --accent:    #1A4F8A;

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Space Grotesk', system-ui, sans-serif;

  --container: 1140px;
  --pad-h:     32px;
  --nav-h:     68px;
  --ease:      0.25s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: var(--nav-h); scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--light);
  color: var(--dark1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul[role="list"] { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-h);
}

/* ── SHARED TYPE ── */
.section-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.12;
  color: var(--dark1);
}

.section-title em {
  font-style: italic;
  font-weight: 400;
}

.section-sub {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--warm-grey);
  max-width: 480px;
}

.section-header { margin-bottom: 56px; }

/* ── FADE IN ── */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

/* ============================================================
   NAV
   ============================================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--ease), box-shadow var(--ease);
  background: transparent;
}

#nav.scrolled {
  background: rgba(250,250,248,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.07);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--white);
  transition: color var(--ease);
}

#nav.scrolled .nav-logo { color: var(--dark1); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color var(--ease);
}

#nav.scrolled .nav-links a { color: var(--dark1); }
.nav-links a:hover { color: var(--white); }
#nav.scrolled .nav-links a:hover { color: var(--accent); }

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 3px;
  padding: 8px 0;
  min-width: 130px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  transform: translateX(-50%) translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  list-style: none;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: block;
  padding: 9px 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark1) !important;
}

.dropdown a:hover { color: var(--accent) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.22s ease, opacity 0.22s ease, background var(--ease);
}

#nav.scrolled .nav-toggle span { background: var(--dark1); }

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  z-index: 99;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu ul { list-style: none; padding: 12px 24px 24px; }
.mobile-menu li a {
  display: block;
  padding: 13px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dark1);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.mobile-menu li:last-child a { border-bottom: none; }
.mobile-menu li a:hover { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--dark1);
}

.hero-image {
  position: absolute;
  inset: 0;
  background: #1F2535;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.75;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(22,28,42,0.80) 0%,
    rgba(22,28,42,0.10) 60%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  padding-bottom: 72px;
}

.hero-text {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-h);
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--champagne);
  display: block;
  margin-bottom: 16px;
}

.hero-heading {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.08;
  color: var(--white);
}

.hero-heading em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio {
  background: var(--light);
  padding: 96px 0 80px;
}

.portfolio-category {
  margin-bottom: 80px;
}

.portfolio-category:last-of-type { margin-bottom: 0; }

.category-title {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--warm-grey);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Photo grid — Branding: mixed sizes */
.photo-grid {
  display: grid;
  gap: 10px;
}

.photo-grid--branding {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
}

.photo-grid--portraits {
  grid-template-columns: repeat(3, 1fr);
}

.photo-item {
  background: rgba(0,0,0,0.06);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.22s ease;
}

.photo-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.photo-item:hover { opacity: 0.88; }
.photo-item:hover img { transform: scale(1.02); }

.photo-item--wide { grid-column: span 2; }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 60px 80px;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.60);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 28px;
  line-height: 1;
  color: rgba(255,255,255,0.70);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease;
  font-family: var(--sans);
}

.lightbox-close:hover { color: var(--white); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.50);
  font-size: 28px;
  cursor: pointer;
  padding: 16px;
  transition: color 0.15s ease;
  font-family: var(--sans);
}

.lightbox-prev:hover,
.lightbox-next:hover { color: var(--white); }

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.35);
}

.prints-note {
  margin-top: 48px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--warm-grey);
  text-align: center;
}

.prints-note a {
  color: var(--dark1);
  border-bottom: 1px solid rgba(0,0,0,0.20);
  padding-bottom: 1px;
  transition: border-color 0.2s ease;
}

.prints-note a:hover { border-color: var(--dark1); }

/* ============================================================
   BLOG
   ============================================================ */
.blog {
  background: var(--cream);
  padding: 96px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  background: var(--white);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.blog-card:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.09);
  transform: translateY(-3px);
}

.blog-card-image {
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,0.06);
}

.blog-card-body {
  padding: 24px 24px 28px;
}

.blog-meta {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-grey);
  margin-bottom: 10px;
}

.blog-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  color: var(--dark1);
  margin-bottom: 10px;
}

.blog-excerpt {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--warm-grey);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--dark1);
  padding: 96px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  aspect-ratio: 3 / 4;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(200,185,154,0.12);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image span {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(200,185,154,0.28);
}

.about .section-eyebrow { color: var(--champagne); }
.about .section-title   { color: var(--white); }

.about-body {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-body p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.82;
  color: rgba(255,255,255,0.52);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--light);
  padding: 96px 0 0;
}

.contact-inner {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 80px;
}

.contact .section-eyebrow { text-align: center; }

.contact-body {
  margin-top: 20px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--warm-grey);
}

.contact-email {
  display: inline-block;
  margin-top: 36px;
  font-family: var(--serif);
  font-size: clamp(16px, 2.2vw, 22px);
  font-style: italic;
  color: var(--dark1);
  border-bottom: 1px solid rgba(0,0,0,0.20);
  padding-bottom: 4px;
  transition: border-color 0.2s ease;
}

.contact-email:hover { border-color: var(--dark1); }

.social-links {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-grey);
  transition: color 0.2s ease;
}

.social-link:hover { color: var(--dark1); }

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid rgba(0,0,0,0.07);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
  color: var(--dark1);
  letter-spacing: 0.04em;
}

.footer-copy {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(0,0,0,0.28);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .nav-links   { display: none; }
  .nav-toggle  { display: flex; }

  .blog-grid   { grid-template-columns: 1fr 1fr; }

  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-image { max-height: 360px; }
}

@media (max-width: 640px) {
  :root { --pad-h: 20px; }

  .photo-grid--branding,
  .photo-grid--portraits { grid-template-columns: 1fr 1fr; }
  .photo-item--wide      { grid-column: span 2; }

  .blog-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}
