/* Software House: site styles */

:root {
  --brand: #7f002b;        /* logo maroon */
  --brand-dark: #5e0020;
  --grey: #63686c;         /* logo grey */
  --ink: #222629;
  --muted: #5d6266;
  --line: #e3e4e6;
  --bg: #ffffff;
  --bg-alt: #f5f5f6;
  --radius: 6px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.25; margin: 0; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

section[id] { scroll-margin-top: var(--header-h); }

.icon {
  width: 28px; height: 28px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { height: 52px; width: auto; }

.site-nav { display: flex; gap: 4px; }
.site-nav a {
  padding: 8px 12px; border-radius: var(--radius);
  color: var(--grey); text-decoration: none;
  font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--brand); background: var(--bg-alt); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--grey); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; padding: 8px 20px 16px;
    background: #fff; border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding: 24px 16px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.hero img {
  width: min(1100px, 92vw);
  max-height: calc(100svh - var(--header-h) - 80px);
  object-fit: contain;
}
@media (max-width: 860px) {
  .hero { min-height: 0; padding: 40px 16px; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 300; color: var(--ink); }
.section-head h2 strong { font-weight: 900; color: var(--brand); }
.section-head p { margin: 12px 0 0; color: var(--muted); font-style: italic; }
.section-head::after {
  content: ""; display: block; width: 56px; height: 3px;
  margin: 20px auto 0; background: var(--brand); border-radius: 2px;
}

/* ---------- Feature cards ---------- */
.card-grid { display: grid; gap: 24px; }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }

.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px;
}
.feature .icon { color: var(--brand); width: 36px; height: 36px; margin-bottom: 16px; }
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); }

.feature.row { display: flex; gap: 20px; align-items: flex-start; }
.feature.row .icon { margin: 2px 0 0; }

@media (max-width: 960px) { .card-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .card-grid.two { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .card-grid.four { grid-template-columns: 1fr; } }

/* ---------- Security tabs ---------- */
.tabs { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start; }

.tab-list { display: flex; flex-direction: column; gap: 8px; }
.tab-list button {
  font: inherit; text-align: left; cursor: pointer;
  padding: 14px 18px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); border-left: 4px solid transparent;
  color: var(--ink); font-weight: 700;
}
.tab-list button small { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.tab-list button:hover { border-left-color: var(--line); }
.tab-list button[aria-selected="true"] { border-left-color: var(--brand); color: var(--brand); }
.tab-list button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.tab-panels [role="tabpanel"] {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.tab-panels h3 { font-size: 22px; margin-bottom: 6px; }
.tab-panels p { margin: 0 0 20px; color: var(--muted); }
.tab-panels img { margin: 0 auto; max-height: 460px; width: auto; }

@media (max-width: 860px) {
  .tabs { grid-template-columns: 1fr; gap: 16px; }
  .tab-list { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .tab-list button { flex: none; border-left-width: 1px; border-bottom: 3px solid transparent; }
  .tab-list button small { display: none; }
  .tab-list button[aria-selected="true"] { border-left-color: var(--line); border-bottom-color: var(--brand); }
  .tab-panels [role="tabpanel"] { padding: 20px; }
}

/* ---------- Maintenance plans ---------- */
.plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 960px; margin: 0 auto; align-items: stretch;
}
.plan {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
}
.plan h3 {
  padding: 22px; text-align: center; font-size: 20px;
  background: var(--bg-alt); border-bottom: 1px solid var(--line);
}
.plan ul { list-style: none; margin: 0; padding: 12px 24px; flex: 1; }
.plan li { padding: 10px 0; text-align: center; border-bottom: 1px solid var(--line); color: var(--muted); }
.plan li:last-child { border-bottom: 0; }
.plan .btn { margin: 0 24px 24px; }

.plan.featured { border-color: var(--brand); box-shadow: 0 10px 30px rgba(127, 0, 43, 0.12); }
.plan.featured h3 { background: var(--brand); color: #fff; border-bottom-color: var(--brand); }

.btn {
  display: block; text-align: center; text-decoration: none;
  padding: 12px 20px; border-radius: var(--radius);
  background: var(--grey); color: #fff; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 14px;
}
.btn:hover, .btn:focus-visible { background: var(--brand); }
.plan.featured .btn { background: var(--brand); }
.plan.featured .btn:hover { background: var(--brand-dark); }

@media (max-width: 760px) { .plans { grid-template-columns: 1fr; max-width: 420px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.contact-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.contact-item .icon { color: var(--brand); width: 32px; height: 32px; }
.contact-item address, .contact-item a { font-style: normal; font-size: 17px; font-weight: 700; color: var(--ink); text-decoration: none; }
.contact-item a:hover { color: var(--brand); }

.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
  .map iframe { height: 320px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9bcbf; padding: 24px 0; font-size: 14px; }
.site-footer p { margin: 0; }

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
}
