/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --primary-color: #1e3a8a;
  --primary-color-alt: #1e40af;
  --secondary-color: #f59e0b;
  --accent-color: #3b82f6;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;

  --title-color: #1e293b;
  --text-color: #475569;
  --text-color-light: #64748b;
  --border-color: #e2e8f0;
  --body-color: #ffffff;
  --container-color: #f8fafc;
  --card-color: #ffffff;

  /* Typography */
  --body-font: 'Inter', sans-serif;
  --biggest-font-size: 3rem;
  --h1-font-size: 2.25rem;
  --h2-font-size: 1.875rem;
  --h3-font-size: 1.5rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.75rem;

  /* Font weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /* Spacing */
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-25: 1.25rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  /* Z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;

  /* Border radius */
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media screen and (max-width: 992px) {
  :root {
    --biggest-font-size: 2.5rem;
    --h1-font-size: 2rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.813rem;
    --smaller-font-size: 0.75rem;
  }
}

/* ===== BASE STYLES ===== */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  font-weight: var(--font-normal);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  line-height: 1.2;
}

ul {
  list-style: none;
}

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

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

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

/* ===== REUSABLE CSS CLASSES ===== */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.section {
  padding: 5rem 0 2rem;
}

.section__header {
  text-align: center;
  margin-bottom: var(--mb-3);
}

.section__title {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-1);
  position: relative;
  display: inline-block;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 2px;
}

.section__subtitle {
  font-size: var(--normal-font-size);
  color: var(--text-color-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: var(--border-radius);
  font-weight: var(--font-semi-bold);
  font-size: var(--normal-font-size);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-alt) 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--primary-color-alt) 0%, var(--primary-color) 100%);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

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

.btn--secondary:hover {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #fbbf24 100%);
  color: white;
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

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

.btn__loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ===== HEADER & NAV ===== */
.header {
  width: 100%;
  background-color: var(--body-color);
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.header.scroll-header {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

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

.nav__brand {
  display: flex;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.nav__logo-img {
  width: 120px;
  height: auto;
  object-fit: contain;
}

.nav__logo:hover {
  transform: scale(1.05);
}

.nav__menu {
  position: relative;
}

.nav__list {
  display: flex;
  column-gap: 2rem;
}

.nav__link {
  color: var(--text-color);
  font-weight: var(--font-medium);
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

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

.nav__link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active-link::after {
  width: 100%;
}

.nav__close {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--container-color);
  transition: var(--transition);
}

.nav__close:hover {
  background-color: var(--border-color);
}
.nav__toggle {
  display: none;
}

/* ===== HERO SECTION ===== */
.hero {
  padding-top: 6.5rem;
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero__content {
  order: 1;
}

.hero__title {
  font-size: var(--biggest-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-1);
  font-weight: var(--font-bold);
  line-height: 1.1;
}

.hero__subtitle {
  font-size: var(--h3-font-size);
  color: var(--text-color);
  margin-bottom: var(--mb-2-5);
  font-weight: var(--font-normal);
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  flex-direction: column;
  align-items: flex-start;
}

.hero__image {
  order: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(30, 58, 138, 0.2);
  object-fit: cover;
}

/* ===== ABOUT SECTION ===== */
.about {
  background-color: var(--container-color);
}

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

.about__content {
  order: 1;
}

.about__description {
  font-size: var(--normal-font-size);
  margin-bottom: var(--mb-2);
  line-height: 1.7;
}

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

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

.highlight__icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-alt) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0;
  box-shadow: var(--shadow-sm);
}

.highlight__icon i {
  font-size: 1.25rem;
  color: white;
}

.highlight__text {
  font-size: var(--normal-font-size);
  color: var(--text-color);
  margin: 0;
}

.about__image {
  order: 2;
  justify-self: center;
}

.about__img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

/* ===== SERVICES SECTION ===== */
.services {
  background: linear-gradient(135deg, var(--container-color) 0%, white 100%);
}

.services__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.service__card {
  background-color: var(--card-color);
  padding: 3rem 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.service__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.service__card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transition: var(--transition);
}

.service__card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service__card:hover::after {
  width: 80%;
}

.service__icon {
  width: 5rem;
  height: 5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-alt) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--mb-1-5);
  border: none;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.service__icon i {
  font-size: 2.5rem;
  color: white;
}

.service__card:hover .service__icon {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #fbbf24 100%);
  transform: scale(1.1);
}

.service__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
  color: var(--title-color);
}

.service__description {
  font-size: var(--normal-font-size);
  color: var(--text-color);
  line-height: 1.6;
}

/* ===== INDUSTRIES SECTION ===== */
.industries {
  background-color: var(--container-color);
}

.industries__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: var(--mb-3);
}

.industry__item {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.industry__item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transition: var(--transition);
}

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

.industry__item:hover::after {
  width: 80%;
}

