/* Bend IT Solutions — bespoke light theme.
   Brand: a blue→purple gradient echoing the logo's bend. Warm,
   trustworthy, made for medical and professional offices.
   Hand-written (no Tailwind build step) so the site is self-contained. */

:root {
  --ink:       #15171e;
  --ink-soft:  #434a59;
  --muted:     #6c7384;
  --line:      #e8eaf1;
  --line-soft: #f0f2f7;
  --bg:        #ffffff;
  --bg-soft:   #f7f8fc;
  --bg-tint:   #f4f2fd;

  --brand-1:   #3a4ef0;  /* blue  */
  --brand-2:   #8b2fd6;  /* purple */
  --brand-3:   #b026b0;  /* magenta tail */
  --brand-ink: #5a35d6;  /* readable link/accent */
  --grad:      linear-gradient(115deg, var(--brand-1) 0%, var(--brand-2) 60%, var(--brand-3) 100%);

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 1px 2px rgba(20,22,30,.04), 0 12px 32px -12px rgba(60,40,160,.18);
  --shadow-sm: 0 1px 2px rgba(20,22,30,.05), 0 6px 18px -10px rgba(60,40,160,.16);
  --maxw:      1080px;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-disp: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-disp); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; margin: 0; }

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

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: .98rem;
  padding: .8rem 1.4rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: 0 10px 26px -8px rgba(90,53,214,.5); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #d8d2f2; background: var(--bg-soft); }

/* ---- nav ----------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links .btn { padding: .55rem 1.05rem; font-size: .92rem; }
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } }

/* ---- hero ---------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 76px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 82% 8%, rgba(139,47,214,.10), transparent 60%),
    radial-gradient(50% 50% at 6% 18%, rgba(58,78,240,.10), transparent 60%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand-ink); background: var(--bg-tint);
  padding: .35rem .8rem; border-radius: 999px; border: 1px solid #e7e9f522;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin: 1.1rem 0 0; max-width: 16ch; }
.hero .lede { font-size: 1.2rem; color: var(--ink-soft); margin: 1.3rem 0 0; max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-note { margin-top: 1.1rem; font-size: .92rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; }

/* the recurring "bend" wave */
.bendwave { display: block; width: 100%; height: auto; }

/* ---- sections ------------------------------------------------------ */
section { padding: 76px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 60ch; }
.section-head .kicker { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-top: .6rem; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin-top: .8rem; }

/* ---- services grid ------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.4rem; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow-sm);
  transition: transform .14s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #e0dbf6; }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--brand-ink); margin-bottom: 1rem;
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 { font-family: var(--font-sans); font-weight: 700; font-size: 1.08rem; }
.card p { color: var(--ink-soft); font-size: .96rem; margin: .5rem 0 0; }

/* ---- trust strip --------------------------------------------------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.2rem; }
@media (max-width: 760px) { .trust { grid-template-columns: repeat(2, 1fr); } }
.trust .item { padding: 1.2rem 1.1rem; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); }
.trust .num { font-family: var(--font-disp); font-size: 1.7rem; color: var(--ink); }
.trust .lbl { color: var(--muted); font-size: .9rem; margin-top: .2rem; }

/* ---- origin story -------------------------------------------------- */
.story { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; gap: 2rem; } }
.story h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.story p { color: var(--ink-soft); font-size: 1.08rem; margin: 1.1rem 0 0; }
.story .pullquote {
  position: relative; border-radius: var(--radius);
  padding: 2rem 1.9rem; background: var(--grad); color: #fff;
  box-shadow: var(--shadow);
}
.story .pullquote .q { font-family: var(--font-disp); font-size: 1.45rem; line-height: 1.35; }
.story .pullquote .by { margin-top: 1rem; font-size: .92rem; opacity: .85; }

/* ---- contact ------------------------------------------------------- */
.contact-wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; gap: 2rem; } }
.contact-aside h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.contact-aside p { color: var(--ink-soft); margin-top: 1rem; }
.contact-aside .avail {
  margin-top: 1.6rem; padding: 1.1rem 1.2rem; border-radius: var(--radius-sm);
  background: var(--bg-tint); border: 1px solid #e7e1fb; color: var(--ink-soft); font-size: .96rem;
}
.contact-aside .avail strong { color: var(--ink); }

form.card { box-shadow: var(--shadow); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .7rem .85rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-1);
  box-shadow: 0 0 0 3px rgba(90,53,214,.14);
}
.field textarea { resize: vertical; min-height: 120px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 1rem; margin-top: .4rem; }
.form-foot .btn { width: auto; }
.form-foot small { color: var(--muted); }

/* flash messages */
.flash { padding: .85rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; font-size: .95rem; }
.flash.ok  { background: #effaf3; border: 1px solid #bfe8cf; color: #1d6b40; }
.flash.err { background: #fdf1f0; border: 1px solid #f4cfca; color: #99372c; }

/* ---- footer -------------------------------------------------------- */
.footer { padding: 48px 0 60px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem; align-items: center; }
.footer .brand { color: var(--ink); }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); }
