/* CSS Variables - Brand Colors from Style Guide */
:root {
  --bg-paper: #FCF6E8;
  --brand: #BC4C36;
  --btn-secondary: #FFFFFF;
  --text-ink: #4F2910;
  --brand-hover: #A8432F;
  --border-subtle: #E7DED1;
  --text-muted: #8C6F57;
  
  /* Typography */
  --font-heading: 'Fraunces', serif;
  --font-body: 'Lexend', sans-serif;

  /* Spacing */
  --container-max: 1380px;
  --container-medium: 1100px;
  --container-small: 880px;
  --section-padding: 150px;
  --section-padding-mobile: 80px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transition: all 0.6s ease-out;
}

.animate-on-scroll.animate {
  opacity: 1;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-scale {
  animation: fadeInScale 0.6s ease-out forwards;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-ink);
  background-color: var(--bg-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 0;
  animation: fadeInPage 0.6s ease-out 0.1s forwards;
}

@keyframes fadeInPage {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
}

h4 {
  font-size: 1.5rem;
  font-weight: 500;
}

p {
  margin-bottom: 1rem;
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Layout Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--brand);
  color: white;
  box-shadow: 0 2px 4px rgba(188, 76, 54, 0.2);
}

.btn-primary:hover {
  background-color: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(188, 76, 54, 0.3);
}

.btn-secondary {
  background-color: var(--btn-secondary);
  color: var(--brand);
  border: 1px solid var(--brand);
}

.btn-secondary:hover {
  background-color: var(--bg-paper);
  border-color: var(--brand-hover);
}

/* Navigation */
.navbar {
  padding: 1.5rem 0;
  background-color: var(--bg-paper);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand-logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  transition: all 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.05);
}

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

.nav-link {
  color: var(--text-ink);
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--brand);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--brand);
  transform: translateY(-1px);
}

.nav-link:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .nav-menu {
    gap: 1rem;
  }
  
  .nav-link:not(.btn) {
    display: none;
  }
}

