/* ============================================================
   KARLOZ PHOTOGRAPHY — style.css
   Colors: #262424 (bg), #EEE5DA (cream), #C9A96E (gold)
   Fonts: Cormorant Garamond (display) + Jost (sans)
   ============================================================ */

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

:root {
  --bg:        #262424;
  --cream:     #EEE5DA;
  --gold:      #C9A96E;
  --cream-dim: rgba(238,229,218,0.55);
  --cream-20:  rgba(238,229,218,0.15);
  --cream-10:  rgba(238,229,218,0.07);
  --nav-h:     76px;
  --border:    3px solid #262424;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(38,36,36,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-20);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 600;
  letter-spacing: 0.24em; color: var(--cream);
}
.logo-sub {
  font-size: 8px; font-weight: 400;
  letter-spacing: 0.4em; color: var(--gold);
  text-transform: uppercase;
}
.logo-tag {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 10px;
  color: rgba(238,229,218,0.38); letter-spacing: 0.04em;
}

.main-nav { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-size: 10px; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(238,229,218,0.5);
  position: relative; padding-bottom: 4px;
  transition: color 0.2s; cursor: pointer;
}
.nav-link::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; width: 0; height: 1px;
  background: var(--gold); transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--cream); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta {
  font-size: 10px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bg); background: var(--cream);
  padding: 11px 24px; transition: background 0.2s;
}
.nav-cta:hover { background: var(--gold); color: var(--bg); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 1px; background: var(--cream); }

.mobile-nav {
  display: none; flex-direction: column;
  background: var(--bg); border-top: 1px solid var(--cream-20);
  padding: 20px 48px; gap: 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--cream-dim);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 80px) 60px 80px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #3a3030 0%, #1e1c1c 60%, #2a2626 100%);
}
.hero-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; opacity: 0.6;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(38,36,36,0.92) 0%, rgba(38,36,36,0.3) 55%, rgba(38,36,36,0.1) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 1400px; margin: 0 auto; width: 100%; }
.eyebrow {
  font-size: 10px; font-weight: 400;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(64px, 9vw, 118px);
  font-weight: 300; line-height: 0.95;
  color: var(--cream); margin-bottom: 28px;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-body {
  max-width: 480px; font-size: 15px; font-weight: 300;
  color: rgba(238,229,218,0.6); line-height: 1.85; margin-bottom: 40px;
}
.btn-primary {
  display: inline-block; font-size: 10px; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bg); background: var(--cream);
  padding: 16px 36px; transition: background 0.25s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold); transform: translateY(-2px); }

/* ===== SEO STRIP ===== */
.seo-strip {
  max-width: 1400px; margin: 0 auto;
  padding: 36px 60px 48px;
  border-top: 1px solid var(--cream-20);
}
.seo-strip p { font-size: 13px; color: rgba(238,229,218,0.65); line-height: 1.95; }
.seo-strip strong { color: rgba(238,229,218,0.6); font-weight: 400; }

/* ===== PORTFOLIO GRID ===== */
.grid-header {
  max-width: 1400px; margin: 0 auto;
  padding: 0 60px 28px;
  display: flex; align-items: center; gap: 20px;
}
.grid-label {
  font-size: 9px; font-weight: 400;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(238,229,218,0.35); white-space: nowrap;
}
.grid-rule { flex: 1; height: 1px; background: var(--cream-20); }

/* 4-column grid with dark background as border/frame */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  background: var(--bg);
  padding: 3px;
}

.grid-item {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #1c1a1a;
  cursor: pointer;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  outline: 1px solid rgba(238,229,218,0.08);
}
.grid-item.visible { opacity: 1; transform: translateY(0); }
.grid-item:nth-child(4n+2) { transition-delay: 0.08s; }
.grid-item:nth-child(4n+3) { transition-delay: 0.16s; }
.grid-item:nth-child(4n+4) { transition-delay: 0.24s; }

