/* ============================================================
   STILL STANDING STUDIOS — Main Stylesheet
   ============================================================ */

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

/* ── Variables ────────────────────────────────────────────── */
:root {
  /* Brand: amber/gold primary, deep navy secondary */
  --dark:       #0F1624;
  --dark-2:     #172034;
  --dark-3:     #1F2D47;
  --navy:       #1A2D4F;
  --navy-deep:  #0D1B35;
  --warm:       #F8F4EF;
  --warm-2:     #EDE8E0;
  --warm-3:     #DDD7CE;
  /* Gold / Amber — primary brand color (from logo) */
  --gold:       #D98C2A;
  --gold-light: #E8A83C;
  --gold-bright:#F0B84A;
  --gold-glow:  rgba(217,140,42,0.18);
  /* Teal — kept as secondary accent for app UI harmony */
  --teal:       #1DB8A0;
  --teal-dark:  #158C7A;
  --teal-glow:  rgba(29,184,160,0.12);
  /* Text */
  --text-dark:  #0D1B35;
  --text-mid:   #3D4E6E;
  --text-warm:  #F8F4EF;
  --text-muted: rgba(248,244,239,0.55);
  --nav-h:      72px;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(0,0,0,0.18);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.28);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--text-warm);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; font-weight: 600; }

.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}
.eyebrow.teal { color: var(--teal); }

p { font-size: 1.05rem; color: var(--text-mid); line-height: 1.75; }
.light-section p { color: var(--text-mid); }
.dark-section  p { color: var(--text-muted); }

/* ── Layout Helpers ───────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.section    { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }

.light-section { background: var(--warm); color: var(--text-dark); }
.light-section h1,
.light-section h2,
.light-section h3,
.light-section h4 { color: var(--text-dark); }

.dark-section  { background: var(--dark-2); }
.alt-section   { background: var(--warm-2); color: var(--text-dark); }
.alt-section h2, .alt-section h3, .alt-section h4 { color: var(--text-dark); }

.text-center { text-align: center; }
.text-teal   { color: var(--teal) !important; }
.text-gold   { color: var(--gold) !important; }

/* ── Grain overlay for hero sections ─────────────────────── */
.hero {
  position: relative;
  background: var(--dark);
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero-glow-1 {
  width: 700px; height: 700px;
  background: var(--gold-glow);
  top: -150px; left: -200px;
}
.hero-glow-2 {
  width: 500px; height: 500px;
  background: rgba(217,140,42,0.10);
  bottom: -100px; right: -100px;
}

.hero-content { position: relative; z-index: 2; }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(9,13,24,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-warm);
  line-height: 1.2;
}
.nav-logo-text span { color: var(--teal); }

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

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(247,243,238,0.75);
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-warm); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { cursor: pointer; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  min-width: 220px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: all var(--transition);
  box-shadow: var(--shadow-lg);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  color: rgba(247,243,238,0.75);
  transition: all var(--transition);
}
.dropdown-menu a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-warm);
  padding-left: 1.5rem;
}

.nav-cta {
  background: var(--gold);
  color: #fff !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  transition: all var(--transition) !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }
.nav-cta::after { display: none !important; }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-warm);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: #fff;
}
.btn-primary:hover {
  background: var(--gold-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(217,140,42,0.40);
}

.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(217,140,42,0.40);
}

.btn-outline {
  background: transparent;
  color: var(--text-warm);
  border: 1.5px solid rgba(247,243,238,0.3);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-1px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid rgba(26,28,46,0.3);
}
.btn-outline-dark:hover {
  border-color: var(--teal-dark);
  color: var(--teal-dark);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Section Headers ──────────────────────────────────────── */
.section-header {
  margin-bottom: 3.5rem;
}
.section-header.center { text-align: center; }
.section-header p {
  max-width: 600px;
  margin-top: 1rem;
}
.section-header.center p { margin: 1rem auto 0; }

/* ── Cards Grid ───────────────────────────────────────────── */
.card-grid {
  display: grid;
  gap: 1.5rem;
}
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}
.card:hover {
  border-color: rgba(29,184,160,0.25);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.card-light {
  background: #fff;
  border: 1px solid var(--warm-3);
  color: var(--text-dark);
}
.card-light:hover {
  border-color: var(--teal);
  box-shadow: 0 12px 32px rgba(29,184,160,0.12);
}

/* ── App Card (software listing) ─────────────────────────── */
.app-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  background: #fff;
  border: 1px solid var(--warm-3);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  margin-bottom: 2rem;
}
.app-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  border-color: var(--teal);
  transform: translateY(-2px);
}
.app-card.reverse { direction: rtl; }
.app-card.reverse > * { direction: ltr; }

.app-card-info h3 { color: var(--text-dark); margin-bottom: 0.5rem; }
.app-card-info .eyebrow { margin-bottom: 0.4rem; }
.app-card-info p { margin: 1rem 0 1.5rem; font-size: 0.97rem; }

