/* ============================================
   Rita Kay — Singer-Songwriter
   Design System & Styles
   ============================================ */

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

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary Purple Palette */
  --purple-50:  #FAF5FF;
  --purple-100: #F3E8FF;
  --purple-200: #E9D5FF;
  --purple-300: #D8B4FE;
  --purple-400: #C084FC;
  --purple-500: #A855F7;
  --purple-600: #9333EA;
  --purple-700: #7C3AED;
  --purple-800: #6B21A8;
  --purple-900: #581C87;

  /* Accent Lavender */
  --lavender:   #A78BFA;
  --lavender-light: #C4B5FD;
  --lavender-glow: rgba(167, 139, 250, 0.15);

  /* Neutrals */
  --white:       #FFFFFF;
  --off-white:   #FAFAFA;
  --gray-50:     #F9FAFB;
  --gray-100:    #F3F4F6;
  --gray-200:    #E5E7EB;
  --gray-300:    #D1D5DB;
  --gray-400:    #9CA3AF;
  --gray-500:    #6B7280;
  --gray-600:    #4B5563;
  --gray-700:    #374151;
  --gray-800:    #1F2937;
  --gray-900:    #111827;

  /* Semantic Colors */
  --text-primary:    #1C1917;
  --text-secondary:  #57534E;
  --text-muted:      #78716C;
  --bg-primary:      #FFFFFF;
  --bg-secondary:    #F5F3FF;
  --bg-accent:       #EDE9FE;
  --border-light:    #E5E7EB;
  --border-purple:   rgba(124, 58, 237, 0.2);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Sizing */
  --container-max: 1200px;
  --container-narrow: 800px;
  --nav-height: 72px;

  /* Border Radius */
  --radius-sm:  0.375rem;
  --radius-md:  0.5rem;
  --radius-lg:  0.75rem;
  --radius-xl:  1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:  0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg:  0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl:  0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-purple: 0 4px 14px rgba(124, 58, 237, 0.15);
  --shadow-purple-lg: 0 8px 30px rgba(124, 58, 237, 0.2);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

a {
  color: var(--purple-700);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--purple-500);
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-body);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-4xl) 0;
}

.section--alt {
  background-color: var(--bg-secondary);
}

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

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title {
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-600), var(--lavender));
  border-radius: var(--radius-full);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: var(--space-lg) auto 0;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: box-shadow var(--transition-base), background var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.97);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--text-primary);
  transition: opacity var(--transition-base);
}

.nav-logo:hover {
  opacity: 0.8;
  color: var(--text-primary);
}

.nav-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--purple-800);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-link {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: color var(--transition-base), background var(--transition-base);
  position: relative;
}

.nav-link:hover {
  color: var(--purple-700);
  background: var(--lavender-glow);
}

.nav-link.active {
  color: var(--purple-700);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--purple-600);
  border-radius: var(--radius-full);
}

.nav-social {
  display: flex;
  align-items: center;
  margin-left: var(--space-sm);
}

.nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: color var(--transition-base), background var(--transition-base);
}

.nav-social a:hover {
  color: var(--purple-700);
  background: var(--lavender-glow);
}

.nav-social svg {
  width: 20px;
  height: 20px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

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

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

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

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

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    gap: var(--space-xs);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right var(--transition-slow);
    align-items: stretch;
  }

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

  .nav-link {
    padding: var(--space-md);
    font-size: 1rem;
    border-radius: var(--radius-lg);
  }

  .nav-social {
    margin-left: 0;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
    justify-content: center;
  }
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.nav-overlay.open {
  display: block;
  opacity: 1;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.25) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  max-width: 700px;
}

.hero-title {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  margin-bottom: var(--space-2xl);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-600));
  color: var(--white);
  border-color: var(--purple-700);
  box-shadow: var(--shadow-purple);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--purple-800), var(--purple-700));
  box-shadow: var(--shadow-purple-lg);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--white);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-outline-purple {
  background: transparent;
  color: var(--purple-700);
  border-color: var(--purple-300);
}

.btn-outline-purple:hover {
  background: var(--lavender-glow);
  border-color: var(--purple-500);
  transform: translateY(-2px);
  color: var(--purple-700);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: var(--space-2xl);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-accent);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  color: var(--purple-700);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

/* ---------- CTA Cards (Home) ---------- */
.cta-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: var(--space-2xl);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  text-decoration: none;
  display: block;
}

.cta-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-purple);
  border-color: var(--purple-200);
}

.cta-card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--purple-100), var(--bg-accent));
  border-radius: var(--radius-xl);
  margin: 0 auto var(--space-lg);
  color: var(--purple-700);
  transition: transform var(--transition-spring);
}

.cta-card:hover .cta-card-icon {
  transform: scale(1.1);
}

.cta-card-icon svg {
  width: 28px;
  height: 28px;
}

.cta-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.cta-card-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- About Page ---------- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(124, 58, 237, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-text h2 {
  margin-bottom: var(--space-lg);
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: background var(--transition-base), transform var(--transition-base);
}

.highlight-item:hover {
  background: var(--bg-accent);
  transform: translateX(4px);
}

.highlight-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-md);
  color: var(--purple-700);
  flex-shrink: 0;
}

.highlight-icon svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }
}

/* ---------- Music Page ---------- */
.music-section {
  margin-bottom: var(--space-4xl);
}

.music-section:last-child {
  margin-bottom: 0;
}

