/* ==========================================================================
   Wound Care Service — stylesheet
   Palette sampled from brand logo (assets/Images/Logo.png)
   ========================================================================== */

:root {
  --blue: #1479D6;
  --blue-deep: #0B5AA8;
  --blue-pale: #E7F2FC;

  --green: #4CAF32;
  --green-deep: #35861F;
  --green-pale: #EAF7E6;

  --teal: #0B5AA8;
  --teal-deep: #063E78;
  --teal-light: #1479D6;
  --teal-pale: #E7F2FC;

  --ink: #12212F;
  --ink-soft: #4E5E6C;
  --bg: #FFFFFF;
  --bg-alt: #F2F7FD;
  --line: rgba(11, 90, 168, 0.14);
  --line-soft: rgba(11, 90, 168, 0.08);

  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1360px;
  --radius: 18px;
  --radius-sm: 12px;

  --shadow-sm: 0 1px 2px rgba(8, 40, 74, 0.07);
  --shadow-md: 0 14px 34px rgba(8, 40, 74, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: #fff;
  padding: 12px 18px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

.char { opacity: 0; }
.type-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: currentColor;
  margin-left: 3px;
  vertical-align: -0.08em;
  opacity: 0;
}

p { margin: 0; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin: 0 0 12px;
}

.section-lead { margin-top: 14px; font-size: 1.02rem; max-width: 56ch; }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn svg { flex: none; }
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--teal-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--teal); background: var(--teal-pale); }
.btn-light {
  background: #fff;
  color: var(--teal-deep);
}
.btn-light:hover { background: var(--teal-pale); transform: translateY(-2px); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--teal-deep); color: #fff; font-size: 0.82rem; }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 40px;
}
.topbar-tagline { font-weight: 500; color: #fff; }
.topbar-meta { display: flex; align-items: center; gap: 26px; }
.topbar-meta li { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar-meta em { font-style: normal; opacity: 0.78; }
.topbar-meta svg { color: var(--green); flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  height: 118px;
}
.brand { display: flex; align-items: center; flex: none; }
.brand-logo { height: 92px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 30px; flex: 1 1 auto; margin-left: 20px; }
.mobile-nav, .nav-overlay { display: none; }
.main-nav a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.main-nav a.active { color: var(--teal); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:hover { color: var(--teal); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero { padding: 76px 0 88px; background: #fff; }
.hero-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-copy h1 { color: var(--ink); }
.hero-copy h1 span { color: var(--teal); }

.flip-word-wrap { display: inline-block; perspective: 600px; vertical-align: bottom; }
.flip-word { display: inline-block; transform-origin: 50% 100%; }
.flip-word.flip-anim { animation: flipWordIn 0.55s ease; }
@keyframes flipWordIn {
  0% { opacity: 0; transform: rotateX(-100deg); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: rotateX(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .flip-word.flip-anim { animation: none; }
}
.hero-lead { margin-top: 22px; font-size: 1.08rem; max-width: 48ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.trust-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.trust-row li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  flex: 1 1 0;
  min-width: 0;
}
.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--teal-pale);
  color: var(--teal);
  flex: none;
}

.hero-visual { position: relative; width: 100%; min-width: 0; max-width: 720px; margin: 0; }
.hero-photo { width: 100%; height: auto; display: block; }

/* ---------- Trust Numbers ---------- */
.trust-band { padding: 72px 0 40px; background: var(--bg-alt); overflow: visible; }
.trust-band-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.trust-band-grid > * { min-width: 0; }
.trust-numbers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 34px;
}
.trust-number-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--teal-deep);
  line-height: 1;
}
.trust-number-item strong em { font-style: normal; color: var(--blue); }
.trust-number-item strong .count-num {
  font-variant-numeric: tabular-nums;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
.trust-number-item span { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }

.trust-band-visual {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 380px;
  margin: 0 auto;
  transform: translateY(0);
  z-index: 5;
}
.trust-band-visual::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 62%;
  height: 34px;
  background: radial-gradient(closest-side, rgba(8, 40, 74, 0.28), transparent 75%);
  transform: translateX(-50%);
  z-index: -1;
}
.trust-doctor-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 26px rgba(8, 40, 74, 0.28)) drop-shadow(0 8px 10px rgba(8, 40, 74, 0.16));
}
.trust-doctor-placeholder {
  display: none;
  width: 100%;
  aspect-ratio: 4 / 5;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--ink-soft);
  text-align: center;
  padding-bottom: 20px;
  background-image: linear-gradient(180deg, var(--blue-pale), transparent 70%);
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
}
.trust-doctor-placeholder svg { color: var(--blue); opacity: 0.5; }
.trust-doctor-placeholder span { font-size: 0.82rem; font-weight: 600; max-width: 20ch; }

