/* =========================================================
   SITOCA — Inicio / Header / Footer
   Diseño inspirado en la web actual de SITOCA.
   Reemplaza las imágenes de prueba del HTML cuando quieras.
   ========================================================= */

:root {
  --black: #1F2421;
  --black-soft: #1E2228;
  --paper: #F8F9FA;
  --paper-2: #FFFFFF;
  --white: #FFFFFF;
  --line: #E2E6EA;
  --line-light: rgba(255, 255, 255, .20);
  --muted: #5A626A;
  --accent: #D62828;
  --accent-hover: #A61C1C;
  --max: 1320px;
  --sans: "Manrope", Arial, sans-serif;
  --mono: "DM Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--black);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

.container {
  width: min(calc(100% - 64px), var(--max));
  margin-inline: auto;
}

/* ---------- HEADER ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  color: var(--white);
  background: rgba(30, 34, 40, .92);
  border-bottom: 1px solid var(--line-light);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand-logo {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.footer-logo>span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}

.main-nav a,
.nav-dropdown-toggle {
  position: relative;
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .72;
  transition: opacity .25s ease;
}

.main-nav a:hover,
.main-nav a.active,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle[aria-expanded="true"] {
  opacity: 1;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav-dropdown-toggle>span {
  font-size: 15px;
  transition: transform .2s ease;
}

.nav-dropdown.open .nav-dropdown-toggle>span {
  transform: rotate(180deg);
}

.main-nav a.active::after,
.nav-dropdown-toggle.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 1px;
  background: var(--accent);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  z-index: 30;
  display: grid;
  width: min(360px, calc(100vw - 40px));
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line-light);
  background: var(--black-soft);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  visibility: hidden;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: .02em;
  text-transform: none;
  opacity: .82;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: rgba(255, 255, 255, .06);
  color: var(--white);
  opacity: 1;
}

.nav-dropdown-toggle:focus-visible,
.main-nav a:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 14px 17px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--white);
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: background .25s ease, color .25s ease;
}

.header-cta span {
  font-size: 16px;
  line-height: 0;
}

.header-cta:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 1px;
  background: currentColor;
  margin: 7px 0;
}

/* ---------- HERO ---------- */

.hero {
  min-height: 680px;
  height: min(100vh, 980px);
  height: min(100svh, 980px);
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background: var(--black-soft);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media picture,
.image-break picture {
  display: block;
  height: 100%;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.65);
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 10, 9, .82) 0%, rgba(9, 10, 9, .56) 48%, rgba(9, 10, 9, .20) 100%),
    linear-gradient(0deg, rgba(9, 10, 9, .72) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(90px, 12vh, 145px);
}

.eyebrow,
.section-kicker,
.footer-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 23px;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(54px, 7vw, 104px);
  font-weight: 700;
  line-height: .91;
  letter-spacing: -.07em;
  animation: service-hero-enter .65s .08s cubic-bezier(.2, .7, .2, 1) both;
}

.hero .eyebrow {
  animation: service-hero-enter .55s cubic-bezier(.2, .7, .2, 1) both;
}

.hero h1 em,
h2 em {
  font-style: normal;
  font-weight: 400;
}

.hero-text {
  max-width: 450px;
  margin-top: 32px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .72);
  animation: service-hero-enter .55s .16s cubic-bezier(.2, .7, .2, 1) both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 38px;
  animation: service-hero-enter .55s .24s cubic-bezier(.2, .7, .2, 1) both;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-height: 50px;
  padding: 0 19px;
  border: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.button span,
.arrow-link span,
.text-link span {
  font-size: 16px;
}

.button-light {
  color: var(--white);
  border-color: var(--accent);
  background: var(--accent);
}

.button-light:hover {
  color: var(--white);
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
}

.text-link {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.light {
  color: rgba(255, 255, 255, .65);
}

.hero-index,
.scroll-note {
  position: absolute;
  z-index: 2;
  bottom: 34px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .60);
}

.hero-index {
  left: 32px;
}

.hero-index span {
  margin: 0 5px;
  color: var(--accent);
}

.scroll-note {
  right: 32px;
}

.scroll-note span {
  margin-left: 12px;
  color: var(--accent);
}

