/* ============================================
   Payroll & Tax Reports — Styles
   Charcoal + Coral | Playfair Display + Inter
   ============================================ */

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

:root {
  --charcoal: #2D2D2D;
  --charcoal-light: #3A3A3A;
  --charcoal-dark: #1E1E1E;
  --coral: #E86B54;
  --coral-dark: #D4553F;
  --coral-light: #F0856F;
  --white: #FFFFFF;
  --off-white: #FAFAF8;
  --gray-50: #F7F7F5;
  --gray-100: #EFEFEA;
  --gray-200: #E2E2DC;
  --gray-300: #C8C8C0;
  --gray-400: #9E9E96;
  --gray-500: #7A7A72;
  --gray-600: #5C5C54;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: 0 1px 20px rgba(45, 45, 45, 0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--charcoal);
  color: var(--coral);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: transform 0.3s var(--ease-out);
}

.nav-logo:hover .nav-logo-mark {
  transform: rotate(-5deg) scale(1.05);
}

.nav-logo-text {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--charcoal);
}

.nav-cta {
  background: var(--charcoal);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease !important;
}

.nav-cta:hover {
  background: var(--charcoal-light);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 30, 30, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.visible {
  opacity: 1;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: var(--white);
  overflow: hidden;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--charcoal);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

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

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-500);
  max-width: 480px;
  margin-bottom: 36px;
}

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

.hero-stats {
  display: flex;
  gap: 32px;
  align-items: center;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-num {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
}

.hero-stat-label {
  font-size: 12px;
  color: var(--gray-400);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
}

.hero-image {
  position: relative;
}

.hero-image-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(45, 45, 45, 0.12);
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image-accent {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 120px;
  height: 120px;
  background: var(--coral);
  border-radius: 16px;
  z-index: -1;
  opacity: 0.15;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  letter-spacing: 0.01em;
  text-decoration: none;
}

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

.btn-coral:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 107, 84, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--gray-200);
}

.btn-outline:hover {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: var(--white);
}

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

.btn-white:hover {
  background: var(--gray-50);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn-full {
  width: 100%;
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-500);
  max-width: 560px;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 120px 0;
  background: var(--gray-50);
}

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

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

.service-card {
  background: var(--white);
  padding: 36px 32px;
  border-radius: 16px;
  border: 1px solid var(--gray-100);
  transition: all 0.3s var(--ease-out);
}

.service-card:hover {
  border-color: var(--coral);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(45, 45, 45, 0.08);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--charcoal);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
  margin-bottom: 20px;
  transition: transform 0.3s var(--ease-out);
}

.service-card:hover .service-icon {
  transform: scale(1.08) rotate(-3deg);
}

.service-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray-500);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 120px 0;
  background: var(--white);
}

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

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.about-image-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--charcoal);
  color: var(--white);
  padding: 16px 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-badge-num {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 900;
  color: var(--coral);
}

.about-badge-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.about-content {
  max-width: 520px;
}

.about-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
}

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

/* ============================================
   WHY US
   ============================================ */
.why {
  padding: 120px 0;
  background: var(--charcoal);
  color: var(--white);
}

.why-header {
  text-align: center;
  margin-bottom: 64px;
}

.why-header .section-eyebrow {
  color: var(--coral);
}

.why-header .section-title {
  color: var(--white);
}

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

.why-card {
  background: var(--charcoal-light);
  padding: 40px 36px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s var(--ease-out);
}

.why-card:hover {
  border-color: rgba(232, 107, 84, 0.3);
  transform: translateY(-4px);
}

.why-card-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 900;
  color: var(--coral);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 16px;
}

.why-card-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.why-card-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray-400);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  padding: 120px 0;
  background: var(--white);
}

.testimonials .section-header {
  text-align: center;
}

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

.testimonial-card {
  background: var(--gray-50);
  padding: 36px 32px;
  border-radius: 16px;
  border: 1px solid var(--gray-100);
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.testimonial-card:hover {
  border-color: var(--coral);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(45, 45, 45, 0.08);
}

.testimonial-quote {
  color: var(--coral);
  opacity: 0.3;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--charcoal);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0.02em;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: 100px 0;
  background: var(--coral);
  text-align: center;
}

.cta-content {
  max-width: 680px;
  margin: 0 auto;
}

.cta .section-eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.cta-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.cta-title .text-coral {
  color: var(--white);
  opacity: 0.85;
}

.cta-desc {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 120px 0;
  background: var(--gray-50);
}

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

.contact-info {
  max-width: 520px;
}

.contact-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray-500);
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

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

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--charcoal);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
  flex-shrink: 0;
}

.contact-detail-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.contact-detail-value {
  font-size: 15px;
  color: var(--charcoal);
  font-weight: 500;
  line-height: 1.5;
}

.contact-detail-value a {
  color: var(--charcoal);
  transition: color 0.2s ease;
}

.contact-detail-value a:hover {
  color: var(--coral);
}

.contact-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(45, 45, 45, 0.08);
}

/* FORM */
.contact-form-wrap {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--gray-100);
  box-shadow: 0 4px 24px rgba(45, 45, 45, 0.04);
}

.contact-form-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

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

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--charcoal);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--coral);
  background: var(--white);
}

.form-input::placeholder {
  color: var(--gray-300);
}

.form-select {
  cursor: pointer;
}

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

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #F0FFF4;
  border: 1px solid #C6F6D5;
  border-radius: 10px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: #276749;
}

.form-success svg {
  color: #48BB78;
  flex-shrink: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--charcoal-dark);
  color: var(--white);
  padding: 64px 0 0;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--coral);
  color: var(--white);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.footer-logo-text {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-400);
  max-width: 280px;
}

.footer-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--gray-300);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--coral);
}

.footer-contact p {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 4px;
}

.footer-link {
  color: var(--gray-300);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 13px;
  color: var(--gray-500);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.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; }

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

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

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

  .testimonials-grid .testimonial-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 20px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-overlay {
    display: block;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

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

  .hero-image {
    order: -1;
  }

  .hero-image-frame {
    border-radius: 12px;
  }

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

  .hero-stats {
    gap: 20px;
  }

  .services {
    padding: 80px 0;
  }

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

  .about {
    padding: 80px 0;
  }

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

  .about-image-badge {
    right: 16px;
    bottom: -12px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .why {
    padding: 80px 0;
  }

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

  .testimonials {
    padding: 80px 0;
  }

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

  .testimonials-grid .testimonial-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  .cta {
    padding: 80px 0;
  }

  .contact {
    padding: 80px 0;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 36px;
  }

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

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

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-stat-divider {
    display: none;
  }

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

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