/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--navy, hsl(210, 50%, 23%));
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 0.5rem 0.5rem;
  font-weight: 600;
  z-index: 2000;
  transition: top 0.2s;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--gold, hsl(45, 90%, 50%));
  outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

:root {
  --navy: hsl(210, 50%, 23%);
  --coral: hsl(8, 56%, 54%);
  --gold: hsl(45, 90%, 50%);
  --white: #ffffff;
  --gray-50: hsl(210, 20%, 97%);
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: hsl(210, 20%, 45%);
  --gray-800: #1f2937;
  --font-serif: 'Merriweather', Georgia, serif;
  --font-sans: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
}

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style-position: inside;
  padding-left: 0.5rem;
}

li {
  margin-bottom: 0.25rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem;
  background-image: url('assets/hero.jpg');
  background-size: cover;
  background-position: center;
  text-align: center;
  color: var(--white);
}

.webp .hero {
  background-image: url('assets/hero.webp');
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.65));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.hero-logo {
  width: 4rem;
  height: auto;
  margin-bottom: 1.5rem;
}

.trust-signal {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.hero-headline {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-subhead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1rem;
  max-width: 36rem;
}

.hero-subhead-secondary {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  max-width: 32rem;
}

.hero-cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--coral);
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.hero-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  width: 100%;
}

.cta-button-outline {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.cta-button-outline:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.cta-buttons-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  width: 100%;
}

.cta-button-apply {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-microcopy {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 20rem;
}

/* Problem/Solution Section */
.problem-solution {
  position: relative;
}

.problem-solution-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.image-side {
  aspect-ratio: 4/3;
}

.graduation-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 1.5rem;
  background-color: var(--gray-50);
}

.text-content {
  max-width: 32rem;
}

.problem-text {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.divider {
  width: 3rem;
  height: 0.25rem;
  background-color: var(--coral);
  border-radius: 9999px;
  margin-bottom: 2rem;
}

.solution-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.7;
}

.bottom-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0.25rem;
  background-color: var(--coral);
}

/* Trust/Stats Section */
.trust-stats {
  padding: 4rem 1rem;
  background-color: var(--white);
}

.hero-stat {
  text-align: center;
  margin-bottom: 3rem;
}

.stat-number {
  font-size: 4rem;
  font-weight: 700;
  color: var(--coral);
  font-family: var(--font-serif);
  margin-bottom: 0.75rem;
}

.stat-label {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
}

.inline-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 0 auto 4rem auto;
  width: 100%;
}

.stat-item {
  text-align: center;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
  text-align: center;
}

.stat-description {
  color: var(--gray-600);
  display: block;
  text-align: center;
}

.stat-divider {
  display: none;
  width: 1px;
  height: 2rem;
  background-color: hsl(210, 20%, 85%);
}

/* Testimonial */
.testimonial {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.quote-mark {
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8rem;
  line-height: 1;
  opacity: 0.1;
  color: var(--coral);
  font-family: Georgia, serif;
  user-select: none;
  pointer-events: none;
}

.testimonial blockquote {
  position: relative;
}

.testimonial blockquote p {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--navy);
  font-family: var(--font-serif);
  margin-bottom: 1.5rem;
}

.testimonial footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.author-info {
  text-align: left;
}

.author-info strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
}

.author-info span {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Final CTA Section */
.final-cta {
  position: relative;
  padding: 5rem 1rem;
  background-color: hsl(8, 40%, 95%);
  text-align: center;
  overflow: hidden;
}

.decorative-bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: radial-gradient(circle at 20% 50%, hsl(8, 50%, 88%) 0%, transparent 50%),
                    radial-gradient(circle at 80% 50%, hsl(35, 60%, 90%) 0%, transparent 50%);
}

.final-cta .container {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.cta-icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.cta-icon-wrapper > svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--white);
}

.grad-icon {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--white);
}

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

