/* =============================================
   PAYE Solutions Ltd — Main Stylesheet
   ============================================= */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #1a3fa0;
  --color-primary-dark: #122d78;
  --color-primary-light: #e8edfb;
  --color-accent: #ffffff;
  --color-text: #1a1a2e;
  --color-text-light: #ffffff;
  --color-bg: #f7f9fc;
  --color-bg-dark: #0f1b3d;
  --color-muted: #64748b;
  --color-border: #e2e8f0;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
  --radius: 8px;
  --radius-pill: 50px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-family);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-accent);
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-primary-dark);
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background-color: var(--color-bg);
}

.section--primary {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.section--primary h2,
.section--primary h3,
.section--primary p {
  color: var(--color-text-light);
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

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

.section__header p {
  color: var(--color-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0.75rem auto 0;
}

.section--primary .section__header p {
  color: rgba(255, 255, 255, 0.85);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-family);
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  min-height: 48px;
  min-width: 44px;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-text-light);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-text-light);
  border-color: var(--color-text-light);
}

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

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

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

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-accent);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}

body {
  padding-top: var(--nav-height);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.nav__logo img {
  height: 44px;
  width: auto;
  border-radius: 4px;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav__logo-text span:first-child {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.nav__logo-text span:last-child {
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

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

.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.nav__cta {
  display: none;
}

.nav__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  position: relative;
  transition: background-color var(--transition);
}

.nav__hamburger span::before,
.nav__hamburger span::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  left: 0;
  transition: transform var(--transition);
}

.nav__hamburger span::before {
  top: -7px;
}

.nav__hamburger span::after {
  top: 7px;
}

.nav__hamburger.is-active span {
  background-color: transparent;
}

.nav__hamburger.is-active span::before {
  transform: rotate(45deg);
  top: 0;
}

.nav__hamburger.is-active span::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-accent);
  z-index: 999;
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.nav__mobile.is-open {
  display: flex;
}

.nav__mobile a {
  display: block;
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav__mobile a:hover,
.nav__mobile a.active {
  color: var(--color-primary);
}

.nav__mobile .btn {
  margin-top: 1.5rem;
  text-align: center;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--color-bg-dark);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 27, 61, 0.05) 0%, rgba(15, 27, 61, 0.2) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding: 2rem 2rem;
  width: 100%;
}

.hero__dove {
  display: block;
  width: clamp(80px, 12vw, 140px);
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.35));
}

h1, h2, h3 {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero h1 {
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.85), 0 1px 6px rgba(0, 0, 0, 0.75);
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  font-weight: 400;
  text-shadow: 0 2px 35px rgba(0, 0, 0, 0.95), 0 1px 8px rgba(0, 0, 0, 0.8);
}

.hero .btn-group {
  justify-content: center;
}

.hero .btn {
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.85), 0 1px 6px rgba(0, 0, 0, 0.75);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.85), 0 1px 6px rgba(0, 0, 0, 0.75);
}

/* --- Trust Strip --- */
.trust-strip {
  padding: 2rem 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.trust-strip p {
  font-size: 0.875rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 1rem;
}

.trust-strip__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  opacity: 0.4;
}

.trust-strip__logos span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-muted);
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  background-color: var(--color-accent);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
  min-width: 0;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin-bottom: 0.75rem;
}

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

.card a {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Card with image */
.card--image {
  padding: 0;
  overflow: hidden;
}

.card__img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.card--image:hover .card__img img {
  transform: scale(1.05);
}

.card__body {
  padding: 1.5rem 2rem 2rem;
}

/* --- Stacked Boxes --- */
.stacked-boxes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.stacked-box {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background-color: var(--color-accent);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  transition: box-shadow var(--transition), transform var(--transition);
}

.stacked-box:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stacked-box__icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background-color: var(--color-primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stacked-box__icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.stacked-box__content h3 {
  margin-bottom: 0.5rem;
}

.stacked-box__content p {
  color: var(--color-muted);
  font-size: 1rem;
  margin-bottom: 0;
}

/* --- Content Block (text + image side by side) --- */
.content-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.content-block__text h2 {
  margin-bottom: 1rem;
}

.content-block__text p {
  color: var(--color-muted);
}

.content-block__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.content-block__image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* --- Referral / CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: 4rem 1.5rem;
}

.cta-banner h2 {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 550px;
  margin: 0 auto 2rem;
}

/* --- Testimonial Cards --- */
.testimonial-card {
  background-color: var(--color-accent);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.testimonial-card__quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--color-primary);
}

.testimonial-card__author {
  font-weight: 600;
  color: var(--color-text);
}

.testimonial-card__role {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* --- Team Cards --- */
.team-card {
  background-color: var(--color-accent);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.team-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: var(--color-primary-light);
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--color-primary);
  overflow: hidden;
}

.team-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  margin-bottom: 0.25rem;
}

