/* 1025 Photography — Cinematic editorial design */
:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #121212;
  --color-text: #f5f0e8;
  --color-text-muted: #a39e94;
  --color-accent: #d4a853;
  --color-accent-hover: #e4b963;
  --color-cta-primary-bg: transparent;
  --color-cta-primary-text: var(--color-text);
  --color-cta-primary-border: rgba(255, 255, 255, 0.5);
  --color-cta-primary-hover-bg: rgba(255, 255, 255, 0.12);
  --color-cta-secondary-color: var(--color-accent);
  --color-cta-secondary-hover-bg: var(--color-accent);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-header-bg: rgba(10, 10, 10, 0.92);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --radius: 6px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-xl);
  background: var(--color-header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s var(--ease-out);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.site-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}

.nav-dropdown:hover .nav-dropdown-trigger::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  min-width: 140px;
  padding: var(--space-xs);
  background: var(--color-header-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.2s;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 4px;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s var(--ease-out);
  letter-spacing: 0.02em;
}

.nav a:hover {
  color: var(--color-text);
}

.nav-instagram {
  color: var(--color-accent);
  font-weight: 600;
}

.nav-instagram:hover {
  color: var(--color-accent-hover);
}

.nav-active {
  color: var(--color-text) !important;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: white;
  transition: transform 0.3s var(--ease-out);
}

/* Hero — full viewport, cinematic */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.3) 0%,
    rgba(10, 10, 10, 0.5) 40%,
    rgba(10, 10, 10, 0.85) 100%
  );
  pointer-events: none;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  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");
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(80px + var(--space-2xl)) var(--space-xl) var(--space-2xl);
  max-width: 900px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md);
  color: white;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.4);
}

.hero-title-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1s var(--ease-out) forwards;
}

.hero-title-line:nth-child(1) {
  animation-delay: 0.2s;
}

.hero-title-line:nth-child(2) {
  animation-delay: 0.35s;
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 var(--space-xl);
  opacity: 0;
  animation: heroReveal 0.8s var(--ease-out) 0.5s forwards;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  opacity: 0;
  animation: heroReveal 0.8s var(--ease-out) 0.7s forwards;
}

.hero-links .btn {
  margin: 0;
}

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.2s var(--ease-out);
}

.btn-primary {
  background: var(--color-cta-primary-bg);
  color: var(--color-cta-primary-text);
  border: 1px solid var(--color-cta-primary-border);
}

.btn-primary:hover {
  background: var(--color-cta-primary-hover-bg);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-cta-secondary-color);
  border: 2px solid var(--color-cta-secondary-color);
}

.btn-secondary:hover {
  background: var(--color-cta-secondary-hover-bg);
  color: var(--color-cta-primary-text);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  opacity: 0;
  animation: heroReveal 0.8s var(--ease-out) 1.2s forwards;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.5;
    transform: scaleY(0.8);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Gallery page */
.gallery-page {
  padding-top: 80px;
  min-height: 100vh;
}

.gallery-page .gallery h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  margin: 0 0 var(--space-xs);
  text-align: center;
  color: var(--color-text);
}

/* Gallery */
.gallery {
  padding: var(--space-2xl) var(--space-xl);
  max-width: 1400px;
  margin: 0 auto;
  background: var(--color-bg-alt);
}

.gallery h2,
.about h2,
.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin: 0 0 var(--space-xs);
  text-align: center;
  color: var(--color-text);
}

.section-intro {
  text-align: center;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-xl);
  font-size: 1.05rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  pointer-events: none;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.load-more-wrap {
  text-align: center;
  margin-top: var(--space-xl);
}

.gallery-error {
  text-align: center;
  color: var(--color-text-muted);
  padding: var(--space-xl);
}

/* Page content (About, Contact, etc.) */
.page-body {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}
.page-body p { margin: 0 0 var(--space-md); }
.page-body h2 { font-family: var(--font-display); font-size: 1.75rem; margin: var(--space-lg) 0 var(--space-sm); color: var(--color-text); }
.page-body h3 { font-size: 1.25rem; margin: var(--space-md) 0 var(--space-xs); color: var(--color-text); }
.page-body h4 { font-size: 1.1rem; margin: var(--space-sm) 0 var(--space-xs); color: var(--color-text); }
.page-body ul, .page-body ol { margin: 0 0 var(--space-md); padding-left: 1.5rem; }
.page-body li { margin-bottom: var(--space-xs); }
.page-body a { color: var(--color-accent); }
.page-body a:hover { color: var(--color-accent-hover); }

/* About */
.slices {
  padding: 0;
}

.slice-text-block {
  padding: var(--space-3xl) var(--space-xl);
  max-width: 720px;
  margin: 0 auto;
}

.slice-text-content p {
  margin: 0 0 var(--space-md);
}

.slice-text-content p:last-child {
  margin-bottom: 0;
}

/* Page (About, etc.) with slices */
.page-main {
  padding: calc(80px + var(--space-2xl)) var(--space-xl) var(--space-3xl);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin: 0 0 var(--space-2xl);
}

.page-slices {
  max-width: 720px;
  margin: 0 auto;
}

.slice-hero-small {
  width: 100%;
  max-height: 40vh;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: var(--space-2xl);
}

.slice-hero-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slice-image-with-text {
  margin-bottom: var(--space-2xl);
}

.slice-image-with-text-inner {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

@media (min-width: 769px) {
  .slice-image-with-text-inner {
    grid-template-columns: 280px 1fr;
  }
}

.slice-image-with-text .slice-image img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

.slice-image-with-text .slice-text p {
  margin: 0 0 var(--space-md);
}

.slice-image-with-text .slice-text p:last-child {
  margin-bottom: 0;
}

.about {
  padding: var(--space-3xl) var(--space-xl);
  max-width: 680px;
  margin: 0 auto;
}

.about-content p {
  margin: 0 0 var(--space-md);
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.about-content .btn {
  margin-top: var(--space-md);
}

/* Contact */
.contact {
  padding: var(--space-3xl) var(--space-xl);
  background: var(--color-bg-alt);
}

.contact-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  max-width: 600px;
  margin: 0 auto;
}

.contact-card {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out), transform 0.2s var(--ease-out);
}

.contact-card:hover {
  border-color: rgba(212, 168, 83, 0.4);
  background: rgba(212, 168, 83, 0.06);
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.contact-value {
  font-weight: 500;
  color: var(--color-accent);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s var(--ease-out);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 48px;
  height: 48px;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

/* Footer */
.footer {
  padding: var(--space-xl);
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

.footer-links {
  margin-top: var(--space-sm);
}

.footer-links a {
  color: var(--color-accent);
}

.footer-links a:hover {
  color: var(--color-accent-hover);
}

/* Mobile */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: var(--space-lg);
    background: var(--color-header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-dropdown {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-dropdown-trigger::after {
    display: none;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin: var(--space-xs) 0 0 var(--space-md);
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .nav.open .nav-dropdown-menu {
    display: block;
  }

  .menu-toggle {
    display: flex;
  }

  .logo-img {
    height: 28px;
  }

  .hero-title {
    font-size: clamp(2.75rem, 12vw, 4rem);
  }

  .hero-tagline {
    letter-spacing: 0.1em;
  }

  .hero-links {
    flex-direction: column;
  }

  .hero-links .btn {
    width: 100%;
    max-width: 240px;
  }

  .hero-scroll {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
}