.cta-subtext {
  font-size: 1rem;
  font-style: italic;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.cta-button-coral {
  background-color: var(--coral);
  border-radius: 0.75rem;
  padding: 1.25rem 2.5rem;
  box-shadow: 0 8px 24px -4px hsla(8, 56%, 54%, 0.4);
}

.cta-button-coral:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -4px hsla(8, 56%, 54%, 0.5);
}

.cta-microcopy {
  font-size: 0.875rem;
  color: hsl(210, 20%, 55%);
}

/* Footer */
.site-footer {
  padding: 2.5rem 1.5rem;
  background-color: var(--navy);
  color: var(--white);
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  width: 3rem;
  height: auto;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.footer-tagline {
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
}

.footer-info {
  padding-top: 1rem;
  space-y: 0.75rem;
}

.footer-address {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.privacy-link {
  color: var(--white);
  text-decoration: underline;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.privacy-link:hover {
  opacity: 1;
}

.footer-neighborhoods {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.75rem;
}

.footer-phone {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.footer-phone a:hover {
  text-decoration: underline;
}

.footer-hours {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Testimonial cite */
.testimonial-cite {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-style: normal;
}

/* Privacy Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: var(--white);
  border-radius: 0.75rem;
  max-width: 42rem;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  transform: scale(0.95);
  transition: transform 0.3s;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background-color: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.modal-logo {
  height: 2rem;
  width: auto;
}

.modal-close {
  color: var(--gray-500);
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--gray-800);
}

.modal-content {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: calc(85vh - 80px);
  font-size: 0.875rem;
  line-height: 1.7;
  color: hsl(210, 20%, 30%);
}

.modal-content h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.modal-content .last-updated {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

.modal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal-content p {
  margin-bottom: 0.75rem;
}

.modal-content ul {
  margin-bottom: 0.75rem;
}

/* Tablet Styles */
@media (min-width: 640px) {
  .hero-logo {
    width: 5rem;
  }
  
  .trust-signal {
    font-size: 1rem;
  }
  
  .hero-headline {
    font-size: 2.25rem;
  }
  
  .cta-button {
    font-size: 1.25rem;
    padding: 1rem 2rem;
  }

  .hero-cta-buttons,
  .cta-buttons-row {
    flex-direction: row;
    justify-content: center;
    width: auto;
  }
  
  .text-side {
    padding: 4rem 2.5rem;
  }
  
  .stat-number {
    font-size: 5rem;
  }
  
  .stat-label {
    font-size: 1.5rem;
  }
  
  .inline-stats {
    flex-direction: row;
    gap: 0;
  }
  
  .stat-divider {
    display: block;
  }
  
  .testimonial blockquote p {
    font-size: 1.875rem;
  }
  
  .final-cta h2 {
    font-size: 1.875rem;
  }
  
  .footer-logo {
    width: 3.5rem;
  }
  
  .footer-name {
    font-size: 1.25rem;
  }
  
  .footer-tagline {
    font-size: 0.875rem;
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .hero-headline {
    font-size: 3rem;
  }
  
  .hero-subhead {
    font-size: 1.25rem;
  }
  
  .problem-solution-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .image-side {
    aspect-ratio: auto;
    min-height: 450px;
  }
  
  .text-side {
    padding: 4rem 4rem 4rem 5rem;
  }
  
  .text-content {
    max-width: 28rem;
  }
  
  .problem-text,
  .solution-text {
    font-size: 1.25rem;
  }
  
  .trust-stats {
    padding: 6rem 1rem;
  }
  
  .stat-number {
    font-size: 6rem;
  }
  
  .final-cta {
    padding: 7rem 1rem;
  }
  
  .final-cta h2 {
    font-size: 2.25rem;
  }
  
  .cta-subtext {
    font-size: 1.125rem;
  }
}

/* Large Desktop */
@media (min-width: 1280px) {
  .hero-headline {
    font-size: 3.5rem;
  }
}

/* Focus States for Accessibility */
.cta-button:focus,
.privacy-link:focus,
.modal-close:focus,
a:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
