/* ============================================
   ELFERING.COM — Global Styles
   Dark photography portfolio + executive site
   Fonts: Cormorant Garamond + DM Sans
   Accent: Warm Gold #C8A86E
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

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

:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --bg4: #222222;
  --text: #e8e4df;
  --muted: #8a8580;
  --dim: #5a5650;
  --accent: #c8a86e;
  --accent-hover: #dfc08a;
  --white: #f5f2ed;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', -apple-system, Helvetica, sans-serif;
  --ease: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-fast: 0.2s ease;
  --max-width: 1200px;
  --narrow: 800px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ============ UTILITIES ============ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 3rem; }
.container--narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 3rem; }
.text-center { text-align: center; }

/* ============ NAVIGATION ============ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.2rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200, 168, 110, 0.08);
  transition: var(--ease);
}
nav.scrolled { padding: 0.8rem 3rem; background: rgba(10, 10, 10, 0.95); }

.nav-logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: var(--ease);
}
.nav-logo:hover { color: var(--accent); }

.nav-links { display: flex; gap: 2.2rem; list-style: none; align-items: center; }
.nav-links a {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: var(--ease);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  padding: 0.5rem 1.4rem;
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: var(--ease);
}
.nav-cta:hover { background: var(--accent); color: var(--bg) !important; }
.nav-cta::after { display: none !important; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--muted); margin: 5px 0; transition: var(--ease); }

/* ============ HERO ============ */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 30% 50%, rgba(200,168,110,0.05) 0%, transparent 70%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 780px;
  padding: 0 2rem;
  animation: fadeUp 1.2s ease-out;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-label {
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.hero-name {
  font-family: var(--serif);
  font-size: 4.5rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-tagline {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 2.5rem;
}
.hero-divider {
  width: 40px; height: 1px;
  background: var(--accent);
  margin: 0 auto 2.5rem;
  opacity: 0.5;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-size: 0.68rem;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: var(--ease);
  cursor: pointer;
  text-decoration: none;
}
.btn--outline, .btn-outline {
  border: 1px solid rgba(200,168,110,0.3);
  color: var(--white);
  background: transparent;
}
.btn--outline:hover, .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--solid, .btn-solid {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
}
.btn--solid:hover, .btn-solid:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem; left: 50%; transform: translateX(-50%);
  text-align: center; z-index: 2;
}
.scroll-indicator span {
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--dim); display: block; margin-bottom: 0.5rem;
}
.scroll-indicator .arrow {
  width: 1px; height: 30px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* ============ SECTIONS ============ */
.section, section {
  padding: 5rem 3rem;
  position: relative;
  z-index: 1; /* FIX: ensures sections sit below nav z-index:1000 */
}
.section--elevated { background: var(--bg2); }
.section-label {
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 400;
}
.section-title {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.section-divider {
  width: 40px; height: 1px;
  background: var(--accent);
  margin-bottom: 2.5rem;
  opacity: 0.5;
}
.section-intro {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
  max-width: 620px;
  margin-bottom: 2rem;
}

/* Page divider accent */
.page-divider { text-align: center; padding: 0.5rem 0; }
.page-divider span {
  display: inline-block;
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  opacity: 0.25;
}

/* ============ DUAL PATH (Home) ============ */
.dual-path { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; max-width: var(--max-width); margin: 0 auto; }
.path-card {
  position: relative;
  padding: 4rem 3rem;
  background: var(--bg2);
  overflow: hidden;
  transition: var(--ease);
  cursor: pointer;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}
.path-card:hover { background: var(--bg3); }
.path-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 0; background: var(--accent);
  transition: var(--ease);
}
.path-card:hover::before { height: 100%; }
.path-icon { font-size: 1.6rem; margin-bottom: 1.5rem; opacity: 0.5; color: var(--accent); }
.path-title { font-family: var(--serif); font-size: 1.8rem; font-weight: 300; color: var(--white); margin-bottom: 1rem; }
.path-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.7; margin-bottom: 1.5rem; max-width: 380px; }
.path-link {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 0.5rem;
  transition: var(--ease);
}
.path-link:hover { gap: 1rem; }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 4rem; align-items: start; }
.about-photo {
  width: 280px; height: 350px;
  background: var(--bg3);
  border: 1px solid rgba(200,168,110,0.12);
  overflow: hidden;
  position: relative;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  color: var(--dim); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em;
}
.about-text p { color: var(--muted); font-size: 0.92rem; line-height: 1.85; margin-bottom: 1.5rem; }
.about-text strong { color: var(--white); font-weight: 500; }

.credentials {
  display: flex; gap: 2rem; margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid rgba(200,168,110,0.1); flex-wrap: wrap;
}
.credential { text-align: center; flex: 1; min-width: 110px; }
.credential-value { font-family: var(--serif); font-size: 1.8rem; color: var(--accent); font-weight: 300; }
.credential-label { font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--dim); margin-top: 0.3rem; }

/* ============ GALLERY ============ */
.gallery-intro { text-align: center; margin-bottom: 3rem; }
.gallery-intro p { color: var(--muted); font-size: 0.92rem; line-height: 1.8; max-width: 620px; margin: 0 auto; }

.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  max-width: 1400px;
  margin: 0 auto;
}
.collection-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg3);
  display: block;
  text-decoration: none;
  color: inherit;
}
.collection-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s ease, filter 0.6s ease;
  filter: brightness(0.65);
}
.collection-card:hover img { transform: scale(1.05); filter: brightness(0.85); }
.collection-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
}
.collection-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 300; color: var(--white); margin-bottom: 0.3rem; }
.collection-count { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); opacity: 0.8; }

