/* ==========================================================================
   ERIK ZAP'S GRAPHICS - Ultra-Minimalist Photography Portfolio Design System
   ========================================================================== */

:root {
  --bg-color: #0a0a0a;
  --surface-color: #121212;
  --border-color: #222222;
  --border-focus: #ffffff;
  --text-primary: #ffffff;
  --text-secondary: #8e8e93;
  --text-muted: #555555;
  --accent-color: #ffffff;
  --nav-height: 80px;
  --max-width: 1300px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s ease, color 0.25s ease;
}

a:hover {
  opacity: 0.8;
}

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

/* --------------------------------------------------------------------------
   HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.header-nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
}

.nav-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   HAMBURGER BUTTON
   -------------------------------------------------------------------------- */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Transform into 'X' when open */
.hamburger-btn.open .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.open .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.open .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 4px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   LAYOUT CONTAINERS & SECTIONS
   -------------------------------------------------------------------------- */
main {
  flex: 1;
}

.section {
  padding: 120px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-full {
  padding: 0;
  max-width: 100%;
}

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

.section-title {
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 600px;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.92);
}

.hero-overlay {
  position: absolute;
  bottom: 60px;
  left: 40px;
  right: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  pointer-events: none;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.05;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.hero-title-part {
  display: inline;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 14px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px 18px;
  white-space: nowrap;
}

.hero-sub-item {
  white-space: nowrap;
}

.hero-sub-dot {
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   ABOUT ME SECTION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-images-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-img {
  width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: cover;
  filter: grayscale(15%) contrast(105%);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.about-img:hover {
  filter: grayscale(0%) contrast(100%);
}

.about-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-bio {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.85;
  color: #d1d1d6;
  letter-spacing: 0.01em;
}

.about-subheading {
  margin-top: 32px;
  margin-bottom: 20px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.about-list,
.about-text-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
  margin: 0;
}

.about-list li,
.about-text-col li {
  position: relative;
  padding-left: 28px;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  color: #d1d1d6;
}

.about-list li::before,
.about-text-col li::before {
  content: '◦';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-primary);
  font-size: 1.25rem;
  line-height: 1.5;
}

.about-list strong,
.about-text-col strong {
  color: var(--text-primary);
  font-weight: 700;
}

.about-tagline {
  margin-top: 28px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   FABRIC GUIDE (3-COLUMN SECTION)
   -------------------------------------------------------------------------- */
.fabric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.fabric-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
  transition: transform 0.35s ease;
}

.fabric-card-image-wrapper, .fabric-card-image-link {
  display: block;
  overflow: hidden;
  position: relative;
}

.fabric-card-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.35s ease;
}

.fabric-card-image-wrapper:hover .fabric-card-img,
.fabric-card-image-link:hover .fabric-card-img {
  transform: scale(1.03);
  opacity: 0.9;
}

.fabric-card-info {
  padding: 24px 0 0 0;
}

.fabric-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.fabric-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   PRICING SECTION (ADOBE INDESIGN EMBED)
   -------------------------------------------------------------------------- */
.pricing-embed-container {
  width: 100%;
  max-width: 570px;
  margin: 32px auto 0 auto;
  background-color: #000000;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.adobe-embed-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
}

.adobe-embed-wrapper iframe,
.pricing-embed-container iframe {
  position: absolute;
  top: -1.5%;
  left: -1.5%;
  width: 103%;
  height: 103%;
  border: none;
  margin: 0;
  display: block;
}

/* EZ Price Calculator Container */
.calculator-embed-container {
  width: 100%;
  max-width: 570px;
  margin: 32px auto 0 auto;
  background-color: #000000;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.calculator-embed-container iframe {
  width: 100%;
  height: 830px;
  border: none;
  overflow: hidden;
  display: block;
}

/* Price Sheets CTA Button (Home Page) */
.price-sheets-cta-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 48px;
  padding: 0 16px;
}

.price-sheets-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
  padding: 18px 36px;
  font-size: clamp(0.85rem, 3.5vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  max-width: 100%;
}

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

/* --------------------------------------------------------------------------
   COMING SOON SECTION
   -------------------------------------------------------------------------- */
.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.coming-soon-item {
  padding: 32px 24px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: border-color 0.3s ease;
}

.coming-soon-item:hover {
  border-color: var(--border-focus);
}

.coming-soon-name {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   CONTACT FORM (MINIMALIST)
   -------------------------------------------------------------------------- */
.contact-container {
  max-width: 680px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-input, .form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--text-primary);
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s ease;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-muted);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.88rem;
}

