/* ============================================================
   AYZMAN ART — SHARED STYLES
   ============================================================
   HOW TO EDIT:
   - Colors: change the values in :root {}
   - Fonts: change the Google Fonts link in each HTML file
   - Nav links: edit the <nav> block in each HTML file
   ============================================================ */

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

:root {
  --cream: #f5f1eb;
  --warm-white: #faf8f5;
  --charcoal: #2a2520;
  --mid: #7a7068;
  --light: #c4bdb4;
  --accent: #8b6f5e;
}

body {
  background: var(--warm-white);
  color: var(--charcoal);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--warm-white);
  border-bottom: 1px solid var(--light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  flex-wrap: wrap;
  gap: 12px;
}

.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--charcoal);
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mid);
  padding: 8px 16px;
  transition: color 0.2s;
}

.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--charcoal); }

/* Dropdown */
.nav-links .dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--warm-white); border: 1px solid var(--light); min-width: 220px; z-index: 200; }
.nav-links li:hover .dropdown { display: block; }
.nav-links .dropdown a { display: block; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--mid); padding: 10px 18px; transition: background 0.15s, color 0.15s; white-space: nowrap; }
.nav-links .dropdown a:hover { background: var(--cream); color: var(--charcoal); }

/* ── PAGE HERO ── */
.hero {
  padding: 72px 48px 40px;
  border-bottom: 1px solid var(--light);
}
.hero-label {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 12px;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
}

/* ── GALLERY GRID ── */
.gallery { padding: 56px 48px 80px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px 32px;
}

/* ── CARD ── */
.card { cursor: pointer; }
.card-img-wrap {
  overflow: hidden;
  background: var(--cream);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.card:hover .card-img-wrap img { transform: scale(1.04); }
.card-info { padding: 14px 0 0; }
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 4px;
}
.card-medium { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--mid); }

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30,25,20,0.92);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  max-width: 860px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.lightbox img { max-height: 80vh; max-width: 100%; object-fit: contain; }
.lightbox-caption { text-align: center; color: #d8d0c8; }
.lightbox-caption h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 300; font-style: italic; }
.lightbox-caption p { font-size: 0.75rem; letter-spacing: 0.1em; color: #a09890; margin-top: 4px; }
.lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  background: none;
  border: none;
  color: #d8d0c8;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--light);
  padding: 36px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--mid);
}
footer a { color: var(--mid); text-decoration: none; }
footer a:hover { color: var(--charcoal); }

/* ── EDIT BANNER ── */
.edit-banner {
  background: var(--cream);
  border: 1px dashed var(--light);
  border-radius: 4px;
  margin: 24px 48px 0;
  padding: 16px 24px;
  font-size: 0.75rem;
  color: var(--mid);
  line-height: 1.7;
}
.edit-banner strong { color: var(--charcoal); }

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: all 0.3s;
}

@media (max-width: 640px) {
  nav {
    padding: 16px 20px;
    flex-wrap: wrap;
    align-items: center;
  }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--light);
    margin-top: 8px;
    padding-top: 8px;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a {
    padding: 12px 4px;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--cream);
  }
  .nav-links .dropdown {
    position: static;
    display: none;
    border: none;
    padding-left: 16px;
    background: var(--cream);
  }
  .nav-links li.open .dropdown { display: block; }
  .nav-links .dropdown a { padding: 10px 12px; }
  .hero, .gallery { padding-left: 20px; padding-right: 20px; }
  .edit-banner { margin: 16px 20px 0; }
  footer { padding: 24px 20px; flex-direction: column; gap: 8px; text-align: center; }
}
