/* =========================================
   MITTI & MIST — GALLERY.CSS
   Mood: Dark, dramatic, photographic immersion
   Palette: Near-black background, terra highlights, warm image tones
   ========================================= */

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

:root {
  --black: #0E0907;
  --dark: #1A0F0A;
  --terra: #C4622D;
  --terra-light: #E07A45;
  --cream: #F5F0E8;
  --fog: #8B7D72;
  --white: #FDFAF5;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--black); color: var(--cream); font-family: var(--font-body); overflow-x: hidden; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 4rem;
  background: rgba(14,9,7,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  color: var(--white); text-decoration: none;
}
.nav-logo span { color: var(--terra); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.8rem; color: rgba(245,240,232,0.55); text-decoration: none;
  letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--terra); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--white); }

/* ── GALLERY HERO ── */
.gallery-hero {
  min-height: 70vh; display: flex; align-items: flex-end;
  position: relative; overflow: hidden;
  padding-top: 72px;
}
.gh-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #0E0907 0%, #1A0F0A 30%, #3D2314 65%, #C4622D 100%);
}
.gh-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(196,98,45,0.4) 0%, transparent 60%);
}
.gh-content {
  position: relative; z-index: 2; padding: 0 4rem 5rem;
  animation: fadeUp 1s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.gh-eyebrow {
  font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--terra-light); margin-bottom: 1.5rem; display: block;
}
.gh-content h1 {
  font-family: var(--font-display); font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 300; line-height: 0.95; color: var(--white); margin-bottom: 1.5rem;
}
.gh-content h1 em { font-style: italic; color: var(--terra-light); }
.gh-content p {
  font-size: 1rem; color: rgba(245,240,232,0.5); font-weight: 300; max-width: 400px;
}

/* ── FILTER ── */
.gallery-filter {
  display: flex; gap: 0.5rem; padding: 2rem 4rem;
  background: var(--dark); border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}
.gf-btn {
  background: transparent; border: 1px solid rgba(255,255,255,0.12);
  color: rgba(245,240,232,0.5); padding: 0.5rem 1.25rem; border-radius: 100px;
  font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer; transition: all 0.3s;
}
.gf-btn:hover { border-color: var(--terra); color: var(--terra); }
.gf-btn.active { background: var(--terra); border-color: var(--terra); color: var(--white); }

