/* ============================================================
   RTFM IT Services — site styles (Direction A: Warm Welcome)
   Shared across every page. Tokens come from colors_and_type.css.
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font-body); }
::selection { background: var(--orange-tint); }
img { max-width: 100%; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }

/* ---------- buttons ---------- */
.btn { font-family: var(--font-display); font-weight: 600; font-size: 15px; border: none;
  border-radius: var(--radius-md); padding: 13px 22px; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px; text-decoration: none; line-height: 1;
  transition: all var(--dur-base) var(--ease-out); }
.btn i { width: 18px; height: 18px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-accent); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); color: #fff; }
.btn-primary:active { transform: translateY(0) scale(0.99); }
.btn-secondary { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-secondary:hover { border-color: var(--orange); color: var(--orange-dark); }
.btn-ghost { background: transparent; color: var(--orange); }
.btn-ghost:hover { background: var(--cream); }

/* ---------- utility (contact) bar — always visible ---------- */
.util { background: var(--ink); color: #fff; }
.util-in { display: flex; align-items: center; gap: 22px; padding: 9px 0; font-size: 13.5px; }
.util a { color: #fff; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; white-space: nowrap; }
.util a:hover { color: var(--orange-tint); }
.util i { width: 15px; height: 15px; color: var(--orange-tint); }
.util .util-spacer { margin-left: auto; }
.util .util-ticket { background: var(--orange); padding: 6px 13px; border-radius: var(--radius-sm); font-weight: 600; }
.util .util-ticket:hover { background: var(--orange-dark); color: #fff; }
.util .util-ticket i { color: #fff; }

/* ---------- main nav — sticky ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 26px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 10px; }
.brand b { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
  color: var(--ink); line-height: 1; display: block; }
.brand span { display: block; font-size: 11.5px; color: var(--fg2); font-weight: 600; }
.nav-links { display: flex; gap: 24px; margin-left: 12px; }
.nav-links a { font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--fg2); text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--orange-dark); }
.nav-cta { margin-left: auto; }
.nav-toggle { display: none; }

/* ---------- generic section scaffolding ---------- */
section { scroll-margin-top: 120px; }
.sec { padding: 78px 0; }
.sec-tight { padding: 56px 0; }
.head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.head.left { text-align: left; margin-left: 0; }
.eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--orange); }
.head h2 { font-family: var(--font-display); font-weight: 700; font-size: 34px; letter-spacing: -0.01em; margin: 10px 0 0; }
.head p { font-size: 17px; color: var(--fg2); margin: 14px auto 0; line-height: 1.55; }
.head.left p { margin-left: 0; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--cream), #fff); }
.hero-in { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; padding: 64px 0 76px; }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: 52px; line-height: 1.06;
  letter-spacing: -0.02em; margin: 14px 0 0; }
.hero-sub { font-size: 18px; color: var(--fg2); line-height: 1.6; margin: 18px 0 0; max-width: 30em; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 9px; margin-top: 26px; color: var(--fg2); font-size: 14px; }
.hero-trust i { width: 17px; height: 17px; color: var(--orange); }

.hero-art { position: relative; display: flex; justify-content: center; }
.tile { width: 300px; height: 300px; border-radius: 38px; background: var(--orange); position: relative;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); overflow: hidden; }
.tile::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.22), transparent 60%); }
.tile img { width: 90%; height: 90%; object-fit: contain; position: relative; z-index: 1; }
.pill { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 15px; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-md);
  font-family: var(--font-display); font-weight: 600; font-size: 13px; }
.pill i { width: 16px; height: 16px; }

