/* ========================================
   Grace Security Services — Stylesheet
   ======================================== */

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

:root {
  --navy: #1a2d4d;
  --blue: #2B8FCC;
  --orange: #F7941D;
  --orange-dark: #e07f10;
  --white: #ffffff;
  --surface: #f8f9fa;
  --text: #1a2d4d;
  --text-secondary: #666666;
  --border: #e0e0e0;
  --success: #28a745;
  --warning: #ffc107;
  --error: #dc3545;
  --shadow-card: 0 4px 12px rgba(26, 45, 77, 0.08);
  --shadow-hover: 0 8px 24px rgba(0, 136, 204, 0.15);
  --radius: 12px;
  --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Satoshi', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  letter-spacing: 0.3px;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--orange-dark);
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

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

.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: scale(1.02);
}

.btn--lg {
  padding: 18px 40px;
  font-size: 18px;
}

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

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn__spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.btn--loading .btn__text {
  visibility: hidden;
}

.btn--loading .btn__spinner {
  display: inline-block;
  position: absolute;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Header Wrap --- */
.header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.header-wrap.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* --- Top Bar --- */
.topbar {
  background: #e07f10;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.topbar__content {
  display: flex;
  align-items: stretch;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 0 0 240px;
}

.topbar__contact {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
  padding: 12px 24px;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

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

.topbar__divider {
  color: var(--navy);
  opacity: 0.4;
  margin: 0 10px;
  font-size: 18px;
  font-weight: 300;
}

/* Social icons — right side with diagonal navy background */
.topbar__social-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  margin-left: auto;
  padding: 0 28px 0 48px;
  background: var(--navy);
  flex-shrink: 0;
}

.topbar__social-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: -25px;
  width: 50px;
  height: 100%;
  background: var(--navy);
  transform: skewX(-20deg);
}

.topbar__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  border-radius: 50%;
  transition: all 0.2s;
  position: relative;
  z-index: 1;
}

.topbar__social:hover {
  color: var(--orange);
  transform: scale(1.1);
}

/* --- Navbar --- */
.navbar {
  background: var(--white);
  border-bottom: 3px solid #e07f10;
  position: relative;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100px;
  padding: 0 32px;
  max-width: 1440px;
  margin: 0 auto;
  gap: 0;
}

/* Brand — logo overlaps topbar */
.navbar__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-heading);
  color: var(--navy);
  white-space: nowrap;
  position: relative;
  z-index: 10;
  margin-top: -28px;
  flex-shrink: 0;
}

.navbar__logo {
  width: 230px;
  height: 60px;
  object-fit: contain;
}

.navbar__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar__company-name {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.navbar__company-sub {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.navbar__tagline {
  display: none;
}

/* Nav list with bullet separators */
.navbar__list {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 auto;
  padding: 0 24px;
}

.navbar__list li {
  display: flex;
  align-items: center;
}

.navbar__list li+li::before {
  content: '•';
  color: #e07f10;
  font-size: 20px;
  margin: 0 20px;
  line-height: 1;
}

.navbar__link {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.navbar__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 3px;
  background: #e07f10;
  border-radius: 2px;
  transition: width 0.25s ease;
}

.navbar__link:hover {
  color: #e07f10;
}

.navbar__link.active {
  color: #e07f10;
  font-weight: 600;
}

.navbar__link.active::after {
  width: 100%;
}

.navbar__link:hover::after {
  width: 100%;
}

/* --- Services dropdown --- */
.navbar__has-dropdown {
  position: relative;
}

.navbar__has-dropdown > .navbar__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.navbar__caret {
  transition: transform 0.25s ease;
}

.navbar__has-dropdown:hover > .navbar__link .navbar__caret,
.navbar__has-dropdown:focus-within > .navbar__link .navbar__caret {
  transform: rotate(180deg);
}

.navbar__dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1001;
}

.navbar__dropdown::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.navbar__has-dropdown:hover .navbar__dropdown,
.navbar__has-dropdown:focus-within .navbar__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.navbar__dropdown li {
  display: block;
  margin: 0;
}

.navbar__dropdown li + li::before {
  display: none !important;
  content: none !important;
}

.navbar__dropdown a {
  display: block;
  padding: 11px 22px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.navbar__dropdown a:hover,
.navbar__dropdown a:focus-visible {
  background: var(--surface);
  color: var(--orange);
  border-left-color: var(--orange);
  padding-left: 26px;
}

.navbar__dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

.navbar__dropdown-all {
  font-weight: 600 !important;
  color: var(--orange) !important;
}

.navbar__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar__cta {
  padding: 12px 30px;
  font-size: 15px;
  white-space: nowrap;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  z-index: 1001;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s ease;
  transform-origin: center;
}

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

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

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

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 45, 77, 0.5);
  z-index: 998;
}