.form-input:focus, .form-textarea:focus {
  border-bottom-color: var(--border-focus);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  align-self: flex-start;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
  padding: 16px 48px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.submit-btn:hover {
  background-color: var(--text-primary);
  color: var(--bg-color);
}

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.form-status.success {
  color: #4cd964;
}

.form-status.error {
  color: #ff3b30;
}

/* --------------------------------------------------------------------------
   PORTFOLIO PAGE (ALBUM INDEX & MASONRY GRID)
   -------------------------------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.category-card {
  cursor: pointer;
  background: var(--bg-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.category-card-thumb-wrapper {
  width: 100%;
  height: 380px;
  overflow: hidden;
  position: relative;
  background-color: var(--surface-color);
}

.category-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.35s ease;
}

.category-card:hover .category-card-thumb {
  transform: scale(1.04);
  opacity: 0.85;
}

.category-card-meta {
  padding: 20px 0 0 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.category-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.category-card-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* Portfolio Masonry View */
.portfolio-header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 12px 28px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.back-btn:hover {
  border-color: var(--border-focus);
  color: var(--text-primary);
}

.masonry-grid {
  column-count: 3;
  column-gap: 24px;
  width: 100%;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 24px;
  overflow: hidden;
  background-color: var(--surface-color);
}

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

.masonry-item:hover img {
  opacity: 0.9;
  transform: scale(1.015);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  padding: 60px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background-color: var(--bg-color);
  margin-top: auto;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-socials {
  display: flex;
  gap: 24px;
}

.footer-social-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

.footer-social-link:hover {
  color: var(--text-primary);
}

.footer-social-icon {
  display: none;
}

.footer-social-text {
  display: inline;
}

/* --------------------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .fabric-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 860px) {
  .hamburger-btn {
    display: flex;
  }

  .nav-logo {
    font-size: 0.95rem;
    letter-spacing: 0.12em;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    width: 100vw;
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 48px;
    gap: 36px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    padding-bottom: 6px;
  }

  /* Drop hero text underneath the hero photo so it never covers the artwork */
  .hero-overlay {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 36px 24px 10px 24px;
    pointer-events: auto;
    background: var(--bg-color);
  }

  .hero-title {
    font-size: clamp(1.9rem, 4.5vw, 2.6rem);
    line-height: 1.08;
    text-shadow: none;
    color: var(--text-primary);
    white-space: normal;
  }

  .hero-title-part {
    display: inline;
    white-space: nowrap;
  }

  .hero-subtitle {
    font-size: clamp(0.92rem, 2.3vw, 1.15rem);
    letter-spacing: clamp(0.06em, 0.8vw, 0.14em);
    margin-top: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-wrap: nowrap;
    gap: clamp(6px, 1.5vw, 14px);
  }

  #about {
    padding-top: 60px;
  }

  /* Category View Header: Stack Back button on top, title full span underneath */
  .portfolio-header-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
  }

  .portfolio-header-nav .back-btn {
    order: 1;
    padding: 10px 22px;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
  }

  .portfolio-header-nav .section-title {
    order: 2;
    width: 100%;
    margin-bottom: 0;
    font-size: clamp(1.45rem, 5.5vw, 2.1rem);
    line-height: 1.15;
    word-break: normal;
    overflow-wrap: break-word;
  }

  /* Footer: 4 icons (2x size: 64px) with 50% opacity on mobile, positioned above reCAPTCHA badge */
  .footer {
    padding: 48px 20px 96px 20px;
  }

  .footer-container {
    flex-direction: column;
    gap: 22px;
    text-align: center;
    align-items: center;
  }

  .footer-social-text {
    display: none;
  }

  .footer-socials {
    order: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(14px, 4vw, 28px);
    width: 100%;
    margin-bottom: 2px;
  }

  .footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
  }

  .footer-social-icon {
    display: block;
    width: clamp(52px, 14vw, 64px);
    height: clamp(52px, 14vw, 64px);
    object-fit: contain;
    opacity: 0.5;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .footer-social-link:hover .footer-social-icon,
  .footer-social-link:focus .footer-social-icon {
    opacity: 1;
    transform: scale(1.08);
  }

  .footer-copy {
    order: 2;
    font-size: 0.82rem;
    line-height: 1.5;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 20px;
    width: 100%;
    box-sizing: border-box;
  }
  .nav-container {
    padding: 0 20px;
  }
  .section-title {
    font-size: 1.75rem;
    word-break: break-word;
  }
  .about-images-col {
    grid-template-columns: 1fr;
  }
  .masonry-grid {
    column-count: 1;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .pricing-embed-container,
  .calculator-embed-container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 600px) {
  .hero-overlay {
    padding: 26px 16px 4px 16px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 10.8vw, 3.2rem);
    line-height: 0.98;
    letter-spacing: -0.01em;
  }

  .hero-title-part {
    display: block;
    width: 100%;
    white-space: nowrap;
  }

  .hero-subtitle {
    font-size: clamp(0.72rem, 3.4vw, 0.98rem);
    letter-spacing: clamp(0.04em, 0.5vw, 0.08em);
    margin-top: 12px;
    white-space: nowrap;
    flex-wrap: nowrap;
    gap: clamp(5px, 1.4vw, 10px);
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 16px;
  }
  .nav-logo {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
  }
}
