/* ===================================================================
   Duarte Tech Solutions - Stylesheet
   =================================================================== */

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

:root {
  /* Brand Colors */
  --primary: #1B3A4B;
  --primary-dark: #122833;
  --primary-light: #2E6D8A;
  --accent: #E8B84B;
  --accent-light: #F2D06B;
  --accent-glow: rgba(232, 184, 75, 0.15);

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  /* Semantic */
  --success: #10B981;
  --text: var(--gray-800);
  --text-muted: var(--gray-500);
  --bg: var(--white);
  --bg-alt: var(--gray-50);

  /* Spacing */
  --section-py: clamp(4rem, 8vw, 7rem);
  --container-px: clamp(1.25rem, 4vw, 2rem);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;

  /* Borders */
  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html.nav-open,
body.nav-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.nav-open {
  position: fixed;
  top: var(--nav-scroll-offset, 0);
  left: 0;
  width: 100%;
}

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

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

ul {
  list-style: none;
}

/* --- Accessibility --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* --- Sections --- */
.section {
  padding: var(--section-py) 0;
}

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

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section__tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  background: var(--accent-glow);
  padding: 0.375rem 1rem;
  border-radius: 2rem;
}

.section__tag--light {
  color: var(--accent-light);
  background: rgba(56, 189, 248, 0.1);
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

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

.section__subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
  font-weight: 700;
}

.btn--primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 184, 75, 0.4);
}

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

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

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

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

.btn__icon {
  font-size: 1.125rem;
}

/* ===================================================================
   Navigation
   =================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(1, 58, 81, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--duration) var(--ease);
}

.header--scrolled {
  background: rgba(1, 58, 81, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
  z-index: 101;
  margin: 0 2rem;
}

.nav__logo-img {
  height: 4.5rem;
  width: auto;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(212, 168, 67, 0.4);
}

.nav__logo-icon {
  font-size: 1.5rem;
  color: var(--accent);
}

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

.nav__menu--left {
  justify-content: flex-end;
}

.nav__menu--right {
  justify-content: flex-start;
}

.nav__mobile-panel {
  display: none;
}

.nav__mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 100%;
}

.nav__link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: color var(--duration) var(--ease), background-color var(--duration) var(--ease);
}

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

.nav__link--portal {
  background: var(--accent);
  color: var(--white);
  margin-left: 0.5rem;
  white-space: nowrap;
}

.nav__link--portal:hover {
  background: #0284C7;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 0.625rem;
  touch-action: manipulation;
  z-index: 103;
}

.nav__toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

.nav__toggle--active .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav__toggle--active .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===================================================================
   Hero
   =================================================================== */
.hero {
  position: relative;
  padding: 10rem 0 6rem;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(1, 42, 61, 0.92) 0%, rgba(1, 58, 81, 0.85) 50%, rgba(2, 94, 130, 0.80) 100%);
  z-index: 1;
}

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

.hero__content {
  position: relative;
  max-width: 780px;
  z-index: 2;
}

.hero__badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-light);
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.2);
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero__title-accent {
  background: linear-gradient(135deg, #F2D06B, #E8B84B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.hero__trust-icon {
  font-size: 1.125rem;
}

/* ===================================================================
   Service Cards
   =================================================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--duration) var(--ease);
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(212, 168, 67, 0.1);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

.service-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.625rem;
}

.service-card__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Service Card Images */
.service-card--has-img {
  padding: 0;
  overflow: hidden;
}

.service-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.service-card__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* ===================================================================
   Why Section
   =================================================================== */
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.why__card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--duration) var(--ease);
}

.why__card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.why__number {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1rem;
}

.why__card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
}

.why__card-text {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

/* ===================================================================
   Service Pricing
   =================================================================== */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.pricing__card {
  padding: 2rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.pricing__card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(212, 168, 67, 0.08);
}

.pricing__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.pricing__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pricing__cta {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.pricing__cta p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ===================================================================
   Areas We Serve
   =================================================================== */
.areas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.area-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--duration) var(--ease);
}

.area-card:hover {
  border-color: var(--accent);
}

.area-card--primary {
  border-top: 3px solid var(--accent);
}

.area-card--secondary {
  border-style: dashed;
}

