:root {
  --ink: #260146;
  --ink-soft: #4b3a63;
  --teal: #298ca4;
  --teal-dark: #1b6b80;
  --purple: #6a2ca6;
  --lilac: #b68ae8;
  --tint: #f6f3fa;
  --line: #e4deed;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(38, 1, 70, .08);
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.6 var(--font); padding-bottom: 72px; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-dark); }
h1, h2, h3, .h3 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 7vw, 3.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 4.4vw, 2.1rem); }
h3, .h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.wrap { width: min(1160px, 100%); margin-inline: auto; padding-inline: 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 30; }
.skip:focus { left: 8px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.eyebrow { color: var(--teal-dark); font-weight: 600; margin-bottom: .6em; }
.note { font-size: .92rem; color: var(--ink-soft); }
.link { font-weight: 600; }
.link::after { content: " →"; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border: 2px solid transparent; border-radius: 8px; font: 600 1rem/1.2 var(--font); text-align: center; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-lg { min-height: 54px; padding: 13px 24px; font-size: 1.05rem; }
.btn-primary { background: var(--teal-dark); color: var(--white); }
.btn-primary:hover { background: var(--ink); }
.btn-light { background: var(--tint); color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-outline-light { border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.actions .btn { flex: 1 1 220px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 68px; }
.brand img { width: 150px; }
.nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font: 600 .95rem var(--font); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--ink); }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav { display: none; flex-basis: 100%; padding-bottom: 10px; }
.nav.open { display: block; }
.nav a { display: block; padding: 12px 4px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
.nav a[aria-current="page"] { color: var(--teal-dark); }
.header-call { display: none; }

/* Framed image: echoes the open square of the logo */
.framed { position: relative; margin: 0 12px 12px 0; }
.framed img { position: relative; width: 100%; border-radius: 4px; }
.framed::before { content: ""; position: absolute; inset: 12px -12px -12px 12px; border: 6px solid var(--purple); border-image: linear-gradient(135deg, var(--lilac), var(--ink)) 1; }

/* Hero */
/* Phones: text, then contact details, then photo, so the details show without scrolling */
.hero-area { display: flex; flex-direction: column; }
.hero, .hero-grid { display: contents; }
.hero-text { order: 1; padding: 28px 16px 26px; }
.hero-text .actions { margin-top: 16px; }
.hero-text .btn-outline { display: none; }
.hero-text .lead { font-size: 1.05rem; margin-bottom: 0; }
.contact-strip { order: 2; }
.hero-media { order: 3; margin: 36px 28px 28px 16px; }
.hero-media img { aspect-ratio: 16 / 10; object-fit: cover; }

/* Contact strip */
.contact-strip { background: var(--ink); color: var(--white); padding: 20px 0; font-size: .97rem; }
.contact-strip a { color: var(--white); }
.contact-strip h2 { color: #a9dbe8; font-size: .85rem; font-weight: 600; margin-bottom: .2em; }
.contact-strip p { margin: 0; }
.contact-strip-grid { display: grid; grid-template-columns: auto 1fr; gap: 14px 24px; }
.contact-strip-grid > div:nth-child(n+3) { grid-column: 1 / -1; }

/* Sections */
.section { padding: 48px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 680px; margin-bottom: 28px; }
.section-head p { color: var(--ink-soft); margin: 0; }
.page-head { background: var(--tint); padding: 40px 0; }
.page-head .lead:last-child { margin-bottom: 0; }

/* Cards */
.cards { display: grid; gap: 16px; }
.card { display: block; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; }
.card p { margin: 0; color: var(--ink-soft); }
a.card { transition: border-color .15s, box-shadow .15s; }
a.card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.card-accent { background: var(--tint); border-color: var(--lilac); }

/* Split */
.split { display: grid; gap: 32px; align-items: center; }
.split > div > :last-child { margin-bottom: 0; }
.split .framed img { aspect-ratio: 4 / 3; object-fit: cover; }
.checks { list-style: none; margin: 0 0 1.2em; padding: 0; }
.checks li { position: relative; padding: 0 0 12px 28px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .4em; width: 8px; height: 13px; border: solid var(--teal-dark); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.role { color: var(--teal-dark); font-weight: 600; }
.split h2:not(:first-child) { margin-top: 1.2em; }

/* Services */
.service-list { display: grid; gap: 16px; }
.service { padding: 24px 22px; border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: var(--radius); scroll-margin-top: 90px; }
.service:nth-child(even) { border-left-color: var(--purple); }
.service p { color: var(--ink-soft); }
.service ul { margin: 0 0 1em; padding-left: 1.2em; }
.service > :last-child { margin-bottom: 0; }
.service .link { color: var(--teal-dark); }

/* Tools */
.tools { display: grid; gap: 16px; }
.tool { padding: 24px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tool p { color: var(--ink-soft); }
.tool > :last-child { margin-bottom: 0; }
.badge { display: inline-block; margin-bottom: 12px; padding: 3px 10px; background: var(--tint); border: 1px solid var(--lilac); border-radius: 99px; color: var(--purple); font-size: .85rem; font-weight: 700; }

/* CTA */
.cta { background: var(--ink); color: var(--white); }
.cta h2 { color: var(--white); }
.cta p { color: #ded6ea; }
.cta .btn-primary { background: var(--white); color: var(--ink); }
.cta .btn-primary:hover { background: #a9dbe8; }
.cta-inner { max-width: 760px; text-align: center; }
.cta-inner .actions { justify-content: center; }

/* Contact page */
.contact-grid { display: grid; gap: 40px; }
.contact-grid > div { min-width: 0; scroll-margin-top: 90px; }
.details { margin: 0 0 24px; }
.details dt { font-weight: 700; margin-top: 14px; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.map { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px; background: var(--tint); border-radius: var(--radius); }
.map p { margin: 0; }
.map.loaded { display: block; padding: 0; background: none; }
.map iframe { display: block; width: 100%; height: 340px; border: 0; border-radius: var(--radius); }
.form { display: grid; gap: 6px; }
.form label { font-weight: 600; margin-top: 10px; }
.form input:not([type=checkbox]), .form textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #a99fba; border-radius: 8px; background: var(--white); color: var(--ink); font: 16px/1.4 var(--font); }
.form textarea { resize: vertical; }
.form .note { margin: 10px 0 8px; }
.form-status { margin: 10px 0 0; font-weight: 600; }
.form-status.ok { color: #116a3c; }
.form-status.err { color: #a3261d; }
.hp { position: absolute; left: -9999px; }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }

/* Footer */
.site-footer { background: #1a0030; color: #ded6ea; padding: 44px 0 22px; font-size: .97rem; }
.site-footer a { color: var(--white); }
.site-footer h2 { color: var(--white); font-size: 1rem; margin-bottom: .7em; }
.footer-logo { width: 170px; margin-bottom: 14px; }
.footer-grid { display: grid; gap: 28px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding: 3px 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .9rem; }

/* Mobile call bar */
.call-bar { position: fixed; inset: auto 0 0; z-index: 25; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(38, 1, 70, .1); }

@media (min-width: 640px) {
  .cards, .tools, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .brand img { width: 170px; }
  .hero-text .btn-outline { display: inline-flex; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .call-bar, .nav-toggle { display: none; }
  .header-row { flex-wrap: nowrap; min-height: 78px; }
  .nav { display: flex; flex-basis: auto; gap: 18px; padding: 0; margin-left: auto; }
  .nav a { border: 0; padding: 6px 0; font-size: .95rem; white-space: nowrap; border-bottom: 2px solid transparent; }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--teal-dark); }
  .header-call { display: inline-flex; white-space: nowrap; }
  .hero { display: block; padding: 64px 0; order: 1; }
  .hero-grid { display: grid; align-items: center; }
  .hero-text { padding: 0; }
  .hero-text .lead { font-size: 1.15rem; }
  .hero-text .actions { margin-top: 22px; }
  .hero-media { margin: 0 12px 12px 0; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .contact-strip-grid > div:nth-child(n+3) { grid-column: auto; }
  .contact-strip { padding: 28px 0; font-size: 1rem; }
  .section { padding: 72px 0; }
  .page-head { padding: 60px 0; }
  .cards, .tools { grid-template-columns: repeat(3, 1fr); }
  .cards-two { grid-template-columns: repeat(2, 1fr); }
  .contact-strip-grid { grid-template-columns: .8fr 1fr 1.2fr 1.1fr; }
  .footer-grid { grid-template-columns: 1.3fr 1.5fr 1fr 1fr; }
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
