/* ==========================================================================
   TIPSTECH SOLUTIONS — Brand stylesheet
   Palette derived from the logo:
     Primary navy   #1E2A78
     Accent orange  #D9541E
   ========================================================================== */

:root {
  --brand-primary: #1E2A78;
  --brand-primary-deep: #141C55;
  --brand-primary-light: #2A3A9E;
  --brand-accent: #D9541E;
  --brand-accent-soft: #F08A4B;

  --bg-base: #FFFFFF;
  --bg-subtle: #F6F7FB;

  --ink-900: #0F1533;
  --ink-600: #4A5170;
  --ink-400: #8890A8;
  --line: #E4E7F0;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-card: 14px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 3px rgba(15,21,51,0.05), 0 7px 22px -11px rgba(15,21,51,0.09);
  --shadow-card-hover: 0 3px 6px rgba(15,21,51,0.07), 0 22px 46px -14px rgba(30,42,120,0.18);
  --shadow-nav: 0 1px 1px rgba(15,21,51,0.07), 0 7px 22px -14px rgba(15,21,51,0.18);
}

/* ---------------- Base ---------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-600);
  background: var(--bg-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink-900);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

a { text-decoration: none; }

::selection { background: rgba(217,84,30,0.18); color: var(--ink-900); }

/* ---------------- Buttons ---------------- */
.btn {
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.6rem;
  transition: all 0.24s ease;
  border: 1px solid transparent;
}

.btn-accent {
  background: linear-gradient(142deg, var(--brand-accent) 0%, var(--brand-accent-soft) 64%, #E0703A 100%);
  color: #fff;
}
.btn-accent:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 11px 26px -11px rgba(217,84,30,0.52);
}

.btn-primary {
  background: var(--brand-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-primary-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 11px 26px -11px rgba(30,42,120,0.42);
}

.btn-outline-light {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
  background: rgba(255,255,255,0.05);
}
.btn-outline-light:hover {
  border-color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.btn-outline-dark {
  border-color: var(--line);
  color: var(--ink-900);
  background: #fff;
}
.btn-outline-dark:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* ---------------- Navbar ---------------- */
.site-nav {
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  transition: box-shadow 0.28s ease;
}
.site-nav.scrolled { box-shadow: var(--shadow-nav); }

.navbar-brand { color: inherit; }

.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--brand-primary);
}
.brand-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--brand-accent);
  margin-top: 3px;
}

.site-nav .nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-600);
  padding: 0.5rem 0.9rem;
  transition: color 0.22s ease;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: var(--brand-primary); }

.site-nav .navbar-toggler {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 0.4rem 0.6rem;
}
.site-nav .navbar-toggler:focus { box-shadow: none; }

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    background: #fff;
    border-top: 1px solid var(--line);
    margin-top: 0.75rem;
    padding: 0.75rem 0;
    border-radius: var(--radius-card);
  }
  .site-nav .nav-link { padding: 0.7rem 1rem; }
}

/* ---------- Nav dropdowns (pop-up menus) ---------- */
.site-nav .nav-item.dropdown { position: relative; }
.site-nav .dropdown-menu {
  display: block;
  min-width: 240px;
  padding: 0.5rem;
  margin: 0.35rem 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 11px 30px rgba(15, 22, 68, 0.13);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}