/* Hero Section */
.hero {
  padding: var(--section-padding) 0;
  background-color: var(--bg-paper);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(188, 76, 54, 0.03) 0%, transparent 70%);
  animation: heroFloat 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(-20px, -30px) rotate(1deg);
  }
  66% {
    transform: translate(20px, -20px) rotate(-1deg);
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  color: var(--brand);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: slideInUp 1s ease-out 0.2s forwards;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  opacity: 0;
  animation: slideInUp 1s ease-out 0.4s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: slideInUp 1s ease-out 0.6s forwards;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lead-magnet {
  width: 100%;
  background: linear-gradient(135deg, white 0%, var(--bg-paper) 100%);
  border: 2px solid var(--brand);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(188, 76, 54, 0.15);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: popIn 1.2s ease-out 0.8s forwards;
}

.lead-magnet::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--brand), var(--brand-hover), var(--brand));
  border-radius: 20px;
  z-index: -1;
  animation: borderGlow 3s ease-in-out infinite;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  60% {
    transform: scale(1.05) translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes borderGlow {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

.lead-magnet-content {
  position: relative;
  z-index: 1;
}

.lead-magnet h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.lead-magnet p {
  color: white;
  font-size: 1.125rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.lead-magnet-form {
  margin-bottom: 1rem;
}

.form-group-inline {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.form-group-inline input {
  flex: 1;
  min-width: 200px;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: white;
  transition: all 0.3s ease;
}

.form-group-inline input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(188, 76, 54, 0.1);
  transform: translateY(-1px);
}

.form-group-inline .btn {
  white-space: nowrap;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  border-radius: 12px;
}

.lead-magnet .btn-primary {
  background-color: white;
  color: var(--brand);
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lead-magnet .btn-primary:hover {
  background-color: var(--bg-paper);
  color: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lead-magnet .form-disclaimer {
  text-align: center;
  font-size: 11.5px !important;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
  font-style: italic;
  line-height: 1.3;
  margin-top: 0.5rem;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: var(--section-padding-mobile) 0;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .lead-magnet {
    padding: 2rem;
  }
  
  .lead-magnet h3 {
    font-size: 1.25rem;
  }
  
  .form-group-inline {
    flex-direction: column;
  }
  
  .form-group-inline input {
    min-width: auto;
  }
  
  .form-group-inline .btn {
    width: 100%;
  }
}

/* Trust Section */
.trust-section {
  padding: 4rem 0;
  background-color: white;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.trust-heading {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.trust-subheading {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
  white-space: nowrap;
  display: block;
  width: max-content;
  margin: 0 auto 2.5rem;
}

.client-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  align-items: center;
}

.client-logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  transition: all 0.3s ease;
}

.client-logo:hover {
  transform: scale(0.98);
}

.logo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.4) contrast(1.2);
  transition: all 0.4s ease;
  opacity: 1;
}

.client-logo:hover .logo-img {
  filter: grayscale(100%) brightness(0.2) contrast(1.3);
  opacity: 0.5;
  transform: scale(0.98);
}

/* Pearl Jam logo specific styling */
.logo-pearl-jam {
  filter: grayscale(100%) brightness(1) contrast(1.2) !important;
}

.client-logo:hover .logo-pearl-jam {
  filter: grayscale(100%) brightness(0.7) contrast(1.3) !important;
  opacity: 0.6;
}

/* Universal Music Group and Warner Bros Discovery - slightly larger */
.logo-umg,
.logo-wb {
  transform: scale(1.15);
}

.client-logo:hover .logo-umg,
.client-logo:hover .logo-wb {
  transform: scale(1.13);
}

@media (max-width: 768px) {
  .trust-subheading {
    white-space: normal;
    width: auto;
  }
  
  .client-logos {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  color: var(--brand);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Services Section */
.services {
  padding: var(--section-padding) 0;
  background-color: var(--bg-paper);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: white;
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(188, 76, 54, 0.03), transparent);
  transition: left 0.6s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: rgba(188, 76, 54, 0.2);
}

.service-card:hover::before {
  left: 100%;
}

.service-card .service-icon {
  transition: transform 0.3s ease;
}

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

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  color: var(--brand);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.service-card ul {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.service-card ul li {
  margin-bottom: 0.5rem;
}

.service-card ul li:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .services {
    padding: var(--section-padding-mobile) 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Case Studies Section */
.case-studies {
  padding: var(--section-padding) 0;
  background-color: white;
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.case-study-card {
  background-color: var(--bg-paper);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  transition: all 0.4s ease;
  position: relative;
}

.case-study-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  border-color: rgba(188, 76, 54, 0.15);
}

.case-category {
  background-color: var(--brand);
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.case-study-card h3 {
  color: var(--text-ink);
  margin-bottom: 1rem;
  font-size: 1.375rem;
}

.case-study-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.case-client {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.case-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.case-link:hover {
  color: var(--brand-hover);
}

@media (max-width: 768px) {
  .case-studies {
    padding: var(--section-padding-mobile) 0;
  }
  
  .case-studies-grid {
    grid-template-columns: 1fr;
  }
}

/* Testimonials Section */
.testimonials {
  padding: var(--section-padding) 0;
  background-color: var(--bg-paper);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: white;
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.testimonial-card blockquote {
  transition: color 0.3s ease;
}

.testimonial-card:hover blockquote {
  color: var(--brand);
}

.stars {
  color: #fbbf24;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.testimonial-card blockquote {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-ink);
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
}

.author-name {
  font-weight: 600;
  color: var(--text-ink);
  margin-bottom: 0.25rem;
}

.author-role {
  color: var(--text-muted);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .testimonials {
    padding: var(--section-padding-mobile) 0;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* Final CTA Section (Homepage) */
.final-cta {
  padding: var(--section-padding) 0;
  background-color: var(--brand);
  color: white;
  text-align: center;
}

.final-cta .final-cta-content h2 {
  color: white !important;
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.final-cta .final-cta-content p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .btn-primary {
  background-color: white;
  color: var(--brand);
  font-weight: 600;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.final-cta .btn-primary:hover {
  background-color: var(--bg-paper);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Override final-cta styles for contact page */
.contact-main .final-cta {
  padding: 0;
  background-color: transparent;
  color: inherit;
}

.contact-main .final-cta p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .final-cta {
    padding: var(--section-padding-mobile) 0;
  }
  
  .final-cta-content p {
    margin-bottom: 2rem;
  }
  
  .contact-main .final-cta {
    padding: 0;
  }
}

/* About Page Styles */
.about-hero {
  padding: var(--section-padding) 0 0 0;
  background-color: var(--bg-paper);
}

.about-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3rem;
}

.about-hero-text h1 {
  color: var(--brand);
  margin-bottom: 1.5rem;
}

.about-intro {
  font-size: 1.5rem;
  color: var(--text-ink);
  font-weight: 500;
  margin-bottom: 0;
}

.about-hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.matt-headshot {
  width: 280px;
  height: 280px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--border-subtle);
  transition: all 0.4s ease;
}

.matt-headshot:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.about-content {
  padding: 4rem 0 var(--section-padding) 0;
  background-color: var(--bg-paper);
}

.about-text {
  max-width: 800px;
  margin: 0 auto;
}

.about-text p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-ink);
  margin-bottom: 1.5rem;
}

.about-section {
  margin-top: 3rem;
}

.about-section h2 {
  color: var(--brand);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-section p {
  margin-bottom: 1.5rem;
}

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

.about-signoff {
  margin-top: 2rem;
  text-align: right;
}

.about-signoff p {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 0;
}

.about-cta {
  padding: var(--section-padding) 0;
  background-color: var(--brand);
  color: white;
  text-align: center;
}

.about-cta-content h2 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.about-cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.about-cta .btn-primary {
  background-color: white;
  color: var(--brand);
  font-weight: 600;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.about-cta .btn-primary:hover {
  background-color: var(--bg-paper);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.nav-active {
  color: var(--brand) !important;
  font-weight: 500;
}

@media (max-width: 768px) {
  .about-hero {
    padding: var(--section-padding-mobile) 0 0 0;
  }
  
  .about-hero-content {
    gap: 2rem;
  }
  
  .matt-headshot {
    width: 200px;
    height: 200px;
  }
  
  .about-content {
    padding: 3rem 0 var(--section-padding-mobile) 0;
  }
  
  .about-section {
    margin-top: 2rem;
  }
  
  .about-cta {
    padding: var(--section-padding-mobile) 0;
  }
  
  .about-cta-content p {
    margin-bottom: 2rem;
  }
}

/* Contact Page Styles */
.contact-main {
  padding: 4rem 0;
  background-color: var(--bg-paper);
  min-height: 100vh;
}

.contact-main h1 {
  color: var(--brand);
  text-align: center;
  margin-bottom: 3rem;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.contact-form-container {
  background-color: white;
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.contact-form {
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-ink);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-ink);
  background-color: white;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(188, 76, 54, 0.1);
  transform: translateY(-1px);
}

.form-group label {
  transition: all 0.3s ease;
}

.form-group:focus-within label {
  color: var(--brand);
  transform: translateY(-1px);
}

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

.btn-large {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  margin-top: 1rem;
}

.how-it-works-content {
  padding-left: 2rem;
}

.how-it-works-content h2 {
  color: var(--brand);
  margin-bottom: 2rem;
  font-size: 2rem;
}

.step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.step:last-child {
  margin-bottom: 0;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.step-text h3 {
  color: var(--brand);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.step-text p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
  font-size: 1rem;
}

.bottom-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.quick-note {
  margin-bottom: 2rem;
}

.quick-note h2 {
  color: var(--brand);
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.quick-note p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-ink);
  margin-bottom: 0;
}

.final-cta h2 {
  color: var(--brand);
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.final-cta p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary {
  background-color: var(--brand);
  color: white;
  font-weight: 600;
}

.cta-buttons .btn-primary:hover {
  background-color: var(--brand-hover);
  transform: translateY(-2px);
}

.cta-buttons .btn-secondary {
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  font-weight: 400;
}

.cta-buttons .btn-secondary:hover {
  background-color: var(--border-subtle);
  color: var(--text-ink);
}

@media (max-width: 768px) {
  .contact-main {
    padding: 3rem 0;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-form-container {
    padding: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .how-it-works-content {
    padding-left: 0;
  }
  
  .step {
    margin-bottom: 1.5rem;
  }
  
  .step-number {
    width: 35px;
    height: 35px;
    font-size: 1.125rem;
    margin-right: 1rem;
  }
  
  .step-text h3 {
    font-size: 1.125rem;
  }
  
  .step-text p {
    font-size: 0.95rem;
  }
  
  .bottom-content {
    margin-top: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Footer */
.footer {
  padding: var(--section-padding) 0 2rem 0;
  background-color: var(--text-ink);
  color: white;
}

.footer-content {
  margin-bottom: 3rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--brand);
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  color: white;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--brand);
}

.footer-cta {
  background-color: rgba(188, 76, 54, 0.1);
  padding: 3rem;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.cta-content h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--brand);
}

@media (max-width: 768px) {
  .footer {
    padding: var(--section-padding-mobile) 0 2rem 0;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-cta {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-legal {
    gap: 1rem;
  }
}

/* Responsive Design Enhancements */
@media (max-width: 480px) {
  :root {
    --section-padding-mobile: 60px;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  .service-card,
  .case-study-card,
  .testimonial-card {
    padding: 2rem;
  }
  
  .footer-cta {
    padding: 2rem;
  }
}

/* Temporarily hide sections - remove when ready to show */
.case-studies,
.testimonials {
  display: none;
}

/* Learn Page Styles */
.page-hero {
  background: var(--bg-paper);
  padding: 120px 0 80px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--text-ink);
  margin-bottom: 1.5rem;
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.coming-soon {
  padding: 100px 0;
  background: white;
}

.coming-soon-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.coming-soon-icon {
  font-size: 4rem;
  margin-bottom: 2rem;
}

.coming-soon-content h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-ink);
  margin-bottom: 1.5rem;
}

.coming-soon-content > p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.coming-soon-topics {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
  text-align: left;
  display: inline-block;
}

.coming-soon-topics li {
  font-size: 1.125rem;
  color: var(--text-ink);
  margin-bottom: 1rem;
  padding-left: 0;
  line-height: 1.5;
}

.coming-soon-cta {
  font-size: 1.125rem;
  color: var(--text-ink);
  margin-bottom: 1.5rem !important;
  font-weight: 500;
}

.learn-signup-form {
  margin-top: 1.5rem;
}

.learn-signup-form .form-group-inline {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}

.learn-signup-form input[type="email"] {
  flex: 1;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border-subtle);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: white;
  color: var(--text-ink);
  transition: border-color 0.3s ease;
}

.learn-signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--brand);
}

.learn-signup-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

/* Learn page — Clean vertical Brevo form styling */
.learn-brevo .sib-form,
.learn-brevo .sib-form-container,
.learn-brevo #sib-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: 400px !important;
  text-align: center !important;
}

/* Clean vertical layout */
.learn-brevo #sib-form {
  display: block !important;
  width: 100% !important;
  max-width: 400px !important;
  margin: 0 auto !important;
}

.learn-brevo #sib-form > div {
  margin-bottom: 12px !important;
  padding: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
}

/* Ensure all wrapper containers take full width */
.learn-brevo .sib-form-block,
.learn-brevo .form__entry,
.learn-brevo .entry__field {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Make sure the hidden anti-spam field doesn't show but preserve for JS */
.learn-brevo .input--hidden {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Input styling - full width to match button */
.learn-brevo .input {
  font-family: var(--font-body) !important;
  border: 2px solid var(--border-subtle) !important;
  border-radius: 8px !important;
  padding: 0 1.25rem !important;
  font-size: 1rem !important;
  width: 100% !important;
  max-width: 400px !important;
  background: white !important;
  color: var(--text-ink) !important;
  box-shadow: none !important;
  height: 48px !important;
  line-height: 1.4 !important;
  box-sizing: border-box !important;
}

.learn-brevo .input::placeholder { 
  color: var(--text-muted) !important; 
}

.learn-brevo .input:focus { 
  border-color: var(--brand) !important; 
  outline: none !important;
}

/* Button styling - full width to match input */
.learn-brevo .sib-form-block__button {
  background-color: var(--brand) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0 2rem !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  width: 100% !important;
  max-width: 400px !important;
  height: 48px !important;
  display: block !important;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  position: relative !important;
}

/* Preserve any loader or progress elements that might be added by Brevo JS */
.learn-brevo .sib-form-block__button .progress-indicator__icon {
  display: none !important;
}

.learn-brevo .sib-form-block__button:hover {
  background-color: var(--brand-hover) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(188, 76, 54, 0.3) !important;
}

/* Clean up default Brevo styling but preserve JS functionality */
.learn-brevo .form__label-row,
.learn-brevo .entry__field,
.learn-brevo .sib-form-block,
.learn-brevo .form__entry { 
  border: none !important; 
  box-shadow: none !important; 
}

/* Ensure error labels are accessible to JS but hidden by default */
.learn-brevo .entry__error {
  display: block !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.learn-brevo .entry__error.show,
.learn-brevo .entry__error[style*="display: block"] {
  visibility: visible !important;
  height: auto !important;
  padding: 0.5rem !important;
}

/* Mobile responsive - already vertical, just ensure proper sizing */
@media (max-width: 768px) {
  .learn-brevo .sib-form,
  .learn-brevo .sib-form-container,
  .learn-brevo #sib-container,
  .learn-brevo #sib-form {
    max-width: 100% !important;
  }
  
  .learn-brevo .input,
  .learn-brevo .sib-form-block__button {
    max-width: 100% !important;
  }
}

/* Navigation active state */
.nav-link.active {
  color: var(--brand);
  font-weight: 500;
}

/* Mobile responsive for learn page */
@media (max-width: 768px) {
  .page-hero-content h1 {
    font-size: 2.5rem;
  }
  
  .page-subtitle {
    font-size: 1.125rem;
  }
  
  .coming-soon-content h2 {
    font-size: 2rem;
  }
  
  .coming-soon-icon {
    font-size: 3rem;
  }
  
  .learn-signup-form .form-group-inline {
    flex-direction: column;
    width: 100%;
  }
  
  .learn-signup-form input[type="email"] {
    width: 100%;
  }
  
  .learn-signup-form .btn {
    width: 100%;
  }
}

/* === Zozer Home Lead Magnet (Brevo overrides) === */
.lead-magnet-content .sib-form {
  background: transparent !important;
  border: none !important;
  max-width: 100% !important;
  padding: 0 !important;
}

.lead-magnet-content #sib-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Style the main heading */
.lead-magnet-content #sib-form > div:nth-child(1) .sib-form-block p {
  display: block !important;
  font-family: var(--font-heading, 'Fraunces', serif) !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  color: #fff !important;
  margin: 0 0 0.5rem 0 !important;
  line-height: 1.3 !important;
}

/* Style the subheading */
.lead-magnet-content #sib-form > div:nth-child(2) .sib-text-form-block p {
  display: block !important;
  font-family: var(--font-body, 'Lexend', sans-serif) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,0.9) !important;
  margin: 0 0 1rem 0 !important;
  line-height: 1.4 !important;
}

/* Style the disclaimer text */
.lead-magnet-content #sib-form > div:nth-child(5) .sib-text-form-block p {
  display: block !important;
  font-size: 10px !important;
  font-style: italic !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: rgba(255,255,255,0.75) !important;
  margin: 0.75rem 0 0 0 !important;
  max-width: 400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 1rem !important;
}

/* Create vertical layout with horizontal input + button row */
.lead-magnet-content #sib-form {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  background: transparent !important;
}

/* Tighter spacing for all form sections */
.lead-magnet-content #sib-form > div:nth-child(1),
.lead-magnet-content #sib-form > div:nth-child(2) {
  padding: 0 !important;
  margin-bottom: 0 !important;
}

/* Create a wrapper for input and button on same line */
.lead-magnet-content #sib-form > div:nth-child(3),
.lead-magnet-content #sib-form > div:nth-child(4) {
  display: inline-block !important;
  padding: 0 !important;
  margin: 0 0.25rem !important;
  vertical-align: top !important;
}

/* Disclaimer container */
.lead-magnet-content #sib-form > div:nth-child(5) {
  padding: 0.5rem 0 0 0 !important;
  margin-top: 0.25rem !important;
}

/* Input field styling (pill shape) */
.lead-magnet-content #sib-form .entry__field .input {
  height: 48px !important;
  border-radius: 24px !important;
  border: none !important;
  font-size: 15px !important;
  padding: 0 18px !important;
  font-family: var(--font-body, 'Lexend', sans-serif) !important;
  width: 240px !important;
  box-sizing: border-box !important;
  background: #fff !important;
  color: #333 !important;
  outline: none !important;
}

.lead-magnet-content #sib-form .entry__field .input::placeholder {
  color: rgba(0,0,0,0.5) !important;
}

/* Submit button styling (pill shape) */
.lead-magnet-content #sib-form .sib-form-block__button {
  height: 48px !important;
  border-radius: 24px !important;
  background: #fff !important;
  color: var(--brand, #bc4c36) !important;
  font-family: var(--font-body, 'Lexend', sans-serif) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  padding: 0 22px !important;
  cursor: pointer !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.lead-magnet-content #sib-form .sib-form-block__button:hover {
  background: var(--bg-paper, #FCF6E8) !important;
  color: var(--brand-hover, #A8432F) !important;
  transform: translateY(-1px) !important;
}

/* Success and error messages: visible but clean */
.lead-magnet-content #sib-form-container .sib-form-message-panel {
  margin-top: 0.75rem !important;
  border: none !important;
  box-shadow: none !important;
  background: rgba(255,255,255,0.9) !important;
  border-radius: 8px !important;
  padding: 0.75rem !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .lead-magnet-content #sib-form {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  
  .lead-magnet-content #sib-form .entry__field .input {
    width: 280px !important;
  }
  
  .lead-magnet-content #sib-form .sib-form-block__button {
    width: 280px !important;
  }
}