.music-placeholder {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-accent));
  border: 2px dashed var(--purple-200);
  border-radius: var(--radius-2xl);
  padding: var(--space-4xl) var(--space-2xl);
  text-align: center;
}

.music-placeholder-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-xl);
  color: var(--purple-500);
  box-shadow: var(--shadow-md);
}

.music-placeholder-icon svg {
  width: 36px;
  height: 36px;
}

.music-placeholder h3 {
  margin-bottom: var(--space-sm);
  color: var(--purple-800);
}

.music-placeholder p {
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto;
}

.genre-tags {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

.genre-tag {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--purple-700);
  border: 1px solid var(--purple-200);
  transition: all var(--transition-base);
}

.genre-tag:hover {
  background: var(--purple-700);
  color: var(--white);
  border-color: var(--purple-700);
  transform: translateY(-2px);
}

/* ---------- Shows Page ---------- */
.shows-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.show-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-xl);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-2xl);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.show-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-purple);
  border-color: var(--purple-200);
}

.show-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: var(--space-md);
  background: linear-gradient(135deg, var(--purple-700), var(--purple-600));
  border-radius: var(--radius-lg);
  color: var(--white);
  text-align: center;
}

.show-date-month {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.show-date-day {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  margin: 2px 0;
}

.show-date-year {
  font-size: 0.7rem;
  opacity: 0.8;
}

.show-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.show-venue {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.show-location {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.show-location svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.show-actions {
  flex-shrink: 0;
}

.shows-empty {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--text-muted);
}

.shows-empty svg {
  width: 48px;
  height: 48px;
  color: var(--purple-300);
  margin-bottom: var(--space-lg);
}

.shows-section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--purple-600);
  margin-bottom: var(--space-lg);
}

@media (max-width: 640px) {
  .show-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-md);
    padding: var(--space-xl);
  }

  .show-date {
    flex-direction: row;
    gap: var(--space-sm);
    justify-self: center;
    min-width: auto;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
  }

  .show-date-day {
    font-size: 1.25rem;
    margin: 0;
  }

  .show-actions {
    justify-self: center;
  }

  .show-location {
    justify-content: center;
  }
}

/* ---------- Contact Page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-info {
  padding-right: var(--space-xl);
}

.contact-info h2 {
  margin-bottom: var(--space-md);
}

.contact-info > p {
  font-size: 1.05rem;
  margin-bottom: var(--space-2xl);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  transition: background var(--transition-base), transform var(--transition-base);
}

.contact-item:hover {
  background: var(--bg-accent);
  transform: translateX(4px);
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  color: var(--purple-700);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
}

.contact-item-content {
  display: flex;
  flex-direction: column;
}

.contact-item-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-item-value {
  font-weight: 500;
  color: var(--text-primary);
}

.contact-item-value a {
  color: var(--purple-700);
  font-weight: 500;
}

.contact-form-wrapper {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
}

.contact-form-wrapper h3 {
  margin-bottom: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--gray-50);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--purple-400);
  box-shadow: 0 0 0 3px var(--lavender-glow);
  background: var(--white);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  font-size: 0.8rem;
  color: #DC2626;
  margin-top: var(--space-xs);
  display: none;
}

.form-group.error .form-input,
.form-group.error .form-textarea {
  border-color: #DC2626;
}

.form-group.error .form-error {
  display: block;
}

.form-success {
  display: none;
  padding: var(--space-xl);
  background: var(--bg-accent);
  border-radius: var(--radius-xl);
  text-align: center;
}

.form-success.show {
  display: block;
}

.form-success svg {
  width: 48px;
  height: 48px;
  color: var(--purple-600);
  margin-bottom: var(--space-md);
}

.form-success h4 {
  margin-bottom: var(--space-sm);
  color: var(--purple-800);
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-info {
    padding-right: 0;
  }
}

/* ---------- Footer ---------- */
.footer {
  margin-top: auto;
  background: var(--gray-900);
  color: var(--gray-400);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  opacity: 0.8;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--lavender);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--gray-400);
  background: rgba(255, 255, 255, 0.05);
  transition: color var(--transition-base), background var(--transition-base);
}

.footer-social a:hover {
  color: var(--lavender);
  background: rgba(167, 139, 250, 0.15);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-xl);
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-500);
}

@media (max-width: 640px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--purple-900), var(--purple-700), var(--lavender));
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(167, 139, 250, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.page-header h1 {
  color: var(--white);
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-sm);
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0 auto;
}

/* ---------- Intro Section (Home) ---------- */
.intro-section {
  text-align: center;
  padding: var(--space-4xl) 0;
}

.intro-text {
  max-width: 650px;
  margin: 0 auto var(--space-2xl);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.intro-text strong {
  color: var(--purple-800);
  font-weight: 600;
}

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

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; }

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

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-purple { color: var(--purple-700); }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }

/* ---------- Decorative ---------- */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-600), var(--lavender));
  border-radius: var(--radius-full);
  margin: var(--space-xl) auto;
}

/* Phoenix watermark */
.phoenix-watermark {
  position: fixed;
  bottom: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

/* Subtle gradient backgrounds for visual interest */
.gradient-bg {
  position: relative;
}

.gradient-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top right, var(--lavender-glow) 0%, transparent 50%),
              radial-gradient(ellipse at bottom left, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.gradient-bg > * {
  position: relative;
  z-index: 1;
}
