/* ============================================
   Angela Gitchell Tax Service — Styles
   Palette: Plum (#5B2C6F) + Amber (#C8961E)
   Fonts: Playfair Display + Inter
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  color: #1a1025;
  background: #FDFBF7;
  overflow-x: hidden;
}

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: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: #5B2C6F;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 200;
  font-size: 14px;
}
.skip-link:focus {
  top: 12px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(91, 44, 111, 0.08);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 1px 20px rgba(91, 44, 111, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: #5B2C6F;
  color: #C8961E;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 13px;
  font-weight: 400;
  color: #1a1025;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.logo-sub {
  color: #5B2C6F;
  font-weight: 500;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3d2c4a;
  transition: color 0.2s;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #C8961E;
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
  width: 100%;
}

.main-nav a:hover {
  color: #5B2C6F;
}

.nav-cta {
  background: #5B2C6F;
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: #4a2459;
  color: #fff !important;
}

.nav-cta:hover::after {
  display: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: rgba(91, 44, 111, 0.06);
}

.hamburger {
  display: block;
  width: 20px;
  height: 14px;
  position: relative;
}

.hamburger::before,
.hamburger::after,
.hamburger span {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: #1a1025;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger::before { top: 0; }
.hamburger span { top: 6px; }
.hamburger::after { top: 12px; }

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg);
  top: 6px;
}
.nav-toggle[aria-expanded="true"] .hamburger span {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
  top: 6px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding-top: 72px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: #FDFBF7;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 80px;
  width: 100%;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C8961E;
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.15;
  color: #1a1025;
  margin-bottom: 24px;
  max-width: 540px;
}

.hero-title em {
  color: #5B2C6F;
  font-style: italic;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.75;
  color: #4a3d52;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 14px 28px;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: #5B2C6F;
  color: #fff;
}

.btn-primary:hover {
  background: #4a2459;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(91, 44, 111, 0.2);
}

.btn-outline {
  background: transparent;
  color: #1a1025;
  border: 1.5px solid rgba(91, 44, 111, 0.25);
}

.btn-outline:hover {
  border-color: #5B2C6F;
  color: #5B2C6F;
}

.btn-full {
  width: 100%;
}

.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: #6b5a75;
}

.hero-trust svg {
  color: #C8961E;
  flex-shrink: 0;
}

/* Hero image */
.hero-image {
  position: relative;
}

.hero-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(91, 44, 111, 0.12);
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-accent-line {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, #C8961E, transparent);
  border-radius: 2px;
}

/* ============================================
   SECTION SHARED
   ============================================ */
.section-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C8961E;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.2;
  color: #1a1025;
  margin-bottom: 20px;
}

.section-line {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, #C8961E, rgba(200, 150, 30, 0.3));
  border-radius: 2px;
  margin-bottom: 32px;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 100px 0;
  background: #FDFBF7;
}

.section-header {
  margin-bottom: 64px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: #fff;
  border: 1px solid rgba(91, 44, 111, 0.07);
  border-radius: 12px;
  padding: 36px 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #5B2C6F, #C8961E);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(91, 44, 111, 0.08);
  border-color: rgba(91, 44, 111, 0.12);
}

.service-card:hover::before {
  opacity: 1;
}

.service-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 600;
  color: rgba(91, 44, 111, 0.07);
  line-height: 1;
  margin-bottom: 16px;
}

.service-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 500;
  color: #1a1025;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #6b5a75;
}

/* ============================================
   WHY US
   ============================================ */
