/* =========================================================
   ASDI — Global and Homepage Styles
   ========================================================= */

/* =========================================================
   1. Design tokens
   ========================================================= */

:root {
  --brand-yellow: #ffc329;
  --brand-orange: #f39200;
  --brand-orange-dark: #c96700;
  --brand-red: #e74720;

  --header-background: #858585;
  --secondary-nav-background: #303030;

  --text-primary: #292929;
  --text-secondary: #606060;
  --text-light: #ffffff;

  --background: #ffffff;
  --background-soft: #f4f4f4;
  --background-muted: #e9e9e9;

  --surface: #ffffff;
  --surface-dark: #777777;

  --border: #dedede;
  --border-light: #ececec;

  --radius-small: 6px;
  --radius-medium: 12px;
  --radius-large: 20px;

  --shadow-small: 0 3px 12px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.09);
  --shadow-large: 0 18px 45px rgba(0, 0, 0, 0.13);

  --header-height: 80px;
  --container-width: 1180px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* =========================================================
   2. Reset and document base
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Lato", Arial, sans-serif;
  color: var(--text-primary);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.container {
  width: min(90%, var(--container-width));
  margin-inline: auto;
}

section {
  padding: 72px 0;
}

section h2 {
  margin-bottom: 20px;
  color: var(--brand-orange-dark);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.2;
  text-align: center;
}

p {
  color: var(--text-secondary);
}

/* =========================================================
   3. Main navigation
   ========================================================= */

.top-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;

  min-height: var(--header-height);
  padding: 12px 0;

  color: var(--text-light);
  background: rgba(122, 122, 122, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.16);

  transition:
    transform var(--transition-normal),
    opacity var(--transition-normal),
    background var(--transition-normal);
}

.top-nav.hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.top-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.top-nav .logo {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.top-nav .logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.top-nav .logo img {
  width: auto;
  max-height: 52px;
}

.top-nav nav {
  display: flex;
  align-items: center;
}

.top-nav .nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.top-nav .nav-links a {
  position: relative;
  display: inline-block;

  padding: 8px 0;

  color: var(--brand-yellow);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;

  transition: color var(--transition-fast);
}

.top-nav .nav-links a::after {
  content: "";

  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;

  width: 0;
  height: 2px;
  margin: auto;

  background: linear-gradient(90deg,
      var(--brand-yellow),
      var(--brand-red));
  border-radius: 999px;

  transition: width var(--transition-normal);
}

.top-nav .nav-links a:hover,
.top-nav .nav-links a:focus-visible {
  color: #ffffff;
}

.top-nav .nav-links a:hover::after,
.top-nav .nav-links a:focus-visible::after,
.top-nav .nav-links a.active::after {
  width: 100%;
}

.top-nav .nav-links a.active {
  color: #ffffff;
}

.top-nav a:focus-visible {
  outline: 3px solid rgba(255, 195, 41, 0.65);
  outline-offset: 5px;
  border-radius: 3px;
}

/* =========================================================
   4. Secondary navigation
   ========================================================= */

.secondary-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 999;

  padding: 10px 16px;

  color: #ffffff;
  background: rgba(43, 43, 43, 0.97);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.18);

  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;

  transition:
    opacity var(--transition-normal),
    transform var(--transition-normal);
}

.secondary-nav.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.secondary-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.secondary-nav a {
  display: inline-block;
  padding: 6px 8px;

  color: var(--brand-yellow);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;

  border-radius: var(--radius-small);

  transition:
    color var(--transition-fast),
    background var(--transition-fast);
}

.secondary-nav a:hover,
.secondary-nav a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.secondary-nav a:focus-visible {
  outline: 2px solid var(--brand-yellow);
  outline-offset: 2px;
}

/* =========================================================
   5. Hero
   ========================================================= */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;

  min-height: 300px;
  margin-top: var(--header-height);
  padding: 58px 0;

  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(105deg,
      rgba(113, 113, 113, 0.2) 0%,
      rgba(117, 117, 117, 0.05) 35%,
      rgba(178, 51, 15, 0.15) 100%),
    url("../images/hero.webp") center / cover no-repeat;
}