/* === Home > Lead Magnet (final polish to match original mock) === */

/* 1) Slightly tighter card padding on desktop so the content breathes like the mock */
.lead-magnet { padding: 2rem 2rem; }

/* 2) Headline: keep to one line on desktop, Fraunces sizing similar to mock */
@media (min-width: 769px) {
  .lead-magnet-content #sib-form > div:nth-child(1) .sib-form-block p {
    white-space: nowrap !important;     /* avoid the 'like?' widow */
    font-size: 26px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
  }
}
@media (max-width: 768px) {
  .lead-magnet-content #sib-form > div:nth-child(1) .sib-form-block p {
    white-space: normal !important;
  }
}

/* 3) Subheading: larger and bolder */
.lead-magnet-content #sib-form > div:nth-child(2) .sib-text-form-block p {
  font-size: 16px !important;
  font-weight: 500 !important;
  opacity: 0.95 !important;
}

/* 4) Input + Button inline on desktop using CSS Grid */
@media (min-width: 769px) {
  .lead-magnet-content #sib-form {
    display: grid !important;
    grid-template-columns: auto auto;
    grid-template-areas:
      "title title"
      "subtitle subtitle"
      "email  button"
      "disclaimer disclaimer";
    justify-content: center;
    align-items: center;
    column-gap: 12px;
    row-gap: 10px;
    text-align: center !important;
  }
  .lead-magnet-content #sib-form > div:nth-child(1) { grid-area: title; }
  .lead-magnet-content #sib-form > div:nth-child(2) { grid-area: subtitle; }
  .lead-magnet-content #sib-form > div:nth-child(3) { grid-area: email; }
  .lead-magnet-content #sib-form > div:nth-child(4) { grid-area: button; }
  .lead-magnet-content #sib-form > div:nth-child(5) { grid-area: disclaimer; }
}