.why-us {
  padding: 100px 0;
  background: #1a1025;
  color: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-content .section-eyebrow {
  color: #C8961E;
}

.why-content .section-title {
  color: #fff;
}

.why-content .section-line {
  background: linear-gradient(90deg, #C8961E, rgba(200, 150, 30, 0.2));
}

.why-intro {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  max-width: 480px;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.why-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #C8961E;
}

.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 100px 0;
  background: #FDFBF7;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(91, 44, 111, 0.1);
}

.about-content .section-eyebrow {
  color: #5B2C6F;
}

.about-content .section-title {
  color: #1a1025;
}

.about-content .section-line {
  margin-bottom: 28px;
}

.about-content p {
  font-size: 15px;
  line-height: 1.8;
  color: #4a3d52;
  margin-bottom: 16px;
}

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

/* ============================================
   FAQ
   ============================================ */
.faq {
  padding: 100px 0;
  background: #fff;
}

.faq .section-header {
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
}

.faq .section-title {
  color: #1a1025;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid rgba(91, 44, 111, 0.08);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: rgba(91, 44, 111, 0.15);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: #1a1025;
  transition: color 0.2s;
}

.faq-question:hover {
  color: #5B2C6F;
}

.faq-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(91, 44, 111, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5B2C6F;
  transition: transform 0.3s ease, background 0.2s;
}

.faq-question[aria-expanded="true"] .faq-toggle {
  transform: rotate(45deg);
  background: #5B2C6F;
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer p {
  padding: 0 28px 22px;
  font-size: 14px;
  line-height: 1.8;
  color: #6b5a75;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 100px 0;
  background: #FDFBF7;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-intro {
  font-size: 15px;
  line-height: 1.8;
  color: #4a3d52;
  margin-bottom: 40px;
  max-width: 440px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(91, 44, 111, 0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5B2C6F;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5B2C6F;
  margin-bottom: 4px;
}

.contact-item span,
.contact-item a {
  font-size: 15px;
  color: #4a3d52;
  line-height: 1.6;
}

.contact-item a:hover {
  color: #C8961E;
}

/* Form */
.contact-form-wrap {
  background: #fff;
  border: 1px solid rgba(91, 44, 111, 0.08);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 16px 48px rgba(91, 44, 111, 0.06);
}

.form-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 500;
  color: #1a1025;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b5a75;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #1a1025;
  background: #FDFBF7;
  border: 1px solid rgba(91, 44, 111, 0.12);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a89ab0;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #5B2C6F;
  box-shadow: 0 0 0 3px rgba(91, 44, 111, 0.08);
}

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

.form-note {
  font-size: 12px;
  color: #a89ab0;
  margin-top: 12px;
  text-align: center;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: rgba(91, 44, 111, 0.05);
  border: 1px solid rgba(91, 44, 111, 0.12);
  border-radius: 8px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: #5B2C6F;
}

.form-success svg {
  flex-shrink: 0;
  color: #5B2C6F;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #1a1025;
  color: rgba(255, 255, 255, 0.6);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-brand .logo-mark {
  width: 36px;
  height: 36px;
  font-size: 13px;
  margin-bottom: 12px;
}

.footer-brand .footer-name {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  max-width: 240px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #C8961E;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: #C8961E;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   SCROLL REVEAL (below fold only)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid,
  .about-grid,
  .contact-grid {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(91, 44, 111, 0.08);
    padding: 24px;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .main-nav a {
    padding: 12px 16px;
    border-radius: 8px;
  }

  .main-nav a:hover {
    background: rgba(91, 44, 111, 0.04);
  }

  .nav-cta {
    text-align: center;
    margin-top: 8px;
  }

  /* Hero mobile */
  .hero {
    padding-top: 64px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 60px;
  }

  .hero-image {
    order: -1;
  }

  .hero-img-wrap {
    border-radius: 12px;
  }

  .hero-accent-line {
    display: none;
  }

  .hero-trust {
    gap: 16px;
  }

  /* Services */
  .services {
    padding: 72px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 28px 24px;
  }

  /* Why us */
  .why-us {
    padding: 72px 0;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .why-image {
    order: -1;
  }

  .why-image img {
    border-radius: 12px;
  }

  /* About */
  .about {
    padding: 72px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: -1;
  }

  .about-image img {
    border-radius: 12px;
  }

  /* FAQ */
  .faq {
    padding: 72px 0;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 14px;
  }

  .faq-answer p {
    padding: 0 20px 18px;
    font-size: 13px;
  }

  /* Contact */
  .contact {
    padding: 72px 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-form-wrap {
    padding: 28px 24px;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: 26px;
  }
}