@media (min-width: 641px) and (max-height: 800px) {
  .hero {
    min-height: 620px;
    height: 100vh;
    height: 100svh;
  }

  .hero-content {
    padding-bottom: clamp(36px, 6vh, 54px);
  }

  .hero .eyebrow {
    margin-bottom: 15px;
  }

  .hero h1 {
    font-size: clamp(50px, 5.8vw, 78px);
  }

  .hero-text {
    margin-top: 22px;
  }

  .hero-actions {
    margin-top: 25px;
  }
}

/* ---------- GENERAL SECTIONS ---------- */

.section-pad {
  padding: 130px 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(180px, .65fr) minmax(0, 1.65fr);
  gap: 90px;
}

.section-kicker {
  margin-top: 15px;
  color: var(--muted);
}

h2 {
  font-size: clamp(43px, 5.3vw, 78px);
  line-height: .98;
  letter-spacing: -.065em;
  font-weight: 600;
}

h2 span {
  font-weight: 400;
}

.intro {
  background: var(--paper);
}

.intro-copy {
  max-width: 920px;
}

.intro-copy h2 span {
  color: var(--accent);
}

.intro-points {
  margin-top: 42px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.intro-points li {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: start;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 17px;
}

.intro-check {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  margin-top: 42px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.arrow-link:hover {
  color: var(--accent-hover);
}

/* ---------- SERVICES ---------- */

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

.services .section-kicker {
  color: rgba(255, 255, 255, .42);
}

.services .section-heading {
  display: grid;
  grid-template-columns: minmax(180px, .65fr) minmax(0, 1.65fr);
  gap: 90px;
}

.services .section-heading h2 {
  max-width: 850px;
}

.services .section-heading>div:last-child>p {
  max-width: 640px;
  margin-top: 30px;
  color: rgba(255, 255, 255, .58);
}

.service-list {
  margin-top: 90px;
  border-top: 1px solid var(--line-light);
}

.service-item {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  align-items: center;
  gap: 20px;
  min-height: 92px;
  border-bottom: 1px solid var(--line-light);
  transition: padding .25s ease, background .25s ease;
}

.service-item:hover {
  padding-inline: 20px;
  background: rgba(255, 255, 255, .035);
}

.service-number {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
}

.service-item>span:nth-child(2) {
  font-size: clamp(17px, 1.55vw, 23px);
  letter-spacing: -.025em;
}

.service-arrow {
  text-align: right;
  font-size: 20px;
  opacity: .65;
}

/* ---------- SERVICE DETAILS PAGE ---------- */

.service-detail-page .site-header {
  position: relative;
}

.service-detail-hero {
  padding: 76px 0 82px;
  background: var(--black-soft);
  color: var(--white);
}

@keyframes service-hero-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

.service-detail-hero .eyebrow {
  color: var(--accent);
  animation: service-hero-enter .55s cubic-bezier(.2, .7, .2, 1) both;
}

.service-detail-hero h1 {
  max-width: 900px;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  animation: service-hero-enter .55s .08s cubic-bezier(.2, .7, .2, 1) both;
}

.service-detail-hero h1 span {
  color: var(--accent);
}

.service-detail-hero p:last-child {
  max-width: 660px;
  margin-top: 24px;
  color: rgba(255, 255, 255, .68);
  font-size: 18px;
  animation: service-hero-enter .55s .16s cubic-bezier(.2, .7, .2, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow,
  .hero h1,
  .hero-text,
  .hero-actions,
  .service-detail-hero .eyebrow,
  .service-detail-hero h1,
  .service-detail-hero p:last-child {
    animation: none;
  }
}

.service-detail-list {
  background: var(--paper);
}

.service-detail-section {
  padding: 92px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.service-detail-section:nth-child(even) {
  border-color: rgba(255, 255, 255, .12);
  background: var(--black-soft);
  color: var(--white);
}

.service-detail-section:nth-child(even) .service-detail-description,
.service-detail-section:nth-child(even) .service-accordion summary,
.service-detail-section:nth-child(even) .service-accordion li {
  color: rgba(255, 255, 255, .72);
}

.service-detail-section:nth-child(even) .service-accordion summary {
  color: var(--white);
}

.service-detail-section:nth-child(even) .service-accordions,
.service-detail-section:nth-child(even) .service-accordion {
  border-color: rgba(255, 255, 255, .16);
}

.service-detail-section:nth-child(even) .service-back-link {
  color: rgba(255, 255, 255, .54);
}

.service-detail-page main > .service-detail-section {
  border-color: var(--line);
  background: var(--paper-2);
  color: var(--black);
}

.service-detail-page main > .service-detail-section .service-detail-description,
.service-detail-page main > .service-detail-section .service-accordion li,
.service-detail-page main > .service-detail-section .service-back-link {
  color: var(--muted);
}

.service-detail-page main > .service-detail-section .service-accordion summary {
  color: var(--black);
}

.service-detail-page main > .service-detail-section .service-accordions,
.service-detail-page main > .service-detail-section .service-accordion {
  border-color: var(--line);
}

.service-detail-layout {
  display: grid;
  grid-template-columns: minmax(250px, .78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: 64px;
}

.service-detail-section:nth-child(even) .service-detail-photo {
  order: 2;
}

.service-detail-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-detail-photo picture {
  display: block;
}

.service-detail-photo {
  overflow: hidden;
  border-radius: 45px;
}

.service-detail-copy .eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
}

.service-detail-copy h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.04em;
}

.service-detail-description {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.service-accordions {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.service-accordion {
  border-bottom: 1px solid var(--line);
}

.service-accordion summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
}

.service-accordion summary::-webkit-details-marker {
  display: none;
}

.service-accordion summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
}

.service-accordion[open] summary::after {
  content: "−";
}

.service-accordion ul {
  padding: 0 28px 14px 0;
  list-style: none;
}

.service-accordion li {
  position: relative;
  padding: 6px 0 6px 17px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.service-accordion li::before {
  position: absolute;
  top: 14px;
  left: 1px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  content: "";
}

.service-back-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.service-back-link:hover {
  color: var(--accent-hover);
}

.service-detail-cta {
  padding: 76px 0;
  background: var(--black-soft);
  color: var(--white);
}

.service-detail-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.service-detail-cta h2 {
  font-size: 40px;
  font-weight: 800;
}

.service-detail-cta .button {
  flex: 0 0 auto;
}

/* ---------- IMAGE BREAK ---------- */

.image-break {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: #222;
  color: var(--white);
}

.image-break img {
  height: 100%;
  object-fit: cover;
  filter: saturate(.55);
}

.image-break-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .05));
}

.image-break-content {
  position: absolute;
  inset: auto 0 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
}

/* ---------- MISSION AND VISION ---------- */

.mission-vision {
  background: var(--black-soft);
  color: var(--white);
}

.mission-heading {
  margin-bottom: 58px;
}

.mission-heading h2 {
  text-transform: uppercase;
}

.mission-heading h2 span {
  color: var(--accent);
}

.mission-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.mission-card {
  position: relative;
  padding: 56px 52px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .035);
}