/* ---------- Blogs ---------- */
.blogs { padding: 108px 0; background: var(--bg-alt); }
.blogs-page { background: #fff; }
.blog-card-link { display: block; color: inherit; }
.blogs-more { text-align: center; margin-top: 48px; }

/* ---------- Article page ---------- */
.article-header { padding: 56px 0 96px; background: var(--bg-alt); }
.article-header .container { max-width: 760px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.back-link svg { transition: transform 0.2s ease; }
.back-link:hover { color: var(--teal); }
.back-link:hover svg { transform: translateX(-3px); }
.article-header h1 { font-size: clamp(2rem, 3.6vw, 2.6rem); margin-top: 16px; }
.article-lead { margin-top: 16px; font-size: 1.08rem; }
.article-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.article-cover-wrap { background: #fff; }
.article-cover { max-width: 920px; margin: -64px auto 0; padding: 0 28px; }
.article-cover img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }

.article-body-wrap { padding: 56px 0 40px; background: #fff; }
.article-body { max-width: 720px; margin: 0 auto; }
.article-body h2 { font-size: 1.5rem; margin: 40px 0 16px; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { margin-bottom: 18px; font-size: 1.03rem; line-height: 1.75; }
.article-body ul { margin: 0 0 20px; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.article-body ul li { font-size: 1.02rem; line-height: 1.6; color: var(--ink-soft); list-style: disc; }
.article-body strong { color: var(--ink); }

.article-callout {
  background: var(--blue-pale);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 0.98rem;
}
.article-callout p { margin: 0; }
.article-callout strong { color: var(--blue-deep); }

.article-footer-cta {
  max-width: 720px;
  margin: 48px auto 0;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.article-footer-cta p { margin-bottom: 18px; }

.related-posts { padding: 88px 0 104px; background: var(--bg-alt); }
.related-posts .section-head { margin-bottom: 40px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.blog-card:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-4px); }

.blog-card-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.blog-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-photo img { transform: scale(1.06); }
.blog-card-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-soft);
  text-align: center;
  padding: 20px;
}
.blog-card-placeholder svg { color: var(--blue); opacity: 0.5; }
.blog-card-placeholder span { font-size: 0.8rem; font-weight: 600; max-width: 20ch; }

.blog-card-body { padding: 24px 24px 26px; }
.blog-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: var(--blue-pale);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}
.blog-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.blog-card p { font-size: 0.92rem; }
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- Services ---------- */
.services { padding: 108px 0; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}
.service-card:nth-child(1), .service-card:nth-child(2), .service-card:nth-child(3), .service-card:nth-child(4) {
  grid-column: span 3;
}
.service-card:nth-child(5), .service-card:nth-child(6), .service-card:nth-child(7) {
  grid-column: span 4;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-4px); }

.service-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.service-card:hover .service-photo img { transform: scale(1.06); }
.service-num {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  padding: 3px 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.service-body { padding: 22px 22px 26px; }
.service-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.service-card p { font-size: 0.92rem; }

/* ---------- Page intro (About, etc.) ---------- */
.page-hero { padding: 64px 0 56px; background: var(--bg-alt); text-align: center; }
.page-hero .container { max-width: 720px; }
.page-hero h1 { font-size: clamp(2rem, 3.4vw, 2.7rem); }
.page-hero p { margin-top: 18px; font-size: 1.05rem; }

/* ---------- About split / values ---------- */
.about-story { padding: 96px 0 72px; }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 68px; align-items: center; }
.about-grid > * { min-width: 0; }
.about-visual { position: relative; max-width: 500px; }
.about-photo-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3.4; }
.about-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-copy p + p { margin-top: 14px; }
.about-copy .check-list { margin-top: 24px; }

