/* ==========================================================================
   CAT360 Website — Main Stylesheet
   Migrated from Webflow, cleaned and reorganised.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */

:root {
  /* Brand colours */
  --purple-dark: #391847;        /* Navbar, footer backgrounds */
  --purple-primary: #411d4d;     /* Primary brand purple, body text */
  --purple-heading: #53315e;     /* Heading text */
  --purple-accent: #8547fa;      /* CTA buttons (purple variant) */
  --purple-accent-hover: #7c3aed;
  --gold: #dfa437;               /* Accent / CTA (gold variant) */
  --gold-light: #f5e4c3;         /* Subtle gold tint */

  /* Backgrounds */
  --off-white: #f6f4f7;
  --form-bg: #faf7fc;
  --purple-tint-1: #f5eef9;
  --purple-tint-2: #e9dbf3;
  --purple-tint-3: #e8dced;
  --warm-tint-1: #fce9d4;
  --warm-tint-2: #fff9f5;
  --warm-tint-3: #fffef9;

  /* Functional */
  --white: #ffffff;
  --error-red: #ea384c;
  --success-green: #2ecc71;

  /* Typography */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;

  /* Layout */
  --container-max: 80rem;
  --container-padding: 5%;
  --nav-height: 4.5rem;
  --border-radius: 8px;
  --border-radius-pill: 100px;
}


/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.3;
  color: var(--purple-primary);
  background-color: var(--white);
}

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

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

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}


/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  color: var(--purple-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.text-medium { font-size: 1.125rem; }
.text-small { font-size: 0.875rem; }
.text-white { color: var(--white); }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }

.rich-text h2 { margin-top: 2rem; margin-bottom: 1rem; }
.rich-text h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; }
.rich-text p { margin-bottom: 1rem; line-height: 1.7; }
.rich-text ul, .rich-text ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text li { margin-bottom: 0.5rem; line-height: 1.6; }
.rich-text strong { font-weight: 700; }
.rich-text blockquote {
  border-left: 4px solid var(--gold);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
}
.rich-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.rich-text th,
.rich-text td {
  border: 1px solid var(--purple-tint-3);
  padding: 0.75rem 1rem;
  text-align: left;
}
.rich-text th {
  background: var(--purple-tint-1);
  font-weight: 700;
}


/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding: var(--space-xxl) 0;
}

.section--purple {
  background-color: var(--purple-dark);
  color: var(--white);
}

.section--purple h1,
.section--purple h2,
.section--purple h3,
.section--purple h4 {
  color: var(--white);
}

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

.section--warm {
  background-color: var(--warm-tint-2);
}

.grid {
  display: grid;
  gap: 1rem;
}

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

.flex {
  display: flex;
}

.flex--center {
  align-items: center;
  justify-content: center;
}

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

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

.flex--gap-sm { gap: var(--space-sm); }
.flex--gap-md { gap: var(--space-md); }
.flex--gap-lg { gap: var(--space-lg); }


/* --------------------------------------------------------------------------
   5. Navbar
   -------------------------------------------------------------------------- */

#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  background-color: var(--purple-dark);
  min-height: var(--nav-height);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
  max-width: 84rem;
}

.navbar__logo img {
  height: 4rem;
  width: auto;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.navbar__link {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.navbar__link:hover {
  opacity: 0.8;
}

.navbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--gold);
  color: var(--purple-dark);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: var(--border-radius);
  transition: background-color 0.2s;
  white-space: nowrap;
}

.navbar__cta:hover {
  background-color: #c8922e;
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav open state */
.navbar__menu.is-open {
  display: flex;
}


/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  transition: background-color 0.2s, transform 0.1s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--gold,
.btn--purple {
  border-radius: var(--border-radius-pill);
  padding: 1.125rem 2rem;
}

.btn--gold {
  background-color: var(--gold);
  color: var(--purple-dark);
}

.btn--gold:hover {
  background-color: #c8922e;
}

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

.btn--purple:hover {
  background-color: var(--purple-accent-hover);
}

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

.btn--outline:hover {
  background-color: var(--purple-primary);
  color: var(--white);
}

.btn--full-width {
  width: 100%;
}


/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */

.card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card__body {
  padding: var(--space-md);
}

.card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--purple-accent);
  margin-bottom: 0.5rem;
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--purple-heading);
}

