@import url("./index.css");
@import url("./services.css");
@import url("./about.css");
@import url("./contact.css");
@import url("./legal.css");

:root {
  --bg: #f3f7fb;
  --surface: #ffffff;
  --text: #1d2b39;
  --muted: #5b6e81;
  --primary: #0f6db5;
  --primary-dark: #0c5188;
  --border: #d8e2ec;
  --shadow: 0 12px 30px rgba(22, 53, 84, 0.08);
}

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

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  animation: pageFadeIn 0.22s ease both;
  transition: opacity 0.2s ease;
}

body.is-leaving {
  opacity: 0;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
    transition: none;
  }
}

.js [data-reveal] {
  --reveal-transform: translate3d(0, 18px, 0);
  opacity: 0;
  transform: var(--reveal-transform);
  filter: blur(1px);
  will-change: opacity, transform, filter;
  transition:
    opacity 0.84s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.84s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.84s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal="up"] {
  --reveal-transform: translate3d(0, 18px, 0);
}

.js [data-reveal="left"] {
  --reveal-transform: translate3d(-18px, 0, 0);
}

.js [data-reveal="right"] {
  --reveal-transform: translate3d(18px, 0, 0);
}

.js [data-reveal="zoom"] {
  --reveal-transform: scale(0.96);
}

.js [data-reveal="pop"] {
  --reveal-transform: translate3d(0, 10px, 0) scale(0.98);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

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

.logo {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
}

.logo img {
  display: block;
  width: auto;
  height: 44px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--surface);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.5rem 0.8rem;
  border-radius: 0.5rem;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary-dark);
  background: #e6f1fb;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-summary {
  list-style: none;
  color: var(--muted);
  padding: 0.5rem 0.8rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-dropdown-summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown-summary::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.nav-dropdown[open] > .nav-dropdown-summary,
.nav-dropdown.active > .nav-dropdown-summary,
.nav-dropdown-summary:hover {
  color: var(--primary-dark);
  background: #e6f1fb;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  z-index: 30;
  min-width: 290px;
  display: grid;
  gap: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  padding: 0.45rem;
  box-shadow: var(--shadow);
}

.nav-dropdown:not([open]) .nav-dropdown-menu {
  display: none;
}

.header-cta {
  text-decoration: none;
  color: #fff;
  background: #df4d2f;
  border: 1px solid #df4d2f;
  border-radius: 0.6rem;
  padding: 0.55rem 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.header-cta:hover {
  background: #c63f23;
  border-color: #c63f23;
}

.page-intro {
  padding: 3rem 0 1rem;
}

.page-intro h1 {
  margin: 0.35rem 0 0.7rem;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.lead {
  margin: 0;
  color: var(--muted);
  max-width: 66ch;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 0.7rem;
  padding: 0.85rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover {
  background: var(--primary-dark);
}

.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 0 1.2rem;
  background: #0b3f84;
  color: #d4e3f8;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.footer-brand p {
  margin: 1rem 0 0;
  max-width: 24ch;
  color: #b9cde9;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.footer-logo img {
  display: block;
  width: auto;
  height: 44px;
}

.footer-col h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  color: #fff;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  color: #c5d8f2;
}

.footer-contact-item {
  margin: 0 0 0.55rem;
  color: #c5d8f2;
  max-width: 28ch;
}

.footer-legal {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy {
  margin: 0;
  color: #c5d8f2;
  font-size: 0.95rem;
}

.footer-policy {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #c5d8f2;
}

.footer-disclaimer {
  margin: 0.95rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9eb7da;
  font-size: 0.79rem;
  line-height: 1.5;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 2rem));
  z-index: 1200;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.9rem;
  align-items: center;
  background: #ffffff;
  border: 1px solid #d4e3f2;
  border-radius: 0.95rem;
  box-shadow: 0 14px 34px rgba(13, 66, 110, 0.2);
  padding: 0.9rem 1rem;
}

.cookie-banner-text {
  margin: 0;
  color: #2a3f53;
  font-size: 0.94rem;
}

