/* ============================================
   City Pulse Weekly — Global Styles
   ============================================ */

/* ---------- Custom Properties ---------- */
:root {
  --navy: #1a3a4a;
  --navy-dark: #0d2633;
  --gold: #d4a853;
  --gold-light: #e8c97a;
  --warm-bg: #f4f1ec;
  --white: #ffffff;
  --text: #2d2d2d;
  --text-light: #5a5a5a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
  --transition: 0.3s ease;
}

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--warm-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

p {
  max-width: 65ch;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--white);
}

.text-center {
  text-align: center;
}

.text-gold {
  color: var(--gold);
}

/* ---------- Navigation ---------- */
.nav {
  background: var(--navy-dark);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.nav__brand span {
  color: var(--gold);
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  letter-spacing: 0.02em;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--gold);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav__links.open {
    display: flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 5rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  margin-top: 1rem;
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero inline form */
.hero__form {
  margin-top: 2rem;
}

.hero__form-row {
  display: flex;
  gap: 0.75rem;
  max-width: 560px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__email {
  flex: 1;
  min-width: 240px;
  padding: 1.15rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  font-size: 1.15rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: border-color var(--transition), background var(--transition);
}

.hero__email:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.15);
}

.hero__email::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.hero__form-note {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.75rem;
}

.hero__form-note a {
  text-decoration: underline;
}

.hero__success,
.hero__error {
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  display: none;
  font-weight: 500;
}

.hero__success {
  background: rgba(46, 125, 50, 0.2);
  color: #a5d6a7;
}

.hero__error {
  background: rgba(198, 40, 40, 0.2);
  color: #ef9a9a;
}

/* CTA section hero form overrides */
.cta .hero__email {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.cta .hero__email:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.15);
}

.cta .hero__email::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.cta .hero__success {
  background: rgba(46, 125, 50, 0.2);
  color: #a5d6a7;
}

.cta .hero__error {
  background: rgba(198, 40, 40, 0.2);
  color: #ef9a9a;
}

@media (max-width: 768px) {
  .hero__form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    max-width: 100%;
  }

  .hero__email {
    width: 100% !important;
    min-width: 100% !important;
    padding: 1.35rem 1.5rem;
    font-size: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
  }

  .hero__form-row .btn--lg {
    width: 100%;
    padding: 1.35rem 2rem;
    font-size: 1.2rem;
    border-radius: var(--radius);
  }
}

.hero__badge {
  display: inline-block;
  background: rgba(212, 168, 83, 0.15);
  border: 1px solid rgba(212, 168, 83, 0.3);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

/* ---------- Signup Form ---------- */
.signup {
  padding: 4rem 0 5rem;
  background: var(--white);
}

.signup__heading {
  text-align: center;
  margin-bottom: 0.75rem;
}

.signup__subheading {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  margin-left: auto;
  margin-right: auto;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.875rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.genre-card {
  position: relative;
}

.genre-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.genre-card label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  border: 2px solid #e0dcd6;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--white);
  user-select: none;
  -webkit-user-select: none;
}

.genre-card label:hover {
  border-color: var(--gold);
  background: rgba(212, 168, 83, 0.04);
}

.genre-card input:checked + label {
  border-color: var(--gold);
  background: rgba(212, 168, 83, 0.1);
  box-shadow: 0 0 0 1px var(--gold);
}

.genre-card label .genre-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.genre-card label .genre-check {
  margin-left: auto;
  width: 20px;
  height: 20px;
  border: 2px solid #d0ccc6;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.genre-card input:checked + label .genre-check {
  background: var(--gold);
  border-color: var(--gold);
}

.genre-card input:checked + label .genre-check::after {
  content: '✓';
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Email + submit row */
.signup__form-row {
  display: flex;
  gap: 0.75rem;
  max-width: 520px;
  margin: 0 auto;
}

.signup__email {
  flex: 1;
  padding: 1rem 1.25rem;
  border: 2px solid #e0dcd6;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--white);
}

.signup__email:focus {
  outline: none;
  border-color: var(--gold);
}

.signup__email::placeholder {
  color: #a0a0a0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 168, 83, 0.35);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
}

.btn--navy:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--lg {
  padding: 1.2rem 2.5rem;
  font-size: 1.15rem;
}

.signup__note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 1rem;
}

.signup__success,
.signup__error {
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  display: none;
  font-weight: 500;
}

.signup__success {
  background: #e8f5e9;
  color: #2e7d32;
}

.signup__error {
  background: #fce4ec;
  color: #c62828;
}

@media (max-width: 520px) {
  .signup__form-row {
    flex-direction: column;
  }

  .genre-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Social Proof ---------- */
.proof {
  background: var(--navy);
  color: var(--white);
  padding: 1.5rem 0;
  text-align: center;
}

.proof__text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Testimonial Placeholder ---------- */
.testimonial-placeholder {
  max-width: 560px;
  margin: 2rem auto 0;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.testimonial-honest {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.8;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- Preview Section ---------- */
.preview {
  padding: 5rem 0;
}

.preview__heading {
  text-align: center;
  margin-bottom: 0.75rem;
}

.preview__subheading {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  margin-left: auto;
  margin-right: auto;
}

.preview__card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
  overflow: hidden;
}

.preview__header {
  background: var(--navy-dark);
  padding: 1.5rem 2rem;
  color: var(--white);
}

.preview__header h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.preview__header p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.preview__body {
  padding: 2rem;
}

.preview__genre-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: rgba(212, 168, 83, 0.12);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.preview__event {
  padding: 1.25rem 0;
  border-bottom: 1px solid #eee;
}

.preview__event:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.preview__event-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.preview__event-meta {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---------- Features Grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

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

/* ---------- Advertise Page ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.pricing-card--featured {
  border: 2px solid var(--gold);
}

.pricing-card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem;
}

.pricing-card h3 {
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.pricing-card__price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1rem 0 0.25rem;
}

.pricing-card__unit {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.pricing-card__features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-card__features li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid #f0ede8;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pricing-card__features li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat {
  text-align: center;
}

.stat__number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
}

.stat__label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* ---------- About Page ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 2rem;
  counter-increment: step;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--navy);
  color: var(--gold);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1.25rem;
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Contact CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.cta p {
  color: rgba(255, 255, 255, 0.8);
  margin: 1rem auto 2rem;
}

.cta .btn--primary:hover {
  background: var(--gold-light);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.footer__brand span {
  color: var(--gold);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer__links a {
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--gold);
}

.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- Loading spinner for button ---------- */
.btn--loading {
  pointer-events: none;
  position: relative;
  color: transparent !important;
}

.btn--loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(13, 38, 51, 0.3);
  border-top-color: var(--navy-dark);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
