/* ========================================
   Acosta Tax Services - Styles
   ======================================== */

/* CSS Variables */
:root {
  --primary-blue: #1B458F;
  --primary-blue-dark: #153670;
  --primary-blue-light: rgba(27, 69, 143, 0.1);
  --accent-yellow: #FDB913;
  --accent-yellow-light: rgba(253, 185, 19, 0.2);
  --text-dark: #1f2937;
  --text-gray: #6b7280;
  --text-light: #9ca3af;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-gray: #f3f4f6;
  --border-light: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-dark);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 1rem 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

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

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  height: 6rem;
  width: auto;
  object-fit: contain;
  transition: height var(--transition-normal);
}

.navbar.scrolled .logo {
  height: 4.5rem;
}

@media (min-width: 768px) {
  .logo {
    height: 7.5rem;
  }
  
  .navbar.scrolled .logo {
    height: 6rem;
  }
}

.desktop-menu {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .desktop-menu {
    display: flex;
  }
}

.nav-link {
  font-weight: 500;
  color: var(--primary-blue);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent-yellow);
}

.nav-cta {
  margin-left: 1rem;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  padding: 0.5rem;
}

.mobile-menu-btn:focus {
  outline: none;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
}

.mobile-menu.active {
  display: flex;
}

.mobile-nav-link {
  font-weight: 500;
  color: var(--primary-blue);
  padding: 0.5rem 0;
}

.mobile-cta {
  text-align: center;
  margin-top: 0.5rem;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 9999px;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--bg-white);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  background-color: var(--primary-blue-dark);
  transform: scale(1.05);
}

.btn-secondary {
  background-color: var(--accent-yellow);
  color: var(--primary-blue);
}

.btn-secondary:hover {
  background-color: #e5a812;
}

.btn-outline {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-blue-light);
}

.btn-white {
  background-color: var(--bg-white);
  color: var(--primary-blue);
  box-shadow: var(--shadow-lg);
}

.btn-white:hover {
  box-shadow: var(--shadow-xl);
  transform: scale(1.05);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 0.5rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  padding-top: 7rem;
  padding-bottom: 5rem;
  background: linear-gradient(135deg, #eff6ff 0%, var(--bg-white) 100%);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 9rem;
  }
}