/* Image gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  max-width: 1400px;
  margin: 2rem auto 0;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg3);
  aspect-ratio: 1/1;
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall .gallery-item-img { aspect-ratio: auto; height: 100%; }
.gallery-item.wide .gallery-item-img { aspect-ratio: auto; height: 100%; }
.gallery-item-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.gallery-item:hover .gallery-item-img { transform: scale(1.05); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0; transition: var(--ease);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-title { font-family: var(--serif); font-size: 1rem; color: var(--white); margin-bottom: 0.3rem; }
.gallery-item-link { font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); }

/* Featured grid (home page) */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  max-width: 1400px;
  margin: 2rem auto 0;
}
.featured-img {
  position: relative;
  overflow: hidden;
  background: var(--bg3);
}
.featured-img img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  transition: transform 0.8s ease, filter 0.6s ease;
  filter: brightness(0.7);
}
.featured-img.tall { grid-row: span 2; }
.featured-img.tall img { aspect-ratio: auto; height: 100%; }
.featured-img.wide { grid-column: span 2; }
.featured-img.wide img { aspect-ratio: 16/9; }
.featured-img:hover img { transform: scale(1.05); filter: brightness(0.9); }
.featured-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  opacity: 0; transition: var(--ease);
}
.featured-img:hover .featured-caption { opacity: 1; }
.featured-caption span { font-family: var(--serif); font-size: 0.95rem; color: var(--white); display: block; margin-bottom: 0.3rem; }
.featured-caption a { font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); }

/* ============ SHOP ============ */
.shop-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 3rem 0; }
.shop-feature {
  padding: 2.5rem;
  background: var(--bg3);
  border: 1px solid rgba(200,168,110,0.06);
  transition: var(--ease);
}
.shop-feature:hover { border-color: rgba(200,168,110,0.15); }
.shop-feature-icon { font-size: 1.5rem; color: var(--accent); margin-bottom: 1.5rem; opacity: 0.6; }
.shop-feature h4 {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 300;
  color: var(--white); margin-bottom: 1rem;
}
.shop-feature p { color: var(--muted); font-size: 0.85rem; line-height: 1.7; }

.shop-cta { text-align: center; margin-top: 3rem; }

/* ============ ADVISORY ============ */
.advisory-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; margin: 2rem 0 3rem; }
.advisory-card {
  padding: 2.5rem;
  background: var(--bg2);
  border-left: 2px solid transparent;
  transition: var(--ease);
}
.advisory-card:hover { border-left-color: var(--accent); background: var(--bg3); }
.advisory-card h4 {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 300;
  color: var(--white); margin-bottom: 1rem;
}
.advisory-card p { color: var(--muted); font-size: 0.85rem; line-height: 1.7; }

.advisory-highlights {
  display: flex; gap: 3rem; margin-top: 2rem; padding-top: 2rem;
  border-top: 1px solid rgba(200,168,110,0.1); flex-wrap: wrap;
}
.highlight h5 {
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.5rem; font-weight: 400;
}
.highlight p { color: var(--muted); font-size: 0.85rem; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; max-width: var(--max-width); margin: 0 auto; padding: 0 3rem; }
.contact-info h3 {
  font-family: var(--serif); font-size: 2rem; font-weight: 300;
  color: var(--white); margin-bottom: 1rem;
}
.contact-info p { color: var(--muted); font-size: 0.9rem; line-height: 1.8; margin-bottom: 2rem; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: 0.85rem; transition: var(--ease); }
.contact-link:hover { color: var(--accent); }
.contact-link-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border: 1px solid rgba(200,168,110,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: var(--accent); font-weight: 600;
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input, .contact-form textarea {
  background: var(--bg);
  border: 1px solid rgba(200,168,110,0.1);
  padding: 1rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.88rem;
  transition: var(--ease);
  outline: none;
  width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: rgba(200,168,110,0.35); }
.contact-form textarea { height: 140px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--dim); }

/* ============ FOOTER ============ */
footer {
  padding: 3rem;
  text-align: center;
  border-top: 1px solid rgba(200,168,110,0.06);
  position: relative;
  z-index: 1;
}
.footer-logo {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 300;
  color: var(--dim); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem;
}
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--dim); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; transition: var(--ease); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--dim); font-size: 0.68rem; letter-spacing: 0.04em; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .collections-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; flex-direction: column; z-index: 9999; position: relative; }

  /* =============================================
     BULLETPROOF FIX: Mobile menu as fixed overlay
     Uses position:fixed so the menu floats above
     everything on the page — no stacking context
     issues possible.
     ============================================= */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10,10,10,0.98);
    padding: 6rem 2rem 2rem;
    gap: 1.8rem;
    z-index: 9998;
    align-items: center;
    justify-content: flex-start;
  }
  .nav-links.open a {
    font-size: 1rem;
    letter-spacing: 0.2em;
  }
  .nav-links.open .nav-cta {
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    font-size: 0.8rem;
  }

  .section, section { padding: 4rem 1.5rem; }
  .container, .container--narrow { padding: 0 1.5rem; }
  .dual-path { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { width: 200px; height: 250px; margin: 0 auto; }
  .shop-features { grid-template-columns: 1fr; }
  .advisory-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; padding: 0 1.5rem; }
}

@media (max-width: 600px) {
  .hero-name { font-size: 2.5rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .collections-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.tall, .gallery-item.wide { grid-row: auto; grid-column: auto; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-img.tall, .featured-img.wide { grid-row: auto; grid-column: auto; }
  .featured-img img, .featured-img.tall img, .featured-img.wide img { aspect-ratio: 4/3; }
  .credentials { flex-direction: column; gap: 1.5rem; }
  .advisory-highlights { flex-direction: column; gap: 2rem; }
  .footer-links { flex-direction: column; gap: 1rem; }
}