/* Email input width and button sizing */
@media (min-width: 769px) {
  .lead-magnet-content #sib-form .entry__field .input {
    width: 320px !important;
    height: 48px !important;
  }
  .lead-magnet-content #sib-form .sib-form-block__button {
    height: 48px !important;
    padding: 0 24px !important;
    font-size: 15px !important;
    border-radius: 24px !important;
  }
}

/* 5) Disclaimer: slightly larger, ~2 lines */
.lead-magnet-content #sib-form > div:nth-child(5) .sib-text-form-block p {
  font-size: 12px !important;
  line-height: 1.35 !important;
  max-width: 520px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
}

/* 6) Remove Brevo default padding/background */
.lead-magnet-content .sib-form,
.lead-magnet-content #sib-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

/* 7) Mobile: stack vertically */
@media (max-width: 768px) {
  .lead-magnet-content #sib-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    align-items: center !important;
  }
  .lead-magnet-content #sib-form .entry__field .input,
  .lead-magnet-content #sib-form .sib-form-block__button {
    width: 280px !important;
  }
}

/* === Hero spacing trim === */

/* Make hero padding responsive and a bit tighter on desktop */
.hero {
  /* was: padding: var(--section-padding) 0; (150px top/bottom) */
  padding: clamp(80px, 12vw, 120px) 0 !important;
}

