/* ============================================
   Vibertel — Main Stylesheet
   ============================================ */

:root {
  /* Brand Colors — from Vibertel logo spectrum */
  --color-red: #E63946;
  --color-orange: #F77F00;
  --color-yellow: #FCBF49;
  --color-green: #2DC653;
  --color-cyan: #00B4D8;
  --color-blue: #4361EE;
  --color-purple: #7B2CBF;

  --color-primary: #4361EE;
  --color-primary-dark: #3451D1;
  --color-primary-light: #6B83F0;
  --color-accent: #00B4D8;
  --color-accent-dark: #0096C7;

  /* Logo-inspired gradient */
  --gradient-brand: linear-gradient(90deg, var(--color-red), var(--color-orange), var(--color-yellow), var(--color-green), var(--color-cyan), var(--color-blue), var(--color-purple));
  --gradient-brand-soft: linear-gradient(135deg, rgba(230, 57, 70, 0.15), rgba(67, 97, 238, 0.15), rgba(123, 44, 191, 0.15));

  /* Neutrals — logo black & white base */
  --color-black: #000000;
  --color-dark: #0A0A0A;
  --color-dark-soft: #141414;
  --color-gray-900: #1A1A1A;
  --color-gray-800: #2A2A2A;
  --color-gray-700: #4A4A4A;
  --color-gray-600: #6B6B6B;
  --color-gray-400: #A0A0A0;
  --color-gray-200: #E5E5E5;
  --color-gray-100: #F5F5F5;
  --color-white: #FFFFFF;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 6rem;
  --container-width: 1200px;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 40px rgba(67, 97, 238, 0.2);
  --shadow-rainbow: 0 4px 24px rgba(230, 57, 70, 0.15), 0 4px 24px rgba(67, 97, 238, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-gray-700);
  background: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

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

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn--primary {
  background: var(--gradient-brand);
  color: var(--color-white);
  border-color: transparent;
  background-size: 200% 100%;
}

.btn--primary:hover {
  background-position: 100% 0;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-rainbow);
}

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

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

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

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

/* ============================================
   Section Headers
   ============================================ */

.section__header {
  margin-bottom: 3.5rem;
}

.section__header--center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section__tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section__desc {
  font-size: 1.0625rem;
  color: var(--color-gray-600);
  max-width: 560px;
  line-height: 1.7;
}

.section__header--center .section__desc {
  margin: 0 auto;
}

/* ============================================
   Header / Navigation
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition);
  padding-top: env(safe-area-inset-top, 0px);
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  z-index: 1001;
}

.nav__logo-img {
  height: 48px;
  width: auto;
  border-radius: 10px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-white);
}

.nav__link--login {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--color-white) !important;
  margin-left: 0.5rem;
  padding: 0.5rem 1.25rem;
}

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

.nav__link--cta {
  background: var(--gradient-brand);
  color: var(--color-white) !important;
  margin-left: 0.5rem;
  padding: 0.5rem 1.25rem;
  background-size: 200% 100%;
}

.nav__link--cta:hover {
  background-position: 100% 0;
  box-shadow: var(--shadow-rainbow);
}

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

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all var(--transition);
  border-radius: 2px;
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.78) 50%,
    rgba(67, 97, 238, 0.25) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 4rem;
}

.hero__badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease forwards;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.8s ease 0.1s forwards;
  opacity: 0;
}

.hero__title-accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.hero__stats {
  display: flex;
  gap: 3rem;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

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

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.375rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s infinite;
}

.hero__scroll a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
}

.hero__scroll a:hover {
  border-color: var(--color-white);
  color: var(--color-white);
}

/* ============================================
   Services
   ============================================ */

.services {
  background: var(--color-gray-100);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-rainbow);
}

.service-card__image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card__image img {
  transform: scale(1.08);
}

.service-card__icon {
  position: absolute;
  bottom: -24px;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: var(--gradient-brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-rainbow);
  z-index: 1;
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-white);
}

.service-card__body {
  padding: 2rem 1.75rem 1.75rem;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

.service-card__desc {
  font-size: 0.9375rem;
  color: var(--color-gray-600);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.service-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-card__features li {
  font-size: 0.8125rem;
  color: var(--color-gray-600);
  padding-left: 1.25rem;
  position: relative;
}

.service-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--gradient-brand);
  border-radius: 50%;
}

/* ============================================
   Showcase Gallery
   ============================================ */

.showcase {
  padding: 0;
}