.about-numbers { padding: 24px 0 88px; }
.about-numbers-row {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 0;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
}
.about-numbers-row .trust-number-item strong { font-size: 3rem; }

.mission-vision { padding: 72px 0 96px; background: var(--bg-alt); }
.values { padding: 96px 0; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mv-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.mv-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.mv-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--teal-pale);
  color: var(--teal);
  margin-bottom: 18px;
}
.mv-icon svg { width: 24px; height: 24px; }
.mv-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.mv-card p { font-size: 0.95rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.value-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue-deep);
  margin: 0 auto 18px;
}
.value-icon svg { width: 24px; height: 24px; }
.value-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.value-card p { font-size: 0.92rem; }

/* ---------- Why Us ---------- */
.why-us { padding: 112px 0; }
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 68px; align-items: center; }
.why-grid > * { min-width: 0; }
.why-visual { position: relative; max-width: 540px; }
.why-photo-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3.4; }
.why-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.why-badge {
  position: absolute;
  left: -24px; bottom: -24px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 240px;
}
.why-badge-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green-deep);
  flex: none;
}
.why-badge span { font-size: 0.82rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.why-badge small { font-weight: 500; color: var(--ink-soft); }

.why-copy h2 span { color: var(--blue-deep); }
.check-list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-pale);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2335861F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
.why-copy .btn { margin-top: 34px; }

/* ---------- Process ---------- */
.process { background: var(--bg-alt); padding: 108px 0; }
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
  position: relative;
}
.process-list::before {
  content: "";
  position: absolute;
  top: 24px; left: 12.5%; right: 12.5%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
}
.process-list li { position: relative; text-align: center; }
.process-index {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 6px var(--bg-alt);
}
.process-list h3 { font-size: 1.08rem; margin-bottom: 10px; }
.process-list p { font-size: 0.9rem; max-width: 26ch; margin: 0 auto; }

/* ---------- FAQ ---------- */
.faq { padding: 112px 0; }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.faq-grid > * { min-width: 0; }
.faq-lead-link { color: var(--teal); font-weight: 700; }
.section-lead a { color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--bg-alt); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid transparent; transition: border-color .2s ease; }
.faq-item.open { border-color: var(--line); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  text-align: left;
  font-weight: 700;
  font-size: 0.98rem;
}
.faq-icon {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--line);
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--teal);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.faq-icon::before { width: 10px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 10px; }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 22px;
}
.faq-answer p { font-size: 0.93rem; padding-bottom: 20px; max-width: 62ch; }
.faq-item.open .faq-answer { max-height: 240px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--teal); padding: 56px 0; }
.cta-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.cta-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  flex: none;
}
.cta-text { flex: 1 1 320px; }
.cta-text h2 { color: #fff; font-size: 1.6rem; }
.cta-text p { color: rgba(255,255,255,0.72); margin-top: 8px; }

/* ---------- Contact ---------- */
.contact { padding: 112px 0; background: var(--bg-alt); }
.contact-page { background: #fff; }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-alt { display: flex; flex-direction: column; gap: 18px; margin-top: 40px; }
.contact-alt-item {
  display: flex; align-items: center; gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: border-color .2s ease, transform .2s ease;
}
.contact-alt-item:hover { border-color: var(--teal); transform: translateX(4px); }
.contact-alt-item svg { color: var(--teal); flex: none; }
.contact-alt-item small { font-weight: 500; color: var(--ink-soft); }

.contact-form { background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 18px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  background: var(--bg-alt);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #93a29d; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%230E4A43' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field.invalid input, .field.invalid select, .field.invalid textarea {
  border-color: #c0392b;
  background: #fdf2f1;
}
.field-error {
  display: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c0392b;
}
.field.invalid .field-error { display: block; }
.contact-form .btn { align-self: flex-start; margin-top: 6px; }
.form-note { font-size: 0.86rem; color: var(--green-deep); min-height: 1.4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-deep); color: rgba(255,255,255,0.82); padding: 76px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.25fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo-mark { height: 76px; width: auto; margin-bottom: 14px; }
.footer-name { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.05rem; }
.footer-name span { color: var(--green); }
.footer-desc { margin-top: 12px; font-size: 0.88rem; color: rgba(255,255,255,0.58); max-width: 34ch; }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease;
}
.social-row a:hover { background: var(--green); }

.footer-col h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.5; }
.footer-contact svg { color: var(--green); flex: none; margin-top: 3px; }
.footer-contact em { font-style: normal; opacity: 0.6; }

