/* On Your Side IT: site styles
   Palette: deep navy, warm white, restrained teal. Edit the tokens below to retheme. */
:root {
  --navy: #0F2340;
  --navy-2: #16305A;
  --ink: #1B2233;
  --muted: #5A6373;
  --paper: #FBF9F4;      /* warm white page ground */
  --paper-2: #F3EFE6;    /* warm white, one step darker */
  --card: #FFFFFF;
  --line: #E4DED2;
  --teal: #147A72;       /* text-safe teal (5.2:1 on white) */
  --teal-bright: #1B8A82;
  --teal-tint: #E1F0ED;
  --teal-deep: #0E5E58;
  --shadow: 0 1px 2px rgba(15,35,64,.06), 0 12px 32px -12px rgba(15,35,64,.18);
  --radius: 14px;
  --measure: 62ch;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--navy); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { top: 1rem; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.eyebrow { font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: var(--measure); }
.hand { font-family: var(--font-hand); font-size: 1.5rem; line-height: 1.15; color: var(--teal); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.35rem; border-radius: 10px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn svg { width: 1em; height: 1em; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 16px -8px rgba(20,122,114,.7); }
.btn-primary:hover { background: var(--teal-deep); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--teal-deep); }
.btn-light:hover { background: var(--teal-tint); color: var(--teal-deep); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,249,244,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small { font-family: var(--font-body); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-top: .2rem; }
.site-footer .brand-text small { color: #8BD3C9; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; list-style: none; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav-links a:hover { color: var(--teal); }
.nav-links .btn { padding: .6rem 1.05rem; color: #fff; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 8px; padding: .45rem .55rem; color: var(--navy); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; display: block; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: .5rem 1.25rem 1rem; }
  .nav-links[data-open="true"] { display: flex; }
  .nav-links li { padding: .55rem 0; }
  .nav-links .btn { justify-content: center; margin-top: .4rem; }
}

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.hero-copy { display: grid; gap: 1.3rem; }
.hero-copy p.lede { font-size: 1.25rem; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .3rem; }
.hero-art { position: relative; }
.portrait { display: block; width: 100%; filter: drop-shadow(0 18px 30px rgba(15,35,64,.16)); }
.hero-note { position: absolute; right: 0; top: 4%; transform: rotate(6deg); text-align: center; color: var(--navy); }
.hero-caption { margin-top: .6rem; font-size: .85rem; color: var(--muted); text-align: center; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .hero-note { display: none; }
}

/* Pillars strip */
.pillars { background: var(--paper-2); border-block: 1px solid var(--line); }
.pillars ul { list-style: none; margin: 0; padding: 1.1rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pillars li { display: flex; align-items: center; justify-content: center; gap: .7rem; font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); }
.pillars li + li { border-left: 1px solid var(--line); }
.pillars svg { width: 28px; height: 28px; color: var(--teal); flex: none; }
@media (max-width: 700px) { .pillars ul { grid-template-columns: 1fr; gap: .4rem; } .pillars li { justify-content: flex-start; } .pillars li + li { border-left: 0; } }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { display: grid; gap: .6rem; max-width: 46rem; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* Service cards */
.services-2 { max-width: 920px; margin-inline: auto; }
.service { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.1rem; align-items: start; box-shadow: var(--shadow); }
.service .icon { width: 56px; height: 56px; border-radius: 50%; background: var(--teal-tint); display: grid; place-items: center; color: var(--teal); grid-row: span 3; }
.service .icon svg { width: 28px; height: 28px; }
.service h3 { margin-bottom: .1rem; }
.service p { color: var(--muted); font-size: 1rem; }
.service .fixes { margin: .3rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.service .fixes li { font-size: .82rem; color: var(--teal-deep); background: var(--teal-tint); padding: .18rem .6rem; border-radius: 999px; }

/* Example cards (problem, approach, outcome) */
.examples { background: var(--paper-2); border-block: 1px solid var(--line); }
.example { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); padding: 1.6rem; display: grid; gap: 1rem; align-content: start; box-shadow: var(--shadow); }
.example .tag { justify-self: start; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem; }
.example h3 { font-size: 1.35rem; }
.example dl { display: grid; gap: .85rem; margin: 0; }
.example dt { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.example dd { margin: .15rem 0 0; color: var(--ink); font-size: .98rem; }
.example .fine { font-size: .82rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: .8rem; margin-top: auto; }

/* Story band */
.story { background: var(--navy); color: #fff; overflow: hidden; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 440px; }
.story-art { position: relative; background: var(--navy-2); min-height: 300px; }
.story-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-copy { padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 5vw, 4rem); display: grid; gap: 1.2rem; align-content: center; position: relative; }
.story-copy h2 { color: #fff; }
.story-copy p { color: #D9E1EE; max-width: 50ch; }
.story-copy .rule { width: 56px; height: 3px; background: var(--teal-bright); border-radius: 2px; }
.story-note { position: absolute; right: clamp(1rem, 4vw, 3rem); bottom: 1.5rem; color: #fff; transform: rotate(-6deg); opacity: .9; text-align: center; }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } .story-note { display: none; } }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; padding-right: 1rem; }
.steps li + li { border-left: 1px solid var(--line); padding-left: 1.2rem; }
.steps .num { width: 52px; height: 52px; border-radius: 50%; background: var(--teal-tint); color: var(--teal); font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; display: grid; place-items: center; }
.steps h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.steps p { color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps li:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li + li { border-left: 0; padding-left: 0; } }

/* Testimonials (hidden until real ones exist) */
.quote { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1rem; align-content: start; box-shadow: var(--shadow); }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.45; color: var(--navy); }
.quote .sample { font-size: .8rem; font-weight: 600; color: #7A4300; background: #FFF3DF; border: 1px solid #F1D9AE; border-radius: 6px; padding: .35rem .6rem; justify-self: start; }

/* CTA band */
.cta { background: var(--teal); color: #fff; position: relative; overflow: hidden; }
.cta .wrap { position: relative; padding: clamp(3rem, 6vw, 4.5rem) 0; display: grid; justify-items: center; gap: 1.2rem; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #E6F4F2; max-width: 52ch; }
.cta .leaf { position: absolute; left: -20px; bottom: -30px; width: 220px; opacity: .22; pointer-events: none; }
.cta-note { position: absolute; right: 2%; top: 14%; transform: rotate(8deg); color: #fff; opacity: .95; text-align: center; }
.contact-lines { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; font-size: 1.05rem; }
.contact-lines a { color: #fff; font-weight: 600; }
.contact-lines a:hover { color: #E6F4F2; }
@media (max-width: 860px) { .cta-note { display: none; } }

/* Footer */
.site-footer { background: var(--navy); color: #C9D3E3; padding: 1.8rem 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-row .brand { color: #fff; }
.footer-row .tag { font-family: var(--font-display); color: #C9D3E3; padding-left: 1.2rem; border-left: 1px solid rgba(255,255,255,.2); }
.footer-links { display: flex; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: #C9D3E3; text-decoration: none; font-size: .95rem; }
.footer-links a:hover { color: #fff; }
.footer-small { margin-top: 1rem; font-size: .85rem; color: #9FAEC6; }
@media (max-width: 700px) { .footer-row .tag { border-left: 0; padding-left: 0; width: 100%; } }

/* Reveal-on-scroll: content is visible at rest; JS adds motion only when the visitor allows it */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
  html.js .reveal.in { opacity: 1; transform: none; }
}