.card__meta {
  font-size: 0.875rem;
  color: #666;
}


/* --------------------------------------------------------------------------
   8. Forms
   -------------------------------------------------------------------------- */

.form-group {
  margin-bottom: var(--space-sm);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--purple-primary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--purple-tint-3);
  border-radius: var(--border-radius);
  font-size: 1rem;
  background: var(--white);
  color: var(--purple-primary);
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--purple-accent);
  box-shadow: 0 0 0 3px rgba(133, 71, 250, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.form-wrapper {
  background: var(--form-bg);
  padding: var(--space-lg);
  border-radius: var(--border-radius);
}

.form-success {
  display: none;
  padding: var(--space-md);
  background: #e8f5e9;
  border-radius: var(--border-radius);
  text-align: center;
  color: #2e7d32;
}

.form-error {
  display: none;
  padding: var(--space-md);
  background: #fdeaea;
  border-radius: var(--border-radius);
  text-align: center;
  color: var(--error-red);
}


/* --------------------------------------------------------------------------
   9. FAQ Accordion
   -------------------------------------------------------------------------- */

.accordion {
  border-bottom: 1px solid var(--purple-tint-3);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--purple-heading);
  cursor: pointer;
  background: none;
  border: none;
}

.accordion__icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.accordion.is-open .accordion__icon {
  transform: rotate(45deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion.is-open .accordion__content {
  max-height: 1000px;
  transition: max-height 0.5s ease-in;
}

.accordion__body {
  padding-bottom: var(--space-md);
  line-height: 1.7;
  color: var(--purple-primary);
}


/* --------------------------------------------------------------------------
   10. Logo Carousel
   -------------------------------------------------------------------------- */

.logo-carousel-section {
  overflow: hidden;
  position: relative;
  padding: var(--space-lg) 0;
}

.logo-carousel-section--tinted {
  background: var(--purple-tint-1);
}

/* Fade masks on left and right edges */
.logo-carousel-section::before,
.logo-carousel-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.logo-carousel-section::before {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}

.logo-carousel-section::after {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}

.logo-carousel-section--tinted::before {
  background: linear-gradient(to right, var(--purple-tint-1), transparent);
}

.logo-carousel-section--tinted::after {
  background: linear-gradient(to left, var(--purple-tint-1), transparent);
}

.logo-carousel {
  overflow: hidden;
}

.logo-carousel__track {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.logo-carousel__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 40px;
}

.logo-carousel__item img {
  max-height: 32px;
  max-width: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: opacity 0.3s, filter 0.3s;
}

.logo-carousel__item:hover img {
  opacity: 1;
  filter: grayscale(0%);
}


/* --------------------------------------------------------------------------
   11. Testimonials
   -------------------------------------------------------------------------- */

.testimonial-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  display: flex;
  flex-direction: column;
  position: relative;
}

.testimonial-card__accent {
  font-size: 5rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--gold);
  opacity: 0.3;
  pointer-events: none;
  margin-bottom: -1rem;
}

.testimonial-card__highlight {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--purple-dark);
  margin-bottom: var(--space-md);
}

.testimonial-card__quote {
  font-size: 0.9375rem;
  line-height: 1.7;
  font-style: italic;
  color: var(--purple-primary);
  flex: 1;
  opacity: 0.85;
}

.testimonial-card__footer {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  border-top: 1px solid var(--purple-tint-3);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
}

.testimonial-card__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-card__logo {
  height: 1.5rem;
  width: auto;
  margin-left: auto;
  opacity: 0.6;
}

.testimonial-card__name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--purple-heading);
  margin-bottom: 0.125rem;
}

.testimonial-card__role {
  font-size: 0.8125rem;
  color: #666;
}


