:root {
  --purple: #43187a;
  --gold: #c89b3c;
  --dark-text: #0d1025;
  --title: #eaeaea;
  --white: #ffffff;
  --brand-deep: var(--purple);
  --brand-primary: var(--purple);
  --brand-accent: #6b4da8;
  --bg: #f6f7fb;
  --text: var(--dark-text);
  --muted: #4a4f6a;
  --border: #e5e8f3;
  --success: #0f8a5f;
  --lux-gold: var(--gold);
  --lux-gold-soft: #e8d4a8;
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

body.is-loading {
  overflow: hidden;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.topbar {
  background: var(--purple);
  color: var(--title);
  font-size: 0.9rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(130%) blur(5px);
  overflow: visible;
  min-height: 20px;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0;
  overflow: visible;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  color: var(--text);
  position: relative;
  z-index: 80;
}

.brand img {
  width: min(95px, 28vw);
  height: auto;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--brand-primary);
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0;
  margin: 0;
}

.main-nav a {
  color: var(--text);
  font-weight: 600;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--brand-primary);
}

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.65rem 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease, color 220ms ease,
    border-color 220ms ease, background-size 280ms ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(67, 24, 122, 0.28);
  transition: transform 220ms ease, box-shadow 220ms ease, background-size 280ms ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(67, 24, 122, 0.34);
}

.btn-outline {
  background: transparent;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.hero .btn-outline {
  color: var(--purple);
  border-color: var(--purple);
}

.hero .btn-outline:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(67, 24, 122, 0.18);
  background: var(--purple);
  color: var(--white);
}

.hero .btn-primary {
  background: var(--purple);
}

.hero .btn-primary:hover {
  background: linear-gradient(90deg, var(--purple), var(--brand-accent));
}

.hero {
  --hero-bg-image: none;
  background: var(--white);
  color: var(--dark-text);
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 72vh, 680px);
  height: clamp(560px, 72vh, 680px);
  border-bottom: 1px solid var(--border);
}

.hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -120px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 24, 122, 0.08) 0%, rgba(67, 24, 122, 0) 72%);
  z-index: 2;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(105deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.88) 55%, rgba(255, 255, 255, 0.72) 100%),
    var(--hero-bg-image);
  background-size: cover;
  background-position: center;
  z-index: 1;
  opacity: 1;
  transform: translateX(0);
}

.hero.slide-in::before {
  animation: heroSlideIn 620ms ease both;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: stretch;
  min-height: 100%;
  height: 100%;
  position: relative;
  z-index: 3;
}

.hero-grid > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
  color: var(--dark-text);
}

.hero h1,
.page-hero h1 {
  color: var(--purple);
}

.cta-strip h2,
footer h3 {
  color: var(--title);
}

h1 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 2.3vw, 2.3rem);
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

p {
  margin-top: 0;
}

.hero p {
  color: var(--dark-text);
  max-width: 55ch;
}

#hero-title {
  min-height: 3.8em;
  line-height: 1.25;
  margin-bottom: 1rem;
}

#hero-description {
  min-height: 6.8em;
  margin-top: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.hero-dots {
  display: flex;
  gap: 0.55rem;
  margin-top: 1rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--purple);
  background: rgba(67, 24, 122, 0.2);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.hero-dot.active {
  background: var(--lux-gold);
  border-color: var(--lux-gold-soft);
  box-shadow: 0 0 0 4px rgba(213, 179, 106, 0.2);
  transform: scale(1.08);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.5rem 0 0.7rem;
}

#hero-counter {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--purple);
  border: 1px solid rgba(67, 24, 122, 0.28);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.hero-keyword {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 700;
}

.stats-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 12px 32px rgba(13, 16, 37, 0.08);
  animation: softFloat 7s ease-in-out infinite;
}

.stats-card li {
  color: var(--dark-text);
}

.stats-card strong {
  color: var(--purple);
}

.stats-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.stats-card strong {
  display: block;
  font-size: 1.2rem;
}

section {
  padding: 4rem 0;
}

.section-muted {
  background: var(--white);
}

.section-header {
  max-width: 760px;
  margin-bottom: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
  box-shadow: 0 8px 24px rgba(67, 24, 122, 0.04);
  position: relative;
  overflow: hidden;
}

.grid-3 .card {
  height: 100%;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-accent), var(--lux-gold));
  opacity: 0;
  transition: opacity 260ms ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(67, 24, 122, 0.14);
  border-color: #d7c7f8;
}

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

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.trust-band {
  background: #f3eeff;
  border-block: 1px solid #ddd0ff;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  padding: 0.8rem 0;
}