.industry__icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-alt) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--mb-0-75);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.industry__icon i {
  font-size: 1.5rem;
  color: white;
}

.industry__item:hover .industry__icon {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #fbbf24 100%);
  transform: scale(1.1);
}

.industry__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--title-color);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background-color: var(--card-color);
  padding: 3rem 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  margin-top: var(--mb-3);
}

.testimonials__title {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-2);
}

.testimonial__quote {
  font-size: var(--h3-font-size);
  font-style: italic;
  color: var(--text-color);
  margin-bottom: var(--mb-1);
  line-height: 1.5;
}

.testimonial__author {
  font-size: var(--normal-font-size);
  color: var(--text-color-light);
  font-weight: var(--font-medium);
}

/* ===== CONTACT SECTION ===== */
.contact__container {
  max-width: 600px;
  margin: 0 auto;
}

.contact__form {
  background-color: var(--card-color);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.form__intro {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.form__optional, .form__hint {
  color: var(--text-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-normal);
}

.form__hint {
  margin-top: 0.5rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.form__sms {
  min-width: 0;
  scroll-margin-top: 8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin: 0 0 1.5rem;
}

.form__sms legend {
  color: var(--title-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  padding: 0 0.35rem;
}

.footer__contact-item a {
  color: inherit;
  overflow-wrap: anywhere;
}

.footer__contact-item a:hover {
  text-decoration: underline;
}

.form__group {
  margin-bottom: var(--mb-1-5);
}

/* Form checkbox styles */
.form__group--checkbox {
    margin-bottom: 2rem;
}

.form__checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: var(--small-font-size);
    line-height: 1.5;
}

.form__checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.form__checkmark {
    position: relative;
    min-width: 20px;
    height: 20px;
    background-color: white;
    border: 2px solid var(--text-color-light);
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.form__checkbox:checked + .form__checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form__checkbox:checked + .form__checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form__checkbox:focus + .form__checkmark {
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2);
}

.form__checkbox-text {
    color: var(--text-color);
    margin-top: 1px;
}

.form__link {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

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

.form__label {
  display: block;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--title-color);
  margin-bottom: var(--mb-0-5);
}

.form__input {
  width: 100%;
  padding: 0.875rem 1rem;
  background-color: var(--container-color);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--normal-font-size);
  font-family: inherit;
  color: var(--text-color);
  transition: var(--transition);
}

.form__input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form__input.error {
  border-color: var(--error-color);
}

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

.form__error {
  display: block;
  font-size: var(--small-font-size);
  color: var(--error-color);
  margin-top: var(--mb-0-25);
  min-height: 1.2rem;
}

.form__success {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success-color);
  color: var(--success-color);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-top: var(--mb-1);
  text-align: center;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--title-color);
  padding: 3rem 0 1rem;
  color: white;
}

.footer__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: var(--mb-2);
}

.footer__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--mb-1);
}

.footer__logo-img {
  width: 120px;
  height: auto;
  object-fit: contain;
}

.footer__tagline {
  color: var(--text-color-light);
  font-size: var(--normal-font-size);
  margin: 0;
}

.footer__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-1);
  color: white;
}

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

.footer__link {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--primary-color);
}

.footer__contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

.footer__contact-item i {
  font-size: 1rem;
}

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

.footer__copyright {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  margin: 0;
}

/* ===== SCROLL UP BUTTON ===== */
.scroll-up {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-alt) 100%);
  color: white;
  padding: 0.75rem;
  border-radius: 50%;
  z-index: var(--z-tooltip);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  box-shadow: var(--shadow-lg);
}

.scroll-up i {
  font-size: 1.25rem;
}

.scroll-up:hover {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #fbbf24 100%);
  transform: translateY(-2px);
}

.scroll-up.show-scroll {
  bottom: 3rem;
}

/* =============== LEGAL PAGES =============== */
.legal-page {
    padding: 6rem 0 4rem;
    min-height: 100vh;
}

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

.legal-page__title {
    font-size: var(--h1-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--text-color);
    margin-bottom: 1rem;
}

.legal-page__subtitle {
    font-size: var(--normal-font-size);
    color: var(--text-color-light);
    font-style: italic;
}

.legal-page__content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-page__content h2 {
    font-size: var(--h2-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--primary-color);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color-light);
}

.legal-page__content p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.legal-page__content ul {
    margin: 1rem 0 1.5rem 1.5rem;
    list-style-type: disc;
}

.legal-page__content li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.legal-page__content strong {
    color: var(--primary-color);
    font-weight: var(--font-semi-bold);
}