/* --------------------------------------------------------------------------
   12. Pricing
   -------------------------------------------------------------------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto auto auto;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.pricing-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  border: 2px solid var(--purple-tint-3);
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@supports (grid-template-rows: subgrid) {
  .pricing-card {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
  }
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(57, 24, 71, 0.1);
}

.pricing-card--featured {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(223, 164, 55, 0.15);
}

.pricing-card__badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--purple-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 1rem;
  border-radius: var(--border-radius-pill);
  white-space: nowrap;
}

.pricing-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--purple-heading);
  margin-bottom: 0.25rem;
}

.pricing-card__price {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--purple-dark);
  margin-bottom: 0.25rem;
}

.pricing-card__period {
  font-size: 0.875rem;
  color: #666;
}

.pricing-card__description {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--purple-primary);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--purple-tint-3);
  margin-top: var(--space-sm);
}

.pricing-card__features {
  list-style: none;
  text-align: left;
}

.pricing-card__features li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.pricing-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.pricing-card__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  align-self: end;
  padding-top: var(--space-md);
}

.pricing-card__details-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--purple-accent);
  text-decoration: none;
  transition: color 0.2s;
}

.pricing-card__details-link:hover {
  color: var(--purple-accent-hover);
  text-decoration: underline;
}

/* Bespoke banner */
.bespoke-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  background: var(--purple-tint-1);
  border: 1px solid var(--purple-tint-3);
  border-radius: var(--border-radius);
  padding: var(--space-lg) var(--space-xl);
}

.bespoke-banner__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--purple-dark);
  margin-bottom: 0.25rem;
}

.bespoke-banner__text {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--purple-primary);
  max-width: 42rem;
}

.bespoke-banner .btn {
  flex-shrink: 0;
}


/* --------------------------------------------------------------------------
   13a. Final CTA
   -------------------------------------------------------------------------- */

.cta-final {
  background: var(--purple-dark);
  padding: var(--space-xxl) 0 var(--space-xl);
}

.cta-final__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-final__inner h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.cta-final__inner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.cta-final__buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--border-radius-pill);
  padding: 1.125rem 2rem;
  transition: border-color 0.2s, background-color 0.2s;
}

.btn--outline-white:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}


/* --------------------------------------------------------------------------
   13. Hero Sections
   -------------------------------------------------------------------------- */

.hero {
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: 6px;
  overflow: hidden;
}

.hero--centered {
  text-align: center;
}

.hero__title {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: var(--space-lg);
  color: var(--purple-primary);
  opacity: 0.85;
}

.hero__buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero--centered .hero__subtitle {
  margin-left: auto;
  margin-right: auto;
}

.hero--centered .hero__buttons {
  justify-content: center;
}

.hero__checks {
  list-style: none;
  margin: var(--space-md) 0;
}

.hero__checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.hero__checks li svg,
.hero__checks li img {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}


/* --------------------------------------------------------------------------
   14. Stats Bar
   -------------------------------------------------------------------------- */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
  padding: var(--space-xl) 0;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.stat__label {
  font-size: 0.875rem;
  opacity: 0.85;
}


/* --------------------------------------------------------------------------
   15. Blog
   -------------------------------------------------------------------------- */

.blog-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.blog-hero__image {
  width: 100%;
  border-radius: var(--border-radius);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.blog-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
  color: #666;
}

.blog-hero__breadcrumb a:hover {
  color: var(--purple-accent);
}

.blog-hero__title {
  margin-bottom: var(--space-md);
}

.blog-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: #666;
}

.blog-hero__author-img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.blog-content {
  max-width: 48rem;
  margin: 0 auto;
  padding: var(--space-xl) 0;
}

.blog-author-bio {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--off-white);
  border-radius: var(--border-radius);
  margin-top: var(--space-xl);
}

.blog-author-bio__image {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}