.showcase__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 320px;
  gap: 4px;
}

.showcase__item {
  position: relative;
  overflow: hidden;
}

.showcase__item--large {
  grid-column: span 2;
}

.showcase__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.showcase__item:hover img {
  transform: scale(1.05);
}

.showcase__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: var(--color-white);
}

.showcase__caption span {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
}

.showcase__caption p {
  font-size: 0.8125rem;
  opacity: 0.75;
  margin-top: 0.25rem;
}

/* ============================================
   About
   ============================================ */

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__images {
  position: relative;
}

.about__image--main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__image--main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about__image--secondary {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-md);
}

.about__image--secondary img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.about__experience {
  position: absolute;
  top: 2rem;
  left: -1.5rem;
  background: var(--gradient-brand);
  color: var(--color-white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-rainbow);
  text-align: center;
}

.about__experience-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.about__experience-text {
  font-size: 0.75rem;
  opacity: 0.85;
  line-height: 1.3;
  margin-top: 0.25rem;
}

.about__text {
  font-size: 1rem;
  color: var(--color-gray-600);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.about__highlights {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.about__highlight {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.about__highlight-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--gradient-brand-soft);
  border: 1px solid rgba(67, 97, 238, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__highlight-icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-blue);
}

.about__highlight strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--color-dark);
  margin-bottom: 0.125rem;
}

.about__highlight span {
  font-size: 0.8125rem;
  color: var(--color-gray-600);
}

/* ============================================
   Why Us
   ============================================ */

.why-us {
  background: var(--color-black);
  color: var(--color-white);
  position: relative;
}

.why-us::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
}

.why-us .section__tag {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.why-us .section__title {
  color: var(--color-white);
}

.why-us .section__desc {
  color: rgba(255, 255, 255, 0.6);
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.why-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.why-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(67, 97, 238, 0.4);
  transform: translateY(-4px);
}

.why-card__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.why-card__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.why-card__desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
}

/* ============================================
   CTA Banner
   ============================================ */

.cta-banner {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
}

.cta-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.88), rgba(67, 97, 238, 0.75), rgba(123, 44, 191, 0.7));
}

.cta-banner__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-banner__desc {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta-banner .btn--primary {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
  background-image: none;
}

.cta-banner .btn--primary:hover {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
  background-position: 0 0;
}

/* ============================================
   Contact
   ============================================ */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact__desc {
  font-size: 1rem;
  color: var(--color-gray-600);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform var(--transition);
}

a.contact__item:hover {
  transform: translateX(4px);
}

.contact__item-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--gradient-brand-soft);
  border: 1px solid rgba(67, 97, 238, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact__item-icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-blue);
}

.contact__item strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-600);
  margin-bottom: 0.25rem;
}

.contact__item span {
  display: block;
  font-size: 1rem;
  color: var(--color-dark);
  font-weight: 500;
}

/* Contact Form */
.contact__form {
  background: var(--color-gray-100);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
}

.form__group {
  margin-bottom: 1.25rem;
}

.form__group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-dark);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  outline: none;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.12);
}

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

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form__note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-gray-600);
  margin-top: 1rem;
}

/* POPIA Consent */
.form__consent {
  margin-bottom: 1.25rem;
}

.form__consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  position: relative;
}

.form__consent-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.form__consent-box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.125rem;
  border: 2px solid var(--color-gray-400);
  border-radius: 4px;
  background: var(--color-white);
  transition: all var(--transition);
  position: relative;
}

.form__consent-label input:checked + .form__consent-box {
  background: var(--gradient-brand);
  border-color: transparent;
}