.hero::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: -1;

  background:
    linear-gradient(90deg,
      rgba(255, 190, 40, 0.12),
      rgba(255, 112, 26, 0.25));
}

.hero::after {
  content: "";

  position: absolute;
  inset: auto 0 0 0;
  z-index: -1;

  height: 100px;

  background: linear-gradient(to bottom,
      transparent,
      rgba(0, 0, 0, 0.08));
}

.hero-container {
  width: min(90%, var(--container-width));
  margin-inline: auto;
}

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

.hero-text {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
}

.hero-eyebrow {
  margin-bottom: 10px;

  color: #fff0bf;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin: 0 auto 20px;

  color: var(--brand-yellow);
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  line-height: 1.08;

  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.32);
}

.hero-text>p:not(.hero-eyebrow) {
  max-width: 720px;
  margin: 0 auto;

  color: #ffffff;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.75;

  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;

  margin-top: 30px;

  justify-content: center;
}

/* =========================================================
   Experience and direct-client positioning
   ========================================================= */

.experience {
  padding: 76px 0;

  background:
    linear-gradient(180deg,
      #ffffff 0%,
      #f4f4f4 100%);
}

.experience-card {
  display: grid;
  grid-template-columns: minmax(210px, 0.35fr) minmax(0, 1.65fr);
  align-items: stretch;

  overflow: hidden;

  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  box-shadow: var(--shadow-medium);
}

.experience-number {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 44px 30px;

  color: #ffffff;
  text-align: center;

  background:
    linear-gradient(145deg,
      var(--brand-orange),
      var(--brand-red));
}

.experience-number strong {
  display: block;

  color: #ffffff;
  font-size: clamp(4.5rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 0.9;
}

.experience-number span {
  margin-top: 14px;

  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
}

.experience-content {
  padding: 42px 46px;
}

.experience-eyebrow {
  margin-bottom: 8px;

  color: var(--brand-orange-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.experience h2 {
  margin-bottom: 22px;

  color: var(--text-primary);
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  line-height: 1.2;
  text-align: left;
}

.experience-content>p:not(.experience-eyebrow) {
  max-width: 850px;

  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

.experience-content>p+p {
  margin-top: 13px;
}

.experience-highlight {
  padding: 16px 18px;

  color: var(--text-primary) !important;
  font-weight: 700;

  background:
    linear-gradient(135deg,
      rgba(255, 195, 41, 0.12),
      rgba(243, 146, 0, 0.07));

  border-left: 4px solid var(--brand-orange);
  border-radius: 0 10px 10px 0;
}

.experience-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;

  margin-top: 28px;
}

.experience-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  color: var(--brand-orange-dark);
  font-weight: 700;
  text-decoration: none;

  transition:
    color var(--transition-fast),
    gap var(--transition-fast);
}

.experience-link:hover {
  gap: 13px;
  color: var(--brand-red);
}

.experience-link:focus-visible {
  outline: 3px solid rgba(243, 146, 0, 0.35);
  outline-offset: 4px;
  border-radius: 3px;
}

@media (max-width: 800px) {
  .experience-card {
    grid-template-columns: 1fr;
  }

  .experience-number {
    min-height: auto;
    flex-direction: row;
    gap: 18px;

    padding: 28px;
  }

  .experience-number strong {
    font-size: 4.5rem;
  }

  .experience-number span {
    margin-top: 0;
    text-align: left;
  }

  .experience-content {
    padding: 34px 28px;
  }
}

@media (max-width: 520px) {
  .experience {
    padding: 58px 0;
  }

  .experience-number {
    justify-content: flex-start;
  }

  .experience-content {
    padding: 29px 21px;
  }

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

  .experience-actions .btn {
    width: 100%;
  }

  .experience-link {
    justify-content: center;
  }
}

/* =========================================================
   6. Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 12px 22px;

  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;

  border: 2px solid transparent;
  border-radius: 999px;

  transition:
    transform var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 3px solid rgba(255, 195, 41, 0.45);
  outline-offset: 4px;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg,
      var(--brand-orange),
      var(--brand-red));
  box-shadow: 0 8px 20px rgba(197, 75, 0, 0.25);
}

.btn-primary:hover {
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(197, 75, 0, 0.33);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  color: var(--text-primary);
  background: #ffffff;
  border-color: #ffffff;
}

/* =========================================================
   Expertise areas
   ========================================================= */

.expertise-section {
  position: relative;

  padding: 78px 0 84px;

  background:
    radial-gradient(circle at 10% 5%,
      rgba(255, 195, 41, 0.08),
      transparent 25%),
    radial-gradient(circle at 90% 90%,
      rgba(231, 71, 32, 0.06),
      transparent 28%),
    linear-gradient(180deg,
      #f4f4f4 0%,
      #eeeeee 100%);
}

.expertise-section .container {
  width: min(92%, 1220px);
}

/* =========================================================
   Expertise heading
   ========================================================= */

.expertise-heading {
  max-width: 830px;
  margin: 0 auto 46px;

  text-align: center;
}

.expertise-eyebrow {
  margin-bottom: 9px;

  color: var(--brand-orange-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.expertise-heading h2 {
  position: relative;

  margin-bottom: 26px;

  color: var(--text-primary);
  font-size: clamp(1.9rem, 3.5vw, 2.65rem);
  line-height: 1.2;
}

.expertise-heading h2::after {
  content: "";

  position: absolute;
  right: 0;
  bottom: -13px;
  left: 0;

  width: 78px;
  height: 4px;
  margin: auto;

  background: linear-gradient(90deg,
      var(--brand-yellow),
      var(--brand-red));

  border-radius: 999px;
}

.expertise-heading>p:last-child {
  max-width: 780px;
  margin: 0 auto;

  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

/* =========================================================
   Expertise grid
   ========================================================= */

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}

/* =========================================================
   Expertise cards
   ========================================================= */

.expertise-card {
  position: relative;

  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;

  padding: 30px 25px 25px;

  overflow: hidden;

  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-small);

  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.expertise-card::before {
  content: "";

  position: absolute;
  top: 0;
  right: 0;
  left: 0;

  height: 4px;

  background: linear-gradient(90deg,
      var(--brand-yellow),
      var(--brand-orange),
      var(--brand-red));

  transform: scaleX(0);
  transform-origin: center;

  transition: transform var(--transition-normal);
}

.expertise-card::after {
  content: "";

  position: absolute;
  top: -80px;
  right: -80px;

  width: 170px;
  height: 170px;

  background: radial-gradient(circle,
      rgba(255, 195, 41, 0.12),
      transparent 70%);

  border-radius: 50%;
  pointer-events: none;
}

.expertise-card:hover {
  transform: translateY(-7px);

  border-color: rgba(243, 146, 0, 0.38);
  box-shadow: var(--shadow-medium);
}

.expertise-card:hover::before {
  transform: scaleX(1);
}

/* =========================================================
   Expertise icons
   ========================================================= */

.expertise-card-icon {
  position: relative;
  z-index: 1;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;
  margin-bottom: 20px;

  color: #ffffff;
  font-size: 1.45rem;

  background: linear-gradient(135deg,
      var(--brand-yellow),
      var(--brand-orange));

  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(205, 112, 0, 0.2);

  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.expertise-card:hover .expertise-card-icon {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 11px 23px rgba(205, 112, 0, 0.28);
}

/* =========================================================
   Expertise card typography
   ========================================================= */

.expertise-card-category {
  margin-bottom: 5px;

  color: var(--brand-orange-dark);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.expertise-card h3 {
  margin-bottom: 13px;

  color: var(--text-primary);
  font-size: 1.3rem;
  line-height: 1.25;
}

.expertise-card>p:not(.expertise-card-category) {
  margin-bottom: 20px;

  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* =========================================================
   Expertise feature lists
   ========================================================= */

.expertise-card ul {
  display: grid;
  gap: 9px;

  margin: 0 0 24px;
  padding: 0;

  list-style: none;
}

.expertise-card li {
  position: relative;

  padding-left: 23px;

  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.expertise-card li::before {
  content: "✓";

  position: absolute;
  top: 0;
  left: 0;

  color: var(--brand-orange);
  font-size: 0.9rem;
  font-weight: 700;
}

/* =========================================================
   Expertise links
   ========================================================= */

.expertise-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  width: fit-content;
  margin-top: auto;

  color: var(--brand-orange-dark);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;

  transition:
    color var(--transition-fast),
    gap var(--transition-fast);
}

.expertise-card-link i {
  font-size: 0.78rem;
}

.expertise-card-link:hover {
  gap: 12px;
  color: var(--brand-red);
}

.expertise-card-link:focus-visible {
  outline: 3px solid rgba(243, 146, 0, 0.34);
  outline-offset: 4px;
  border-radius: 3px;
}

/* =========================================================
   Expertise footer
   ========================================================= */

.expertise-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  max-width: 990px;
  margin: 42px auto 0;
  padding: 22px 26px;

  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: var(--shadow-small);
}

.expertise-footer p {
  max-width: 680px;

  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
}

.expertise-footer .btn {
  flex: 0 0 auto;
}

/* =========================================================
   Expertise responsive layout
   ========================================================= */

@media (max-width: 1080px) {
  .expertise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .expertise-card {
    min-height: 390px;
  }
}

@media (max-width: 720px) {
  .expertise-section {
    padding: 58px 0 64px;
  }

  .expertise-heading {
    margin-bottom: 35px;
  }

  .expertise-grid {
    gap: 16px;
  }

  .expertise-card {
    min-height: 370px;
    padding: 26px 22px 23px;
  }

  .expertise-footer {
    flex-direction: column;
    align-items: stretch;

    padding: 22px;
    text-align: center;
  }

  .expertise-footer .btn {
    width: 100%;
  }
}

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

  .expertise-card {
    min-height: auto;
  }

  .expertise-card-icon {
    width: 52px;
    height: 52px;

    font-size: 1.25rem;
  }
}

/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .expertise-card,
  .expertise-card::before,
  .expertise-card-icon,
  .expertise-card-link {
    transition: none;
  }

  .expertise-card:hover,
  .expertise-card:hover .expertise-card-icon {
    transform: none;
  }
}

/* =========================================================
   10. Detailed process timeline
   ========================================================= */

.details {
  background: #ffffff;
}

.details-intro {
  max-width: 820px;
  margin: 0 auto 10px;

  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  text-align: center;
}

.timeline {
  position: relative;

  max-width: 1050px;
  margin: 52px auto 0;
  padding: 8px 0;
}

.timeline::before {
  content: "";

  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;

  width: 3px;

  background: linear-gradient(to bottom,
      var(--brand-yellow),
      var(--brand-orange),
      var(--brand-red));
  border-radius: 999px;

  transform: translateX(-50%);
}

.timeline-item {
  position: relative;

  width: 50%;
  padding: 14px 52px 14px 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding: 14px 0 14px 52px;
}

.timeline-icon {
  position: absolute;
  top: 28px;
  right: -23px;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 46px;
  height: 46px;

  color: #ffffff;
  font-size: 1.05rem;

  background: linear-gradient(135deg,
      var(--brand-yellow),
      var(--brand-orange));
  border: 4px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.15);
}

.timeline-item:nth-child(even) .timeline-icon {
  right: auto;
  left: -23px;
}

.timeline-content {
  padding: 24px 26px;

  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-small);

  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.timeline-content:hover {
  transform: translateY(-4px);
  border-color: rgba(243, 146, 0, 0.38);
  box-shadow: var(--shadow-medium);
}

.timeline-content h3 {
  margin-bottom: 8px;

  color: var(--brand-orange-dark);
  font-size: 1.2rem;
  line-height: 1.25;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* =========================================================
   11. Services
   ========================================================= */

.services {
  background: var(--background-soft);
}

.services-content {
  max-width: 1050px;
  margin: 38px auto 0;
}

.service-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service-item {
  position: relative;

  padding: 28px;

  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-small);

  opacity: 0;
  transform: translateY(18px);

  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.service-item::before {
  content: "";

  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;

  width: 4px;

  background: linear-gradient(to bottom,
      var(--brand-yellow),
      var(--brand-red));
}

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

.service-item:hover {
  transform: translateY(-4px);
  border-color: rgba(243, 146, 0, 0.35);
  box-shadow: var(--shadow-medium);
}

.service-item h3 {
  margin-bottom: 10px;

  color: var(--brand-orange-dark);
  font-size: 1.15rem;
  line-height: 1.3;
}

.service-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.services-action {
  display: flex;
  justify-content: center;

  margin-top: 34px;
}

/* =========================================================
   12. Industry sectors
   ========================================================= */

.industries {
  background: #ffffff;
}

.industries .intro-text {
  max-width: 850px;
  margin: 0 auto 42px;

  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  text-align: center;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;

  max-width: 1180px;
  margin: 0 auto;
}

.industry-card {
  position: relative;

  display: flex;
  min-height: 210px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  padding: 28px 20px 30px;

  overflow: hidden;
  text-align: center;

  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-small);

  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.industry-card:hover {
  transform: translateY(-6px);
  border-color: rgba(243, 146, 0, 0.45);
  box-shadow: var(--shadow-medium);
}

.industry-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;
  margin-bottom: 17px;

  color: var(--brand-orange);
  font-size: 1.8rem;

  background: rgba(243, 146, 0, 0.1);
  border-radius: 50%;

  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);
}

.industry-card:hover i {
  color: #ffffff;
  background: linear-gradient(135deg,
      var(--brand-yellow),
      var(--brand-orange));
  transform: scale(1.05);
}

.industry-card h3 {
  margin-bottom: 8px;

  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.35;
}

.industry-card p {
  color: var(--text-secondary);
  font-size: 0.87rem;
  line-height: 1.5;
}

.card-index {
  position: absolute;
  right: 12px;
  bottom: 7px;

  color: rgba(0, 0, 0, 0.09);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;

  pointer-events: none;
}

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

.contact {
  padding: 74px 0;

  background:
    linear-gradient(135deg,
      #686868,
      #828282);
}

.home-contact-card {
  display: grid;
  grid-template-columns:
    minmax(320px, 0.85fr) minmax(0, 1.15fr);
  align-items: stretch;
  gap: 12px;

  padding: 12px;

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

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

.home-contact-content {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 38px 34px;

  color: #ffffff;
}

.home-contact-eyebrow {
  margin-bottom: 7px;

  color: var(--brand-yellow);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contact .home-contact-content h2 {
  margin-bottom: 14px;

  color: #ffffff;
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  line-height: 1.2;
  text-align: left;
}

.home-contact-introduction {
  max-width: 580px;
  margin-bottom: 28px;

  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.72;
}

.home-contact-details {
  display: grid;
  gap: 12px;
}

.home-contact-method {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 14px 16px;

  color: #ffffff;
  text-decoration: none;

  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;

  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

a.home-contact-method:hover {
  background: rgba(255, 255, 255, 0.17);
  border-color: rgba(255, 255, 255, 0.28);

  transform: translateX(3px);
}

.home-contact-method:focus-visible {
  outline: 3px solid rgba(255, 195, 41, 0.5);
  outline-offset: 3px;
}

.home-contact-method i {
  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  color: #ffffff;
  font-size: 1rem;

  background:
    linear-gradient(135deg,
      var(--brand-yellow),
      var(--brand-orange));

  border-radius: 50%;
}

.home-contact-method>span {
  display: flex;
  min-width: 0;
  flex-direction: column;

  color: #ffffff;
  font-size: 0.96rem;
  line-height: 1.45;
}

.home-contact-method strong {
  margin-bottom: 2px;

  color: var(--brand-yellow);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-contact-method address {
  color: #ffffff;
  font-size: 0.96rem;
  font-style: normal;
  line-height: 1.45;
}

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

.home-contact-map {
  min-height: 480px;

  overflow: hidden;

  background: #ffffff;
  border-radius: 13px;
}

.home-contact-map iframe {
  display: block;

  width: 100%;
  height: 100%;
  min-height: 480px;

  border: 0;
}

/* =========================================================
   Contact responsive layout
   ========================================================= */

@media (max-width: 900px) {
  .home-contact-card {
    grid-template-columns: 1fr;
  }

  .home-contact-content {
    padding: 34px 28px;
  }

  .home-contact-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-contact-address {
    grid-column: 1 / -1;
  }

  .home-contact-map,
  .home-contact-map iframe {
    min-height: 400px;
  }
}

@media (max-width: 620px) {
  .contact {
    padding: 58px 0;
  }

  .home-contact-card {
    padding: 8px;
  }

  .home-contact-content {
    padding: 28px 20px;
  }

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

  .home-contact-address {
    grid-column: auto;
  }

  .home-contact-map,
  .home-contact-map iframe {
    min-height: 340px;
  }
}

@media (max-width: 390px) {
  .home-contact-content {
    padding: 25px 16px;
  }

  .home-contact-method {
    padding: 12px;
  }

  .home-contact-method i {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-contact-method {
    transition: none;
  }

  a.home-contact-method:hover {
    transform: none;
  }
}

/* =========================================================
   14. Back-to-top button
   ========================================================= */

#backToTop {
  --back-to-top-size: clamp(46px, 4vw, 60px);

  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 950;

  display: flex;
  align-items: center;
  justify-content: center;

  width: var(--back-to-top-size);
  height: var(--back-to-top-size);
  padding: 0;

  color: var(--brand-orange);
  background: transparent;
  border: 0;
  border-radius: 50%;

  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
}

#backToTop.show {
  opacity: 0.78;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

#backToTop:focus-visible {
  opacity: 1;
  outline: 3px solid rgba(243, 146, 0, 0.45);
  outline-offset: 3px;
}

/* Only apply hover effects on devices with a real pointer */
@media (hover: hover) and (pointer: fine) {
  #backToTop:hover {
    opacity: 1;
    transform: scale(1.08);
  }

  #backToTop:hover .back-to-top-arrow {
    color: var(--brand-red);
  }
}

.progress-ring {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  transform: rotate(-90deg);
  overflow: visible;
}

.progress-ring__background {
  stroke: var(--brand-orange);
  opacity: 0.2;
}

.progress-ring__progress {
  stroke: var(--brand-orange);
  stroke-linecap: round;

  transition: stroke-dashoffset 0.25s linear;
}

.back-to-top-arrow {
  position: relative;
  z-index: 1;

  width: 40%;
  height: 40%;

  color: var(--brand-orange);
  fill: currentColor;

  transition: color 0.25s ease;
}

@media (max-width: 680px) {
  #backToTop {
    --back-to-top-size: 48px;

    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  #backToTop {
    --back-to-top-size: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {

  #backToTop,
  .progress-ring__progress,
  .back-to-top-arrow {
    transition: none;
  }
}

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

.site-footer {
  padding: 18px 0;

  color: #ffffff;

  background: linear-gradient(90deg,
      #efa626,
      var(--brand-orange));
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer p {
  margin: 0;

  color: #ffffff;
  font-size: 0.88rem;
  line-height: 1.5;
}

.site-credit {
  flex: 0 0 auto;
}

.site-credit a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;

  border-bottom: 1px solid rgba(255, 255, 255, 0.65);

  transition:
    border-color var(--transition-fast),
    opacity var(--transition-fast);
}

.site-credit a:hover {
  opacity: 0.85;
  border-color: #ffffff;
}

.site-credit a:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.45);
  outline-offset: 4px;
  border-radius: 3px;
}

@media (max-width: 680px) {
  .site-footer-inner {
    flex-direction: column;
    justify-content: center;

    text-align: center;
  }

  .site-credit {
    flex: initial;
  }
}

/* =========================================================
   16. Tablet layout
   ========================================================= */

@media (max-width: 1050px) {
  .hero-content {
    grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
    gap: 42px;
  }

  .about-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .industries-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  :root {
    --header-height: 74px;
  }

  .top-nav .container {
    gap: 18px;
  }

  .top-nav .logo img {
    max-height: 45px;
  }

  .top-nav .nav-links {
    gap: 14px;
  }

  .top-nav .nav-links a {
    font-size: 0.88rem;
  }

  .hero {
    min-height: auto;
    padding: 58px 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .hero-logo img {
    width: min(180px, 55vw);
  }

  .hero-text {
    margin-inline: auto;
  }

  .hero-text>p:not(.hero-eyebrow) {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .about-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline::before {
    left: 23px;
    transform: none;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    left: 0;

    width: 100%;
    padding: 12px 0 12px 70px;
  }

  .timeline-icon,
  .timeline-item:nth-child(even) .timeline-icon {
    top: 26px;
    right: auto;
    left: 0;
  }

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

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

  .contact-info {
    min-height: auto;
  }
}

/* =========================================================
   17. Mobile navigation and content
   ========================================================= */

@media (max-width: 680px) {
  :root {
    --header-height: 112px;
  }

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

  section {
    padding: 56px 0;
  }

  .top-nav {
    padding: 9px 0;
  }

  .top-nav .container {
    flex-direction: column;
    gap: 7px;
  }

  .top-nav .logo img {
    max-height: 39px;
  }

  .top-nav nav {
    width: 100%;
  }

  .top-nav .nav-links {
    width: 100%;
    justify-content: center;
    gap: 16px;
  }

  .top-nav .nav-links a {
    padding: 5px 0;
    font-size: 0.79rem;
  }

  .secondary-nav {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .secondary-nav::-webkit-scrollbar {
    display: none;
  }

  .secondary-nav ul {
    width: max-content;
    min-width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .secondary-nav a {
    white-space: nowrap;
  }

  .hero {
    padding: 48px 0 54px;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .hero-eyebrow {
    font-size: 0.84rem;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .carousel {
    margin-bottom: 30px;
    border-radius: 8px;
  }

  .carousel-inner {
    aspect-ratio: 16 / 9;
  }

  .carousel-indicators {
    bottom: 9px;
    gap: 7px;
    padding: 6px 9px;
  }

  .carousel-indicators .indicator {
    width: 8px;
    height: 8px;
  }

  .carousel-indicators .indicator.active {
    width: 22px;
  }

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

  .about-list li {
    min-height: 78px;
  }

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

  .industry-card {
    min-height: 190px;
  }

  .contact-info {
    padding: 32px 20px;
  }

  .map,
  .map iframe {
    min-height: 350px;
  }

  #backToTop {
    right: 14px;
    bottom: 14px;

    width: 50px;
    height: 50px;
  }

  .progress-ring {
    width: 50px;
    height: 50px;
  }
}

/* =========================================================
   18. Small mobile layout
   ========================================================= */

@media (max-width: 460px) {

  .container,
  .hero-container {
    width: min(92%, var(--container-width));
  }

  .top-nav .nav-links {
    gap: 11px;
  }

  .top-nav .nav-links a {
    font-size: 0.73rem;
  }

  .hero-logo img {
    width: 145px;
  }

  .about-list-icon {
    width: 40px;
    height: 40px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 58px;
  }

  .timeline::before {
    left: 19px;
  }

  .timeline-icon,
  .timeline-item:nth-child(even) .timeline-icon {
    left: 0;

    width: 39px;
    height: 39px;

    font-size: 0.9rem;
  }

  .timeline-content {
    padding: 20px;
  }

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

  .industry-card {
    min-height: auto;
  }

  .contact-container {
    width: 94%;
  }

  .contact-details>div {
    padding: 15px;
  }
}

/* =========================================================
   19. Reduced motion
   ========================================================= */

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

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

  .service-item {
    opacity: 1;
    transform: none;
  }

  .carousel-item {
    transition: none;
  }
}