/*
Theme Name: Gabriela Moya Modern
Theme URI: https://gabrielamoya.com
Description: Minimal, modern fashion portfolio theme for Gabriela Moya NYC
Version: 1.0
Author: Moya Solutions
Text Domain: gabrielamoya-modern
*/

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #fafafa;
  --color-text: #1a1a1a;
  --color-muted: #666;
  --color-accent: #c9a96e;
  --color-border: #e0e0e0;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
  --max-width: 1200px;
  --nav-height: 70px;
}

html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--color-text); text-decoration: none; transition: color 0.3s, opacity 0.3s; }
a:hover { color: var(--color-accent); }
img { max-width: 100%; height: auto; display: block; }

/* === Header / Navigation === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250, 250, 250, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-branding {
  min-width: 0;
  flex-shrink: 1;
}
.site-branding a {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
}
.site-branding .tagline {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: block;
}

/* Main Navigation */
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav ul { list-style: none; display: flex; gap: 0; align-items: center; }
.main-nav li { position: relative; }
.main-nav a {
  display: block;
  padding: 0.5rem 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--color-muted);
  transition: color 0.3s;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a { color: var(--color-text); }

/* Dropdown */
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(250, 250, 250, 0.98);
  backdrop-filter: blur(10px);
  min-width: 200px;
  padding: 0.5rem 0;
  border: 1px solid var(--color-border);
  z-index: 100;
}
.main-nav li:hover > .sub-menu { display: block; }
.main-nav .sub-menu a { padding: 0.4rem 1.5rem; font-size: 0.7rem; white-space: nowrap; }

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 30px; height: 24px; position: relative;
  flex-direction: column; justify-content: space-between;
}
.menu-toggle span {
  display: block; width: 100%; height: 2px;
  background: var(--color-text); transition: all 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 7px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -7px); }

@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  .header-inner { padding: 0 1rem; }
  .site-branding a { font-size: 1rem; letter-spacing: 0.1em; }
  .site-branding .tagline { font-size: 0.5rem; letter-spacing: 0.1em; }
  .menu-toggle { display: flex; flex-shrink: 0; margin-left: 1rem; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(250, 250, 250, 0.98);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
  }
  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 0.7rem 2rem; }
  .main-nav .sub-menu {
    position: static; display: block;
    border: none; padding: 0;
    background: transparent;
    backdrop-filter: none;
  }
  .main-nav .sub-menu a { padding-left: 3.5rem; }
}

/* === Content Area === */
.site-content {
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height) - 80px);
}

/* === Homepage Hero === */
.home-hero {
  width: 100%;
  height: calc(100vh - var(--nav-height));
  overflow: hidden;
  position: relative;
}
.home-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.home-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3rem 2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.4));
  color: #fff;
  text-align: center;
}
.home-hero-overlay h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.home-hero-overlay p {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* === Page Layout === */
.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
}
.page-header {
  text-align: center;
  margin-bottom: 3rem;
}
.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.page-header .separator {
  width: 60px; height: 1px;
  background: var(--color-accent);
  margin: 1rem auto;
}

/* === Gallery Grid === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery-grid .gallery-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 2/3;
  background: #eee;
}
.gallery-grid .gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.4s;
}
.gallery-grid .gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

/* === Collections Grid (parent page) === */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.collection-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #eee;
}
.collection-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.collection-card:hover img { transform: scale(1.05); }
.collection-card .card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
}
.collection-card .card-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* === Lightbox === */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: none; border: none;
  color: #fff; font-size: 2rem;
  cursor: pointer; opacity: 0.7;
  transition: opacity 0.3s;
  z-index: 10000;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }
.lightbox-close { top: 1.5rem; right: 1.5rem; font-size: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.6); font-size: 0.8rem; letter-spacing: 0.1em;
}

/* === About / Contact Pages === */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}
.about-layout .about-image { border-radius: 2px; }
.about-layout .about-text { font-size: 0.95rem; line-height: 1.8; color: var(--color-muted); }
.about-layout .about-text p { margin-bottom: 1.2rem; }

.contact-info { text-align: center; max-width: 500px; margin: 0 auto; }
.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}
.contact-info p {
  color: var(--color-muted);
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}
.contact-info a { color: var(--color-accent); }
.contact-info a:hover { color: var(--color-text); }
.contact-info .contact-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-top: 1.5rem;
  margin-bottom: 0.3rem;
}

@media (max-width: 768px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-layout .about-image { max-width: 400px; margin: 0 auto; }
  .home-hero { height: calc(100vh - 60px); }
  .home-hero img { object-position: 70% top; }
  .home-hero-overlay { padding: 2rem 1.5rem; }
  .home-hero-overlay h1 { font-size: 1.4rem; letter-spacing: 0.12em; }
  .home-hero-overlay p { font-size: 0.7rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
  .collections-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .collection-card { aspect-ratio: 4/5; }
  .page-content { padding: 2rem 1rem; }
  .page-header { margin-bottom: 2rem; }
  .page-header h1 { font-size: 1.4rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

/* === Footer === */
.site-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* === WordPress Cleanup === */
.wp-block-separator, .wp-block-spacer { display: none; }
.entry-content > p:empty { display: none; }
.entry-content img.alignnone { display: block; margin: 0 auto; }
