:root {
  --bg: #f5f7fb;
  --text: #1f2937;
  --primary: #0f4c81;
  --secondary: #00a3a3;
  --card: #ffffff;
  --muted: #6b7280;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

header {
  background: #ffffff;
  color: var(--text);
  padding: 26px 16px;
  border-bottom: 1px solid #dbe7f3;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 8px;
  background: #f3f6fb;
  padding: 4px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

.brand {
  margin: 0;
  font-size: 1.8rem;
  color: #0b3355;
}

.tagline {
  margin: 2px 0 0;
  color: #0f4c81;
  font-weight: 700;
  font-size: 1.05rem;
}

nav {
  background: #0a3558;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

nav li {
  margin: 0;
}

nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 12px 14px;
  font-size: 0.95rem;
  min-height: 44px;
}

nav a:hover,
nav a.active {
  background: rgba(255, 255, 255, 0.15);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #00a3a3;
  outline-offset: 3px;
}

main a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

main {
  padding: 28px 0 40px;
}

main > .card {
  width: min(1080px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.hero,
.card {
  background: var(--card);
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(15, 76, 129, 0.08);
  margin-bottom: 18px;
  max-width: 100%;
}

/* Keep content images proportional inside panels/pages */
main .hero img,
main .card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  border-radius: 8px;
  margin: 12px 0;
}

/* Uniform image size for service panels */
.grid .card img.panel-image {
  height: 180px;
  object-fit: contain;
  background: #f3f6fb;
  padding: 6px;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: #0b3355;
  overflow-wrap: anywhere;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.muted {
  color: var(--muted);
}

.cta {
  background: #e8f4ff;
  border-left: 4px solid var(--secondary);
  padding: 16px;
  border-radius: 8px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.trust-strip div {
  background: #ffffff;
  border: 1px solid #dbe7f3;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(15, 76, 129, 0.06);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  color: #0b3355;
  margin-bottom: 4px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-section details {
  border-top: 1px solid #dbe7f3;
  padding: 12px 0;
}

.faq-section details:first-of-type {
  border-top: 0;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 700;
  color: #0b3355;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.related-searches ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

.related-searches li {
  border: 1px solid #cfe0ef;
  border-radius: 999px;
  background: #f8fbff;
  color: #0b3355;
  padding: 7px 11px;
  font-size: 0.92rem;
  font-weight: 700;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.nfc-ad-banner {
  margin: 18px 0;
  border-radius: 8px;
  overflow: hidden;
  background: #0a3558;
  box-shadow: 0 12px 28px rgba(10, 53, 88, 0.16);
}

.nfc-ad-banner a,
.nfc-ad-banner img {
  display: block;
}

.nfc-ad-banner a {
  min-height: 0;
}

.nfc-ad-banner img {
  width: 100%;
  height: auto;
}

.nfc-page-ad {
  margin-top: 24px;
  margin-bottom: 0;
}

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

.nfc-hero {
  margin-top: -28px;
  background: linear-gradient(120deg, rgba(10, 53, 88, 0.96), rgba(6, 92, 108, 0.92)), #0a3558;
  color: #ffffff;
  overflow: hidden;
}

.nfc-hero-inner {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 28px;
  align-items: center;
  padding-top: 46px;
  padding-bottom: 46px;
}

.nfc-hero h2 {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.02;
  margin-bottom: 18px;
}

.nfc-hero p {
  max-width: 680px;
  color: #d8eef5;
  font-size: 1.08rem;
}

.nfc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.nfc-actions a {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  color: #0a3558;
  background: #ffffff;
  text-decoration: none;
  font-weight: 800;
}

.nfc-actions a:nth-child(2) {
  color: #ffffff;
  background: #087f5b;
}

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

.nfc-hero-media img {
  width: min(100%, 520px);
  height: auto;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.24));
}

.nfc-intro,
.nfc-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 22px;
  align-items: center;
  margin: 24px 0;
}

.nfc-intro figure,
.nfc-split figure {
  margin: 0;
}

.nfc-intro img,
.nfc-split img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #dbe7f3;
}

.nfc-intro figcaption {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 8px;
}

.nfc-feature-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #cfe0ef;
  border: 1px solid #cfe0ef;
  border-radius: 8px;
  overflow: hidden;
  margin: 24px 0;
}

.nfc-feature-band div {
  background: #ffffff;
  padding: 20px;
}

.nfc-feature-band span {
  display: block;
  color: var(--secondary);
  font-weight: 800;
  margin-bottom: 8px;
}

.nfc-feature-band strong {
  color: #0b3355;
}

.nfc-list {
  display: grid;
  gap: 12px;
}

.nfc-list article,
.nfc-card-grid article,
.nfc-step-grid article,
.nfc-package-grid article,
.nfc-benefits {
  background: #ffffff;
  border: 1px solid #dbe7f3;
  border-radius: 8px;
  padding: 18px;
}

.nfc-steps,
.nfc-grid-section,
.nfc-packages {
  margin: 26px 0;
}

.nfc-step-grid,
.nfc-card-grid,
.nfc-package-grid {
  display: grid;
  gap: 14px;
}

.nfc-step-grid {
  grid-template-columns: repeat(3, 1fr);
}

.nfc-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.nfc-package-grid {
  grid-template-columns: repeat(3, 1fr);
}

.nfc-step-grid span {
  color: var(--secondary);
  font-weight: 900;
  font-size: 1.4rem;
}

.nfc-package-grid article:nth-child(2) {
  border-color: var(--secondary);
  box-shadow: 0 12px 30px rgba(0, 163, 163, 0.12);
}

.quick-contact {
  position: fixed;
  right: 16px;
  bottom: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: calc(100% - 32px);
}

.quick-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #0a3558;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(10, 53, 88, 0.2);
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}

.quick-contact a:nth-child(2) {
  background: #087f5b;
}

.quick-contact a:hover {
  filter: brightness(1.08);
}

footer {
  background: #0a2238;
  color: #d8e8f8;
  padding: 22px 16px;
  font-size: 0.95rem;
  padding-bottom: 96px;
}

footer a {
  color: #a8e2ff;
}

ul {
  padding-left: 20px;
}

/* Testimonial carousel */
.testimonial-carousel {
  background: #f8fbff;
  border: 1px solid #dbe7f3;
  border-radius: 10px;
  padding: 18px;
}

.testimonial-message {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0b3355;
}

.testimonial-meta {
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.testimonial-dot {
  color: #9aa4b2;
}

.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.carousel-controls button {
  background: #0a3558;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  min-height: 44px;
}

.carousel-controls button:hover {
  background: rgba(10, 53, 88, 0.92);
}

.testimonials-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.testimonial-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(15, 76, 129, 0.08);
  border: 1px solid #e6f0ff;
}

.testimonial-card .testimonial-message {
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 1.02rem;
}

@media (max-width: 720px) {
  header {
    padding: 18px 12px;
  }

  .brand-logo {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
  }

  .brand {
    font-size: 1.4rem;
  }

  .tagline {
    font-size: 0.95rem;
  }

  .brand-link {
    align-items: flex-start;
    width: 100%;
  }

  nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  nav a {
    white-space: nowrap;
    padding: 12px 12px;
  }

  main {
    padding: 20px 0 32px;
  }

  .hero,
  .card {
    padding: 16px;
  }

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

  .grid .card img.panel-image {
    height: 150px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .nfc-hero {
    margin-top: -20px;
  }

  .nfc-hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .nfc-hero h2 {
    font-size: 2.15rem;
  }

  .nfc-intro,
  .nfc-split,
  .nfc-feature-band,
  .nfc-step-grid,
  .nfc-package-grid {
    grid-template-columns: 1fr;
  }

  .nfc-actions a {
    width: 100%;
    justify-content: center;
  }

  .quick-contact {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    max-width: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-contact a {
    padding: 10px 8px;
    font-size: 0.9rem;
  }

  footer {
    padding-bottom: 92px;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 1.25rem;
  }

  .tagline {
    font-size: 0.9rem;
  }

  nav a {
    font-size: 0.92rem;
  }

  .quick-contact {
    gap: 6px;
  }

  .quick-contact a {
    font-size: 0.82rem;
    padding: 10px 6px;
  }
}

@media (max-width: 330px) {
  .brand-logo {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
  }

  .brand {
    font-size: 1.12rem;
  }

  .tagline {
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