.site-nav .dropdown-menu.show,
.site-nav .nav-item.dropdown:hover .dropdown-menu,
.site-nav .nav-item.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.site-nav .dropdown-item {
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brand-primary);
  white-space: nowrap;
}
.site-nav .dropdown-item:hover,
.site-nav .dropdown-item:focus {
  background: rgba(217, 84, 30, 0.08);
  color: var(--brand-accent);
}
.site-nav .dropdown-divider { margin: 0.35rem 0; opacity: 0.6; }
.site-nav .dropdown-toggle::after {
  margin-left: 0.4em;
  vertical-align: 0.06em;
  transition: transform 0.2s ease;
}
.site-nav .nav-item.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}
@media (max-width: 991.98px) {
  .site-nav .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1rem;
    margin: 0;
  }
  .site-nav .nav-item.dropdown:hover .dropdown-menu { display: block; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 5.2rem 0 5.8rem;
  overflow: hidden;
  background: linear-gradient(142deg, #161F5A 0%, #1E2A78 48%, #2A3A9E 72%, #1F2D7E 100%);
  background-size: 160% 180%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 22%, rgba(217,84,30,0.32) 0, transparent 48%),
    radial-gradient(ellipse at 78% 68%, rgba(240,138,75,0.28) 0, transparent 52%);
  pointer-events: none;
  z-index: 1;
}
.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shade {
  background: linear-gradient(142deg, rgba(22,31,90,0.88) 0%, rgba(30,42,120,0.74) 48%, rgba(42,58,158,0.88) 72%, rgba(31,45,126,0.86) 100%);
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  z-index: 1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.6) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-accent-soft);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.hero-trust span { white-space: nowrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 520px;
  margin-left: auto;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 1rem;
}
.hero-svg { width: 100%; height: 100%; display: block; }

@media (max-width: 991.98px) {
  .hero { padding: 3.8rem 0 4.2rem; }
  .hero-visual { margin: 2.2rem auto 0; aspect-ratio: 5 / 4; }
}

/* ---------------- Sections ---------------- */
.section { padding: 4.8rem 0 5.2rem; scroll-margin-top: 92px; }
.section-subtle { background: var(--bg-subtle); }

@media (max-width: 767.98px) {
  .section { padding: 3.4rem 0 3.8rem; }
}

.section-head { max-width: 48rem; margin-bottom: 1.9rem; }
.section-head.text-center { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(1.65rem, 2.8vw, 2.4rem);
  margin-bottom: 1.1rem;
}

.section-lead {
  font-size: 1.08rem;
  color: var(--ink-600);
  margin-bottom: 0;
}

/* ---------------- Service cards ---------------- */
.service-card {
  display: block;
  height: 100%;
  padding: 1.65rem 1.75rem 1.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: all 0.26s ease;
  color: inherit;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(30,42,120,0.20);
  color: inherit;
  /* Slight more natural hover feel */
  transform: translateY(-3px) scale(1.004);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-card);
  background: rgba(30,42,120,0.06);
  color: var(--brand-primary);
  font-size: 1.25rem;
  margin-bottom: 1.3rem;
  transition: all 0.28s ease;
}
.service-card:hover .service-icon {
  background: var(--brand-accent);
  color: #fff;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--ink-600);
  margin-bottom: 1.3rem;
}

.service-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-primary);
  transition: color 0.22s ease;
}
.service-card:hover .service-link { color: var(--brand-accent); }
.service-link i { transition: transform 0.22s ease; }
.service-card:hover .service-link i { transform: translateX(3px); }

/* ---------------- Reason cards ---------------- */
.reason-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.4rem 1.5rem 1.6rem;
  height: 100%;
  /* Very subtle variation for natural feel */
  box-shadow: 0 1px 2px rgba(15,21,51,0.04), 0 6px 20px -10px rgba(15,21,51,0.08);
}
.reason-bar {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: var(--brand-accent);
  margin-bottom: 1.1rem;
}
.reason-card h3 { font-size: 1.1rem; margin-bottom: 0.55rem; }
.reason-card p { font-size: 0.95rem; margin: 0; }

/* ---------------- Feature list ---------------- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 1.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1.4rem;
}
.feature-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.95rem;
  color: var(--ink-600);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
}

/* ---------------- Odoo mockup ---------------- */
.mockup {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 5px 7px;
  padding: 0.7rem 1rem 0.8rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
}
.mockup-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.mockup-bar small {
  margin-left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-400);
}
.mockup-body { padding: 1.15rem 1.25rem 1.35rem; }

.stat {
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.stat small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--brand-primary);
  margin-top: 0.25rem;
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100px;
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.chart span {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(148deg, var(--brand-primary) 0%, var(--brand-primary-light) 68%, #3A4CA8 100%);
  opacity: 0.9;
}

/* ---------------- Workflow ---------------- */
.workflow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.65rem 0.8rem;
  margin-top: 1.4rem;
}
.wf-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1rem 0.75rem;
  text-align: center;
}
.wf-step small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand-accent);
  margin-bottom: 0.4rem;
}
.wf-step span { font-size: 0.88rem; font-weight: 500; color: var(--ink-900); }

