/* ═══════════════════════════════════════════════════════════
   SHABZ EVENT STYLING — style.css
   Brand: luxury, minimal, editorial — Cinzel / Cormorant / Montserrat
═══════════════════════════════════════════════════════════ */

/* ─── Google Fonts ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@300;400;500&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400;1,500&family=Montserrat:wght@200;300;400&display=swap');

/* ─── Brand Variables ───────────────────────────────────── */
:root {
  --void:    #0D0D0D;
  --ink:     #1E1E1E;
  --smoke:   #555555;
  --stone:   #888888;
  --fog:     #DDDDDD;
  --ivory:   #FAFAF8;
  --border:  #2A2A2A;

  --font-display:  'Cinzel', serif;
  --font-accent:   'Cormorant Garamond', serif;
  --font-body:     'Montserrat', sans-serif;

  --transition-base: 0.3s ease;
  --section-pad: clamp(80px, 10vw, 140px);
  --container-max: 1200px;
  --container-narrow: 760px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--ivory);
  color: var(--void);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ─── Typography Utilities ──────────────────────────────── */
.section-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--void);
  text-align: center;
  margin-bottom: 16px;
}

.section-heading--light {
  color: var(--ivory);
}

.accent-text {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--void);
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: 0.01em;
}

.accent-text--muted {
  color: var(--stone);
}

.body-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--smoke);
  line-height: 1.85;
  margin-bottom: 40px;
  letter-spacing: 0.01em;
}

/* ─── Layout Utilities ──────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section-dark {
  background: var(--void);
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 16px 40px;
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.btn-outline {
  border: 1px solid var(--ivory);
  color: var(--ivory);
  background: transparent;
}

.btn-outline:hover {
  background: var(--ivory);
  color: var(--void);
}

.btn-outline--dark {
  border-color: var(--void);
  color: var(--void);
}

.btn-outline--dark:hover {
  background: var(--void);
  color: var(--ivory);
}

.btn-submit {
  display: block;
  width: 100%;
  background: var(--ivory);
  color: var(--void);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 20px;
  margin-top: 8px;
  transition: background var(--transition-base), color var(--transition-base);
}

.btn-submit:hover {
  background: var(--fog);
}

/* ─── Scroll Reveal ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 60px);
  background: transparent;
  transition: background 0.4s ease, padding 0.4s ease;
}

#nav.scrolled {
  background: var(--void);
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav-logo img {
  height: 36px;
  width: auto;
  transition: opacity 0.3s ease;
}

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

.nav-link {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory);
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ivory);
  transition: width var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  padding: 4px 0;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  height: 1px;
  background: var(--ivory);
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 12s ease;
}

.hero-bg.loaded {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 clamp(20px, 6vw, 80px);
  max-width: 900px;
  width: 100%;
}

.hero-tagline {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(13px, 1.8vw, 18px);
  color: #AAAAAA;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  transition-delay: 0.1s;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(80px, 13vw, 140px);
  color: var(--ivory);
  letter-spacing: 0.18em;
  line-height: 1;
  margin-bottom: 20px;
  transition-delay: 0.25s;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(10px, 1.4vw, 13px);
  color: var(--stone);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 48px;
  transition-delay: 0.4s;
}

.hero-content .btn {
  transition-delay: 0.55s;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(250, 250, 248, 0.5));
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; transform: scaleY(0.6); }
  50%       { opacity: 0.8; transform: scaleY(1); }
}

/* ═══════════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════════ */
#about {
  background: var(--ivory);
  padding: var(--section-pad) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

.about-photo {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 640px;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s ease;
}

.about-photo:hover img {
  transform: scale(1.03);
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-text .section-heading {
  text-align: left;
  margin-bottom: 20px;
}

.about-text .accent-text {
  text-align: left;
  margin-bottom: 28px;
  font-size: clamp(16px, 1.8vw, 21px);
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--fog);
  margin-top: 8px;
}

.stat-tile {
  padding: 28px 12px 20px;
  border-right: 1px solid var(--fog);
  text-align: center;
}

.stat-tile:last-child {
  border-right: none;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3.5vw, 36px);
  color: var(--void);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ═══════════════════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════════════════ */
#services {
  padding: var(--section-pad) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  margin-bottom: 48px;
}

.service-card {
  background: var(--void);
}

.service-card-inner {
  background: #1A1A1A;
  border: 1px solid var(--border);
  padding: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 48px);
  transition: border-color var(--transition-base), transform var(--transition-base);
  height: 100%;
}

.service-card:hover .service-card-inner {
  border-color: var(--smoke);
  transform: translateY(-4px);
}

.service-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--ivory);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.service-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  color: var(--stone);
  line-height: 1.85;
  letter-spacing: 0.01em;
}

.services-note {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--smoke);
  text-align: center;
}

.services-note-link {
  color: var(--stone);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-base);
}

.services-note-link:hover {
  color: var(--ivory);
}

/* ═══════════════════════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════════════════════ */
#gallery {
  background: var(--ivory);
  padding: var(--section-pad) 0;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 52px;
}