/* ── Phone Mockup ─────────────────────────────────────────── */
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 220px;
  border-radius: 36px;
  background: #0A0A0A;
  padding: 10px;
  box-shadow:
    0 0 0 2px #1A1A1A,
    0 30px 80px rgba(0,0,0,0.5),
    0 8px 20px rgba(0,0,0,0.3);
}

.phone::before {
  content: '';
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 6px;
  background: #1A1A1A;
  border-radius: 4px;
  z-index: 10;
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 9/19.5;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Phone gallery layout */
.phone-gallery {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.phone-sm .phone { width: 160px; }

/* ── Screenshot Carousel ──────────────────────────────────── */
.screenshot-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

/* ── Store Buttons ────────────────────────────────────────── */
.store-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.25rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  background: var(--text-dark);
  color: #fff;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition);
  border: 1.5px solid rgba(255,255,255,0.1);
}
.store-btn:hover {
  background: #2a2a3e;
  border-color: var(--teal);
  transform: translateY(-1px);
}
.store-btn svg { flex-shrink: 0; }
.store-btn-label { display: flex; flex-direction: column; }
.store-btn-label small { font-size: 0.65rem; opacity: 0.7; font-weight: 300; }
.store-btn-label strong { font-size: 0.85rem; }

/* ── QR Code ──────────────────────────────────────────────── */
.qr-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.qr-code {
  width: 80px; height: 80px;
  background: #fff;
  padding: 6px;
  border-radius: 8px;
}
.qr-label {
  font-size: 0.68rem;
  color: var(--text-mid);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ── Features List ────────────────────────────────────────── */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.feature-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--teal-glow);
  border: 1px solid rgba(29,184,160,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--teal);
  font-size: 1rem;
}
.feature-icon.gold-icon {
  background: var(--gold-glow);
  border-color: rgba(196,151,58,0.2);
  color: var(--gold);
}

.feature-text h4 { font-size: 0.92rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.2rem; }
.feature-text p  { font-size: 0.85rem; line-height: 1.5; }

/* ── Spotify Embeds ───────────────────────────────────────── */
.spotify-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.spotify-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.spotify-placeholder {
  background: var(--dark-3);
  border: 1.5px dashed rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.spotify-placeholder .sp-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.spotify-placeholder strong { display: block; color: var(--text-warm); margin-bottom: 0.25rem; }

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(29,184,160,0.3), transparent);
  margin: 0 auto;
  max-width: 600px;
}

/* ── Coming Soon badge ────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-teal   { background: var(--teal-glow); color: var(--teal); border: 1px solid rgba(29,184,160,0.3); }
.badge-gold   { background: var(--gold-glow); color: var(--gold); border: 1px solid rgba(196,151,58,0.3); }
.badge-soon   { background: rgba(255,255,255,0.06); color: rgba(247,243,238,0.5); border: 1px solid rgba(255,255,255,0.1); }

/* ── Custom Software CTA ──────────────────────────────────── */
.custom-cta {
  background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark-3) 100%);
  border: 1px solid rgba(29,184,160,0.2);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.custom-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(29,184,160,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.custom-cta h2 { margin-bottom: 1rem; }
.custom-cta p  { max-width: 540px; margin: 0 auto 2rem; color: var(--text-muted); }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 4rem 0 2rem;
}

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

.footer-brand .nav-logo-text { font-size: 1.1rem; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

.footer-col h4 {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  font-weight: 500;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(247,243,238,0.6);
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--teal); }

.footer-contact p {
  font-size: 0.85rem;
  color: rgba(247,243,238,0.6);
  line-height: 1.8;
}
.footer-contact a { color: var(--teal); }
.footer-contact a:hover { color: var(--teal-dark); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(247,243,238,0.35); }

/* ── Page Hero (sub-pages) ────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(29,184,160,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(196,151,58,0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim-1 { animation: fadeUp 0.7s ease both; }
.anim-2 { animation: fadeUp 0.7s 0.12s ease both; }
.anim-3 { animation: fadeUp 0.7s 0.24s ease both; }
.anim-4 { animation: fadeUp 0.7s 0.36s ease both; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links    { display: none; }
  .nav-hamburger { display: flex; }
  
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--dark-2);
    padding: 1.5rem 2rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  
  .dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    padding-left: 1rem;
    min-width: 0;
  }
  .dropdown-menu a { padding: 0.4rem 0; }
  
  .footer-grid { grid-template-columns: 1fr 1fr; }
  
  .app-card { grid-template-columns: 1fr; gap: 2rem; }
  .app-card.reverse { direction: ltr; }

  .hero { min-height: auto; padding: 8rem 0 5rem; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 4rem 0; }
  .custom-cta { padding: 2.5rem 1.5rem; }
  .phone { width: 175px; }
  .phone-sm .phone { width: 130px; }
}
