/* ============================================================
   Omer Knaz — Jewellery Photography Consultant
   ============================================================ */

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* --- Base --- */
body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: #1a1a1a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 52px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

/* Transparent nav state (home page hero) */
.nav.transparent {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav.transparent .nav-logo,
.nav.transparent .nav-links a { color: #ffffff; }
.nav.transparent .nav-toggle span { background: #ffffff; }

.nav-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #1a1a1a;
  transition: color 0.3s ease;
  position: relative;
  z-index: 510;
}

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

.nav-links a {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #1a1a1a;
  transition: opacity 0.25s ease, color 0.3s ease;
}

.nav-links a:hover { opacity: 0.4; }
.nav-links a.active {
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 510;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: #1a1a1a;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 55%);
}

.hero-text {
  position: absolute;
  bottom: 56px;
  left: 52px;
  color: #ffffff;
}

.hero-text h1 {
  font-size: clamp(34px, 4.5vw, 62px);
  font-weight: 300;
  color: #ffffff;
  max-width: 580px;
  transition: color 0.5s ease;
}

.hero-sub {
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color 0.5s ease;
}

/* ============================================================
   Light-background hero variant
   Applied via JS when a light-background image is selected
   ============================================================ */
.hero.hero-light .hero-overlay {
  background: linear-gradient(to top, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.25) 40%, transparent 65%);
}
.hero.hero-light .hero-text h1 {
  color: #1a1a1a;
}
.hero.hero-light .hero-sub {
  color: rgba(0,0,0,0.55);
}
/* Nav sitting over a light hero (transparent state) */
.nav.transparent.nav-on-light .nav-logo,
.nav.transparent.nav-on-light .nav-links a {
  color: #1a1a1a;
}
.nav.transparent.nav-on-light .nav-toggle span {
  background: #1a1a1a;
}

/* ============================================================
   Page header (inner pages)
   ============================================================ */
.page-header {
  padding: 160px 52px 72px;
  max-width: 820px;
}

.page-header h1 {
  font-size: clamp(36px, 4vw, 56px);
  margin-top: 12px;
}

.page-header p {
  margin-top: 22px;
  font-size: 15px;
  color: #666;
  max-width: 500px;
  line-height: 1.85;
}

/* Section label */
.label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #aaa;
}

/* ============================================================
   Intro (home)
   ============================================================ */
.intro {
  padding: 100px 52px;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.intro-heading h2 {
  font-size: clamp(30px, 3vw, 46px);
  max-width: 420px;
}

.intro-body p {
  color: #555;
  line-height: 1.9;
  font-size: 15px;
}

/* Arrow link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 3px;
  transition: opacity 0.25s;
}
.link-arrow:hover { opacity: 0.4; }

/* ============================================================
   Services teaser (home)
   ============================================================ */
.services-teaser {
  padding: 0 52px 100px;
  max-width: 1240px;
  margin: 0 auto;
}

.services-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #e5e5e5;
}

.service-card {
  padding: 52px 48px 52px 0;
  border-right: 1px solid #e5e5e5;
}
.service-card:last-child { border-right: none; padding-right: 0; }

.service-card h3 {
  font-size: 26px;
  margin-bottom: 16px;
  line-height: 1.25;
}

.service-card p {
  font-size: 14px;
  color: #777;
  line-height: 1.85;
}

.service-card .link-arrow { margin-top: 28px; }

/* ============================================================
   Gallery teaser (home)
   ============================================================ */
.gallery-teaser {
  padding: 0 52px 100px;
  max-width: 1240px;
  margin: 0 auto;
}

.gallery-teaser-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.gallery-teaser-header h2 { font-size: 38px; }

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

.gallery-teaser-grid img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: opacity 0.8s ease;
}
.gallery-teaser-grid img:hover { opacity: 0.82; }

/* ============================================================
   Services page
   ============================================================ */
.services-list {
  padding: 0 52px 120px;
  max-width: 1240px;
  margin: 0 auto;
}

.service-full {
  display: grid;
  grid-template-columns: 120px 1fr 200px;
  gap: 52px;
  padding: 64px 0;
  border-top: 1px solid #e5e5e5;
}
.service-full:last-child { border-bottom: 1px solid #e5e5e5; }

/* Images alongside each service */
.service-images {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 6px;
}
.service-images img {
  width: 100%;
  object-fit: cover;
  display: block;
}
.service-images img:nth-child(1) { height: 195px; }
.service-images img:nth-child(2) { height: 130px; }
.service-images img:nth-child(3) { height: 100px; }

.service-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  font-weight: 300;
  color: #e8e8e8;
  line-height: 1;
  padding-top: 4px;
}