.grid-item img {
  transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.grid-item:hover img { transform: scale(1.05); }

/* Session indicator dot */
.grid-item::after {
  content: attr(data-count);
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(38,36,36,0.85);
  color: var(--gold);
  font-size: 9px; font-weight: 400;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  opacity: 0; transition: opacity 0.2s;
}
.grid-item:hover::after { opacity: 1; }

/* ===== SESSION GALLERY OVERLAY ===== */
.session-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(38,36,36,0.97);
  backdrop-filter: blur(8px);
  display: none; flex-direction: column;
  overflow-y: auto;
}
.session-overlay.open { display: flex; }

.session-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(38,36,36,0.98);
  border-bottom: 1px solid var(--cream-20);
  padding: 20px 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.session-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 300;
  color: var(--cream); letter-spacing: 0.06em;
}
.session-close {
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--cream-20);
  color: var(--cream); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 300;
  transition: border-color 0.2s, background 0.2s;
}
.session-close:hover { border-color: var(--cream); background: var(--cream-10); }

.session-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px; padding: 3px;
  background: var(--bg); flex: 1;
}
.session-grid-item {
  aspect-ratio: 4/5; overflow: hidden;
  cursor: pointer; position: relative;
  outline: 1px solid rgba(238,229,218,0.08);
}
.session-grid-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}
.session-grid-item:hover img { transform: scale(1.04); }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(20,18,18,0.97);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 88vw; max-height: 90vh;
  object-fit: contain; display: block;
}
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  width: 48px; height: 48px;
  background: none; border: 1px solid rgba(238,229,218,0.3);
  color: var(--cream); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 300;
  transition: border-color 0.2s;
}
.lightbox-close:hover { border-color: var(--cream); }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 1px solid rgba(238,229,218,0.2);
  color: var(--cream); width: 48px; height: 64px;
  cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.lightbox-prev:hover, .lightbox-next:hover { border-color: var(--cream); background: var(--cream-10); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ===== PAGE HERO ===== */
.page-hero {
  padding: calc(var(--nav-h) + 60px) 60px 48px;
  border-bottom: 1px solid var(--cream-20);
  max-width: 1400px; margin: 0 auto;
}
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 300; line-height: 1.0; margin-top: 14px;
}
.page-hero h1 em { font-style: italic; color: var(--gold); }

/* ===== TESTIMONIALS ===== */
.testimonials-section { padding-bottom: 80px; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px; padding: 2px;
}
.testimonial-card {
  background: rgba(238,229,218,0.025);
  border: 1px solid rgba(238,229,218,0.07);
  padding: 36px 32px;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s;
}
.testimonial-card.visible { opacity: 1; transform: translateY(0); }
.testimonial-card:hover { border-color: rgba(201,169,110,0.25); }

.t-quote-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px; font-weight: 300;
  color: var(--gold); opacity: 0.45;
  line-height: 0.7; margin-bottom: 18px;
}
.t-quote {
  font-size: 14px; color: rgba(238,229,218,0.62);
  line-height: 1.9; margin-bottom: 24px;
}
.t-author { display: flex; align-items: center; gap: 14px; }
.t-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(201,169,110,0.12);
  border: 1px solid rgba(201,169,110,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 500; color: var(--gold);
  letter-spacing: 0.06em; flex-shrink: 0;
}
.t-name { font-size: 13px; font-weight: 500; color: var(--cream); margin-bottom: 3px; }
.t-role { font-size: 10px; color: rgba(238,229,218,0.38); letter-spacing: 0.06em; }

.testimonials-cta {
  padding: 56px 60px; text-align: center;
  border-top: 1px solid var(--cream-20);
}
.testimonials-cta p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px; font-weight: 300; font-style: italic;
  color: rgba(238,229,218,0.65); margin-bottom: 28px;
}
.testimonials-cta p em { color: var(--gold); }