/* ── GALLERY GRID ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  gap: 3px;
  background: #050302;
  padding: 3px;
}
.g-tile {
  overflow: hidden; cursor: pointer; position: relative;
  opacity: 0; transform: scale(0.98);
  transition: opacity 0.5s, transform 0.3s;
}
.g-tile.visible { opacity: 1; transform: scale(1); }
.g-large { grid-column: span 2; }
.g-tall { grid-row: span 2; }
.g-inner {
  height: 100%; width: 100%; position: relative;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.g-tile:hover .g-inner { transform: scale(1.06); }

/* Gallery image colour-blocks (replace with real images via background-image) */
.gi-1 { background: linear-gradient(135deg, #2A1208 0%, #7A4020 50%, #C4A070 100%); }
.gi-2 { background: linear-gradient(160deg, #1A0F0A 0%, #4A2810 60%, #8B5A30 100%); }
.gi-3 { background: linear-gradient(120deg, #C4622D 0%, #E08050 60%, #F5C080 100%); }
.gi-4 { background: linear-gradient(160deg, #0E0907 0%, #2A1A0E 60%, #5A3A20 100%); }
.gi-5 { background: linear-gradient(135deg, #3D1A08 0%, #A05030 50%, #E0A060 100%); }
.gi-6 { background: linear-gradient(120deg, #8B6F47 0%, #C4A070 50%, #F0D0A0 100%); }
.gi-7 { background: linear-gradient(160deg, #2A2010 0%, #6A5030 50%, #A08050 100%); }
.gi-8 { background: linear-gradient(135deg, #1A0F0A 0%, #5A3020 50%, #C4622D 100%); }
.gi-9 { background: linear-gradient(120deg, #4A3020 0%, #8B6040 50%, #C4A070 100%); }
.gi-10 { background: linear-gradient(160deg, #C4622D 0%, #E07A45 50%, #F5B080 100%); }
.gi-11 { background: linear-gradient(135deg, #1A0F0A 0%, #4A2810 60%, #A06040 100%); }
.gi-12 { background: linear-gradient(120deg, #0E0907 0%, #2A1A0E 50%, #5A3A20 100%); }
.gi-13 { background: linear-gradient(160deg, #4A2810 0%, #9A5030 50%, #E07A45 100%); }
.gi-14 { background: linear-gradient(135deg, #2A1208 0%, #6B3A20 50%, #C4622D 100%); }
.gi-15 { background: linear-gradient(120deg, #8B4A2A 0%, #C4622D 50%, #E09060 100%); }

/* Overlay */
.g-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,9,7,0.85) 0%, transparent 50%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem; opacity: 0; transition: opacity 0.4s;
}
.g-tile:hover .g-overlay { opacity: 1; }
.g-label {
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--terra-light); display: block; margin-bottom: 0.3rem;
}
.g-overlay p { font-size: 0.85rem; color: rgba(245,240,232,0.8); line-height: 1.4; }

/* ── INSTAGRAM SECTION ── */
.insta-section {
  padding: 6rem 4rem; text-align: center;
  background: var(--dark); border-top: 1px solid rgba(255,255,255,0.05);
}
.is-inner h2 {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; color: var(--white); margin-bottom: 1rem;
}
.is-inner h2 em { font-style: italic; color: var(--terra-light); }
.is-inner p { font-size: 0.95rem; color: rgba(245,240,232,0.45); margin-bottom: 2rem; }
.btn-insta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: var(--white); padding: 0.9rem 2rem; border-radius: 100px;
  text-decoration: none; font-size: 0.875rem; letter-spacing: 0.06em;
  font-weight: 500; transition: transform 0.3s, box-shadow 0.3s;
}
.btn-insta:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(220,39,67,0.35); }

/* ── GALLERY CTA ── */
.gallery-cta {
  padding: 6rem 4rem; text-align: center; background: var(--terra);
}
.gallery-cta h2 {
  font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 300; color: var(--white); line-height: 1.2; margin-bottom: 2rem;
}
.gallery-cta h2 em { font-style: italic; }
.btn-primary {
  display: inline-block; background: var(--white); color: var(--terra);
  padding: 0.9rem 2.5rem; border-radius: 2px; text-decoration: none;
  font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 500; transition: background 0.3s, color 0.3s, transform 0.3s;
}
.btn-primary:hover { background: var(--dark); color: var(--white); transform: translateY(-2px); }

/* ── FOOTER ── */
.footer { background: #0E0907; color: rgba(245,240,232,0.6); }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; padding: 4rem 4rem 3rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-logo {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600;
  color: var(--white); margin-bottom: 0.75rem;
}
.footer-logo span { color: var(--terra); }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-social a {
  width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: rgba(245,240,232,0.4); text-decoration: none; transition: all 0.3s; font-size: 0.8rem;
}
.footer-social a:hover { border-color: var(--terra); color: var(--terra); }
.footer-links h4, .footer-contact h4 {
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--white); margin-bottom: 1rem; font-weight: 500;
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  color: rgba(245,240,232,0.4); text-decoration: none; font-size: 0.85rem; transition: color 0.3s;
}
.footer-links a:hover { color: var(--terra); }
.footer-contact p, .footer-contact a {
  font-size: 0.85rem; color: rgba(245,240,232,0.4); line-height: 1.7;
  text-decoration: none; display: block;
}
.footer-contact a:hover { color: var(--terra); }
.footer-bottom {
  display: flex; justify-content: space-between;
  padding: 1.25rem 4rem; border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.78rem; color: rgba(245,240,232,0.25);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav { padding: 0.9rem 2rem; }
  .gh-content { padding: 0 2rem 4rem; }
  .gallery-filter { padding: 1.5rem 2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
  .g-large { grid-column: span 1; }
  .g-tall { grid-row: span 1; }
  .insta-section, .gallery-cta { padding: 5rem 2rem; }
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; padding: 3rem 2rem; }
  .footer-bottom { padding: 1rem 2rem; flex-direction: column; gap: 0.4rem; }
}
@media (max-width: 600px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0;
    background: var(--dark); flex-direction: column; align-items: center; justify-content: center;
    gap: 2rem; transform: translateX(100%); transition: transform 0.4s; list-style: none;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; color: var(--white) !important; }
  .gallery-grid { grid-template-columns: 1fr; }
  .nav { padding: 0.85rem 1.25rem; }
}