/* --------------------------------------------------------------------------
   16. Team Grid (About Page)
   -------------------------------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.team-member {
  text-align: center;
}

.team-member__image {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto var(--space-sm);
  display: block;
}

.team-member__placeholder {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-tint-3, #e8e0f0);
  color: var(--purple-dark, #2d1a45);
  font-size: 2.5rem;
  font-weight: 700;
}

.team-member__name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.team-member__role {
  font-size: 0.875rem;
  color: #666;
}


/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */

.footer .container {
  max-width: 90rem;
}

.footer {
  background-color: var(--purple-dark);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-xxl) 0 var(--space-lg);
}

.footer a {
  color: var(--white);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer a:hover {
  opacity: 1;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.footer__brand img {
  height: 2rem;
  margin-bottom: var(--space-md);
}

.footer__address {
  font-size: 0.875rem;
  line-height: 1.7;
  opacity: 0.8;
  margin-bottom: var(--space-md);
}

.footer__contact a {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.footer__nav-heading {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  opacity: 1;
}

.footer__nav a {
  display: block;
  font-size: 0.875rem;
  padding: 0.25rem 0;
}


.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  font-size: 0.8125rem;
  opacity: 0.7;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer__legal {
  display: flex;
  gap: var(--space-md);
}

.footer__badges {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer__badges img {
  height: 2.5rem;
  width: auto;
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}

.footer__social img,
.footer__social svg {
  width: 1.25rem;
  height: 1.25rem;
}


/* --------------------------------------------------------------------------
   18. Tabs (Persona sections on homepage)
   -------------------------------------------------------------------------- */

.tabs__menu {
  display: flex;
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.tabs__tab {
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  background: var(--off-white);
  color: var(--purple-primary);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.tabs__tab.is-active {
  background: var(--purple-accent);
  color: var(--white);
}

.tabs__panel {
  display: none;
}

.tabs__panel.is-active {
  display: block;
}


/* --------------------------------------------------------------------------
   19. Swiper Overrides
   -------------------------------------------------------------------------- */

.swiper-pagination-bullet {
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: var(--gold-light);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: var(--gold);
}


/* --------------------------------------------------------------------------
   20. Cookie Consent Overrides
   -------------------------------------------------------------------------- */

.cc-window {
  font-family: var(--font-primary) !important;
  padding: 1.25rem 2rem !important;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.25);
  z-index: 10000 !important;
}

.cc-message {
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
}

.cc-btn {
  font-family: var(--font-primary) !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  padding: 0.5rem 1.25rem !important;
  font-size: 0.9rem !important;
  text-transform: none !important;
}

.cc-deny {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.cc-deny:hover {
  border-color: #ffffff !important;
}

.cc-link {
  color: var(--gold) !important;
  text-decoration: underline !important;
  opacity: 0.9;
}

.cc-link:hover {
  opacity: 1;
}


/* --------------------------------------------------------------------------
   21. Utilities
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hide-desktop { display: none; }
.hide-mobile { display: block; }


/* --------------------------------------------------------------------------
   22. Responsive
   -------------------------------------------------------------------------- */

/* Tablet (991px and below) */
@media (max-width: 991px) {
  h1, .hero__title { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

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

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

  .hero__grid {
    grid-template-columns: 1fr !important;
  }

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

  .blog-hero {
    grid-template-columns: 1fr;
  }

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

  /* Mobile nav */
  .navbar__menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--purple-dark);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-sm);
    overflow-y: auto;
  }

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

  .navbar__hamburger {
    display: flex;
  }

  .navbar__link {
    font-size: 1.125rem;
    padding: 0.75rem 0;
  }

  .hide-desktop { display: block; }
  .hide-mobile { display: none; }
}

/* Mobile (767px and below) */
@media (max-width: 767px) {
  h1, .hero__title { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }

  .section { padding: var(--space-xl) 0; }

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

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

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .stats-grid {
    grid-template-columns: 1fr !important;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

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

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .pricing-card__price {
    font-size: 2rem;
  }
}

/* Small mobile (479px and below) */
@media (max-width: 479px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

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

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .tabs__menu {
    flex-direction: column;
  }
}
