/* ============================================================
   TIMECOYL — COMMON STYLES
   Shared across all pages: variables, typography, nav, footer,
   utilities, scroll animations, hamburger menu.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&family=Instrument+Serif:ital@0;1&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ---- Design Tokens ---- */
:root {
  --orange: #FF6600;
  --orange-soft: #FF8533;
  --orange-glow: rgba(255,102,0,0.12);
  --navy: #0F1A2E;
  --navy-light: #1a2a45;
  --sky: #32AED6;
  --sky-soft: rgba(50,174,214,0.1);
  --cream: #FAF9F5;
  --cream-dark: #F0EDE6;
  --warm-white: #FFFCF7;
  --text-dark: #1a1a2e;
  --text-body: #3a3a4a;
  --text-muted: #6a6a7a;
  --font-display: 'Playfair Display', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-body: 'DM Sans', Calibri, -apple-system, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a, a:hover, a:focus { text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ---- Utilities ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(255,102,0,0.3);
}

.btn-primary:hover {
  background: var(--orange-soft);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255,102,0,0.4);
}

.btn-secondary {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-secondary:hover { color: white; }

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s;
}

nav.scrolled {
  background: rgba(15,26,46,0.92);
  backdrop-filter: blur(20px);
  padding: 0.85rem 2.5rem;
  box-shadow: 0 1px 30px rgba(0,0,0,0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
  letter-spacing: -0.01em;
}

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

.nav-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-link:hover { color: white; }

.nav-cta {
  padding: 0.55rem 1.25rem;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--orange-soft);
  color: white;
  transform: translateY(-1px);
}

/* ---- Hamburger Menu (mobile) ---- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  position: relative;
  z-index: 110;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

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

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

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

/* ---- Mobile Nav Overlay ---- */
@media (max-width: 900px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(15,26,46,0.97);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
    box-shadow: -8px 0 40px rgba(0,0,0,0.3);
  }

  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links .nav-link,
  .nav-links .nav-cta {
    padding: 0.85rem 0;
    font-size: 1rem;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-links .nav-cta {
    margin-top: 1rem;
    padding: 0.75rem 1.25rem;
    text-align: center;
    border-bottom: none;
    border-radius: 0.4rem;
    display: block;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #080d18;
  color: rgba(255,255,255,0.3);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.75rem;
}

.footer-tagline {
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255,255,255,0.6); }

.footer-copy { font-size: 0.65rem; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