.mobile-overlay.active {
  display: block;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 112px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1a2d4d 0%, #0d1b30 60%, #0088cc 100%);
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 136, 204, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(255, 149, 0, 0.08) 0%, transparent 40%);
}

/* Faint shield pattern */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}

.hero__inner-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 80px 24px;
  color: var(--white);
}

.hero__content {
  text-align: left;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.5px;
  max-width: 800px;
  margin: 0 0 24px;
}

.hero__subtitle {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 0 40px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__ctas .btn--outline {
  border-color: var(--white);
  color: var(--white);
}

.hero__ctas .btn--outline:hover {
  background: var(--white);
  color: var(--navy);
}

.hero__badges {
  display: flex;
  gap: 24px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* --- Hero Video --- */
.hero__video {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  aspect-ratio: 16 / 9;
}

.hero__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  opacity: 0.85;
}

/* Reveal animation */
.reveal-up {
  animation: revealUp 0.6s ease-out both;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Sections --- */
.section {
  padding: 96px 0;
}

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

.section__title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 900;
  text-align: center;
  color: var(--navy);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.section__accent {
  width: 60px;
  height: 3px;
  background: var(--blue);
  margin: 16px auto 0;
  border-radius: 2px;
}

.section__subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 18px;
  margin-top: 16px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
}

/* Scroll reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-label {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.about-heading {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 900;
  color: var(--navy);
  margin: 8px 0 24px;
  line-height: 1.2;
}

.about-text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-content .btn {
  margin-top: 12px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}

.about-stat-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--blue);
}

.about-stat-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
}

.about-stat-card span {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  overflow: hidden;
}

.service-card__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--orange);
  transform: scaleY(0);
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  background: var(--white);
  border-color: var(--blue);
}

.service-card:hover .service-card__accent {
  transform: scaleY(1);
}

.service-card:hover .service-card__icon svg {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Service card individual colors */
.service-card:nth-child(1) {
  background: #eef6ff;
  border-color: #c8dff7;
}

.service-card:nth-child(2) {
  background: #f0faf0;
  border-color: #c5e8c5;
}

.service-card:nth-child(3) {
  background: #fff8ee;
  border-color: #f5ddb5;
}

.service-card:nth-child(4) {
  background: #f3f0ff;
  border-color: #d5cdf5;
}

.service-card:nth-child(5) {
  background: #fff0f0;
  border-color: #f5c8c8;
}

.service-card:nth-child(6) {
  background: #eefbfb;
  border-color: #b8e8e8;
}

.service-card__icon {
  margin-bottom: 20px;
}

.service-card__video {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

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

.service-card__icon svg {
  transition: transform 0.3s ease;
}

.trust-card__icon svg {
  transition: transform 0.3s ease;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-card__desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-card--video .service-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.6em * 3);
}

.service-card__link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  transition: color 0.2s;
}

.service-card__link:hover {
  color: var(--orange);
}

/* Whole-card click target — stretches the "Learn More" anchor over the service card.
   The anchor must remain position: static so its ::after positions against the
   .service-card (which is position: relative). */
.service-card:has(.service-card__link) {
  cursor: pointer;
}

.service-card .service-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* --- Availability Widget --- */
.availability-widget {
  max-width: 700px;
  margin: 48px auto 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.availability-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}

.availability-row:last-of-type {
  border-bottom: none;
}

.availability-row:hover {
  background: var(--surface);
}

.availability-service {
  font-weight: 500;
  flex: 1;
}

.availability-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  width: 140px;
}

