/*
Theme Name:  AMP Music
Theme URI:   https://ampmusic.io
Author:      AMP Music
Description: Official theme for ampmusic.io — clean, modern, single-page layout for AMP Music and its apps.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: ampmusic
*/

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

/* ── Variables ──────────────────────────────────────────────────── */
:root {
  --cream:      #F7F4EF;
  --white:      #FFFFFF;
  --ink:        #1A1814;
  --ink-mid:    #4A4540;
  --ink-light:  #9A9590;
  --coral:      #E8644A;
  --rule:       #E2DDD8;
  --nav-h:      68px;
}

/* ── Base ───────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ── NAV ────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: rgba(247, 244, 239, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav-logo {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px; font-weight: 900;
  letter-spacing: -1px;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo span { color: var(--coral); }

.nav-links {
  display: flex; gap: 36px; list-style: none;
}
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--coral); }

.nav-cta {
  background: var(--ink) !important;
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 6px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--coral) !important; }

/* ── HERO ───────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 80px) 48px 100px;
  position: relative; overflow: hidden;
}

.hero-eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--coral); margin-bottom: 24px;
  opacity: 0; animation: fadeUp 0.7s 0.1s forwards;
}

.hero-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 900; line-height: 0.96; letter-spacing: -3px;
  max-width: 780px;
  opacity: 0; animation: fadeUp 0.8s 0.2s forwards;
}
.hero-heading em { font-style: italic; color: var(--coral); }

.hero-sub {
  margin-top: 32px;
  font-size: 18px; font-weight: 300; line-height: 1.65;
  color: var(--ink-mid); max-width: 520px;
  opacity: 0; animation: fadeUp 0.8s 0.35s forwards;
}

.hero-actions {
  margin-top: 48px;
  display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.8s 0.5s forwards;
}

.hero-bg-circle {
  position: absolute; right: -120px; top: 50%;
  transform: translateY(-50%);
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(232,100,74,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--coral); color: var(--white);
  font-size: 14px; font-weight: 600;
  padding: 14px 28px; border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #d4533b; transform: translateY(-1px); color: var(--white); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ink);
  font-size: 14px; font-weight: 500;
  padding: 14px 28px; border-radius: 8px;
  border: 1px solid var(--rule);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s;
}
.btn-secondary:hover { border-color: var(--ink-mid); transform: translateY(-1px); }

/* ── SECTIONS ───────────────────────────────────────────────────── */
.site-section { padding: 120px 48px; }
.site-section + .site-section { border-top: 1px solid var(--rule); }

.section-eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--coral); margin-bottom: 16px;
}

.section-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 900; line-height: 1.0; letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.section-body {
  font-size: 16px; font-weight: 300; line-height: 1.75;
  color: var(--ink-mid); max-width: 640px;
}
.section-body strong { font-weight: 700; color: var(--ink); }

/* ── ABOUT ──────────────────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start; margin-top: 64px;
}

.about-stat-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; margin-top: 4px;
}

.about-stat {
  background: var(--white); padding: 32px;
}
.about-stat:first-child  { border-radius: 12px 0 0 0; }
.about-stat:nth-child(2) { border-radius: 0 12px 0 0; }
.about-stat:nth-child(3) { border-radius: 0 0 0 12px; }
.about-stat:last-child   { border-radius: 0 0 12px 0; }

.about-stat-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 40px; font-weight: 900; letter-spacing: -1.5px;
  color: var(--coral); line-height: 1; margin-bottom: 6px;
}
.about-stat-label {
  font-size: 13px; font-weight: 400;
  color: var(--ink-mid); line-height: 1.4;
}

/* ── APPS ───────────────────────────────────────────────────────── */
.apps-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-top: 64px;
}

.app-card {
  background: var(--white); border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(26,24,20,0.1);
}

.app-card-hero {
  height: 240px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 64px; font-weight: 900; letter-spacing: -3px;
  position: relative; overflow: hidden;
}
.app-card-hero.amp-unltd {
  background: linear-gradient(135deg, #1A1814 0%, #2D2820 100%);
  color: var(--white);
}
.app-card-hero.ampviz {
  background: linear-gradient(135deg, #F0EBE3 0%, #E8DDD4 100%);
  color: var(--ink);
}
.app-card-hero-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.app-card-hero.amp-unltd .app-card-hero-label { color: rgba(255,255,255,0.4); }
.app-card-hero.ampviz .app-card-hero-label { color: var(--ink-light); }

.app-card-body { padding: 36px; }

.app-card-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 26px; font-weight: 900; letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.app-card-desc {
  font-size: 14px; font-weight: 300; line-height: 1.7;
  color: var(--ink-mid); margin-bottom: 28px;
}

.feature-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 32px;
}
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; font-weight: 400; color: var(--ink-mid);
}
.feature-list li::before {
  content: '';
  display: block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--coral); margin-top: 5px; flex-shrink: 0;
}

.app-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--rule);
}
.app-platform {
  font-size: 13px; color: var(--ink-light);
}

.app-badge {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 20px;
}
.badge-coming-soon {
  background: rgba(232,100,74,0.1); color: var(--coral);
}

/* ── CONTACT ────────────────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 80px; align-items: start; margin-top: 64px;
}

.contact-info-item { margin-bottom: 32px; }
.contact-info-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--coral); margin-bottom: 8px;
}
.contact-info-value {
  font-size: 15px; color: var(--ink-mid); font-weight: 300;
}
.contact-info-value a { color: var(--ink); text-decoration: none; font-weight: 400; }
.contact-info-value a:hover { color: var(--coral); }

.contact-form-wrap {
  background: var(--white); border-radius: 16px; padding: 48px;
}

.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 16px;
}
.form-group {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px;
}
.form-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink-mid);
}
.form-input,
.form-textarea,
.form-select {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 300; color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--rule); border-radius: 8px;
  padding: 12px 16px; outline: none; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(232,100,74,0.12);
}
.form-textarea { resize: vertical; min-height: 120px; }

.form-submit {
  margin-top: 24px; width: 100%;
  background: var(--ink); color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
  padding: 15px 24px; border: none; border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.form-submit:hover { background: var(--coral); transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.form-message {
  margin-top: 16px; font-size: 13px; text-align: center; min-height: 20px;
}
.form-message.success { color: #16a34a; }
.form-message.error   { color: #dc2626; }

/* ── FOOTER ─────────────────────────────────────────────────────── */
.site-footer {
  padding: 48px;
  border-top: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px; font-weight: 900; letter-spacing: -0.5px;
  color: var(--ink); text-decoration: none;
}
.footer-logo span { color: var(--coral); }
.footer-copy { font-size: 13px; color: var(--ink-light); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a {
  font-size: 13px; color: var(--ink-light);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--ink); }

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

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-nav   { padding: 0 24px; }
  .site-section { padding: 80px 24px; }
  .hero       { padding: calc(var(--nav-h) + 60px) 24px 80px; }
  .about-grid, .apps-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row   { grid-template-columns: 1fr; }
  .hero-bg-circle { display: none; }
  .site-footer { flex-direction: column; gap: 24px; text-align: center; }
}
@media (max-width: 600px) {
  .nav-links  { display: none; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { justify-content: center; }
  .contact-form-wrap { padding: 28px 24px; }
}