@media (max-width: 991.98px) {
  .workflow { grid-template-columns: 1fr; }
  .wf-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    padding: 0.9rem 1rem;
  }
  .wf-step small { margin-bottom: 0; }
}

/* ---------------- Cloud cards ---------------- */
.cloud-card {
  height: 100%;
  padding: 1.4rem 1.5rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.cloud-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.cloud-card p { font-size: 0.95rem; margin: 0; }

/* ---------------- Steps ---------------- */
.step { padding: 0.9rem 0 1.1rem; }
.step small {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--brand-accent);
}
.step h3 { font-size: 1.15rem; margin: 0.55rem 0; }
.step p { font-size: 0.95rem; margin: 0; }

/* ---------------- Testimonials ---------------- */
.quote {
  height: 100%;
  padding: 1.65rem 1.75rem 1.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
  margin: 0;
}
.quote p {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-600);
  margin-bottom: 1.6rem;
}
.quote footer {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  display: flex;
  flex-direction: column;
}
.quote footer strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink-900);
}
.quote footer small { color: var(--ink-400); font-size: 0.82rem; }

/* ---------------- CTA ---------------- */
.cta-section { padding: 3.8rem 0 5.2rem; }
.cta-inner {
  position: relative;
  overflow: hidden;
  padding: 3rem 2.5rem;
  border-radius: 20px;
  background: linear-gradient(138deg, #161F5A 0%, #1E2A78 52%, #2A3A9E 74%, #1F2D7E 100%);
  color: #fff;
}
.cta-inner::before {
  content: "";
  position: absolute;
  right: -5.5rem; top: -5.5rem;
  width: 19rem; height: 17rem;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(217,84,30,0.52) 0%, transparent 68%);
  filter: blur(32px);
  pointer-events: none;
}
.cta-inner h2 { color: #fff; font-size: clamp(1.65rem, 2.8vw, 2.2rem); margin-bottom: 0.75rem; }
.cta-inner p { color: rgba(255,255,255,0.78); max-width: 36rem; margin-bottom: 1.75rem; font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

@media (max-width: 767.98px) {
  .cta-inner { padding: 2.25rem 1.5rem; }
}

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-subtle);
  padding: 3.8rem 0 1.6rem;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  margin-bottom: 1.1rem;
}
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--brand-primary);
}
.footer-brand small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--brand-accent);
  display: block;
}
.footer-desc { font-size: 0.92rem; max-width: 26rem; margin-bottom: 1.3rem; }
.footer-contact { list-style: none; padding: 0; margin: 0; font-size: 0.92rem; }
.footer-contact li { margin-bottom: 0.55rem; }
.footer-contact i { color: var(--brand-accent); margin-right: 0.5rem; }
.footer-contact a { color: var(--ink-600); }
.footer-contact a:hover { color: var(--brand-primary); }

.site-footer h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-900);
  margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.6rem; }
.site-footer ul a {
  font-size: 0.92rem;
  color: var(--ink-600);
}
.site-footer ul a:hover { color: var(--brand-primary); }

.footer-bottom {
  margin-top: 3.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-400);
}
.footer-bottom p { margin: 0; }

/* ---------------- Back to top ---------------- */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--brand-primary);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1000;
  box-shadow: 0 11px 26px -11px rgba(30,42,120,0.48);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--brand-accent); }

/* ---------------- Scroll reveal ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.64s ease, transform 0.64s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- Motion safety ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-video { display: none; }
}
/* ==========================================================================
   SERVICES PAGE — accordion detail panels
   ========================================================================== */

.page-header {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
  padding: 4.8rem 0 4.2rem;
}
.page-title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  max-width: 52rem;
  margin-bottom: 1.25rem;
}
.page-lead {
  font-size: 1.15rem;
  max-width: 44rem;
  margin: 0;
}

@media (max-width: 767.98px) {
  .page-header { padding: 3.5rem 0 2.5rem; }
}