/* Reduce the column gap slightly so the hero doesn't force extra height */
.hero-content {
  gap: 3rem !important; /* was 4rem */
}

/* Tighten text spacing in the left column on desktop */
@media (min-width: 769px) {
  .hero-text h1 {
    margin-bottom: 1.25rem !important; /* was 1.5rem */
  }
  .hero-subtitle {
    margin-bottom: 1.75rem !important; /* was 2.5rem */
  }
}

/* Keep mobile comfortable (already good), but ensure no accidental extra spacing */
@media (max-width: 768px) {
  .hero {
    padding: var(--section-padding-mobile) 0 !important; /* already defined as 80px */
  }
}

/* === Hero vertical spacing + headline wrapping polish === */

/* 1) Make hero padding fluid so "top whitespace" feels consistent across wide ↔ small desktops */
.hero {
  /* previously ~150px top/bottom; this scales with viewport width */
  padding: clamp(56px, 8vw, 110px) 0 !important;
  /* ensure no hidden min-height is forcing extra empty space */
  min-height: unset !important;
}

/* 2) On two-column hero, avoid vertical centering that creates "top gap" on short viewports */
.hero-content {
  align-items: start !important;   /* was center */
  row-gap: clamp(1.5rem, 2.5vw, 3rem) !important; /* a bit tighter on small desktops */
}