.form__consent-label input:checked + .form__consent-box::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form__consent-label input:focus-visible + .form__consent-box {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

.form__consent-text {
  font-size: 0.8125rem;
  color: var(--color-gray-600);
  line-height: 1.6;
}

.form__consent-text a {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__consent-text a:hover {
  color: var(--color-purple);
}

.form__consent-error {
  font-size: 0.8125rem;
  color: var(--color-red);
  margin-top: 0.5rem;
  padding-left: 1.875rem;
}

.form__consent-group--error .form__consent-box {
  border-color: var(--color-red);
}

/* Privacy Policy Page */
.privacy-page .header {
  position: sticky;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__back-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  min-height: 44px;
}

.privacy {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.privacy__container {
  max-width: 760px;
}

.privacy__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.privacy__updated {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  margin-bottom: 2rem;
}

.privacy__content {
  margin-bottom: 2.5rem;
}

.privacy__content h2 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 2rem 0 0.75rem;
}

.privacy__content p,
.privacy__content li {
  font-size: 0.9375rem;
  color: var(--color-gray-700);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.privacy__content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.privacy__content a {
  color: var(--color-blue);
  text-decoration: underline;
}

.footer--minimal {
  padding-top: 0;
}

.footer--minimal .footer__bottom {
  border-top: none;
  padding-top: 0;
}

@media (max-width: 768px) {
  .nav__back-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }

  .nav__actions {
    gap: 0.5rem;
  }

  .privacy__content h2 {
    font-size: 1rem;
  }
}

.form__success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form__success.visible {
  display: block;
}

.form__success svg {
  width: 48px;
  height: 48px;
  color: var(--color-green);
  margin: 0 auto 1rem;
}

.form__success h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.form__success p {
  color: var(--color-gray-600);
  font-size: 0.9375rem;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--color-black);
  color: rgba(255, 255, 255, 0.6);
  padding: 4rem 0 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
}

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

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer__logo img {
  height: 56px;
  width: auto;
  border-radius: 10px;
}

.footer__tagline {
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer__links h4,
.footer__contact h4 {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__links a {
  font-size: 0.875rem;
  transition: color var(--transition);
}

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

.footer__contact p {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

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

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 0.8125rem;
}

/* ============================================
   Back to Top
   ============================================ */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--gradient-brand);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-rainbow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(67, 97, 238, 0.35);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   Animations
   ============================================ */

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-8px);
  }
  60% {
    transform: translateX(-50%) translateY(-4px);
  }
}

/* ============================================
   Responsive — Tablet & Mobile
   ============================================ */

/* Tablet landscape & portrait (768px – 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero__content {
    padding-top: 100px;
  }

  .hero__title {
    font-size: 3rem;
  }

  .nav__logo-img {
    height: 44px;
  }

  .contact__form {
    padding: 2rem;
  }
}

@media (max-width: 1024px) {
  :root {
    --section-padding: 4.5rem;
  }

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

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

  .showcase__item--large {
    grid-column: span 2;
  }

  .showcase__item,
  .showcase__item--large {
    height: 240px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about__image--secondary {
    right: 1rem;
    bottom: -1.5rem;
  }

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

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

@media (max-width: 768px) {
  :root {
    --section-padding: 3.5rem;
  }

  html {
    scroll-padding-top: 72px;
  }

  .nav {
    height: 72px;
  }

  .nav__logo-img {
    height: 40px;
  }

  .nav__toggle {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .hero {
    min-height: 100svh;
  }

  .hero__content {
    padding-top: 72px;
    padding-bottom: 3rem;
  }

  .hero__scroll {
    display: none;
  }

  .hero__subtitle {
    max-width: 100%;
  }

  .cta-banner {
    padding: 4rem 0;
  }

  .cta-banner__title {
    font-size: 1.75rem;
  }

  .back-to-top {
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    right: calc(1.25rem + env(safe-area-inset-right, 0px));
    width: 48px;
    height: 48px;
  }

  .btn {
    min-height: 48px;
  }

  .form__group input,
  .form__group select,
  .form__group textarea {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  .service-card__image {
    height: 200px;
  }

  .showcase__item,
  .showcase__item--large {
    height: 220px;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav__menu.active {
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    font-size: 1.25rem;
    padding: 0.75rem 1.5rem;
  }

  .nav__link--cta {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .nav__link--login {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .hero__stats {
    gap: 2rem;
  }

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

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

  .showcase__item--large {
    grid-column: span 1;
  }

  .about__image--main img {
    height: 300px;
  }

  .about__image--secondary {
    width: 140px;
    right: 0.5rem;
    bottom: -1rem;
  }

  .about__experience {
    left: 0.5rem;
    top: 1rem;
    padding: 1rem;
  }

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

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

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

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

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

  .section__title {
    font-size: 1.75rem;
  }

  .hero__title {
    font-size: 2.125rem;
  }

  .hero__badge {
    font-size: 0.75rem;
    padding: 0.3125rem 0.875rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
  }

  .hero__stat {
    min-width: calc(50% - 1rem);
  }

  .contact__form {
    padding: 1.25rem;
  }

  .form__consent-text {
    font-size: 0.75rem;
  }

  .footer__logo img {
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__scroll {
    animation: none;
  }
}
