/* ============================================
   GREEN TURTLE PRODUCTIONS, SITE STYLES
   ============================================ */

:root {
  /* Background System */
  --bg-primary: #0d1117;
  --bg-surface: #161b22;
  --bg-elevated: #1c2128;
  --bg-overlay: #2d333b;
  --bg-deep: #08090c;

  /* Accent */
  --accent: #56c4b8;
  --accent-hover: #6dd9cd;
  --accent-dim: #3a9e94;
  --accent-muted: rgba(86, 196, 184, 0.12);
  --accent-subtle: rgba(86, 196, 184, 0.06);

  /* Gold */
  --gold: #d4a853;
  --gold-hover: #e0ba6a;
  --gold-muted: rgba(212, 168, 83, 0.12);

  /* Text */
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #484f58;

  /* Borders */
  --border: #30363d;
  --border-soft: rgba(255,255,255,0.06);
  --border-accent: rgba(86, 196, 184, 0.25);

  /* Gradients */
  --gradient-hero: linear-gradient(160deg, #0d1117 0%, #12211e 40%, #162b27 100%);
  --gradient-vignette: radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(0,0,0,0.6) 100%);
  --gradient-accent: linear-gradient(135deg, #56c4b8, #3a9e94);
  --gradient-gold: linear-gradient(135deg, #d4a853, #b8923e);
  --gradient-card: linear-gradient(180deg, #1c2128 0%, #161b22 100%);

  /* Shadow */
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(86,196,184,0.2);

  /* Timing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Film grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out), padding 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 40px;
  border-bottom-color: var(--border-soft);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Abril Fatface', serif;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  z-index: 2;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gradient-accent);
  display: grid;
  place-items: center;
  color: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.nav-logo-mark svg {
  width: 22px;
  height: 22px;
}

.nav-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

/* animated section backgrounds (Higgsfield video) */
.bg-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bg-overlay { position: absolute; inset: 0; }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; opacity: 0.85; transition: color 0.2s, opacity 0.2s; }
.footer-bottom a:hover { color: var(--accent); opacity: 1; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-left: 4px;
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  transition: color 0.25s;
  padding: 6px 0;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transition: right 0.35s var(--ease-out);
}

.nav-links a:hover::after, .nav-links a.active::after {
  right: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--gold);
  color: var(--bg-primary);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

.nav-mobile-toggle { display: none; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-gold { background: var(--gold); color: var(--bg-primary); }
.btn-gold:hover { background: var(--gold-hover); box-shadow: 0 8px 24px rgba(212, 168, 83, 0.3); transform: translateY(-2px); }

.btn-primary { background: var(--accent); color: var(--bg-primary); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-glow); transform: translateY(-2px); }

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

.btn-lg { padding: 18px 36px; font-size: 15px; }
.btn-sm { padding: 10px 20px; font-size: 12px; }

.btn-arrow::after {
  content: '→';
  transition: transform 0.3s var(--ease-out);
  display: inline-block;
}
.btn-arrow:hover::after { transform: translateX(6px); }

/* ============================================
   LAYOUT HELPERS
   ============================================ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.container-sm {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  display: none;
}

.section-title {
  font-family: 'Abril Fatface', serif;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

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

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 400ms; }

.reveal-stagger.in > * {
  opacity: 1;
  transform: translateY(0);
}

/* Motion intensity override */
[data-motion="off"] .reveal,
[data-motion="off"] .reveal-stagger > * {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-soft);
  padding: 80px 0 40px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand .footer-logo {
  font-family: 'Abril Fatface', serif;
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 24px;
}

.footer-contact {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

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

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color 0.2s, transform 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.footer-socials a:hover {
  color: var(--accent);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.footer-socials svg { width: 16px; height: 16px; }

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
  display: none !important; /* custom cursor removed on request */
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s, opacity 0.3s;
  mix-blend-mode: difference;
  opacity: 0;
}

.cursor.ring {
  position: fixed;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), opacity 0.3s;
  opacity: 0;
}

body.cursor-on .cursor,
body.cursor-on .cursor.ring { opacity: 1; }

body.cursor-hover .cursor { width: 4px; height: 4px; }
body.cursor-hover .cursor.ring { width: 60px; height: 60px; background: var(--accent-muted); }

@media (hover: none) {
  .cursor, .cursor.ring { display: none; }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
  display: flex;
  overflow: hidden;
  position: relative;
  padding: 40px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-deep);
}

.marquee-track {
  display: flex;
  gap: 80px;
  animation: marquee 40s linear infinite;
  flex-shrink: 0;
  padding-right: 80px;
}

.marquee-item {
  font-family: 'Abril Fatface', serif;
  font-size: 48px;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 80px;
  flex-shrink: 0;
}

.marquee-item::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

[data-motion="off"] .marquee-track { animation: none; }

/* ============================================
   PAGE HEADER (interior pages)
   ============================================ */
.page-header {
  padding: 200px 0 100px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(86,196,184,0.08), transparent 60%);
}

.page-header-inner { position: relative; z-index: 1; }

.page-header h1 {
  font-family: 'Abril Fatface', serif;
  font-size: clamp(52px, 8vw, 112px);
  font-weight: 400;
  line-height: 0.95;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.page-header p {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .nav { padding: 16px 20px; }
  .nav.scrolled { padding: 12px 20px; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; }
  .nav.menu-open {
    background: rgba(13, 17, 23, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }
  .nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 8px 20px 20px;
    border-bottom: 1px solid var(--border-soft);
  }
  .nav.menu-open .nav-links a {
    display: block;
    padding: 14px 4px;
    font-size: 17px;
    border-bottom: 1px solid var(--border-soft);
  }
  .nav.menu-open .nav-links li:last-child a { border-bottom: none; }
  .container, .container-sm { padding: 0 20px; }
  .section { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-header { padding: 140px 0 60px; }
  .marquee-item { font-size: 32px; gap: 48px; }
  .marquee-track { gap: 48px; padding-right: 48px; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .nav-cta { display: none; }
}