/* 3) Headline: control line length and balance wrapping */
.hero-text h1 {
  /* Target ~13–15 characters per line for Fraunces at your current size */
  max-width: clamp(14ch, 32vw, 18ch) !important;
  line-height: 1.05 !important;

  /* Better line breaks in modern browsers */
  text-wrap: balance;

  /* Prevent auto-hyphenation like "AI- / Powered" on some browsers */
  hyphens: manual;
  word-break: normal;
}

/* 4) Slightly reduce default margins so the block sits higher without huge top gap */
.hero-text h1 { margin-top: 0 !important; margin-bottom: 1.1rem !important; }
.hero-subtitle { margin-bottom: 1.5rem !important; }

/* 5) Safety: keep mobile comfortable (already stacked) */
@media (max-width: 768px) {
  .hero {
    padding: var(--section-padding-mobile, 80px) 0 !important;
  }
  .hero-text h1 {
    max-width: 20ch !important;   /* allow a bit more width so lines don't get too tall */
    text-wrap: balance;
  }
}

/* Legal Pages Styles */
.legal-main {
  padding: 4rem 0;
  background-color: var(--bg-paper);
  min-height: 100vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  color: var(--brand);
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.last-updated {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 3rem;
  font-style: italic;
}

.legal-text {
  background-color: white;
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.legal-text h2 {
  color: var(--brand);
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.legal-text h2:first-of-type {
  margin-top: 1.5rem;
  border-top: none;
  padding-top: 0;
}

.legal-text p {
  color: var(--text-ink);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.legal-text ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-text ul li {
  color: var(--text-ink);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.legal-text ul li:last-child {
  margin-bottom: 0;
}

.contact-info {
  background-color: var(--bg-paper);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  margin-top: 1rem;
}

.contact-info p {
  margin-bottom: 0;
  color: var(--text-ink);
  line-height: 1.6;
}

.contact-info a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--brand-hover);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .legal-main {
    padding: 3rem 0;
  }
  
  .legal-text {
    padding: 2rem;
    margin: 0 1rem;
  }
  
  .legal-text h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
  }
  
  .legal-text p,
  .legal-text ul li {
    font-size: 1rem;
  }
  
  .contact-info {
    padding: 1rem;
  }
}