.area-card__state {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}

.area-card__status {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--accent-glow);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.area-card--secondary .area-card__status {
  background: var(--gray-200);
}

.area-card__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.375rem 1rem;
}

.area-card__list li {
  font-size: 0.9375rem;
  color: var(--gray-600);
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1rem;
}

.area-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
}

.areas__note {
  max-width: 760px;
  margin: 2rem auto 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  text-align: center;
}

/* ===================================================================
   About
   =================================================================== */
.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__lead {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.about__body {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about__founder {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about__founder-name {
  display: block;
  font-size: 1rem;
  color: var(--white);
}

.about__founder-role {
  font-size: 0.875rem;
  color: var(--accent-light);
}

.about__visual {
  width: 100%;
  max-width: 600px;
  min-width: 0;
  justify-self: center;
}

.about__portrait-composition {
  position: relative;
  padding-bottom: clamp(3rem, 15%, 5.5rem);
  margin-bottom: 1.5rem;
}

.about__image-wrap {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.about__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 47%;
  display: block;
}

.about__leo-wrap {
  position: absolute;
  right: clamp(0.75rem, 4%, 1.5rem);
  bottom: 0;
  width: clamp(6rem, 30%, 11rem);
  aspect-ratio: 1;
  border: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--primary-dark);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.about__leo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

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

.about__stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all var(--duration) var(--ease);
}

.about__stat:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.about__stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.about__stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ===================================================================
   FAQ
   =================================================================== */
.faq__list {
  max-width: 740px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--gray-200);
}

.faq__question {
  padding: 1.25rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--duration) var(--ease);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform var(--duration) var(--ease);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq__item[open] .faq__question::after {
  content: '\2212';
}

.faq__question:hover {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.25em;
}

.faq__question:focus-visible {
  color: var(--primary);
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.faq__answer {
  padding: 0 0 1.25rem;
}

.faq__answer p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq__answer a {
  color: var(--accent);
  font-weight: 500;
}

.faq__answer a:hover {
  text-decoration: underline;
}

/* ===================================================================
   Contact
   =================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4rem;
  align-items: start;
}

.contact__lead {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--duration) var(--ease);
}

.contact__detail > div {
  min-width: 0;
}

a.contact__detail[href^='mailto:'] span:not(.contact__detail-icon) {
  overflow-wrap: anywhere;
}

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

.contact__detail-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact__detail strong {
  display: block;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-light);
  margin-bottom: 0.125rem;
}

.contact__detail span {
  font-size: 0.9375rem;
}

.contact__social {
  display: flex;
  gap: 0.75rem;
}

.contact__social-link {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--duration) var(--ease);
}

.contact__social-link:hover {
  background: var(--accent);
  color: var(--white);
}

/* Contact Form */
.contact__form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.form__group {
  margin-bottom: 1.25rem;
}

.form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.375rem;
}

.form__optional {
  font-weight: 400;
  color: var(--gray-600);
}

.form__input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--gray-800);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  transition: all var(--duration) var(--ease);
  outline: none;
}

.form__input::placeholder {
  color: var(--gray-400);
}

.form__input:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.form__privacy {
  text-align: left;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--gray-600);
  margin: 0 0 1rem;
}

/* ===================================================================
   Legal Page
   =================================================================== */
.legal {
  min-height: 100vh;
  padding: calc(5.5rem + var(--section-py)) 0 var(--section-py);
  background: var(--bg-alt);
}

.legal__container {
  max-width: 900px;
}

.legal__header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.legal__title {
  margin-bottom: 0.75rem;
  color: var(--gray-900);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
}

.legal__updated {
  color: var(--gray-600);
}