.service-full-content h2 {
  font-size: clamp(28px, 2.5vw, 38px);
  margin-bottom: 22px;
  line-height: 1.2;
}

.service-full-content p {
  color: #555;
  line-height: 1.9;
  font-size: 15px;
  max-width: 580px;
  margin-bottom: 16px;
}
.service-full-content p:last-of-type { margin-bottom: 0; }

.service-includes {
  margin-top: 36px;
  list-style: none;
}

.service-includes li {
  display: flex;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #888;
  padding: 10px 0;
  border-bottom: 1px solid #f2f2f2;
}

.service-includes li::before {
  content: '—';
  color: #ccc;
  flex-shrink: 0;
}

/* Services CTA */
.services-cta {
  padding: 0 52px 120px;
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}

.services-cta h2 { font-size: 38px; margin-bottom: 20px; }

.services-cta p {
  color: #666;
  max-width: 420px;
  margin: 0 auto 40px;
  line-height: 1.85;
}

/* ============================================================
   Gallery page
   ============================================================ */
.gallery-hero-wrap { padding-top: 80px; }

.gallery-hero-img {
  width: 100%;
  height: 58vh;
  min-height: 360px;
  object-fit: cover;
  object-position: center;
}

/* ── Gallery: editorial scroll layout ── */
.gallery-editorial {
  padding: 60px 52px 120px;
  max-width: 1300px;
  margin: 0 auto;
}

.g-moment {
  margin-bottom: 56px;
  position: relative;
}

.g-pair {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.g-col { flex-shrink: 0; }

.g-col img,
.g-moment > img {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.g-col img:hover,
.g-moment > img:hover { opacity: 0.85; }

/* Gallery image captions */
.g-cap {
  display: block;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaa;
  margin-top: 7px;
}

/* Gallery sections */
.gallery-section {
  border-top: 1px solid #e5e5e5;
  padding-top: 56px;
  margin-bottom: 20px;
}

.gallery-section-label {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 52px;
}

/* Gallery inline video */
.g-video {
  display: block;
  width: 100%;
  height: auto;
}

/* Gallery CTA */
.gallery-cta {
  text-align: center;
  padding: 20px 52px 100px;
}
.gallery-cta p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 300;
  color: #555;
  margin-bottom: 14px;
}

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,0.97);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox.open { display: flex; }

.lightbox img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  pointer-events: none;
}

.lightbox-close {
  position: absolute;
  top: 28px;
  right: 40px;
  color: rgba(255,255,255,0.5);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
}
.lightbox-close:hover { color: #fff; }

/* ============================================================
   About page
   ============================================================ */
.about-grid {
  padding: 0 52px 120px;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 60px;
  align-items: start;
}

.about-image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
}

.about-content h2 {
  font-size: clamp(28px, 2.5vw, 38px);
  margin-bottom: 28px;
  line-height: 1.25;
}

.about-content p {
  color: #555;
  line-height: 1.9;
  font-size: 15px;
  margin-bottom: 20px;
}

.client-list { margin-top: 52px; }

.client-list .label { margin-bottom: 20px; display: block; }

