/* ============================================
   CORONADO PHOTO & MEDIA — Design System
   Brief v1 · Midnight + Cream + Gold
   ============================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  /* Primary palette */
  --midnight: #0A1F3A;
  --navy-soft: #1A3A5C;
  --footer-dark: #061528;

  /* Secondary (cream) */
  --cream-light: #FAF3E5;
  --cream-warm: #F5EBD9;
  --white: #FFFFFF;

  /* Accent (gold) */
  --gold: #C9A961;
  --gold-muted: #B8A87C;
  --gold-hover: #D4B670;

  /* Text */
  --text-on-dark: #F5EBD9;
  --text-on-dark-muted: #B8A87C;
  --text-on-light: #0A1F3A;
  --text-on-light-muted: #6B5D3F;

  /* Borders */
  --border-light: rgba(184, 168, 124, 0.25);
  --border-dark: rgba(255, 255, 255, 0.1);
  --border-gold: rgba(201, 169, 97, 0.3);

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Type scale */
  --text-xs: 10px;
  --text-sm: 11px;
  --text-base: 12px;
  --text-md: 14px;
  --text-lg: 16px;
  --text-xl: 18px;
  --text-2xl: 22px;
  --text-3xl: 28px;
  --text-4xl: 36px;
  --text-5xl: 48px;
  --text-6xl: 64px;

  /* Layout */
  --max-width: 1240px;
  --nav-height: 72px;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-slow: 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-on-light);
  background: var(--cream-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}

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

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

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

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-6); }
}

.section {
  padding: var(--space-9) 0;
}

.section--tight {
  padding: var(--space-8) 0;
}

@media (max-width: 767px) {
  .section { padding: var(--space-8) 0; }
  .section--tight { padding: var(--space-7) 0; }
}

.section--cream { background: var(--cream-light); }
.section--cream-warm { background: var(--cream-warm); }
.section--midnight {
  background: var(--midnight);
  color: var(--text-on-dark);
}

/* ---------- TYPOGRAPHY ---------- */
.eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-on-light-muted);
  margin-bottom: var(--space-4);
  display: inline-block;
}

.eyebrow--on-dark {
  color: var(--gold-muted);
}

.h1 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.h2 {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.h3 {
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lead {
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--text-on-light-muted);
  max-width: 56ch;
}

.lead--on-dark {
  color: var(--text-on-dark-muted);
}

.text-gold { color: var(--gold); }
.text-muted { color: var(--text-on-light-muted); }
.text-muted--on-dark { color: var(--text-on-dark-muted); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 22px;
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: all var(--t-base);
  white-space: nowrap;
  position: relative;
}

.btn--gold {
  background: var(--gold);
  color: var(--midnight);
}

.btn--gold:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 169, 97, 0.25);
}

.btn--outline-cream {
  background: transparent;
  color: var(--text-on-dark);
  box-shadow: inset 0 0 0 1px var(--gold-muted);
}

.btn--outline-cream:hover {
  background: rgba(201, 169, 97, 0.08);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.btn--outline-midnight {
  background: transparent;
  color: var(--midnight);
  box-shadow: inset 0 0 0 1px var(--midnight);
}

.btn--outline-midnight:hover {
  background: var(--midnight);
  color: var(--cream-light);
}

.btn--sm {
  padding: 9px 16px;
  font-size: var(--text-sm);
}

/* ---------- NAVIGATION ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--midnight);
  border-bottom: 1px solid var(--border-dark);
  height: var(--nav-height);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-on-dark);
}

.nav__logo-mark {
  width: 36px;
  height: 36px;
  background: var(--gold);
  color: var(--midnight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: var(--text-lg);
  border-radius: 4px;
  letter-spacing: 0;
}

.nav__logo-mark svg {
  display: block;
}

.text-cream {
  color: var(--text-on-dark);
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav__logo-name {
  font-size: var(--text-md);
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-on-dark);
}

.nav__logo-tag {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--gold-muted);
  margin-top: 3px;
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav__links a {
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--text-on-dark);
  transition: color var(--t-fast);
  position: relative;
  padding: 4px 0;
}

.nav__links a:hover {
  color: var(--gold);
}

.nav__links a.is-active {
  color: var(--gold);
}

.nav__links a.is-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

.nav__cta {
  display: none;
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.nav__toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--text-on-dark);
  transition: all var(--t-base);
}

.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}

/* Mobile menu */
.nav__mobile {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--midnight);
  border-bottom: 1px solid var(--border-dark);
  padding: var(--space-5);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all var(--t-base);
  z-index: 99;
}

.nav__mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav__mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.nav__mobile a {
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--text-on-dark);
  padding: var(--space-2) 0;
  display: block;
}

.nav__mobile .btn {
  margin-top: var(--space-3);
  width: 100%;
}

@media (min-width: 900px) {
  .nav__mobile { display: none; }
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--footer-dark);
  color: var(--text-on-dark-muted);
  padding: var(--space-8) 0 var(--space-6);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-7);
  }
}

.footer__brand-name {
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-on-dark);
  margin-bottom: var(--space-3);
}

.footer__brand-desc {
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: 32ch;
}

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-muted);
  margin-bottom: var(--space-4);
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__col a {
  font-size: var(--text-sm);
  color: var(--text-on-dark-muted);
  transition: color var(--t-fast);
}

.footer__col a:hover {
  color: var(--gold);
}

.footer__bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-xs);
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer__email {
  color: var(--gold);
  transition: color var(--t-fast);
}

.footer__email:hover {
  color: var(--gold-hover);
}

/* ---------- FADE-IN ON LOAD ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fade-in--1 { animation-delay: 0.05s; }
.fade-in--2 { animation-delay: 0.15s; }
.fade-in--3 { animation-delay: 0.25s; }
.fade-in--4 { animation-delay: 0.35s; }
.fade-in--5 { animation-delay: 0.45s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
}
