/* ==========================================================================
   SILENT MEMORY PHOTOGRAPHY - GLOBAL & SHARED STYLES
   Editorial, warm, minimal, high-craft design system
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & VARIABLE DECLARATIONS
   -------------------------------------------------------------------------- */
:root {
  /* Brand Core Colors */
  --bg-primary: #FAFAF7;
  --bg-dark: #1A1A18;
  --accent-gold: #8B6F47;
  --accent-gold-hover: #735936;
  --accent-olive: #4A5240;
  --text-primary: #1A1A1A;
  --text-secondary: #6B6B6B;
  --text-light: #FAFAF7;
  --border-color: #E0D8CE;
  --border-dark: #333330;

  /* Category Subtle Tint System (Used ONLY for gallery grid gap/background margin) */
  --tint-graduation: #F3EEE3;
  --tint-private-photoshoot: #EEF1EB;
  --tint-love-package: #F5ECEC;
  --tint-event-documentation: #EEEEEB;
  --tint-commercial: #E9E8E4;

  /* Typography */
  --font-heading: 'Fraunces', serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout Boundaries */
  --container-max: 1440px;
  --navbar-height: 84px;
  --header-height: var(--navbar-height);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY HIERARCHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.heading-xl {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
}

.heading-lg {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.heading-md {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
}

.heading-sm {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
}

.sub-title {
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 500;
}

.body-large {
  font-size: 1.125rem;
  line-height: 1.7;
}

.body-muted {
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   4. LAYOUT CONTAINERS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.5rem, 4vw, 4rem);
  padding-right: clamp(1.5rem, 4vw, 4rem);
}

.section-padding {
  padding-top: clamp(4rem, 8vw, 8rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

/* --------------------------------------------------------------------------
   5. NAVIGATION BAR
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background-color var(--transition-medium), border-color var(--transition-medium), backdrop-filter var(--transition-medium);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background-color: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-color);
}

/* Transparent mode header styling on dark hero */
.site-header.hero-transparent:not(.scrolled) {
  background-color: transparent;
  color: var(--text-light);
}

.site-header.hero-transparent:not(.scrolled) .nav-link {
  color: rgba(250, 250, 247, 0.85);
}

.site-header.hero-transparent:not(.scrolled) .nav-link:hover,
.site-header.hero-transparent:not(.scrolled) .nav-link.active {
  color: var(--text-light);
}

.site-header.hero-transparent:not(.scrolled) .mobile-menu-toggle span {
  background-color: var(--text-light);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo-img {
  height: 36px;
  max-height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity var(--transition-medium);
}

@media (max-width: 768px) {
  .brand-logo-img {
    height: 28px;
    max-height: 28px;
  }
}

/* Header logo toggle depending on dark background vs scrolled light background */
.site-header.hero-transparent:not(.scrolled) .brand-logo-img.logo-black {
  display: none !important;
}

.site-header.hero-transparent:not(.scrolled) .brand-logo-img.logo-white {
  display: block !important;
}

.site-header:not(.hero-transparent) .brand-logo-img.logo-white,
.site-header.scrolled .brand-logo-img.logo-white {
  display: none !important;
}

.site-header:not(.hero-transparent) .brand-logo-img.logo-black,
.site-header.scrolled .brand-logo-img.logo-black {
  display: block !important;
}

.footer-brand .brand-logo-img {
  height: 40px;
  max-height: 40px;
  margin-bottom: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1.5px;
  background-color: var(--accent-gold);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--text-primary);
}

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

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  background: none;
  border: none;
  z-index: 1002;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast), background-color var(--transition-fast);
}

.mobile-menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-dark);
  color: var(--text-light);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 2rem;
  transition: right var(--transition-medium);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: rgba(250, 250, 247, 0.7);
  transition: color var(--transition-fast);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   6. BUTTONS & INTERACTIVE ELEMENTS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--text-light);
  border: 1px solid var(--accent-gold);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
}

.btn-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border: 1px solid var(--bg-dark);
}

.btn-dark:hover {
  background-color: #2c2c28;
  border-color: #2c2c28;
}

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

.btn-outline:hover {
  border-color: var(--text-primary);
  background-color: rgba(26, 26, 26, 0.03);
}

.btn-link {
  padding: 0;
  background: transparent;
  color: var(--accent-gold);
  border: none;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-link::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.btn-link:hover::after {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   7. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding-top: 5rem;
  padding-bottom: 3rem;
  margin-top: auto;
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: rgba(250, 250, 247, 0.6);
  font-size: 0.95rem;
  max-width: 320px;
  margin-top: 1rem;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--text-light);
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-menu a {
  color: rgba(250, 250, 247, 0.65);
  font-size: 0.9rem;
}

.footer-menu a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(250, 250, 247, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(250, 250, 247, 0.45);
}

/* --------------------------------------------------------------------------
   8. SCROLL FADE ANIMATION UTILITY
   -------------------------------------------------------------------------- */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

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

/* --------------------------------------------------------------------------
   9. RESPONSIVE BREAKPOINTS (SHARED)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 70px;
    --header-height: var(--navbar-height);
  }
  
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
