/* ============================================================
   Solway Technologies — one-page site
   Vanilla CSS, no build step. Palette lives in :root.
   ============================================================ */

:root {
  --bg:        #ffffff;
  --bg-alt:    #f4f6f9;
  --ink:       #0f172a;   /* slate-900 */
  --ink-soft:  #475569;   /* slate-600 */
  --ink-faint: #94a3b8;   /* slate-400 */
  --dark:      #0f172a;   /* dark sections */
  --dark-soft: #1e293b;
  --accent:    #0ea5e9;   /* sky-500 */
  --accent-dk: #0284c7;
  --line:      #e2e8f0;
  --radius:    14px;
  --maxw:      1080px;
  --pad:       clamp(1.25rem, 4vw, 2rem);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
p { margin: 0 0 1rem; }
em { font-style: normal; color: var(--accent-dk); font-weight: 600; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: .7rem 1.3rem;
  border-radius: 999px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-dk); transform: translateY(-1px); }
.btn--sm  { padding: .45rem 1rem; font-size: .9rem; }
.btn--lg  { padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn--ghost {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.btn--ghost:hover { background: rgba(14,165,233,.08); color: var(--accent-dk); }
.section--dark .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.section--dark .btn--ghost:hover { background: rgba(255,255,255,.1); color:#fff; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__logo { font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--ink); letter-spacing: -0.02em; }
.nav__logo span { color: var(--accent); margin-left: .3ch; font-weight: 700; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a { text-decoration: none; color: var(--ink-soft); font-size: .95rem; font-weight: 500; transition: color .15s; }
.nav__links a:hover { color: var(--ink); }
.nav__links a.btn { color: #fff; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(14,165,233,.12), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-weight: 700; color: var(--accent-dk); margin-bottom: 1.1rem;
}
.hero__title { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; }
.hero__sub  { font-size: clamp(1.1rem, 2.4vw, 1.4rem); color: var(--ink-soft); max-width: 640px; margin-top: 1.2rem; }
.hero__support { color: var(--ink-faint); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero__cta.center { justify-content: center; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--alt  { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #e2e8f0; }
.section--dark .section__title { color: #fff; }
.section__title { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 800; }
.section__intro { color: var(--ink-soft); max-width: 620px; margin-inline: auto; }
.section--dark .section__intro { color: #94a3b8; }
.lead { font-size: 1.1rem; color: var(--ink-soft); }

/* ---------- Fit checklist ---------- */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.fit__col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.fit__col h3 { font-size: 1.15rem; }
.fit__col ul { list-style: none; margin: 0; padding: 0; }
.fit__col li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; color: var(--ink-soft); }
.fit__col li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.fit__col--yes li::before { content: "✓"; color: #16a34a; }
.fit__col--no  li::before { content: "✕"; color: #dc2626; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; margin-top: 2.4rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px -12px rgba(15,23,42,.18); }
.card__num { font-size: .85rem; font-weight: 700; color: var(--accent); letter-spacing: .1em; }
.card h3 { font-size: 1.15rem; margin-top: .5rem; }
.card p { color: var(--ink-soft); margin: 0; }

/* ---------- Results ---------- */
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2.4rem; }
.result { background: var(--dark-soft); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 1.8rem; }
.result__metric { font-size: 1.9rem; font-weight: 800; color: var(--accent); margin: 0 0 .3rem; letter-spacing: -0.02em; }
.result__headline { font-size: 1.1rem; color: #fff; }
.result__body { color: #94a3b8; font-size: .95rem; margin: 0; }
.result__body strong { color: #cbd5e1; }

/* ---------- FAQ ---------- */
.faq { margin-top: 2rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 1.3rem; margin-bottom: .8rem; }
.faq summary { cursor: pointer; font-weight: 600; padding: 1.1rem 0; list-style: none; position: relative; padding-right: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 1.1rem; margin: 0; }

/* ---------- CTA + Footer ---------- */
.cta .hero__cta { margin-top: 1.8rem; }
.footer { background: #0b1220; color: #94a3b8; padding: 2rem 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer__logo { color: #fff; font-weight: 700; }
.footer__meta { font-size: .9rem; }
.footer__top { color: var(--accent); text-decoration: none; font-size: .9rem; }

/* ---------- Scroll reveal ---------- */
.section { opacity: 1; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem var(--pad) 1.2rem;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav__links.open { max-height: 420px; }
  .nav__links a { width: 100%; padding: .7rem 0; }
  .nav__links a.btn { margin-top: .5rem; width: auto; }
  .fit { grid-template-columns: 1fr; }
}

/* ---------- Booking page ---------- */
/* The iframe can't self-size: HighLevel's form_embed.js is deliberately not
   loaded (it would run third-party JS in this origin), so height is fixed
   here and the widget scrolls internally if it needs more room. */
.booking__frame { margin-top: 2rem; }
.booking__frame iframe {
  display: block;
  width: 100%;
  min-height: 900px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.booking__fallback { margin-top: 1.5rem; font-size: .9rem; color: var(--ink-faint); }
.booking__fallback a { color: var(--accent-dk); }

@media (max-width: 760px) {
  .booking__frame iframe { min-height: 1100px; }
}