.availability-status--available {
  color: var(--success);
}

.availability-status--ondemand {
  color: var(--warning);
}

.availability-time {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: right;
  width: 100px;
  flex-shrink: 0;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}

.pulse-dot--amber {
  background: var(--warning);
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
  }
}

.availability-updated {
  text-align: center;
  padding: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--surface);
}

/* --- Team --- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

.team-profiles-row {
  display: flex;
  gap: 40px;
  justify-content: center;
}

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

.team-profile__photo {
  margin-bottom: 24px;
}

.team-profile__photo {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
  padding: 2px;
  background: #7a1a1a;
  border-radius: 0 12px 0 12px;
  box-shadow: 0 8px 24px rgba(26, 45, 77, 0.2);
}

.team-profile__photo img {
  width: 180px;
  height: 220px;
  border-radius: 0 8px 0 8px;
  object-fit: cover;
  object-position: top;
  display: block;
  border: 2px solid #c9a84c;
}

.team-profile__name {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.team-profile__role {
  font-size: 16px;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 16px;
}

.team-profile__bio {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 360px;
  margin: 0 auto 20px;
}

.team-profile__social {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.social-link {
  color: var(--navy);
  transition: color 0.2s;
  padding: 4px;
}

.social-link:hover {
  color: var(--orange);
}

.team-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stat-item:nth-child(1) {
  background: #eef6ff;
  border-color: #c8dff7;
}

.stat-item:nth-child(2) {
  background: #fff8ee;
  border-color: #f5ddb5;
}

.stat-item:nth-child(3) {
  background: #f0faf0;
  border-color: #c5e8c5;
}

.stat-item:nth-child(4) {
  background: #f3f0ff;
  border-color: #d5cdf5;
}

.stat-item__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
}

.stat-item__label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.team-stats__text {
  grid-column: 1 / -1;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Case Studies --- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.case-card {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

.case-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-hover);
}

.case-card__badge {
  display: inline-block;
  background: var(--surface);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.case-card__client {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.case-card__headline {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.3;
}

.case-card__detail {
  margin-bottom: 12px;
}

.case-card__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--blue);
  letter-spacing: 0.5px;
}

.case-card__detail p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.5;
}

.case-card__result {
  background: var(--orange);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 20px 0 16px;
}

/* --- Clients Marquee --- */
.clients-marquee {
  margin-top: 48px;
  overflow: hidden;
  position: relative;
}

.clients-marquee::before,
.clients-marquee::after {
  content: none;
}

.clients-track {
  display: flex;
  gap: 32px;
  animation: marquee 25s linear infinite;
  width: max-content;
}

.clients-marquee:hover .clients-track {
  animation-play-state: paused;
}

.client-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo img {
  height: auto;
  width: auto;
  max-width: none;
  display: block;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 64px;
  font-family: serif;
  color: var(--blue);
  opacity: 0.1;
  line-height: 1;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--blue);
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.testimonial-card__quote {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
  border: none;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.testimonial-card__author strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--navy);
}

.testimonial-card__author span {
  font-size: 13px;
  color: var(--text-secondary);
}

/* --- Vision/Mission/Values --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.value-card:nth-child(1)::before {
  background: var(--blue);
}

.value-card:nth-child(2)::before {
  background: var(--orange);
}

.value-card:nth-child(3)::before {
  background: var(--navy);
}

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

.value-card__icon {
  margin-bottom: 16px;
  font-size: 44px;
  line-height: 1;
}

.value-card__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.value-card__desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* --- Certifications Grid --- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}

.cert-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--blue);
}

.cert-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #eef6ff;
}

.cert-card__title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.cert-card__desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* --- Why Choose GSS --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.why-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.why-item:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--orange);
}

.why-item__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.why-item__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 4px;
}

.why-item__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Service Detail Pages --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.service-detail--reverse {
  direction: rtl;
}

.service-detail--reverse>* {
  direction: ltr;
}

.service-detail__content h3 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.service-detail__content p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.service-features {
  list-style: none;
  margin: 16px 0;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.service-features li::before {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.service-detail__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9;
}

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

/* Service CTA Banner */
.service-cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #0d1b30 100%);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  color: var(--white);
  margin-top: 48px;
}