.cookie-banner-text a {
  color: var(--primary-dark);
  font-weight: 700;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.cookie-btn {
  border: 1px solid transparent;
  border-radius: 0.65rem;
  padding: 0.58rem 0.88rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cookie-btn-primary {
  background: linear-gradient(135deg, #0f6db5 0%, #1d8ed8 100%);
  color: #ffffff;
}

.cookie-btn-primary:hover {
  filter: brightness(0.95);
}

.cookie-btn-ghost {
  background: #f2f8ff;
  color: #0c5188;
  border-color: #c8dff3;
}

.cookie-btn-ghost:hover {
  background: #e7f2ff;
}

.page-service-detail .service-overview {
  padding-top: 1rem;
}

.page-service-detail .service-overview-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.page-service-detail .service-overview-content::after {
  content: "";
  display: block;
  clear: both;
}

.page-service-detail .service-float-media {
  float: right;
  width: min(44%, 360px);
  margin: 0 0 0.9rem 1rem;
}

.page-service-detail .service-float-media img {
  width: 100%;
  display: block;
  border-radius: 0.75rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #d8e2ec;
}

.page-service-detail .service-float-media figcaption {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.page-service-detail .service-overview-content h2 {
  margin: 0 0 0.75rem;
  color: var(--primary-dark);
}

.page-service-detail .service-overview-content p {
  margin: 0 0 0.7rem;
  color: var(--muted);
}

.page-service-detail .service-overview-list {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
}

.page-service-detail .service-cases,
.page-service-detail .service-deep-dive,
.page-service-detail .service-faq {
  padding-top: 1.2rem;
}

.page-service-detail .service-cases h2,
.page-service-detail .service-deep-dive h2,
.page-service-detail .service-faq h2 {
  margin: 0 0 0.8rem;
  color: var(--primary-dark);
}

.page-service-detail .service-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.page-service-detail .service-case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.page-service-detail .service-case-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.03rem;
  color: var(--text);
}

.page-service-detail .service-case-card p {
  margin: 0;
  color: var(--muted);
}

.page-service-detail .case-solution {
  display: block;
  margin-top: 0.55rem;
  margin-bottom: 0.2rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.page-service-detail .service-deep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.page-service-detail .service-deep-grid article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.page-service-detail .service-deep-grid h3 {
  margin: 0 0 0.45rem;
  font-size: 1.03rem;
  color: var(--text);
}

.page-service-detail .service-deep-grid p {
  margin: 0;
  color: var(--muted);
}

.page-service-detail .service-faq-list {
  display: grid;
  gap: 0.7rem;
}

.page-service-detail .service-faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.85rem 0.95rem;
}

.page-service-detail .service-faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}

.page-service-detail .service-faq-list p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.page-service-detail .service-cta-banner {
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, #0d5f9d, #0f7ec7);
  border-radius: 1rem;
  padding: 1.25rem;
  color: #fff;
}

.page-service-detail .service-cta-inner {
  display: grid;
  grid-template-columns: 1.35fr auto;
  gap: 1rem;
  align-items: center;
}

.page-service-detail .service-cta-inner h2 {
  margin: 0.3rem 0 0.55rem;
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
}

.page-service-detail .service-cta-inner p {
  margin: 0;
  color: #e5f2fe;
  max-width: 62ch;
}

.page-service-detail .service-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.page-service-detail .service-cta-actions .btn {
  margin-top: 0;
  background: #fff;
  color: #0f6db5;
}

.page-service-detail .service-cta-actions .btn:hover {
  background: #e9f3fd;
}

.page-service-detail .service-cta-actions .btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.page-service-detail .service-cta-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

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

  .page-service-detail .service-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 760px) {
  .nav-wrap {
    padding: 0.75rem 0;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .nav-top {
    width: 100%;
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    order: 3;
    display: none;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin-top: 0.6rem;
    margin-left: 0;
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    padding: 0.45rem;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: block;
    max-height: calc(100dvh - 170px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .site-nav > a,
  .site-nav > .nav-dropdown {
    display: block;
    width: 100%;
  }

  .site-nav a {
    width: 100%;
  }

  .nav-dropdown {
    width: 100%;
    max-width: 100%;
  }

  .nav-dropdown-summary {
    width: 100%;
  }

  .nav-dropdown-menu {
    display: none;
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 0.3rem;
    min-width: 0;
    box-shadow: none;
    border-radius: 0.6rem;
    overflow-x: hidden;
  }

  .site-nav.open .nav-dropdown[open] .nav-dropdown-menu {
    display: grid;
    grid-template-columns: 1fr;
    max-height: 45dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-dropdown-menu a {
    display: block;
    width: 100%;
    padding: 0.55rem 0.75rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .header-cta {
    order: 2;
    width: fit-content;
    margin-top: 0.6rem;
  }

  .logo img,
  .footer-logo img {
    height: 38px;
  }

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

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-service-detail .service-float-media {
    float: none;
    width: 100%;
    margin: 0 0 0.8rem;
  }

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

  .cookie-banner {
    grid-template-columns: 1fr;
    padding: 0.85rem;
  }

  .cookie-banner-actions {
    justify-content: flex-start;
  }
}
