/* ============================================================
   home.css — Public homepage (home/index.php)
   Photography portfolio landing page
   ============================================================ */

/* ── Base ─────────────────────────────────────────────────────── */
.home-body {
  background: var(--bg);
  color: var(--t1);
  overflow-x: hidden;
}

/* ── Navigation ──────────────────────────────────────────────── */
.home-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 60px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.home-nav.scrolled {
  background: rgba(12,12,11,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 2rem;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--t1);
  letter-spacing: 0.06em;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--t1); }
.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--t3);
  padding: 0.4rem 0.75rem;
  border-radius: var(--r99);
  transition: all var(--fast);
  letter-spacing: 0.03em;
  text-decoration: none;
}
.nav-link:hover {
  color: var(--t1);
  background: rgba(255,255,255,0.06);
}

.nav-right { flex-shrink: 0; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--t2);
  border-radius: 1px;
  transition: all var(--fast);
}

/* Mobile nav */
@media (max-width: 680px) {
  .nav-links {
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(12,12,11,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    display: none;
    z-index: 199;
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; text-align: center; padding: 0.65rem; }
  .nav-burger { display: flex; }
  .nav-right { display: none; }
  .nav-inner { padding: 0 1rem; }
}

/* ── Hero ─────────────────────────────────────────────────────── */
/* ── Hero ─────────────────────────────────────────────────────── */
/* Mobile-first: 3 images stack vertically, filling full screen */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 60px;
}

/* ─── Background: 3 tiles ─────────────────────────────────────
   Mobile default: stacked vertically (3 rows, each 1/3 height)
   Desktop ≥768px: side by side (3 columns, each 1/3 width)
──────────────────────────────────────────────────────────────── */
.hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column; /* mobile: stack rows */
  gap: 3px;
}

.hero-bg-tile {
  flex: 1 1 0;           /* equal share of space */
  background-size: cover;
  background-position: center;
  background-color: var(--surface2);
}

/* Slightly varied opacity so all three read as distinct photos */
.hero-bg-tile:nth-child(1) { opacity: 0.60; }
.hero-bg-tile:nth-child(2) { opacity: 0.50; }
.hero-bg-tile:nth-child(3) { opacity: 0.60; }

/* Dark gradient from bottom — text always readable */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.20) 0%,
    rgba(0,0,0,0.50) 45%,
    rgba(0,0,0,0.80) 100%
  );
}

/* ── Hero text content ────────────────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 700px;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 0.1s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.2s both;
}

.hero-sub {
  font-size: clamp(0.88rem, 2.5vw, 1rem);
  color: rgba(255,255,255,0.80);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.35s both;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.5s both;
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: fadeIn 1s ease 1.2s both;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Desktop: switch to 3 side-by-side columns ────────────────── */
@media (min-width: 768px) {
  .hero-bg {
    flex-direction: row;
  }
  .hero-bg-tile:nth-child(1),
  .hero-bg-tile:nth-child(2),
  .hero-bg-tile:nth-child(3) { opacity: 0.38; }
  .hero-overlay {
    background: linear-gradient(
      135deg,
      rgba(0,0,0,0.65) 0%,
      rgba(0,0,0,0.40) 50%,
      rgba(0,0,0,0.70) 100%
    );
  }
  .hero-title { color: var(--t1); text-shadow: none; }
  .hero-sub   { color: var(--t3); }
}


/* ── Section shared ──────────────────────────────────────────── */
.home-section {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--t1);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 0.9rem;
  color: var(--t3);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 2.5rem;
}

/* ── Portfolio grid ──────────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  margin-bottom: 2rem;
}
.portfolio-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface2);
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.portfolio-item-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--surface2);
  transition: transform 0.5s ease;
}
.portfolio-item:hover .portfolio-item-bg { transform: scale(1.05); }
.portfolio-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.portfolio-item:hover .portfolio-item-overlay { opacity: 1; }
.portfolio-item-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
  font-weight: 400;
}
.portfolio-item-count {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  margin-top: 0.1rem;
}
/* Visible animation class */
.portfolio-item.visible { animation: fadeUp 0.5s var(--ease) both; }

/* ── About section ───────────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img-inner {
  border-radius: var(--r16);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--surface2);
}
.about-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-initials {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 300;
  color: var(--t4);
  letter-spacing: 0.1em;
}
.about-img-accent {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  width: 120px;
  height: 120px;
  border: 2px solid var(--gold);
  border-radius: var(--r16);
  opacity: 0.3;
  pointer-events: none;
}
.about-body {
  color: var(--t2);
}
.about-body-wrap {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--t2);
  margin-bottom: 1.5rem;
}
.about-body-wrap p { margin-bottom: 0.85rem; }
.about-body-wrap p:last-child { margin-bottom: 0; }

/* ── Services ────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r12);
  padding: 1.5rem;
  transition: border-color var(--fast), transform var(--mid);
}
.service-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-2px);
}
.service-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.service-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--t1);
  margin-bottom: 0.4rem;
}
.service-desc { font-size: 0.8rem; color: var(--t3); line-height: 1.65; }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-wrap {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--surface);
  border-radius: var(--r24);
  border: 1px solid var(--border);
  max-width: 640px;
  margin: 0 auto;
}
.contact-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ── Footer ──────────────────────────────────────────────────── */
.home-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--t3);
  letter-spacing: 0.05em;
}
.footer-copy { font-size: 0.72rem; color: var(--t4); }
.footer-links {
  display: flex;
  gap: 1rem;
}
.footer-links a {
  font-size: 0.74rem;
  color: var(--t4);
  transition: color var(--fast);
}
.footer-links a:hover { color: var(--gold); }

/* ── Scroll-reveal ───────────────────────────────────────────── */
.anim-watch {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim-watch.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .about-layout { grid-template-columns: 1fr; gap: 2rem; }
  .about-img-inner { aspect-ratio: 1; max-width: 280px; margin: 0 auto; }
  .about-img-accent { display: none; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }


}
@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .home-section { padding: 3rem 1rem; }
}

/* ── Missing home page layout classes ────────────────────────── */

/* Generic section wrapper */
.section {
  padding: 5rem 0;
}
.section--tinted {
  background: var(--surface);
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section headers */
.section-head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.section-head-center {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

/* Portfolio item sub-elements */
.portfolio-item-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--surface2);
  transition: transform 0.5s ease;
}
.portfolio-item:hover .portfolio-item-img { transform: scale(1.05); }

.portfolio-item-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.portfolio-item:hover .portfolio-item-info { opacity: 1; }

.portfolio-item-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.4rem 0.9rem;
  border-radius: var(--r99);
  backdrop-filter: blur(4px);
}

/* Scroll indicator line */
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 0 auto;
}

/* Contact section inner */
.contact-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .section-head-split { flex-direction: column; align-items: flex-start; }
}