.service-cta-banner h3 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-cta-banner p {
  opacity: 0.85;
  margin-bottom: 24px;
  font-size: 16px;
}

/* Services hub cards */
.services-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-hub-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.service-hub-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

.service-hub-card__video {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.service-hub-card__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-hub-card__body {
  padding: 24px;
}

.service-hub-card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.service-hub-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Services full-width rows */
.services-row-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 48px;
}

.service-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  scroll-margin-top: 120px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  min-height: 260px;
}

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

.service-row__body {
  flex: 0 0 70%;
  max-width: 70%;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  order: 2;
}

.service-row__media {
  flex: 0 0 30%;
  max-width: 30%;
  overflow: hidden;
  order: 1;
  position: relative;
  align-self: stretch;
}

.service-row__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-row__title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.service-row__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-row__body .btn {
  align-self: flex-start;
  padding: 8px 18px;
  font-size: 13px;
}

@media (max-width: 768px) {
  .service-row {
    flex-direction: column;
    min-height: 0;
  }
  .service-row__body,
  .service-row__media {
    flex: 1 1 auto;
    max-width: 100%;
  }
  .service-row__media {
    order: 1;
    aspect-ratio: 16 / 10;
  }
  .service-row__body {
    order: 2;
    padding: 24px;
  }
  .service-row__title {
    font-size: 22px;
  }
}

/* About profile section */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.profile-content p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.profile-highlight {
  background: linear-gradient(135deg, var(--navy) 0%, #0d1b30 100%);
  border-radius: var(--radius);
  padding: 32px;
  color: var(--white);
}

.profile-highlight__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.profile-highlight h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.profile-highlight p {
  opacity: 0.85;
  line-height: 1.7;
  font-size: 15px;
}

.profile-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.profile-stat {
  text-align: center;
}

.profile-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
}

.profile-stat span {
  font-size: 12px;
  opacity: 0.7;
}

/* --- Responsive additions --- */
@media (max-width: 1279px) {
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .certs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .cert-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 16px 10px;
  }

  .cert-card__icon {
    width: 40px;
    height: 40px;
  }

  .cert-card__title {
    font-size: 13px;
    line-height: 1.3;
  }

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

  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-detail--reverse {
    direction: ltr;
  }

  .services-hub-grid {
    grid-template-columns: 1fr;
  }

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

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

  .service-cta-banner {
    padding: 32px 20px;
  }

  .service-cta-banner h3 {
    font-size: 22px;
  }
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 48px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 20px 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  gap: 16px;
  transition: color 0.2s;
  border-left: 4px solid transparent;
  padding-left: 16px;
  margin-left: -16px;
}

.faq-question:hover {
  color: var(--orange);
}

.faq-item.active .faq-question {
  border-left-color: var(--navy);
  color: var(--orange);
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease-out;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out, opacity 0.2s ease-out;
  opacity: 0;
}

.faq-item.active .faq-answer {
  opacity: 1;
}

