/* ==========================================================================
   Swank Internet Business Solutions — static site stylesheet
   No framework, no build step. Mobile-first; breakpoints at 768px and 1024px.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-400-latin-v25.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-700-latin-v25.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 300; font-display: swap; src: url("../fonts/lato-300italic-latin-v25.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/lato-400italic-latin-v25.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/raleway-variable-latin-v37.woff2") format("woff2"); }

:root {
  --slate-900: #1e2427;
  --slate-800: #252b2e;
  --slate-700: #353f44;
  --slate-600: #4a565c;
  --slate-300: #b7c2c4;
  --gray-100: #f5f5f5;
  --gray-150: #eeeeee;
  --gray-300: #dddddd;
  --text: #4d5458;
  --heading: #353f44;
  --blue: #017fab;
  --blue-dark: #0a5a77;
  --blue-light: #3998b9;
  --green: #1fb786;
  --green-dark: #188d66;
  --green-text: #137a5a;
  --red: #de4317;
  --radius: 6px;
  --container: 1140px;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: #fff;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--green); outline-offset: 2px;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; color: var(--heading); line-height: 1.3; margin: 0 0 .6em; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.15em; }
ul { margin: 0 0 1.25em; padding-left: 1.25em; }
strong { color: var(--heading); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 920px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--slate-700); padding: 8px 14px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
.text-center { text-align: center; }
.cta-spaced { margin-top: 2em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 0;
  border-bottom: 4px solid var(--blue-dark);
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  text-align: center;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover, .btn:focus { background: var(--green); border-bottom-color: var(--green-dark); color: #fff; }
.btn:active { transform: translateY(2px); }
.btn-lg { font-size: 1.15rem; padding: 16px 32px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--slate-800);
  box-shadow: 0 1px 0 rgba(255,255,255,.04);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 64px; }
.logo { display: block; width: 150px; padding: 18px 0; }
.logo img { width: 100%; }
.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 1px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle-input:focus-visible + .nav-toggle { outline: 3px solid var(--green); }
.nav-toggle-input:checked + .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-input:checked + .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-toggle-input:checked + .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-nav { display: none; width: 100%; padding: 4px 0 16px; }
.nav-toggle-input:checked ~ .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 10px 0;
  font-family: var(--font-head); font-size: 1.05rem; color: #4aa8c8;
  border-top: 1px solid rgba(255,255,255,.06);
}
.site-nav a:hover, .site-nav a:focus { color: var(--green); }
.site-nav a[aria-current="page"] { color: #fff; }
.site-nav .nav-sep { color: #4aa8c8; }
.site-nav .nav-phone { color: #fff; font-weight: 700; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; padding: 0; }
  .site-nav ul { display: flex; gap: 32px; }
  .site-nav a { border: 0; padding: 22px 0; position: relative; font-size: .98rem; }
  .site-nav a[aria-current="page"]::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 2px; background: var(--green);
  }
  .logo { width: 180px; }
}

/* ---------- Page hero ---------- */
.hero {
  position: relative;
  background: var(--slate-700) url("../img/icons/baltimore-skyline.svg") no-repeat center bottom / 100% auto;
  color: var(--slate-300);
  text-align: center;
  padding: 56px 0 64px;
}
.hero::after { /* green pointer, as on the original */
  content: ""; position: absolute; left: 50%; top: 100%;
  width: 0; height: 0; margin-left: -16px;
  border: 16px solid transparent; border-top-color: var(--green); border-bottom: 0;
}
.hero h1 { color: #fff; font-size: 1.9rem; margin-bottom: .45em; }
.hero-lede {
  font-family: var(--font-head); font-weight: 300; font-size: 1.15rem; line-height: 1.55;
  max-width: 900px; margin: 0 auto;
}
.hero .btn { margin-top: 28px; }
@media (min-width: 768px) {
  .hero { padding: 80px 0 96px; }
  .hero h1 { font-size: 2.6rem; }
  .hero-lede { font-size: 1.45rem; }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 3rem; }
  .hero-lede { font-size: 1.6rem; }
}