.legal__content {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.legal__content p,
.legal__content li {
  color: var(--gray-700);
  line-height: 1.8;
}

.legal__content a:not(.btn) {
  color: var(--primary-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.legal__content a:not(.btn):hover {
  color: var(--primary);
}

.legal__content a:not(.btn):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.125rem;
}

.legal__section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.legal__section h2 {
  margin-bottom: 0.875rem;
  color: var(--primary);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  line-height: 1.3;
}

.legal__section p + p,
.legal__section ul + p {
  margin-top: 1rem;
}

.legal__section ul {
  margin: 0.75rem 0 0 1.25rem;
  list-style: disc;
}

.legal__section li + li {
  margin-top: 0.375rem;
}

.legal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.legal__actions .btn--secondary {
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--primary);
}

.legal__actions .btn--secondary:hover {
  border-color: var(--primary);
  background: var(--gray-50);
}

/* ===================================================================
   Error Page
   =================================================================== */
.error-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(232, 184, 75, 0.14), transparent 32rem),
    linear-gradient(145deg, var(--primary), var(--primary-dark));
  color: var(--white);
}

.error-page .skip-link:focus {
  background: var(--white);
  color: var(--primary-dark);
}

.error-page__header {
  padding: clamp(1rem, 3vw, 1.75rem) 0;
}

.error-page__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 44px;
  color: var(--white);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  font-weight: 700;
}

.error-page__brand img {
  width: clamp(3.75rem, 10vw, 5rem);
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(232, 184, 75, 0.45);
}

.error-page__brand:focus-visible,
.error-page__portal:focus-visible,
.error-page__actions .btn:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.error-page__main {
  display: flex;
  flex: 1;
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.error-page__card {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1.75rem, 6vw, 4rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  background: rgba(18, 40, 51, 0.72);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.error-page__code {
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: clamp(3rem, 15vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

.error-page__card h1 {
  margin-bottom: 1rem;
  color: var(--white);
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 1.1;
}

.error-page__card > p:not(.error-page__code) {
  max-width: 570px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.7;
}

.error-page__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.error-page__portal {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--accent-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.error-page__portal:hover {
  color: var(--white);
}

.error-page__footer {
  padding: 1.5rem 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8125rem;
  text-align: center;
}

/* ===================================================================
   Footer
   =================================================================== */
.footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.6);
  padding: 4rem 0 2rem;
}

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

.footer__logo-img {
  height: 5rem;
  width: auto;
  object-fit: contain;
}

.footer__brand .nav__logo-icon,
.footer__brand .nav__logo-text {
  color: var(--white);
}

.footer__tagline {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

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

.footer__heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer__col a {
  display: block;
  font-size: 0.9375rem;
  padding: 0.25rem 0;
  transition: color var(--duration) var(--ease);
}

.footer__col a:hover {
  color: var(--accent-light);
}

.footer__bottom {
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8125rem;
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 1023px) {
  .nav__menu--desktop {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__logo {
    z-index: 103;
  }

  .nav__mobile-panel {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding: calc(5.5rem + max(1rem, env(safe-area-inset-top))) var(--container-px) max(1.5rem, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--primary-dark);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 102;
  }

  .nav__mobile-panel--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__mobile-menu .nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.625rem 1.5rem;
    font-size: 1.25rem;
    touch-action: manipulation;
  }

  .nav__mobile-menu .nav__link--portal {
    margin-top: 1rem;
    margin-left: 0;
  }
}

@media (min-width: 1024px) and (max-width: 1100px) {
  .nav__menu {
    gap: 1rem;
  }

  .nav__logo {
    margin-right: 1rem;
    margin-left: 1rem;
  }
}

@media (max-width: 1024px) {
  .about__content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

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

}

@media (max-width: 768px) {
  .hero {
    padding: 8rem 0 4rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__trust {
    flex-direction: column;
    gap: 0.75rem;
  }

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

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

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

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

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

  .contact__form-wrap {
    padding: 1.75rem;
  }
}

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

  .about__image-wrap {
    aspect-ratio: 1;
  }

  .area-card__list {
    grid-template-columns: 1fr;
  }

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

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

  .error-page__actions .btn {
    width: 100%;
  }
}

/* --- Animations --- */
@media (prefers-reduced-motion: no-preference) {
  .service-card__img img {
    transition: transform 0.5s var(--ease);
  }

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

  .nav__mobile-panel {
    transition: opacity var(--duration) var(--ease);
  }

  .nav__toggle-bar {
    transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
  }

  .service-card,
  .why__card,
  .pricing__card,
  .area-card,
  .about__stat {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  }

  .service-card.visible,
  .why__card.visible,
  .pricing__card.visible,
  .area-card.visible,
  .about__stat.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