.hero-container {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

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

.hero-badge {
  display: inline-block;
  background-color: var(--primary-blue-light);
  color: var(--primary-blue);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.text-accent {
  color: var(--accent-yellow);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-gray);
  line-height: 1.75;
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-image-wrapper {
  position: relative;
  z-index: 1;
}

.hero-image-bg {
  position: absolute;
  inset: -1rem;
  background-color: var(--accent-yellow-light);
  border-radius: 1rem;
  transform: rotate(3deg);
  filter: blur(12px);
}

.hero-image {
  position: relative;
  border-radius: 1rem;
  box-shadow: var(--shadow-2xl);
  border: 4px solid var(--bg-white);
  transition: transform var(--transition-slow);
}

.hero-image:hover {
  transform: scale(1.01);
}

/* ========================================
   Quick Features Section
   ======================================== */
.quick-features {
  background-color: var(--primary-blue);
  color: var(--bg-white);
  padding: 3rem 0;
}

.features-grid {
  display: grid;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.feature-icon-wrapper {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 9999px;
  color: var(--accent-yellow);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.feature-description {
  color: rgba(219, 234, 254, 1);
  padding: 0 1rem;
}

/* ========================================
   Services Section
   ======================================== */
.services {
  padding: 5rem 0;
  background-color: var(--bg-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-underline {
  height: 6px;
  width: 6rem;
  background-color: var(--accent-yellow);
  border-radius: 9999px;
  margin: 0 auto 1rem;
}

.section-description {
  color: var(--text-gray);
  max-width: 42rem;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  transition: box-shadow var(--transition-normal);
  border-top: 4px solid var(--primary-blue);
}

.service-card:hover {
  box-shadow: var(--shadow-xl);
}

.service-card-accent {
  border-top-color: var(--accent-yellow);
}

.service-icon-box {
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--primary-blue-light);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon-box {
  background-color: var(--primary-blue);
  color: var(--bg-white);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.service-description {
  color: var(--text-gray);
}

.service-card-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  border-top-color: var(--primary-blue);
}

.service-card-cta .service-title {
  color: var(--primary-blue);
}

.cta-link {
  display: flex;
  align-items: center;
  color: var(--accent-yellow);
  font-weight: 700;
  transition: transform var(--transition-normal);
}

.service-card-cta:hover .cta-link {
  transform: translateX(0.25rem);
}

/* ========================================
   About Section
   ======================================== */
.about {
  padding: 5rem 0;
  background-color: var(--bg-white);
}

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

@media (min-width: 768px) {
  .about-grid {
    flex-direction: row;
    gap: 3rem;
  }
}

.about-image-wrapper {
  width: 100%;
  position: relative;
  max-width: 600px;
}

@media (min-width: 768px) {
  .about-image-wrapper {
    width: 55%;
  }
}

.about-image-border {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 100%;
  height: 100%;
  border: 4px solid var(--accent-yellow);
  border-radius: 1rem;
  transform: translate(-1rem, -1rem);
  z-index: 0;
  display: none;
}

@media (min-width: 768px) {
  .about-image-border {
    display: block;
  }
}

.about-image {
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 400px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .about-image {
    min-height: 500px;
  }
}

.about-image-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: var(--bg-white);
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  display: none;
}

@media (min-width: 768px) {
  .about-image-badge {
    display: block;
  }
}

.about-image-badge p {
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 0.875rem;
}

.about-content {
  width: 100%;
}

@media (min-width: 768px) {
  .about-content {
    width: 50%;
  }
}

.about-label {
  color: var(--accent-yellow);
  font-weight: 700;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

.about-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .about-title {
    font-size: 2.5rem;
  }
}

.about-text {
  color: var(--text-gray);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-features {
  list-style: none;
  margin-bottom: 2rem;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.about-feature-item svg {
  color: var(--accent-yellow);
  flex-shrink: 0;
}

/* ========================================
   CTA Strip
   ======================================== */
.cta-strip {
  background-color: var(--accent-yellow);
  padding: 3rem 0;
}

.cta-strip-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-strip-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.cta-strip-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
}

@media (min-width: 768px) {
  .cta-strip-title {
    font-size: 2rem;
  }
}

.cta-strip-text {
  color: var(--primary-blue);
  opacity: 0.9;
  font-size: 1.125rem;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
  padding: 5rem 0;
  background-color: var(--primary-blue);
}

.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: flex-start;
}

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

.contact-info-card {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
}

.contact-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon-wrapper {
  background-color: var(--primary-blue-light);
  padding: 0.75rem;
  border-radius: 9999px;
  color: var(--primary-blue);
  flex-shrink: 0;
}

.contact-item-title {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.contact-item-text {
  color: var(--text-gray);
}

.contact-item-note {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.contact-item-note:last-child {
  color: var(--text-gray);
  font-size: 0.875rem;
}

.office-hours {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0 2rem;
  color: var(--text-gray);
}

.office-hours span:nth-child(odd) {
  color: var(--text-dark);
}

.contact-map-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-storefront {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-white);
}

@media (min-width: 768px) {
  .contact-storefront {
    min-height: 500px;
  }
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background-color: var(--primary-blue-dark);
  color: rgba(191, 219, 254, 1);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(30, 58, 138, 1);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-logo {
  height: 2.5rem;
  width: auto;
  background-color: var(--bg-white);
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.footer-copyright {
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-link {
  color: rgba(191, 219, 254, 1);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--bg-white);
}

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

.hero-content {
  animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   How It Works Section
   ======================================== */
.how-it-works {
  padding: 5rem 0;
  background-color: var(--bg-white);
}

.steps-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-item {
  text-align: center;
  padding: 2rem;
  position: relative;
}

.step-number {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary-blue-light);
  z-index: 0;
  line-height: 1;
}

.step-icon-wrapper {
  position: relative;
  z-index: 1;
  width: 5rem;
  height: 5rem;
  background-color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--bg-white);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
}

.step-description {
  color: var(--text-gray);
  max-width: 20rem;
  margin: 0 auto;
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials {
  padding: 5rem 0;
  background-color: var(--bg-gray);
}

.testimonials-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  color: var(--accent-yellow);
  margin-bottom: 1rem;
}

.testimonial-text {
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-author {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.875rem;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq {
  padding: 5rem 0;
  background-color: var(--bg-white);
}

.faq-list {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary-blue);
}

.faq-question span {
  padding-right: 1rem;
}

.faq-icon {
  flex-shrink: 0;
  color: var(--primary-blue);
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: var(--text-gray);
  line-height: 1.75;
}

/* ========================================
   Final CTA Section
   ======================================== */
.final-cta {
  padding: 5rem 0;
  background-color: var(--primary-blue);
  text-align: center;
}

.final-cta-content {
  max-width: 40rem;
  margin: 0 auto;
}

.final-cta-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--bg-white);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .final-cta-title {
    font-size: 2.5rem;
  }
}

.final-cta-text {
  font-size: 1.25rem;
  color: var(--accent-yellow);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.final-cta-subtext {
  color: rgba(191, 219, 254, 1);
  margin-bottom: 2rem;
}

.btn-accent {
  background-color: var(--accent-yellow);
  color: var(--primary-blue);
}

.btn-accent:hover {
  background-color: #e5a812;
  transform: scale(1.05);
}

/* ========================================
   Utility Classes
   ======================================== */
.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;
}