.filter-btn {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone);
  background: none;
  border: none;
  padding: 4px 0;
  position: relative;
  transition: color var(--transition-base);
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--void);
  transition: width var(--transition-base);
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--void);
}

.filter-btn.active::after {
  width: 100%;
}

/* Masonry grid */
.gallery-grid {
  columns: 1;
  column-gap: 8px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 8px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item.hidden {
  display: none;
}

.gallery-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.03);
}

/* ═══════════════════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(13, 13, 13, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 32px;
  font-size: 32px;
  color: var(--ivory);
  line-height: 1;
  transition: opacity var(--transition-base);
  z-index: 2001;
}

.lightbox-close:hover {
  opacity: 0.5;
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--ivory);
  padding: 16px 20px;
  transition: opacity var(--transition-base);
  z-index: 2001;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════
   VIDEO
═══════════════════════════════════════════════════════════ */
#video {
  padding: var(--section-pad) 0;
}

.video-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  background: var(--ink);
}

.video-fallback {
  color: var(--stone);
  font-size: 13px;
  text-align: center;
  padding: 40px;
}

.video-fallback a {
  color: var(--ivory);
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   INSTAGRAM
═══════════════════════════════════════════════════════════ */
#instagram {
  background: var(--ivory);
  padding: var(--section-pad) 0;
  text-align: center;
}

.instagram-handle {
  display: block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 52px;
  transition: color var(--transition-base);
}

.instagram-handle:hover {
  color: var(--void);
}

.instagram-placeholder {
  margin-bottom: 52px;
}

.instagram-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin-bottom: 16px;
}

.instagram-placeholder-item {
  overflow: hidden;
  aspect-ratio: 1;
}

.instagram-placeholder-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.instagram-placeholder-item:hover img {
  transform: scale(1.04);
}

.instagram-placeholder-note {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fog);
  text-align: center;
  padding: 8px 0;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════ */
#contact {
  padding: var(--section-pad) 0;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 60px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--stone);
}

.form-label span {
  color: var(--smoke);
}

.form-input {
  background: var(--ink);
  border: 1px solid var(--smoke);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  padding: 14px 16px;
  outline: none;
  transition: border-color var(--transition-base);
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  width: 100%;
}

.form-input::placeholder {
  color: #444;
}

.form-input:focus {
  border-color: var(--stone);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-select option {
  background: var(--ink);
  color: var(--ivory);
}

.form-date::-webkit-calendar-picker-indicator {
  filter: invert(0.4);
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
}

.form-success {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--ivory);
  text-align: center;
  padding: 24px;
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
  margin-top: 8px;
}

.form-error {
  font-family: var(--font-body);
  font-size: 13px;
  color: #c47a6a;
  text-align: center;
  padding: 16px;
  margin-top: 8px;
}

.form-error a {
  color: var(--stone);
  text-decoration: underline;
}

/* Contact secondary CTA */
.contact-secondary {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.contact-secondary-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 16px;
}

.contact-instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--stone);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color var(--transition-base);
}

.contact-instagram-link:hover {
  color: var(--ivory);
}

.instagram-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
#footer {
  background: var(--void);
  border-top: 1px solid var(--ink);
  padding: 64px clamp(20px, 5vw, 60px) 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo img {
  height: 40px;
  width: auto;
  margin: 0 auto;
}

.footer-tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--smoke);
}

.footer-instagram {
  color: var(--smoke);
  transition: color var(--transition-base);
}

.footer-instagram:hover {
  color: var(--ivory);
}

.footer-instagram svg {
  width: 20px;
  height: 20px;
  display: block;
}

.footer-legal,
.footer-abn {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #333333;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 768px (tablet)
═══════════════════════════════════════════════════════════ */
@media (min-width: 768px) {

  /* Nav */
  .nav-hamburger {
    display: none !important;
  }

  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: transparent;
    padding: 0;
    width: auto;
    height: auto;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }

  .about-photo {
    max-height: none;
  }

  .about-text .section-heading {
    text-align: left;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Gallery */
  .gallery-grid {
    columns: 2;
  }

  /* Instagram */
  .instagram-placeholder-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Contact form two-column pairs */
  .contact-form {
    grid-template-columns: 1fr 1fr;
  }

  .form-group--full {
    grid-column: 1 / -1;
  }

  .btn-submit {
    grid-column: 1 / -1;
  }

  #form-success,
  #form-error {
    grid-column: 1 / -1;
  }

}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 1024px (desktop)
═══════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {

  .gallery-grid {
    columns: 3;
  }

}

/* ═══════════════════════════════════════════════════════════
   MOBILE NAVIGATION OVERLAY
═══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--void);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    font-size: 12px;
    letter-spacing: 0.35em;
  }

  .hero-title {
    font-size: clamp(64px, 18vw, 100px);
  }

  .stats-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-number {
    font-size: clamp(20px, 5vw, 28px);
  }

  .gallery-grid {
    columns: 1;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

}

/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .fade-in {
    opacity: 1;
    transform: none;
  }

  .hero-bg {
    transform: none;
  }
}