/* --- Service block layout --- */
.svc-block {
  margin-bottom: 1.25rem;
}
.svc-block:last-child { margin-bottom: 0; }

/* Remove default <details> marker */
.svc-details > summary {
  list-style: none;
  cursor: pointer;
}
.svc-details > summary::-webkit-details-marker { display: none; }
.svc-details > summary::marker { content: ""; }

/* Card (the always-visible row) */
.svc-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: all 0.26s ease;
}
.svc-card:hover {
  border-color: rgba(30,42,120,0.20);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.svc-card-body { flex: 1; }
.svc-card-body h2 {
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}
.svc-card-body p {
  font-size: 0.95rem;
  color: var(--ink-600);
  margin: 0;
}

/* The "Learn more" pill */
.svc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(30,42,120,0.06);
  color: var(--brand-primary);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.26s ease;
}
.svc-card:hover .svc-toggle {
  background: var(--brand-accent);
  color: #fff;
}
.svc-arrow { transition: transform 0.32s ease; }
.svc-details[open] .svc-arrow { transform: rotate(90deg); }
.svc-details[open] .svc-toggle-label::after { content: " less"; }
.svc-details[open] .svc-toggle-label { font-size: 0; }
.svc-details[open] .svc-toggle-label::before {
  content: "Show";
  font-size: 0.85rem;
}

/* The expandable panel */
.svc-panel {
  overflow: hidden;
}
.svc-panel-inner {
  padding: 2rem 1.75rem 1.85rem;
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg-subtle);
}

/* Small section label */
.svc-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 0.8rem;
}

.svc-panel p {
  font-size: 0.95rem;
  color: var(--ink-600);
  line-height: 1.65;
}

.svc-bullets {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}
.svc-bullets li {
  position: relative;
  padding: 0.25rem 0 0.25rem 1.1rem;
  font-size: 0.92rem;
  color: var(--ink-600);
}
.svc-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
}

.svc-tags {
  list-style: none;
  padding: 0;
  margin: 0.55rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.svc-tags li {
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-600);
}

.svc-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0 1.5rem;
  opacity: 1;
}

.svc-feature {
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  height: 100%;
}
.svc-feature h4 {
  font-size: 0.92rem;
  margin: 0 0 0.45rem;
}
.svc-feature p {
  font-size: 0.85rem;
  margin: 0;
}

/* Nested FAQ inside a service panel */
.svc-faq {
  display: grid;
  gap: 0.5rem;
}
.svc-faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1rem 1.25rem;
}
.svc-faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.svc-faq summary::-webkit-details-marker { display: none; }
.svc-faq summary::after {
  content: "+";
  font-family: var(--font-sans);
  color: var(--brand-accent);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}
.svc-faq details[open] summary::after {
  content: "+";
  transform: rotate(45deg);
}
.svc-faq p {
  margin: 0.8rem 0 0;
  font-size: 0.88rem;
}

.svc-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

/* Mobile adjustments */
@media (max-width: 767.98px) {
  .svc-card {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem;
  }
  .svc-card-body { flex-basis: 100%; order: 2; }
  .service-icon { order: 1; }
  .svc-toggle { order: 3; }
  .svc-card-body h2 { font-size: 1.05rem; }
  .svc-panel-inner { padding: 1.5rem 1.25rem 1.25rem; }
}

/* ==========================================================================
   Fallback when JS is disabled:
   all service panels are forced open, and the accordion behaviour is off.
   We detect with a tiny inline <script> in <head> that adds .no-js to <html>.
   ========================================================================== */
.no-js .svc-details > .svc-panel { display: block !important; }
.no-js .svc-details:not([open]) > .svc-panel { display: block; }
.no-js .svc-toggle { display: none; }

/* ==========================================================================
   Sitemap page
   ========================================================================== */
.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sitemap-list li {
  margin-bottom: 0.5rem;
}
.sitemap-list a {
  color: #1E2A78;
  text-decoration: none;
  font-weight: 500;
}
.sitemap-list a:hover {
  color: #D9541E;
  text-decoration: underline;
}