.faq-answer p {
  padding: 0 0 20px 16px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 180px 0 48px;
  background: linear-gradient(160deg, #1a2d4d 0%, #0d1b30 60%, #2B8FCC 100%);
  color: var(--white);
  text-align: center;
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 12px;
}

.page-hero__subtitle {
  font-size: 18px;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.page-hero__breadcrumb {
  font-size: 14px;
  opacity: 0.7;
}

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

.page-hero__breadcrumb a:hover {
  opacity: 1;
}

.page-hero__breadcrumb span[aria-hidden] {
  margin: 0 8px;
}

.contact-form__heading {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.contact-form__subtext {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Contact info with icons */
.contact-info__block {
  display: flex;
  gap: 16px;
}

.contact-info__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 10px;
}

.contact-info__block--hotline {
  background: linear-gradient(135deg, rgba(247, 148, 29, 0.08), rgba(247, 148, 29, 0.02));
  border: 1px solid rgba(247, 148, 29, 0.2);
  border-radius: var(--radius);
  padding: 16px;
}

/* Map */
.map-wrapper {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
}

.required {
  color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 16px;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
  color: #999;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  border-width: 2px;
  padding: 11px 15px;
  box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.1);
}

.form-group textarea {
  resize: vertical;
}

.form-group select {
  cursor: pointer;
}

.form-group--checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.form-group--checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
  flex-shrink: 0;
}

.form-group--checkbox label {
  font-size: 14px;
}

.form-error {
  font-size: 12px;
  color: var(--error);
  min-height: 16px;
}

.form-group.error input,
.form-group.error select {
  border-color: var(--error);
}

.form-group.valid input,
.form-group.valid select {
  border-color: var(--success);
}

/* --- Contact Info --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info__block h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.contact-info__block p,
.contact-info__block a {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.contact-info__block a:hover {
  color: var(--orange);
}

.contact-info__hotline {
  font-family: var(--font-heading);
  font-size: 20px !important;
  font-weight: 700;
  color: var(--orange) !important;
}

.contact-info__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-info__links a {
  font-size: 15px;
  color: var(--text-secondary);
}

.contact-info__links a:hover {
  color: var(--orange);
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: var(--white);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding: 64px 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}

.footer__logo {
  width: 192px;
  height: 50px;
  object-fit: contain;
}

.footer__tagline {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  color: var(--white);
  transition: color 0.2s;
  padding: 4px;
}

.footer__social-link:hover {
  color: var(--orange);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  opacity: 0.8;
}

.footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.footer__links a {
  font-size: 14px;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}

.footer__links a:hover {
  opacity: 1;
  color: var(--orange);
}

.footer__certs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__certs li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  opacity: 0.8;
}

.footer__legal {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.footer__legal a {
  font-size: 12px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.footer__legal a:hover {
  opacity: 1;
}

.footer__copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
}

/* --- Modal --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(26, 45, 77, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  padding: 24px;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.2s ease;
  position: relative;
}

.modal-backdrop.active .modal {
  transform: scale(1);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--navy);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.modal__close:hover {
  color: var(--orange);
  background: var(--surface);
}

.modal__title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--success);
  color: var(--white);
  padding: 16px 32px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  z-index: 3000;
  transition: bottom 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 90%;
}

.toast.visible {
  bottom: 32px;
}

/* --- Focus & Accessibility --- */
*:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.navbar__link:focus-visible,
.service-card__link:focus-visible,
.social-link:focus-visible,
.footer__social-link:focus-visible,
.footer__links a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Cursor pointer on all interactive elements */
.trust-card,
.service-card,
.availability-row,
.case-card {
  cursor: pointer;
}

/* Skip link for keyboard nav */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--orange);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {

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

  html {
    scroll-behavior: auto;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
  }

  .reveal-up {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .pulse-dot {
    animation: none;
  }
}

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

@media (max-width: 1279px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .section {
    padding: 64px 0;
  }

  .hero__title {
    font-size: 46px;
  }

  .section__title {
    font-size: 36px;
  }

  .topbar__content {
    padding-left: 200px;
  }

  .navbar__list li+li::before {
    margin: 0 12px;
  }

  .navbar__link {
    font-size: 14px;
  }

  .navbar__company-name,
  .navbar__company-sub {
    font-size: 18px;
    letter-spacing: 1px;
  }

  .navbar__logo {
    width: 190px;
    height: 50px;
  }

  .navbar__brand {
    margin-top: -20px;
  }

  .navbar__cta {
    padding: 10px 22px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }

  .navbar__inner {
    height: 60px;
  }

  .navbar__brand {
    margin-top: 0;
  }

  .navbar__logo {
    width: 153px;
    height: 40px;
  }

  .navbar__company-name {
    font-size: 14px;
  }

  .navbar__company-sub {
    font-size: 14px;
  }

  .navbar__tagline {
    font-size: 10px;
  }

  .hero {
    padding-top: 63px;
  }

  .navbar__nav {
    position: fixed;
    left: -80%;
    top: 0;
    width: 80%;
    height: 100vh;
    background: var(--white);
    z-index: 999;
    padding: 80px 24px 24px;
    transition: left 0.3s ease;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.1);
  }

  .navbar__nav.active {
    left: 0;
  }

  .navbar__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .navbar__list li {
    display: block;
    width: 100%;
    text-align: left;
  }

  .navbar__list li+li::before {
    display: none;
  }

  .navbar__link {
    display: block;
    padding: 14px 4px;
    font-size: 16px;
    font-weight: 500;
    color: var(--navy);
    border-bottom: 1px solid var(--border);
    text-align: left;
  }

  .navbar__link::after {
    display: none;
  }

  .navbar__link.active {
    color: var(--orange);
    font-weight: 600;
  }

  /* Mobile: Services row with caret on the right */
  .navbar__has-dropdown > .navbar__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .navbar__caret {
    transform: rotate(0deg) !important;
    flex-shrink: 0;
  }

  .navbar__dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 4px 0 8px;
    margin: 0;
    min-width: 0;
    width: 100%;
  }

  .navbar__dropdown::before {
    display: none;
  }

  .navbar__dropdown li {
    display: block;
    width: 100%;
  }

  .navbar__dropdown a {
    display: block;
    padding: 10px 0 10px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    border-left: 2px solid var(--border);
    border-bottom: none;
    white-space: normal;
    text-align: left;
  }

  .navbar__dropdown a:hover,
  .navbar__dropdown a:focus-visible {
    padding-left: 18px;
    border-left-color: var(--orange);
    background: transparent;
    color: var(--orange);
  }

  .navbar__dropdown-divider {
    margin: 4px 0;
    border-left: none;
    background: var(--border);
    height: 1px;
  }

  .navbar__dropdown-all {
    border-left-color: var(--orange) !important;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__actions {
    margin-left: auto;
    margin-right: 8px;
  }

  .navbar__cta {
    padding: 7px 14px;
    font-size: 12px;
    border-radius: 40px;
    letter-spacing: 0.2px;
  }

  .hero {
    min-height: auto;
  }

  .hero__inner-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
    padding: 48px 16px;
  }

  .hero__content {
    text-align: center;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__subtitle {
    font-size: 16px;
    margin: 0 auto 32px;
  }

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

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

  .hero__badges {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    justify-content: center;
  }

  .hero__video {
    max-width: 100%;
  }

  .section {
    padding: 48px 0;
  }

  .section__title {
    font-size: 28px;
  }

  .section__subtitle {
    font-size: 16px;
    white-space: normal;
    max-width: 560px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-heading {
    font-size: 28px;
  }

  .about-content {
    text-align: center;
  }

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

  .about-stat-card {
    padding: 16px;
    gap: 12px;
  }

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

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

  .team-profiles-row {
    flex-direction: column;
    align-items: center;
  }

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

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

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

  .service-card,
  .case-card,
  .testimonial-card {
    padding: 16px;
  }

  .service-card__video {
    aspect-ratio: 4 / 3;
    margin-bottom: 10px;
  }

  .service-card__title {
    font-size: 17px;
    line-height: 1.25;
    margin-bottom: 6px;
  }

  .service-card__desc {
    display: none;
  }

  .team-stats {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .availability-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .availability-service {
    width: 100%;
  }

  .availability-status {
    width: auto;
  }

  .availability-time {
    width: auto;
  }

  .clients-marquee::before,
  .clients-marquee::after {
    width: 40px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 24px;
  }

  .page-hero {
    padding: 100px 0 32px;
  }

  .page-hero__title {
    font-size: 32px;
  }

  .page-hero__subtitle {
    font-size: 16px;
  }

  .contact-form__heading {
    font-size: 22px;
  }

  .contact-info__block {
    flex-direction: row;
  }

  .map-wrapper iframe {
    height: 300px;
  }

  .modal {
    padding: 24px;
  }

  .modal__title {
    font-size: 22px;
  }

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

  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .navbar__inner {
    padding: 0 12px;
    gap: 8px;
  }

  .navbar__brand {
    gap: 8px;
  }

  .navbar__logo {
    width: 122px;
    height: 32px;
  }

  .navbar__company-name,
  .navbar__company-sub {
    font-size: 11px;
    letter-spacing: 0.5px;
  }

  .navbar__actions {
    margin-right: 4px;
  }

  .navbar__cta {
    padding: 6px 10px;
    font-size: 11px;
  }

  .navbar__hamburger {
    padding: 6px;
  }
}