.trust-item {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--brand-deep);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #decff8;
}

.cta-strip {
  background: var(--purple);
  color: var(--title);
}

.cta-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.cta-strip p {
  margin: 0;
  color: rgba(234, 234, 234, 0.9);
}

.page-hero {
  --hero-image: none;
  background-color: var(--white);
  background-image: linear-gradient(105deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.9) 60%, rgba(255, 255, 255, 0.78) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  color: var(--dark-text);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero::after {
  content: "";
  position: absolute;
  left: -100px;
  bottom: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 24, 122, 0.1) 0%, rgba(67, 24, 122, 0) 72%);
}

.page-hero h1 {
  color: var(--purple);
}

.page-hero p {
  color: var(--dark-text);
}

.page-hero--services {
  --hero-image: url("https://images.unsplash.com/photo-1554224155-8d04cb21cd6c?auto=format&fit=crop&w=1800&q=80");
}

.page-hero--tax {
  --hero-image: url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1800&q=80");
}

.page-hero--accounting {
  --hero-image: url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1800&q=80");
}

.page-hero--compliance {
  --hero-image: url("https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=1800&q=80");
}

.page-hero--about {
  --hero-image: url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1800&q=80");
}

.page-hero--resources {
  --hero-image: url("https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=1800&q=80");
}

.page-hero--contact {
  --hero-image: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80");
}

.breadcrumbs {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--purple);
}