/* ---------- Device gallery (desktop / tablet / phone frames) ---------- */
.devices { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 560 / 380; }
.device { position: absolute; isolation: isolate; }
.device > img.frame { width: 100%; height: 100%; }
.device .screen { position: absolute; z-index: 1; overflow: hidden; background: #fff; }
.device .screen picture { display: block; width: 100%; height: 100%; }
.device .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.device .frame { position: relative; z-index: 0; }
/* Frame geometry: screen insets measured against the frame SVG viewBoxes. */
.device-desktop { z-index: 1; left: 0; top: 0; width: 68%; aspect-ratio: 380 / 322; }
.device-desktop .screen { left: 4%; top: 5.5%; width: 92%; height: 67.6%; }
.device-tablet { z-index: 2; right: 0; top: 16%; width: 36%; aspect-ratio: 200 / 260; }
.device-tablet .screen { left: 9.5%; top: 8%; width: 81%; height: 81.8%; }
.device-phone { z-index: 3; right: 24%; bottom: 0; width: 18.5%; aspect-ratio: 108 / 220; }
.device-phone .screen { left: 7%; top: 13.2%; width: 86%; height: 68.4%; }
.hero .devices { max-width: 900px; margin-top: 48px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-gray { background: var(--gray-150); }
.section-light { background: var(--gray-100); }
.section-heading { text-align: center; font-size: 1.75rem; margin-bottom: .15em; }
.section-subheading {
  text-align: center; font-style: italic; color: var(--green-text);
  font-size: 1.2rem; font-weight: 300; margin-bottom: 48px;
}
@media (min-width: 768px) {
  .section { padding: 88px 0; }
  .section-heading { font-size: 2.2rem; }
  .section-subheading { font-size: 1.35rem; margin-bottom: 64px; }
}

/* Feature rows (home page) — icon + copy, alternating sides */
.feature { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; margin-bottom: 48px; }
.feature-icon { width: 72px; }
.feature h3 { font-size: 1.25rem; color: var(--blue); }
.feature h3 a { color: inherit; }
.feature h3 a:hover { color: var(--green); }
@media (min-width: 768px) {
  .feature { grid-template-columns: 1fr 2fr; gap: 40px; align-items: center; margin-bottom: 64px; }
  .feature-icon { width: 160px; justify-self: center; }
  .feature:nth-of-type(even) { grid-template-columns: 2fr 1fr; }
  .feature:nth-of-type(even) .feature-icon { order: 2; }
  .feature h3 { font-size: 1.5rem; }
}

/* ---------- Testimonial band ---------- */
.testimonials { background: var(--slate-700); color: var(--slate-300); text-align: center; padding: 64px 0; }
.testimonial { margin: 0 auto; max-width: 900px; }
.testimonial blockquote {
  margin: 0 0 18px; font-family: var(--font-head); font-weight: 300;
  font-size: 1.2rem; line-height: 1.6; color: #fff;
}
.testimonial figcaption { color: #2fd39e; font-weight: 700; font-size: .98rem; }
.testimonial figcaption a { color: #7cc4dd; font-weight: 400; }
.testimonial figcaption a:hover { color: var(--green); }
@media (min-width: 768px) { .testimonials { padding: 88px 0; } .testimonial blockquote { font-size: 1.5rem; } }

/* ---------- Content pages ---------- */
.prose h3 { margin-top: 1.6em; }
.prose ul li { margin-bottom: .35em; }
.lead { font-size: 1.15rem; }

/* About */
.about-body { max-width: 760px; margin: 0 auto; }
.about-body h3 { font-size: 1.45rem; color: var(--blue); }
.pill-list { list-style: none; padding: 0; display: grid; gap: 12px; margin: 1.5em 0 1.75em; }
.pill-list li {
  background: #fff; border-left: 4px solid var(--green); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.pill-list li strong { display: block; font-family: var(--font-head); }
@media (min-width: 768px) { .pill-list { grid-template-columns: repeat(3, 1fr); } }

/* Solutions */
.solutions-sidebar { display: none; }
@media (min-width: 1024px) {
  .solutions-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
  .solutions-sidebar {
    display: block; position: sticky; top: 96px;
    background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.08);
  }
}
.solutions-sidebar h2 { font-size: 1.1rem; margin-bottom: .5em; }
.solutions-sidebar ul { list-style: none; padding: 0; margin: 0 0 1.5em; }
.solutions-sidebar li a { display: block; padding: 8px 0; border-bottom: 1px solid var(--gray-300); font-size: .95rem; line-height: 1.4; }
.solutions-sidebar p { font-size: .92rem; line-height: 1.6; }
.solutions-sidebar .btn { display: block; font-size: .95rem; }
.solution { padding: 56px 0; border-bottom: 1px solid var(--gray-300); }
.solution:first-child { padding-top: 0; }
.solution:last-child { border-bottom: 0; padding-bottom: 0; }
.solution-head { display: flex; gap: 24px; align-items: center; margin-bottom: 28px; }
.solution-head { gap: 16px; }
.solution-head > div { min-width: 0; }
.solution-head img { width: 64px; flex: 0 0 auto; }
.solution-head h2 { font-size: 1.35rem; margin: 0; overflow-wrap: break-word; }
h1, h2, h3 { overflow-wrap: break-word; }
.solution-head p { margin: 4px 0 0; color: var(--green-text); font-style: italic; font-size: 1.1rem; }
@media (min-width: 768px) {
  .solution-head { gap: 24px; }
  .solution-head img { width: 112px; }
  .solution-head h2 { font-size: 2rem; }
}
.solution h3 small { font-weight: 400; color: var(--slate-600); font-size: .8em; }
.chip-nav { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 1.5em; }
.chip-nav a {
  display: inline-block; padding: 8px 16px; border-radius: 999px; background: #fff;
  border: 1px solid var(--gray-300); font-size: .92rem; line-height: 1.3;
}
.chip-nav a:hover { border-color: var(--green); }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: .55em; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 6px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg);
}
@media (min-width: 768px) { .checklist.cols-2 { columns: 2; column-gap: 32px; } .checklist.cols-2 li { break-inside: avoid; } }
.platform-badge { float: right; width: 150px; margin: 0 0 16px 24px; }
@media (max-width: 599px) { .platform-badge { float: none; margin: 0 0 16px; } }
.callout {
  background: #fff; border-left: 4px solid var(--blue); border-radius: var(--radius);
  padding: 18px 22px; margin: 1.5em 0; box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.callout p:last-child { margin-bottom: 0; }
.service-grid { display: grid; gap: 20px; margin: 1.75em 0; }
.service-card { background: #fff; border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 1px 3px rgba(0,0,0,.08); border-top: 4px solid var(--red); }
.service-card h3 { margin-top: 0; font-size: 1.2rem; }
.service-card p:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
.solution-cta { margin-top: 28px; }

/* Portfolio */
.project { padding: 64px 0; }
.project:nth-of-type(even) { background: var(--gray-150); }
.project .container { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) {
  .project .container { grid-template-columns: 1fr 1fr; gap: 64px; }
  .project:nth-of-type(odd) .devices { order: 2; }
  .project { padding: 88px 0; }
}
.project h2 { font-size: 1.6rem; color: var(--blue); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.project h2 a { color: inherit; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: .75rem; font-weight: 700; line-height: 1;
  color: #fff; background: #127555; padding: 6px 10px; border-radius: 999px;
}
.badge svg { width: 11px; height: 11px; }
.project-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: .6em; }
.project-title h2 { margin: 0; }
.project .badge { color: #fff; }
.project .badge:hover, .project .badge:focus { background: var(--blue); color: #fff; }
.project-quote { font-style: italic; font-weight: 300; color: var(--slate-600); font-size: 1.05rem; }
.project h3 { font-size: 1.15rem; margin-top: 1.2em; }
.chevron-list { list-style: none; padding: 0; }
.chevron-list li { position: relative; padding-left: 26px; margin-bottom: .4em; }
.chevron-list li::before { content: "»"; position: absolute; left: 6px; top: -1px; color: var(--red); font-weight: 700; }

/* Contact */
.contact-wrap { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-wrap { grid-template-columns: 1.65fr 1fr; gap: 56px; align-items: start; } }
.form-card { background: #fff; border-radius: var(--radius); padding: 28px 22px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
@media (min-width: 768px) { .form-card { padding: 36px 40px; } }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; color: var(--heading); font-size: .95rem; margin-bottom: 6px; }
.field .req { color: var(--red); }
.field .opt { font-weight: 400; color: #6b7477; font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; line-height: 1.4; color: var(--slate-700);
  padding: 12px 14px; border: 1px solid #c9d1d3; border-radius: var(--radius); background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1,127,171,.18); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 8px; }
.recaptcha-box { min-width: 304px; min-height: 78px; }
@media (max-width: 400px) { .recaptcha-box { transform: scale(.88); transform-origin: 0 0; min-width: 0; width: 268px; height: 69px; min-height: 0; } }
.form-note { font-size: .85rem; color: #6d777b; margin: 14px 0 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-aside h2 { font-size: 1.3rem; }
.contact-aside .aside-next { margin-top: 1.75em; }
.contact-aside .phone-link { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--blue); }
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; margin-bottom: 18px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff;
  font-weight: 700; display: grid; place-items: center; font-size: .95rem; line-height: 1;
}
.steps strong { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-900); color: #8a9599; font-size: .9rem; padding: 28px 0; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--slate-300); }
.site-footer a:hover { color: var(--green); }
.site-footer .heart { color: var(--red); }

/* ---------- Print ---------- */
@media print {
  .site-header, .hero::after, .testimonials, .solutions-sidebar, .form-card { display: none !important; }
  .hero { background: none; color: #000; padding: 0 0 24px; }
  .hero h1 { color: #000; }
}