.mission-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 66px;
  height: 4px;
  background: var(--accent);
}

.mission-card:last-child {
  border-color: rgba(214, 40, 40, .72);
}

.mission-icon {
  display: grid;
  width: 72px;
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 38px;
  background: var(--accent);
}

.mission-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mission-card h3 {
  margin-bottom: 24px;
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
}

.mission-card p {
  color: rgba(255, 255, 255, .68);
  font-size: 17px;
  line-height: 1.9;
}

/* ---------- CTA ---------- */

.contact-cta {
  position: relative;
  padding: 130px 0 145px;
  background: var(--black-soft);
  color: var(--white);
  overflow: hidden;
}

.contact-cta::after {
  content: "S";
  position: absolute;
  right: -30px;
  bottom: -190px;
  font-size: 620px;
  line-height: .8;
  font-weight: 800;
  color: rgba(255, 255, 255, .025);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
}

.contact-inner h2 {
  max-width: 900px;
  margin-top: 18px;
}

.contact-inner>p:not(.eyebrow):not(.section-kicker) {
  max-width: 610px;
  margin-top: 35px;
  color: rgba(255, 255, 255, .62);
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 32px;
}

.contact-details a {
  display: grid;
  gap: 5px;
  color: rgba(255, 255, 255, .86);
  font-size: 15px;
}

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

.contact-detail-label {
  color: rgba(255, 255, 255, .48);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
}