.list-check {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.list-check li::before {
  content: "✓ ";
  color: var(--brand-primary);
  font-weight: 700;
}

form {
  display: grid;
  gap: 0.8rem;
}

label {
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd5ea;
  border-radius: 6px;
  padding: 0.65rem 0.7rem;
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.form-help {
  color: var(--muted);
  font-size: 0.9rem;
}

.form-result {
  display: none;
  background: #def7ed;
  border: 1px solid #b6ead2;
  color: #0d6e4e;
  padding: 0.8rem;
  border-radius: 6px;
}

.form-result.show {
  display: block;
  animation: fadeInUp 360ms ease;
}

.form-result.is-error {
  background: #fdecec;
  border-color: #f5c2c2;
  color: #9b1c1c;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border: 1px solid var(--border);
  padding: 0.7rem;
  text-align: left;
}

.table th {
  background: #faf8ff;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
}

.calendar-card h3 {
  margin-bottom: 0;
}

.calendar-dates {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.calendar-dates li {
  color: #3d4258;
  font-size: 0.95rem;
}

.calendar-date {
  display: inline-block;
  min-width: 4.5rem;
  font-weight: 600;
  color: var(--brand);
}

.tax-calendar-table td {
  color: #3d4258;
}

.tax-calendar-table td strong {
  color: #1a1d2e;
}

.tax-calendar-table td:first-child {
  width: 9rem;
  vertical-align: top;
}

.calendar-legend {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.calendar-legend li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.calendar-legend-swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.calendar-legend-swatch--previous {
  background: #f8f5ff;
}

.calendar-legend-swatch--current {
  background: #ede4ff;
  border-color: var(--brand);
}

.calendar-legend-swatch--upcoming {
  background: #fff8e8;
  border-color: #e8c96a;
}

.calendar-legend-swatch--past {
  background: #f4f4f6;
}

.tax-calendar-table tr.calendar-month--past td {
  background: #f7f8fa;
}

.tax-calendar-table tr.calendar-month--past td strong {
  color: #5c6178;
}

.tax-calendar-table tr.calendar-month--previous td {
  background: #faf8ff;
}

.tax-calendar-table tr.calendar-month--current td {
  background: #f3eeff;
  color: #1a1d2e;
}

.tax-calendar-table tr.calendar-month--current td:first-child {
  box-shadow: inset 3px 0 0 var(--brand);
}

.tax-calendar-table tr.calendar-month--current td:first-child strong {
  color: var(--brand);
}

.tax-calendar-table tr.calendar-month--upcoming td {
  background: #fff;
}

.calendar-dates li.calendar-date-item--past {
  color: #6b7086;
}

.calendar-dates li.calendar-date-item--past .calendar-date {
  color: #7a6a9a;
}

.calendar-dates li.calendar-date-item--today {
  font-weight: 600;
  color: #1a1d2e;
}

.calendar-dates li.calendar-date-item--today .calendar-date {
  background: var(--brand);
  color: #fff;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.calendar-dates li.calendar-date-item--upcoming {
  color: #1a1d2e;
  font-weight: 500;
}

.calendar-dates li.calendar-date-item--upcoming .calendar-date {
  color: #7a5a00;
}

footer {
  background: var(--purple);
  color: var(--title);
  padding: 1.5rem 0;
}

footer.footer-compact,
footer:not(:has(.footer-grid)) {
  padding: 0.65rem 0;
}

footer.footer-compact .container,
footer:not(:has(.footer-grid)) .container {
  padding-top: 0;
  padding-bottom: 0;
}

footer.footer-compact .small,
footer:not(:has(.footer-grid)) .small {
  margin: 0;
  line-height: 1.45;
}

footer a {
  color: var(--title);
}

footer a:hover {
  color: var(--gold);
}

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

.small {
  font-size: 0.88rem;
  color: rgba(234, 234, 234, 0.75);
}

.tax-agent-notice {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(234, 234, 234, 0.85);
}

.footer-registration {
  margin-top: 0.6rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(234, 234, 234, 0.2);
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(234, 234, 234, 0.8);
}

.registration-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(67, 24, 122, 0.25);
  background: rgba(67, 24, 122, 0.06);
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 600;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f7f1ff, #ece2ff);
  color: var(--brand-primary);
  border: 1px solid #e1d4f8;
  margin-bottom: 0.7rem;
  font-size: 1rem;
}

[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-animate].show {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes softFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes heroSlideIn {
  from {
    transform: translateX(8%);
    opacity: 0.72;
  }
  to {
    transform: translateX(0);
    opacity: 0.95;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: opacity 420ms ease, visibility 420ms ease;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.preloader-word {
  margin: 0;
  font-size: clamp(2.2rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: addatFill 1.45s ease forwards;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.preloader-logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.preloader-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 24, 122, 0.22) 0%, rgba(200, 155, 60, 0.12) 45%, transparent 72%);
  animation: luxuryGlow 2.8s ease-in-out infinite;
}

.preloader-ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box,
    conic-gradient(from 0deg, transparent, var(--gold), var(--purple), var(--gold), transparent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.85;
  animation: luxuryRingSpin 3.6s linear infinite;
}

.preloader-logo {
  position: relative;
  z-index: 1;
  width: min(280px, 62vw);
  height: auto;
  animation: luxuryLogoReveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) both, luxuryLogoPulse 2.6s ease-in-out 1.1s infinite;
  filter: drop-shadow(0 18px 36px rgba(67, 24, 122, 0.18));
}

.preloader-subtitle {
  margin: 0;
  font-size: clamp(0.9rem, 2.2vw, 1.15rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 600;
  opacity: 0;
  animation: luxurySubtitleIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

.preloader-line {
  display: block;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--purple), var(--gold), transparent);
  border-radius: 999px;
  animation: luxuryLineExpand 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

@keyframes luxuryLogoReveal {
  0% {
    opacity: 0;
    transform: scale(0.82) translateY(12px);
    filter: drop-shadow(0 0 0 transparent) blur(6px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 18px 36px rgba(67, 24, 122, 0.18)) blur(0);
  }
}

@keyframes luxuryLogoPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes luxuryGlow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes luxuryRingSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes luxurySubtitleIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
    letter-spacing: 0.12em;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0.32em;
  }
}

@keyframes luxuryLineExpand {
  to {
    width: min(220px, 55vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .preloader-logo {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .preloader-subtitle {
    opacity: 1;
    letter-spacing: 0.32em;
    transform: none;
  }

  .preloader-line {
    width: min(220px, 55vw);
  }

  .preloader-glow,
  .preloader-ring {
    animation: none;
  }
}

@keyframes addatFill {
  to {
    background-position: 0 0;
  }
}

@keyframes subtitleZigZagFill {
  0% {
    background-size: 220% 0%;
    background-position: 0 100%;
  }
  100% {
    background-size: 220% 100%;
    background-position: -120px 0;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-strip .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .hero {
    height: auto;
    min-height: 0;
    padding: 3.6rem 0 2.4rem;
  }

  .hero-grid {
    height: auto;
    min-height: 0;
    align-items: start;
    gap: 1.2rem;
  }

  .hero-grid > div:first-child {
    min-height: 0;
  }

  #hero-title,
  #hero-description {
    min-height: 0;
  }

  .stats-card {
    animation: none;
  }

  .brand img {
    width: min(80px, 24vw);
    height: auto;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-wrap {
    padding: 0.15rem 0;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .main-nav.open {
    display: block;
  }

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

  .main-nav li a {
    display: block;
    padding: 0.85rem 4%;
    border-top: 1px solid var(--border);
  }

  .hero-grid,
  .grid-2,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 3rem 0;
  }

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

  .service-luxury-block {
    grid-template-columns: 1fr;
  }

  .service-luxury-block:nth-child(even) .service-luxury-visual {
    order: -1;
  }
}

/* ── Luxury Services ── */

.lux-divider {
  display: block;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--lux-gold-soft));
  border-radius: 999px;
  margin: 0.75rem 0 1.25rem;
}

.section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header--center .lux-divider {
  margin-left: auto;
  margin-right: auto;
}

.grid-services {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}

.grid-services > .service-card-luxury:nth-child(1),
.grid-services > .service-card-luxury:nth-child(2),
.grid-services > .service-card-luxury:nth-child(3) {
  grid-column: span 2;
}

.grid-services > .service-card-luxury:nth-child(4) {
  grid-column: 2 / span 2;
}

.grid-services > .service-card-luxury:nth-child(5) {
  grid-column: 4 / span 2;
}

.service-card-luxury {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.4rem 1.35rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 10px 32px rgba(67, 24, 122, 0.06);
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.service-card-luxury::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--gold));
}

.service-card-luxury::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 155, 60, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.service-card-luxury:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(67, 24, 122, 0.12);
  border-color: #d9c8f5;
}

.service-card-luxury .card-icon {
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #faf6ff, #f0e8ff);
  border-color: #e8dcf8;
}

.service-card-luxury h3 {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--purple);
}

.service-card-luxury p {
  color: var(--muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.service-card-luxury .service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--purple);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.service-card-luxury .service-link i {
  font-size: 0.75rem;
  transition: transform 220ms ease;
}

.service-card-luxury:hover .service-link i {
  transform: translateX(4px);
}

.service-card-luxury .service-link:hover {
  color: var(--gold);
  text-decoration: none;
}

.service-index {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.section-luxury {
  background: linear-gradient(180deg, #faf8ff 0%, var(--bg) 100%);
}

.service-luxury-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.service-luxury-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-luxury-block:first-child {
  padding-top: 0;
}

.service-luxury-visual {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(67, 24, 122, 0.08);
}

.service-luxury-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(67, 24, 122, 0.04) 0%, rgba(200, 155, 60, 0.06) 100%);
  pointer-events: none;
}

.service-luxury-visual .card-icon {
  width: 56px;
  height: 56px;
  font-size: 1.35rem;
  position: relative;
  z-index: 1;
}

.service-luxury-visual h3 {
  position: relative;
  z-index: 1;
  color: var(--purple);
  font-size: 1.35rem;
  margin-top: 1rem;
}

.service-luxury-visual p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  margin-bottom: 0;
}

.service-luxury-content h2 {
  color: var(--purple);
  font-size: clamp(1.4rem, 2vw, 1.85rem);
}

.service-luxury-content .lead {
  font-size: 1.05rem;
  color: var(--dark-text);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-detail-page .page-hero {
  padding: 4rem 0 3.5rem;
}

.service-detail-page .page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.service-detail-page .page-hero .lead {
  font-size: 1.1rem;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.7;
}

.service-detail-body {
  max-width: 780px;
}

.service-detail-body .list-check li {
  padding-left: 0.2rem;
  line-height: 1.65;
  color: var(--dark-text);
}

.service-detail-body .list-check li::before {
  color: var(--gold);
}

.service-detail-aside {
  background: linear-gradient(160deg, #faf6ff 0%, #fff 60%);
  border: 1px solid #e8dcf8;
  border-top: 3px solid var(--gold);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 12px 36px rgba(67, 24, 122, 0.07);
}

.service-detail-aside h3 {
  color: var(--purple);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.service-detail-aside p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.page-hero--setup {
  --hero-image: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80");
}

.page-hero--tax-compliance {
  --hero-image: url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1800&q=80");
}

.page-hero--bookkeeping {
  --hero-image: url("https://images.unsplash.com/photo-1554224155-8d04cb21cd6c?auto=format&fit=crop&w=1800&q=80");
}

.page-hero--financials {
  --hero-image: url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1800&q=80");
}

.page-hero--xero {
  --hero-image: url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1800&q=80");
}

@media (max-width: 980px) {
  .grid-services {
    grid-template-columns: 1fr 1fr;
  }

  .grid-services > .service-card-luxury {
    grid-column: auto !important;
  }
}