.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; font-size: 0.82rem; flex-wrap: wrap; }
.footer-bottom p { color: rgba(255,255,255,0.45); }
.footer-links a:hover { color: rgba(255,255,255,0.85); text-decoration: underline; }

/* ---------- Floating WhatsApp / Call buttons ---------- */
.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(8, 40, 74, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.float-btn:hover { transform: scale(1.08); box-shadow: 0 10px 26px rgba(8, 40, 74, 0.34); }
.float-whatsapp { background: #25D366; padding: 13px; box-sizing: border-box; }
.float-whatsapp img { width: 100%; height: 100%; display: block; }
.float-call { background: var(--blue-deep); color: #fff; }
.float-call svg { flex: none; }

@media (max-width: 900px) {
  .floating-actions { right: 16px; bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 16px); gap: 12px; }
  .float-btn { width: 48px; height: 48px; }
}

/* ---------- Mobile quick-action bar ---------- */
.quickbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 400;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(8, 40, 74, 0.1);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  gap: 2px;
  box-sizing: border-box;
}
.quickbar-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 0.64rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.quickbar-item svg { flex: none; }
.quickbar-item.active,
.quickbar-item:active { color: var(--blue-deep); background: var(--blue-pale); }
.quickbar-cta { color: #fff; background: var(--teal); }
.quickbar-cta:active { color: #fff; background: var(--teal-light); }

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

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { grid-column: span 1 !important; }
  .blog-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .process-list::before { display: none; }
  .why-grid { gap: 48px; }
  .trust-band-grid { grid-template-columns: 1fr; gap: 40px; }
  .trust-band-visual { order: -1; max-width: 360px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .topbar-meta li:nth-child(3) { display: none; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { height: 92px; }
  .brand-logo { height: 68px; }
  .header-actions .btn-primary { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; order: -1; }

  .trust-row { flex-direction: column; align-items: stretch; gap: 14px; }
  .trust-row li { width: 100%; max-width: none; }
  .hero { padding: 40px 0 56px; text-align: left; }

  .why-grid { grid-template-columns: 1fr; }
  .why-visual { max-width: 320px; margin: 0 auto 40px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { max-width: 400px; margin: 0 auto; }
  .mv-grid { grid-template-columns: 1fr; }
  .about-numbers-row { grid-template-columns: 1fr 1fr; gap: 28px; }

  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

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

  .quickbar { display: flex; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .topbar-tagline { display: none; }
  .topbar-inner { justify-content: center; }
  .topbar-meta { gap: 16px; }
  .topbar-meta li:nth-child(2) { display: none; }
  .service-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .trust-numbers { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  h1 { font-size: 2.2rem; }
}

/* mobile nav drawer — lives outside <header> so backdrop-filter on
   .site-header doesn't hijack the containing block for position:fixed */
@media (max-width: 900px) {
  .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 84vw);
    max-width: 84vw;
    box-sizing: border-box;
    background: #fff;
    padding: 20px 28px 28px;
    box-shadow: -12px 0 40px rgba(8, 40, 74, 0.18);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 601;
    overflow-y: auto;
  }
  .mobile-nav.open { transform: translateX(0); }

  .main-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--line);
  }
  .main-nav-mark { height: 40px; width: auto; }
  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--bg-alt);
    color: var(--ink);
  }
  .nav-close:hover { background: var(--line-soft); }

  .mobile-nav a { padding: 13px 0; width: 100%; border-bottom: 1px solid var(--line-soft); }
  .main-nav-cta {
    display: inline-flex;
    width: 100%;
    margin-top: 20px;
    border-bottom: none !important;
    padding: 13px 20px !important;
  }
  .main-nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
    border-bottom: none !important;
    font-weight: 600;
    color: var(--ink-soft);
  }
  .main-nav-phone svg { color: var(--blue); }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(8, 20, 36, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 600;
  }
  .nav-overlay.open { opacity: 1; pointer-events: auto; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