.contact-inner .button {
  margin-top: 40px;
}

/* ---------- FOOTER ---------- */

.site-footer {
  background: var(--black-soft);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr .8fr .9fr;
  gap: 50px;
  padding: 75px 0 80px;
}

.footer-brand-mark {
  display: inline-grid;
  width: 88px;
  height: 88px;
  place-items: center;
  padding: 4px;
  background: var(--white);
}

.footer-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-brand p {
  max-width: 300px;
  margin-top: 16px;
  color: rgba(255, 255, 255, .46);
  font-size: 13px;
}

.footer-label {
  position: relative;
  margin-bottom: 22px;
  padding-bottom: 12px;
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
}

.footer-label::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-links a,
.footer-contact a {
  margin: 4px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .70);
  transition: color .2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--accent);
}

.footer-links a span,
.footer-cta a span {
  margin-left: 9px;
  color: var(--accent);
}

.footer-cta {
  border-left: 1px solid var(--line-light);
  padding-left: 35px;
}

.footer-cta p {
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .07em;
  color: rgba(255, 255, 255, .46);
}

.footer-cta a {
  font-size: 22px;
  letter-spacing: -.03em;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .09);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .31);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 980px) {
  .container {
    width: min(calc(100% - 40px), var(--max));
  }

  .nav-wrap {
    min-height: 78px;
  }

  .brand-logo {
    width: 54px;
    height: 54px;
  }

  .main-nav {
    position: fixed;
    top: 78px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--black-soft);
    border: 1px solid var(--line-light);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    min-height: 24px;
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    width: 100%;
    max-height: 0;
    gap: 0;
    margin-top: 0;
    padding: 0 8px;
    border-color: transparent;
    box-shadow: none;
    opacity: 1;
    overflow: hidden;
    pointer-events: none;
    transform: none;
    transition: max-height .24s ease, margin .24s ease, padding .24s ease;
    visibility: hidden;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 420px;
    margin-top: 8px;
    padding: 8px;
    border-color: var(--line-light);
    pointer-events: auto;
    visibility: visible;
  }

  .nav-dropdown-menu a {
    padding: 9px 10px;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
    color: white;
  }

  .section-grid,
  .services .section-heading,
  .mission-cards {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .service-detail-hero {
    padding: 64px 0;
  }

  .service-detail-hero h1 {
    font-size: 52px;
  }

  .service-detail-section {
    padding: 64px 0;
  }

  .service-detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-detail-section:nth-child(even) .service-detail-photo {
    order: 0;
  }

  .service-detail-photo img {
    aspect-ratio: 16 / 10;
  }

  .service-detail-copy h2 {
    font-size: 36px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-cta {
    border-left: 0;
    border-top: 1px solid var(--line-light);
    padding: 30px 0 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 30px), var(--max));
  }

  .hero {
    min-height: 720px;
  }

  .hero h1 {
    font-size: clamp(48px, 14vw, 72px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 23px;
  }

  .hero-index {
    left: 15px;
    bottom: 20px;
  }

  .scroll-note {
    display: none;
  }

  .section-pad {
    padding: 85px 0;
  }

  .intro-points {
    margin-top: 30px;
  }

  .intro-points li {
    grid-template-columns: 24px 1fr;
    gap: 14px;
    padding: 22px 0;
    font-size: 15px;
  }

  .mission-heading {
    margin-bottom: 38px;
  }

  .mission-cards {
    gap: 24px;
  }

  .mission-card {
    padding: 36px 28px;
  }

  .mission-card p {
    font-size: 15px;
    line-height: 1.75;
  }

  h2 {
    font-size: clamp(41px, 12vw, 58px);
  }

  .service-list {
    margin-top: 55px;
  }

  .service-item {
    grid-template-columns: 38px 1fr 25px;
    min-height: 82px;
    gap: 10px;
  }

  .service-item>span:nth-child(2) {
    font-size: 15px;
  }

  .image-break {
    height: 390px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 60px 0;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .service-detail-hero {
    padding: 52px 0;
  }

  .service-detail-hero h1 {
    font-size: 42px;
  }

  .service-detail-hero p:last-child {
    font-size: 16px;
  }

  .service-detail-section {
    padding: 52px 0;
  }

  .service-detail-copy h2 {
    font-size: 31px;
  }

  .service-accordion summary {
    gap: 10px;
    font-size: 13px;
  }

  .service-detail-cta {
    padding: 56px 0;
  }

  .service-detail-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-detail-cta h2 {
    font-size: 34px;
  }
}

@media (min-width: 641px) and (max-height: 800px) {

  .mission-vision.section-pad {
    padding: 84px 0 84px;
  }

  .services.section-pad {
    padding: 84px 0 94px;
  }

  .mission-heading {
    margin-bottom: 24px;
  }

  .mission-cards {
    gap: 22px;
  }

  .mission-card {
    padding: 28px;
  }

  .mission-icon {
    width: 50px;
    margin-bottom: 14px;
  }

  .mission-icon svg {
    width: 26px;
    height: 26px;
  }

  .mission-card h3 {
    margin-bottom: 10px;
    font-size: 26px;
  }

  .mission-card p {
    font-size: 15px;
    line-height: 1.55;
  }

  .services .section-heading {
    gap: 22px;
  }

  .services .section-heading h2 {
    font-size: clamp(40px, 4.5vw, 58px);
  }

  .services .section-heading>div:last-child>p {
    margin-top: 16px;
    font-size: 15px;
  }

  .service-list {
    margin-top: 24px;
  }

  .service-item {
    min-height: 50px;
  }
}

@media (min-width: 641px) and (max-width: 980px) and (max-height: 800px) {
  .mission-card {
    padding: 22px;
  }

  .mission-icon {
    width: 44px;
    margin-bottom: 10px;
  }

  .mission-icon svg {
    width: 24px;
    height: 24px;
  }

  .mission-card h3 {
    font-size: 23px;
  }

  .mission-card p {
    font-size: 14px;
    line-height: 1.45;
  }

  .services .section-heading {
    gap: 16px;
  }

}

@media (max-width: 640px) {

  .mission-vision.section-pad {
    padding: 66px 0 66px;
  }

  .services.section-pad {
    padding: 84px 0 84px;
  }

  .mission-heading {
    margin-bottom: 18px;
  }

  .mission-heading h2 {
    font-size: 38px;
  }

  .mission-cards {
    gap: 12px;
  }

  .mission-card {
    padding: 20px;
  }

  .mission-icon {
    width: 40px;
    margin-bottom: 10px;
  }

  .mission-icon svg {
    width: 22px;
    height: 22px;
  }

  .mission-card h3 {
    margin-bottom: 6px;
    font-size: 22px;
  }

  .mission-card p {
    font-size: 14px;
    line-height: 1.45;
  }

  .services .section-heading {
    gap: 20px;
  }

  .services .section-heading h2 {
    font-size: 36px;
  }

  .services .section-heading>div:last-child>p {
    margin-top: 12px;
    font-size: 14px;
  }

  .service-list {
    margin-top: 24px;
  }

  .service-item {
    min-height: 56px;
    gap: 8px;
    padding-block: 6px;
  }

  .service-item>span:nth-child(2) {
    font-size: 14px;
  }
}

@media (max-width: 640px) and (max-height: 700px) {

  .mission-vision.section-pad {
    padding: 54px 0 54px;
  }

  .services.section-pad {
    padding: 84px 0 84px;
  }

  .mission-heading {
    margin-bottom: 12px;
  }

  .mission-heading h2 {
    font-size: 34px;
  }

  .mission-cards {
    gap: 8px;
  }

  .mission-card {
    padding: 14px 16px;
  }

  .mission-icon {
    width: 34px;
    margin-bottom: 6px;
  }

  .mission-card h3 {
    margin-bottom: 4px;
    font-size: 19px;
  }

  .mission-card p {
    font-size: 12.5px;
    line-height: 1.35;
  }

  .services .section-heading {
    gap: 14px;
  }

  .services .section-heading h2 {
    font-size: 32px;
  }

  .services .section-heading>div:last-child>p {
    margin-top: 8px;
    font-size: 13px;
  }

  .service-list {
    margin-top: 16px;
  }

  .service-item {
    min-height: 48px;
    padding-block: 4px;
  }

  .service-item>span:nth-child(2) {
    font-size: 13px;
  }
}