.client-list ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.client-list ul li { font-size: 13px; color: #999; }

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid {
  padding: 0 52px 120px;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
}

.contact-info h2 {
  font-size: clamp(28px, 2.5vw, 38px);
  margin-bottom: 22px;
}

.contact-info p { color: #555; line-height: 1.9; font-size: 15px; }

.email-link {
  display: block;
  margin-top: 20px;
  font-size: 15px;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 3px;
  width: fit-content;
  transition: opacity 0.25s;
}
.email-link:hover { opacity: 0.4; }

.contact-simple {
  padding: 0 52px 120px;
  max-width: 600px;
  margin: 0 auto 0 52px;
}

.contact-simple p {
  color: #555;
  font-size: 15px;
  margin-bottom: 8px;
}

/* Form */
.contact-form {
  padding: 0 52px 80px;
  max-width: 660px;
  margin: 0 auto 0 52px;
}
.contact-form .field { margin-bottom: 36px; }

.contact-form label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 0;
  font-size: 15px;
  font-family: inherit;
  font-weight: 300;
  color: #1a1a1a;
  background: transparent;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  outline: none;
  transition: border-color 0.25s;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-bottom-color: #1a1a1a; }

.contact-form textarea { height: 110px; resize: none; }

.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23aaa'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  cursor: pointer;
}

.btn-submit {
  font-family: inherit;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
  background: #1a1a1a;
  border: none;
  padding: 18px 52px;
  cursor: pointer;
  transition: background 0.25s;
}
.btn-submit:hover { background: #333; }

/* Contact form — quiet link-style send button */
.contact-form .btn-submit {
  color: #1a1a1a;
  background: none;
  padding: 0 0 3px;
  border: none;
  border-bottom: 1px solid #1a1a1a;
  margin-top: 16px;
  transition: opacity 0.25s;
}
.contact-form .btn-submit:hover { background: none; opacity: 0.4; }

/* ============================================================
   Editorial image layouts
   ============================================================ */

/* Two-image strip — aligned at bottom, different heights */
.img-break {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  overflow: hidden;
  margin: 80px 0;
}
.img-break.flip { flex-direction: row-reverse; }

.img-break img {
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.img-break .img-a { width: 58%; height: 560px; }
.img-break .img-b { width: 36%; height: 400px; }

/* Three-image editorial cluster */
.img-cluster {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.7fr;
  gap: 3px;
  align-items: end;
  margin: 80px 0 0;
}
.img-cluster img {
  width: 100%;
  object-fit: cover;
  display: block;
}
.img-cluster img:nth-child(1) { height: 520px; }
.img-cluster img:nth-child(2) { height: 370px; }
.img-cluster img:nth-child(3) { height: 250px; }

/* Contact page image section */
.contact-images {
  padding: 0 52px 0;
  max-width: 1240px;
  margin: 0 auto;
}

/* About page image section */
.about-images {
  padding: 40px 52px 160px;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  gap: 26px;
  align-items: flex-start;
}
.about-images img {
  flex: 1;
  min-width: 0;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transition: opacity 0.8s ease;
}
/* Fallback heights (JS overrides these with random values per slot) */
.about-images img:nth-child(1) { height: 310px; margin-top: 0; }
.about-images img:nth-child(2) { height: 230px; margin-top: 110px; }
.about-images img:nth-child(3) { height: 370px; margin-top: 15px; }
.about-images img:nth-child(4) { height: 205px; margin-top: 140px; }
.about-images img:nth-child(5) { height: 285px; margin-top: 45px; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 28px 52px;
  border-top: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer p {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #bbb;
}

.footer-links { display: flex; gap: 28px; list-style: none; }

.footer-links a {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #bbb;
  transition: color 0.2s;
}
.footer-links a:hover { color: #1a1a1a; }

/* ============================================================
   Responsive — Mobile
   ============================================================ */
@media (max-width: 900px) {
  .nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 490;
  }
  .nav-links.open a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: none;
    color: #1a1a1a !important;
    opacity: 1 !important;
  }
  .nav-links.open a.active { border: none; }
  .nav-toggle { display: flex; }

  .hero-text { left: 24px; bottom: 36px; }

  .page-header { padding: 120px 24px 56px; }

  .intro {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 64px 24px;
  }

  .services-teaser {
    padding: 0 24px 64px;
  }
  .services-teaser-grid { grid-template-columns: 1fr; }
  .service-card {
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
    padding: 40px 0;
  }
  .service-card:first-child { border-top: none; }
  .service-card:last-child { border-bottom: none; }

  .gallery-teaser { padding: 0 24px 64px; }
  .gallery-teaser-grid { grid-template-columns: repeat(2, 1fr); }

  .services-list { padding: 0 24px 80px; }
  .service-full {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 48px 0;
  }
  .service-number { font-size: 48px; }

  .services-cta { padding: 0 24px 80px; }

  .gallery-editorial { padding: 40px 24px 80px; }
  .g-pair { flex-direction: column !important; gap: 12px; }
  .gallery-editorial .g-col,
  .gallery-editorial .g-moment {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    position: static !important;
    z-index: auto !important;
  }

  .about-grid {
    grid-template-columns: 1fr;
    padding: 0 24px 80px;
    gap: 48px;
  }
  .about-image { aspect-ratio: 4/3; }

  .contact-grid {
    grid-template-columns: 1fr;
    padding: 0 24px 80px;
    gap: 52px;
  }

  .footer {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    text-align: center;
  }
}
