/* ThyTech Computers site styles */

:root {
  --ink: #16181d;
  --ink-2: #23262e;
  --text: #2b2f36;
  --muted: #5d6470;
  --line: #e2e5ea;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --brand: #a3150c;
  --brand-dark: #790a03;
  --brand-light: #eb5757;
  --brand-tint: #fbeceb;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(22, 24, 29, .06), 0 6px 20px rgba(22, 24, 29, .07);
  --heading: Montserrat, "Segoe UI", Arial, sans-serif;
  --body: "Open Sans", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { font-family: var(--heading); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 2px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 8px; border: 2px solid transparent; font-family: var(--heading); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--brand-tint); color: var(--brand-dark); }
.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: wait; }

/* Top bar + header */
.topbar { background: #0e0f12; color: #c9ccd2; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; text-decoration: none; margin-left: 20px; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar .topbar-strong { font-weight: 600; color: var(--brand-light); }
@media (max-width: 480px) { .topbar .topbar-optional { display: none; } }
.site-header { background: var(--ink); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand img { width: 198px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link { display: block; padding: 10px 12px; color: #e8eaee; font-family: var(--heading); font-weight: 600; font-size: .95rem; text-decoration: none; background: none; border: 0; cursor: pointer; }
.nav-link:hover, .nav-link[aria-current="page"] { color: #fff; }
.nav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand-light); }
.nav-sub-toggle::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav-sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: none; }
.nav-sub a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-sub a:hover, .nav-sub a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-dark); }
.has-sub.open .nav-sub { display: block; }
@media (hover: hover) and (min-width: 1025px) {
  .has-sub:hover .nav-sub, .has-sub:focus-within .nav-sub { display: block; }
}
.nav-cta { padding: 10px 18px; }
.nav-toggle { display: none; }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 24px; height: 2px; background: #fff; position: relative; transition: transform .2s; }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -7px; }
  .nav-toggle-bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: var(--ink); border-top: 1px solid rgba(255, 255, 255, .08); max-height: calc(100vh - 72px); overflow-y: auto; }
  .site-nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-link { width: 100%; text-align: left; padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav-link[aria-current="page"] { box-shadow: none; color: var(--brand-light); }
  .nav-sub { position: static; box-shadow: none; background: transparent; padding: 0 0 8px 12px; min-width: 0; }
  .nav-sub a { color: #c9ccd2; }
  .nav-sub a:hover, .nav-sub a[aria-current="page"] { background: rgba(255, 255, 255, .06); color: #fff; }
  .nav-cta { margin-top: 16px; }
  .topbar-inner > span:first-child { display: none; }
  .topbar-inner { justify-content: flex-end; }
}

/* Sections */
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow { display: inline-block; font-family: var(--heading); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Hero */
.hero { position: relative; color: #e8eaee; background: radial-gradient(1200px 500px at 85% -10%, rgba(235, 87, 87, .28), transparent 60%), linear-gradient(135deg, #16181d 0%, #23262e 55%, #3a0d0a 100%); padding: 96px 0 88px; overflow: hidden; }
.hero h1 { color: #fff; max-width: 820px; }
.hero .lead { color: #c9ccd2; max-width: 680px; font-size: 1.2rem; }
.hero .eyebrow { color: var(--brand-light); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; padding: 0; margin: 0; font-size: .95rem; color: #c9ccd2; }
.hero-points li::before { content: "\2713"; color: var(--brand-light); font-weight: 700; margin-right: 8px; }
/* Homepage hero with the forest photo; the overlay is darkest behind the text, where the photo is brightest fog */
.hero-photo { --hero-img: url("/images/hero-forest-2000.jpg"); padding: 130px 0 120px; background-color: #16181d; background-image: linear-gradient(90deg, rgba(14, 15, 18, .9) 0%, rgba(14, 15, 18, .78) 45%, rgba(14, 15, 18, .35) 100%), linear-gradient(180deg, rgba(14, 15, 18, .35) 0%, rgba(58, 13, 10, .35) 100%), var(--hero-img); background-size: cover; background-position: center 60%; }
@supports (background-image: image-set(url("a.webp") type("image/webp") 1x)) {
  .hero-photo { --hero-img: image-set(url("/images/hero-forest-2000.webp") type("image/webp") 1x, url("/images/hero-forest-2000.jpg") type("image/jpeg") 1x); }
}
@media (max-width: 1200px) { .hero-photo { --hero-img: url("/images/hero-forest-1200.webp"); } }
@media (max-width: 700px) {
  .hero-photo { --hero-img: url("/images/hero-forest-800.webp"); padding: 72px 0 64px; background-image: linear-gradient(180deg, rgba(14, 15, 18, .86), rgba(14, 15, 18, .78)), var(--hero-img); }
}
.hero-photo .lead, .hero-photo .hero-points { color: #dfe2e7; }
.page-hero { padding: 72px 0 64px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }

/* Grids + cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card p { color: var(--muted); }
.card .card-link { margin-top: auto; font-family: var(--heading); font-weight: 600; text-decoration: none; }
.card .card-link::after { content: " \2192"; }
a.card { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.card:hover { transform: translateY(-3px); border-color: #d3a6a3; color: inherit; }
.icon { width: 48px; height: 48px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23a3150c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checklist.cols-2 { columns: 2; column-gap: 40px; }
.checklist.cols-2 li { break-inside: avoid; }
@media (max-width: 640px) { .checklist.cols-2 { columns: 1; } }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split-top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--heading); font-weight: 700; margin-bottom: 16px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Values */
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.value { border-top: 3px solid var(--brand); padding-top: 16px; }
.value h3 { margin-bottom: .4em; }
.value p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 1000px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* Partner logos */
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 40px; list-style: none; padding: 0; margin: 0; }
.logo-strip img { height: 32px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logo-strip img:hover { filter: none; opacity: 1; }
.logo-strip img.logo-wide { height: 22px; }
.logo-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Area chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 20px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: .95rem; }
.center .chips { justify-content: center; }
.center { text-align: center; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--heading); font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--brand); font-weight: 400; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 0 20px; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--brand-dark), var(--brand) 60%, #c43a2f); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #fbe3e1; margin: 0; max-width: 620px; font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
@media (max-width: 860px) { .cta-inner { flex-direction: column; align-items: flex-start; } }

/* Forms */
.form-card { background: #fff; border-radius: 14px; padding: 32px; box-shadow: 0 10px 40px rgba(22, 24, 29, .12); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.field label span { color: var(--brand); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 11px 13px; border: 1px solid #c8cdd5; border-radius: 8px; background: #fff; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(163, 21, 12, .15); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c0392b; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-box { margin: 4px 0 16px; min-height: 65px; }
.form-note { font-size: .88rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.form-success { text-align: center; padding: 20px 0; }
.form-error { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: #fdecea; color: #8a1c12; font-size: .95rem; }

/* Contact details */
.contact-list { list-style: none; padding: 0; margin: 24px 0; }
.contact-list li { margin-bottom: 14px; }
.contact-list strong { display: block; font-family: var(--heading); color: var(--ink); }

/* Prose (articles) */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius); margin: 24px 0; }
.prose li { margin-bottom: .4em; }

/* Media */
.media-frame { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Footer */
.site-footer { background: var(--ink); color: #b6bac2; padding: 64px 0 0; font-size: .95rem; }
.site-footer a { color: #dfe2e7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-brand img { margin-bottom: 16px; }
.footer-heading { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 20px; padding-bottom: 24px; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.social-links { display: flex; gap: 18px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 60px; }
  .form-card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