.team-card__role {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.team-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* --- Pricing Table --- */
.pricing-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.pricing-intro p {
  color: var(--color-muted);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--color-accent);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.pricing-table thead {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.pricing-table th,
.pricing-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 1rem;
}

.pricing-table th {
  font-weight: 600;
}

.pricing-table tbody tr {
  border-bottom: 1px solid var(--color-border);
}

.pricing-table tbody tr:last-child {
  border-bottom: none;
}

.pricing-table tbody tr:hover {
  background-color: var(--color-bg);
}

/* Pricing cards for mobile */
.pricing-cards {
  display: none;
}

.pricing-card {
  background-color: var(--color-accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.pricing-card__service {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.pricing-card__price {
  font-size: 1.25rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-card__desc {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- Contact Info --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.contact-info-card__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background-color: var(--color-primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-info-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-info-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-info-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.contact-info-card a {
  font-weight: 600;
}

.contact-info-card__hours {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-top: 0.4rem !important;
}

/* --- Page Header (inner pages) --- */
.page-header {
  background-color: var(--color-bg-dark);
  padding: 9rem 0 6rem;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 27, 61, 0.15);
}

.page-header__content {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.85), 0 1px 6px rgba(0, 0, 0, 0.75);
}

.page-header p {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 35px rgba(0, 0, 0, 0.95), 0 1px 8px rgba(0, 0, 0, 0.8);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Placeholder Markers --- */
.placeholder {
  background-color: #fff3cd;
  border: 2px dashed #ffc107;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  color: #856404;
  font-weight: 500;
  font-size: 0.95rem;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: 4rem 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

.footer__dove {
  display: block;
  width: 60px;
  height: auto;
  margin-top: 1rem;
  opacity: 0.85;
}

.footer h4 {
  color: var(--color-text-light);
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__links a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  padding: 0.3rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-text-light);
}

.footer__contact p,
.footer__contact a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer__contact a:hover {
  color: var(--color-text-light);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
}

.footer__bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin-bottom: 0;
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer__bottom a:hover {
  color: var(--color-text-light);
}

/* --- Service List (Services page) --- */
.service-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
}

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

.service-item h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

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

.service-item ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--color-muted);
}

.service-item li {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

/* =============================================
   TABLET BREAKPOINT (768px)
   ============================================= */
@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .content-block__image img {
    height: 350px;
  }

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

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

  .section {
    padding: 5rem 0;
  }

  .page-header {
    padding: 9rem 0 6rem;
  }
}

/* =============================================
   DESKTOP BREAKPOINT (1024px)
   ============================================= */
@media (min-width: 1024px) {
  /* Navigation: show full menu, hide hamburger */
  .nav__links {
    display: flex;
  }

  .nav__cta {
    display: inline-flex;
  }

  .nav__hamburger {
    display: none;
  }

  .nav__mobile {
    display: none !important;
  }

  /* Cards */
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Content blocks */
  .content-block__image img {
    height: 400px;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  /* Section spacing */
  .section {
    padding: 6rem 0;
  }

  .page-header {
    padding: 10rem 0 7rem;
  }
}

/* =============================================
   MOBILE-SPECIFIC (<768px)
   ============================================= */
@media (max-width: 767px) {
  .hero {
    min-height: 70vh;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-group .btn {
    text-align: center;
  }

  /* Pricing: show cards, hide table */
  .pricing-table-wrap {
    display: none;
  }

  .pricing-cards {
    display: block;
  }

  /* Disable parallax on mobile/touch — falls back to normal scroll */
  .hero,
  .page-header {
    background-attachment: scroll;
  }
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Stagger children within card grids */
.reveal-stagger .card,
.reveal-stagger .team-card,
.reveal-stagger .testimonial-card,
.reveal-stagger .stacked-box,
.reveal-stagger .contact-info-card,
.reveal-stagger .service-item {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.is-visible .card,
.reveal-stagger.is-visible .team-card,
.reveal-stagger.is-visible .testimonial-card,
.reveal-stagger.is-visible .stacked-box,
.reveal-stagger.is-visible .contact-info-card,
.reveal-stagger.is-visible .service-item {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.is-visible *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible *:nth-child(3) { transition-delay: 0.24s; }
.reveal-stagger.is-visible *:nth-child(4) { transition-delay: 0.36s; }
.reveal-stagger.is-visible *:nth-child(5) { transition-delay: 0.48s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger .card,
  .reveal-stagger .team-card,
  .reveal-stagger .testimonial-card,
  .reveal-stagger .stacked-box,
  .reveal-stagger .contact-info-card,
  .reveal-stagger .service-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: 1.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-banner__text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.cookie-banner__text a {
  color: var(--color-text-light);
  text-decoration: underline;
}

.cookie-banner__text a:hover {
  color: var(--color-text-light);
  opacity: 0.8;
}

.cookie-banner__buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-banner__buttons .btn {
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
  min-height: 44px;
  min-width: 120px;
}

.cookie-banner__buttons .cookie-decline {
  background-color: var(--color-accent);
  color: var(--color-bg-dark);
  border-color: var(--color-accent);
}

.cookie-banner__buttons .cookie-decline:hover {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

@media (min-width: 768px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-banner__text {
    flex: 1;
    margin-right: 1.5rem;
  }

  .cookie-banner__buttons {
    flex-shrink: 0;
  }
}

/* Show table on tablet+ */
@media (min-width: 768px) {
  .pricing-table-wrap {
    display: block;
    overflow-x: auto;
  }

  .pricing-cards {
    display: none;
  }
}