/* ---------- service cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; display: block;
  transition: all var(--dur-base) var(--ease-out); }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #dcdcdc; }
.card .ic { width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--cream);
  color: var(--orange); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card .ic.blue { background: #E4F2F8; color: var(--blue); }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 0 0 8px; }
.card p { font-size: 14.5px; color: var(--fg2); line-height: 1.55; margin: 0; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--orange); }
.card .more i { width: 15px; height: 15px; }

/* ---------- steps ---------- */
.steps { background: var(--cream); }
.steps .srow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { text-align: center; }
.step .circ { width: 62px; height: 62px; border-radius: 50%; background: #fff; color: var(--orange);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; box-shadow: var(--shadow-md);
  font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.step h4 { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin: 0 0 6px; }
.step p { font-size: 14.5px; color: var(--fg2); margin: 0; line-height: 1.55; }

/* ---------- band CTA ---------- */
.band { background: var(--ink); color: #fff; }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 56px 0; }
.band h2 { font-family: var(--font-display); font-weight: 700; font-size: 30px; margin: 0; letter-spacing: -0.01em; }
.band p { color: #cfcfcf; margin: 10px 0 0; font-size: 16px; }

/* ---------- resources / blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: inherit; display: block; transition: all var(--dur-base) var(--ease-out); }
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-top { height: 120px; background: linear-gradient(120deg, var(--orange), var(--orange-dark));
  display: flex; align-items: center; justify-content: center; }
.post-top.blue { background: linear-gradient(120deg, var(--blue), var(--blue-dark)); }
.post-top.ink { background: linear-gradient(120deg, #3a3a3a, var(--ink)); }
.post-top i { width: 34px; height: 34px; color: #fff; opacity: 0.92; }
.post-top img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-body { padding: 18px 22px 24px; }
.tag { font-family: var(--font-display); font-weight: 600; font-size: 11.5px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--orange); }
.post h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.3; margin: 8px 0 10px; }
.post .read { font-size: 13px; color: var(--fg3); }

/* ---------- forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 32px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 13px;
  color: var(--ink); margin-bottom: 6px; }
.field .req { color: var(--orange); }
.field .opt { font-weight: 400; color: var(--fg3); }
.field input, .field select, .field textarea { width: 100%; box-sizing: border-box; font-family: var(--font-body);
  font-size: 15px; color: var(--ink); padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: var(--radius-md); background: #fff; resize: vertical; transition: border-color var(--dur-base) var(--ease-out); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(229,125,49,0.15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-fine { font-size: 13px; color: var(--fg2); margin: 14px 0 0; text-align: center; }
.form-note { display: flex; gap: 10px; align-items: flex-start; background: var(--cream); border-radius: var(--radius-md);
  padding: 13px 15px; font-size: 13.5px; color: var(--fg2); line-height: 1.5; margin-bottom: 22px; }
.form-note i { width: 18px; height: 18px; color: var(--orange); flex-shrink: 0; margin-top: 1px; }

/* ---------- page hero (interior pages) ---------- */
.phero { background: var(--cream); padding: 56px 0; }
.phero h1 { font-family: var(--font-display); font-weight: 700; font-size: 42px; letter-spacing: -0.02em; margin: 12px 0 0; }
.phero p { font-size: 18px; color: var(--fg2); margin: 14px 0 0; max-width: 40em; line-height: 1.55; }

/* ---------- footer ---------- */
.footer { background: #fff; border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; padding: 56px 0; }
.footer-logo { height: 52px; width: auto; }
.footer-tag { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--fg2);
  margin: 14px 0 0; max-width: 22em; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-col h5 { font-family: var(--font-display); font-weight: 600; font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink); margin: 0 0 14px; }
.footer-col a, .footer-loc { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--fg2);
  margin-bottom: 10px; text-decoration: none; }
.footer-col a:hover { color: var(--orange-dark); }
.footer-loc { color: var(--fg3); }
.footer-areas { padding: 16px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg3); line-height: 1.8; }
.footer-areas-label { font-family: var(--font-display); font-weight: 600; }
.footer-areas a { color: var(--fg3); text-decoration: none; }
.footer-areas a:hover { color: var(--orange-dark); }
.footer-sms { padding: 18px 0 0; border-top: 1px solid var(--line); }
.footer-sms p { font-size: 12px; color: var(--fg3); line-height: 1.6; margin: 0; max-width: 980px; }
.footer-sms a { color: var(--fg3); text-decoration: underline; }
.footer-sms a:hover { color: var(--orange-dark); }
.footer-legal { display: flex; justify-content: space-between; padding: 22px 0; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--fg3); }
.footer-legal a { color: var(--fg3); text-decoration: none; }
.footer-legal a:hover { color: var(--orange-dark); }

/* ---------- legal / prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin: 36px 0 10px; }
.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin: 24px 0 8px; }
.prose p, .prose li { font-size: 15.5px; color: var(--fg1); line-height: 1.7; }
.prose ul { padding-left: 20px; }
.prose .muted { color: var(--fg2); font-size: 14px; }

/* ---------- toast (form success) ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 14px 20px; border-radius: var(--radius-md);
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); font-size: 14.5px;
  opacity: 0; pointer-events: none; transition: all var(--dur-base) var(--ease-out); z-index: 200; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast i { width: 18px; height: 18px; color: #6fe09a; }

/* ---------- cookie consent ---------- */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 720px;
  margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: 14px 18px; box-shadow: var(--shadow-lg); font-size: 14px; line-height: 1.5; }
.cookie-bar a { color: var(--orange-tint); font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .wrap { padding-left: 22px; padding-right: 22px; }
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; }
  .grid-3, .steps .srow, .posts { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .band-in { flex-direction: column; align-items: flex-start; }
  .util-in { flex-wrap: wrap; gap: 12px 18px; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 22px; gap: 14px; margin: 0; }
  .nav-toggle { display: inline-flex; margin-left: auto; background: none; border: none; cursor: pointer; color: var(--ink); }
  .nav-cta { margin-left: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; gap: 6px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 38px; }
  .phero h1 { font-size: 32px; }
  .head h2 { font-size: 28px; }
}