.legal-page__intro {
    font-size: var(--normal-font-size);
    color: var(--text-color);
    font-style: normal;
    margin-top: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Responsive adjustments for legal pages */
@media screen and (max-width: 768px) {
    .legal-page {
        padding: 5rem 0 3rem;
    }

    .legal-page__title {
        font-size: var(--h2-font-size);
    }

    .legal-page__content {
        padding: 0 1rem;
    }

    .legal-page__content h2 {
        font-size: var(--h3-font-size);
        margin: 2rem 0 0.75rem;
    }

    .legal-page__content ul {
        margin-left: 1rem;
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Medium devices */
@media screen and (max-width: 992px) {
  .container {
    padding-inline: 1.5rem;
  }

  .section {
    padding: 4rem 0 2rem;
  }

  .hero__container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero__content {
    order: 2;
  }

  .hero__image {
    order: 1;
  }

  .hero__img {
    max-width: 400px;
  }

  .hero__title {
    font-size: var(--h1-font-size);
  }

  .hero__buttons {
    align-items: center;
  }

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

  .about__content {
    order: 2;
    text-align: center;
  }

  .about__image {
    order: 1;
  }

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

  .industries__container {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

/* Small devices */
@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    background-color: var(--body-color);
    width: 80%;
    height: 100%;
    top: 0;
    right: -100%;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    padding: 4rem 2rem 2rem;
    z-index: var(--z-modal);
  }

  .nav__menu.show-menu {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    row-gap: 2rem;
  }

  .nav__link {
    font-size: var(--normal-font-size);
  }

  .nav__close {
    display: flex;
  }

  .nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
  }

  .nav__toggle span {
    width: 1.5rem;
    height: 0.125rem;
    background-color: var(--title-color);
    transition: var(--transition);
  }

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

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

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

  .hero {
    padding-top: 4.5rem;
    min-height: 80vh;
  }

  .hero__container {
    padding: 2rem 1rem;
  }

  .hero__background {
    width: 100%;
    height: 40%;
    top: 60%;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .contact__form {
    padding: 1.5rem;
  }

  .footer__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .footer__contact-info {
    align-items: center;
  }

  .footer__contact-item {
    justify-content: center;
  }
}

/* Extra small devices */
@media screen and (max-width: 576px) {
  .container {
    padding-inline: 1rem;
  }

  .hero__title {
    font-size: 2rem;
  }

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

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

  .service__card,
  .contact__form {
    padding: 1.5rem;
  }

  .testimonials {
    padding: 2rem 1.5rem;
  }

  .testimonial__quote {
    font-size: var(--normal-font-size);
  }
}

/* ===== ICON IMPROVEMENTS ===== */
.fas {
  font-weight: 900;
}

/* Ensure consistent icon sizing */
.service__icon i,
.industry__icon i,
.highlight__icon i,
.footer__contact-item i,
.scroll-up i,
.nav__close i {
  flex-shrink: 0;
}

/* Button icon spacing adjustments */
@media screen and (max-width: 576px) {
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: var(--small-font-size);
  }

  .btn__icon {
    width: 1rem;
    height: 1rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===== SCROLL HEADER EFFECT ===== */
.header.scroll-header {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

/* ===== LOADING STATES ===== */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn.loading .btn__text {
  opacity: 0;
}

.btn.loading .btn__loading {
  display: block;
}

.loaded .hero__content,
.loaded .hero__image {
  animation: fadeInUp 0.8s ease forwards;
}

.loaded .nav__brand {
  animation: fadeInUp 0.6s ease forwards;
}

.loaded .nav__menu {
  animation: fadeInUp 0.6s ease 0.2s forwards;
}

/* ===== FOCUS STYLES FOR ACCESSIBILITY ===== */
.btn:focus,
.nav__link:focus,
.form__input:focus,
.footer__link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .header,
  .nav__toggle,
  .scroll-up,
  .btn {
    display: none;
  }

  .section {
    padding: 1rem 0;
  }

  .hero {
    padding-top: 0;
  }
}

/* ===== MOBILE MENU BACKDROP ===== */
.nav__backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: var(--z-fixed);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.nav__backdrop.show-backdrop {
  opacity: 1;
  visibility: visible;
}
/* Presentation-neutral accessibility and saved-markup cleanup. */
.form__links { text-align: center; margin-top: 20px; }
[hidden] { display: none !important; }
.nav__toggle:focus-visible, .nav__close:focus-visible, .scroll-up:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 4px; }
.form__checkbox.error + .form__checkmark { border-color: var(--error-color); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Legal pages share the landing-page header, branding, and responsive layout. */
.legal-page { padding-top: 9rem; }
.legal-page__back { display: inline-block; color: var(--primary-color); text-decoration: underline; margin-bottom: 1.5rem; }
.legal-page__content a { color: var(--primary-color); text-decoration: underline; overflow-wrap: anywhere; }
.legal-page__content { overflow-wrap: break-word; }
@media screen and (max-width: 768px) {
  .legal-page { padding-top: 8rem; }
  .legal-page__content { padding: 0; }
}
.main section[id], .legal-page__content h2[id] { scroll-margin-top: 7rem; }

.form__error--optional:empty { display: none; }