/* ===== ABOUT ===== */
.about-section { padding-bottom: 0; }
.about-inner {
  display: grid; grid-template-columns: 1fr 1.6fr;
  border-bottom: 1px solid var(--cream-20);
}
.about-photo {
  border-right: 1px solid var(--cream-20);
  min-height: 500px; overflow: hidden;
  opacity: 0; transform: translateX(-16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.about-photo.visible { opacity: 1; transform: translateX(0); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-placeholder {
  width: 100%; height: 100%; min-height: 500px;
  background: linear-gradient(135deg, #2e2b2b, #1a1818);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
}
.about-photo-placeholder span { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(238,229,218,0.15); }
.about-photo-placeholder small { font-size: 9px; color: rgba(238,229,218,0.07); }

.about-bio {
  padding: 56px 56px;
  opacity: 0; transform: translateX(16px);
  transition: opacity 0.6s ease, transform 0.6s ease 0.1s;
}
.about-bio.visible { opacity: 1; transform: translateX(0); }
.about-bio h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px; font-weight: 300; margin-bottom: 24px;
}
.about-lead {
  font-size: 16px; color: rgba(238,229,218,0.8);
  line-height: 1.8; margin-bottom: 18px;
}
.about-bio p {
  font-size: 14px; color: rgba(238,229,218,0.55);
  line-height: 1.95; margin-bottom: 16px;
}
.about-bio em { font-style: italic; color: rgba(238,229,218,0.8); }

.about-details { margin-top: 32px; border-top: 1px solid var(--cream-20); padding-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.about-detail-item { display: flex; flex-direction: column; gap: 4px; }
.detail-label { font-size: 8px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.detail-value { font-size: 13px; color: rgba(238,229,218,0.55); }

/* ===== CONTACT ===== */
.contact-section { padding: 72px 60px; max-width: 1400px; margin: 0 auto; }
.contact-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px; font-weight: 300; margin-bottom: 8px;
}
.contact-sub { font-size: 13px; color: rgba(238,229,218,0.4); margin-bottom: 40px; }

.contact-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.contact-card {
  border: 1px solid rgba(238,229,218,0.1);
  padding: 32px 24px;
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; text-align: center; cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.25s;
}
.contact-card.visible { opacity: 1; transform: translateY(0); }
.contact-card:nth-child(2) { transition-delay: 0.1s; }
.contact-card:nth-child(3) { transition-delay: 0.2s; }
.contact-card:hover { border-color: rgba(201,169,110,0.4); background: rgba(201,169,110,0.03); }
.contact-icon svg { width: 24px; height: 24px; stroke: var(--gold); }
.contact-label { font-size: 8px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(238,229,218,0.3); }
.contact-val { font-size: 12px; color: rgba(238,229,218,0.65); }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--cream-20);
  padding: 48px 60px 28px;
}
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 28px;
  flex-wrap: wrap; gap: 24px;
}
.footer-contact { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.footer-contact a {
  font-size: 12px; letter-spacing: 0.08em;
  color: rgba(238,229,218,0.4); transition: color 0.2s;
}
.footer-contact a:hover { color: var(--cream); }
.footer-nav { display: flex; gap: 28px; margin-bottom: 20px; max-width: 1400px; margin: 0 auto 20px; }
.footer-nav a {
  font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(238,229,218,0.28); transition: color 0.2s;
}
.footer-nav a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid rgba(238,229,218,0.06);
  padding-top: 18px; max-width: 1400px; margin: 0 auto;
}
.footer-bottom p { font-size: 9px; color: rgba(238,229,218,0.18); letter-spacing: 0.08em; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .session-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { border-right: none; border-bottom: 1px solid var(--cream-20); min-height: 320px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .header-inner { padding: 0 24px; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .hero { padding: calc(var(--nav-h) + 40px) 24px 48px; }
  .seo-strip, .grid-header, .contact-section { padding-left: 24px; padding-right: 24px; }
  .page-hero { padding: calc(var(--nav-h) + 40px) 24px 36px; }
  .site-footer { padding: 40px 24px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-contact { align-items: flex-start; }
}
.session-extra { display: none; }
