/* ============================================
   Grace Of Africa — Style
   Afro-Gospel Worship | Dar es Salaam, Tanzania
   ============================================ */

/* --- Custom Properties --- */
:root {
  --bg-dark: #1a1410;
  --bg-dark-rgb: 26, 20, 16;
  --warm-sand: #c8b89a;
  --cream: #f5f0e8;
  --cream-rgb: 245, 240, 232;
  --muted-earth: #8b7355;
  --text-light: #f5f0e8;
  --text-dark: #1a1410;
  --accent: #a68b6b;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  --nav-height: 72px;
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--warm-sand);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--cream);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

section {
  scroll-margin-top: calc(var(--nav-height) + 8px);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 5%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: var(--bg-dark);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-icon img {
  width: 38px;
  height: 38px;
  max-width: none;
}

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

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-sand);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cream);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--cream);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    transition: right var(--transition);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
    letter-spacing: 0.2em;
  }
}

/* --- Platform Icons Row --- */
.platform-icons {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.platform-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(200, 184, 154, 0.3);
  transition: all var(--transition);
}

.platform-icons a:hover {
  border-color: var(--cream);
  background: rgba(200, 184, 154, 0.1);
}

.platform-icons svg {
  width: 18px;
  height: 18px;
  fill: var(--warm-sand);
  transition: fill var(--transition);
}

.platform-icons a:hover svg {
  fill: var(--cream);
}

/* --- Hero --- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(var(--bg-dark-rgb), 0.3) 0%, rgba(var(--bg-dark-rgb), 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.9;
  margin-bottom: 40px;
}

.hero-cta {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid var(--warm-sand);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all var(--transition);
}

.hero-cta:hover {
  background: var(--warm-sand);
  color: var(--bg-dark);
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  position: relative;
  width: 100%;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-hero .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(var(--bg-dark-rgb), 0.65);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 20px 60px;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 12px;
}

.page-hero .hero-subtitle {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- Stats Strip --- */
.stats {
  background: var(--bg-dark);
  border-top: 1px solid rgba(200, 184, 154, 0.15);
  border-bottom: 1px solid rgba(200, 184, 154, 0.15);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 16px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-earth);
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* --- Section Base --- */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--bg-dark);
}

.section-muted {
  background: #1e1813;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-earth);
  margin-bottom: 48px;
}

/* --- Featured Song / Spotify Embed --- */
.featured-song {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

.featured-song h3 {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  color: var(--warm-sand);
}

.spotify-embed {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.spotify-embed iframe {
  width: 100%;
  border: none;
}

/* --- About Preview (Home page) --- */
.about-preview {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-preview p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(var(--cream-rgb), 0.85);
  margin-bottom: 24px;
}

.about-preview .read-more {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-sand);
  border-bottom: 1px solid var(--warm-sand);
  padding-bottom: 2px;
}

/* --- Editorial Highlights --- */
.highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

.highlight-badge {
  padding: 10px 24px;
  border: 1px solid rgba(200, 184, 154, 0.25);
  border-radius: 4px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-sand);
}

/* --- About / Story Page --- */
.story-section {
  max-width: 720px;
  margin: 0 auto;
}

.story-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.1em;
  color: var(--cream);
  margin-bottom: 24px;
}

.story-section p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(var(--cream-rgb), 0.8);
  margin-bottom: 24px;
}

.story-divider {
  width: 60px;
  height: 1px;
  background: var(--warm-sand);
  margin: 60px auto;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border: 1px solid var(--warm-sand);
  color: var(--cream);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all var(--transition);
}

.download-btn:hover {
  background: var(--warm-sand);
  color: var(--bg-dark);
}

.download-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(200, 184, 154, 0.1);
  padding: 60px 0 32px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-logo img {
  width: 28px;
  height: 28px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  list-style: none;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-earth);
}

.footer-nav a:hover {
  color: var(--cream);
}

.footer .platform-icons {
  justify-content: center;
  margin-bottom: 32px;
}

.footer-email {
  font-size: 0.85rem;
  color: var(--warm-sand);
  margin-bottom: 32px;
}

.footer-copyright {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(var(--cream-rgb), 0.35);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(200, 184, 154, 0.3);
  background: rgba(var(--bg-dark-rgb), 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  border-color: var(--warm-sand);
  background: var(--warm-sand);
}

.back-to-top svg {
  width: 16px;
  height: 16px;
  fill: var(--cream);
  transition: fill var(--transition);
}

.back-to-top:hover svg {
  fill: var(--bg-dark);
}

/* --- Utility --- */
.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
