/*
Theme Name: Tech Solutions of Eagle
Theme URI: https://techsolutionsofeagle.com
Author: Tech Solutions of Eagle
Description: Single-page site for a local Boise / Eagle, Idaho IT firm, with a built-in spam-filtered contact form.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.2
Text Domain: tse
*/

:root {
  --river: #0E3A47;
  --river-deep: #082731;
  --sage: #7F9C86;
  --mist: #EEF3F2;
  --ink: #17252C;
  --muted: #56666D;
  --line: #CFDAD8;
  --amber: #E3A23B;
  --white: #FFFFFF;
  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--river); }
a:hover { color: var(--river-deep); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--head);
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; font-stretch: 112%; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 750; font-stretch: 108%; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 38em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 100; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1rem;
  padding: .9rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--amber); color: var(--river-deep); }
.btn-primary:hover { background: #F0B455; color: var(--river-deep); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.08); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--river-deep);
  color: var(--white);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--head); font-weight: 800; font-size: 1.1rem; line-height: 1.1; font-stretch: 110%; }
.brand-name small { display: block; font-family: var(--body); font-weight: 400; font-size: .78rem; opacity: .75; font-stretch: 100%; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--white); }
.nav .btn { padding: .6rem 1.1rem; font-size: .92rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); padding: .5rem; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--river-deep); padding: .5rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .nav.open { display: flex; }
  .nav a { padding: .7rem 0; width: 100%; }
  .nav .btn { margin-top: .5rem; width: auto; }
}

/* Hero */
.hero {
  background: var(--river);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 2; padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(9rem, 18vw, 14rem); }
.hero h1 { max-width: 15em; }
.hero .lede { color: rgba(255,255,255,.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero-ridge { position: absolute; left: 0; right: 0; bottom: -2px; z-index: 1; width: 100%; }
.hero-ridge .node { fill: var(--amber); }
.hero-ridge .link { stroke: rgba(255,255,255,.35); stroke-width: 1.4; fill: none; }
.hero-ridge .pulse { animation: pulse 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .hero-ridge .pulse { animation: none; } html { scroll-behavior: auto; } }

.facts { background: var(--mist); border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0; padding: 1.4rem 0; display: flex; flex-wrap: wrap; gap: .6rem 2.4rem; }
.facts li { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .98rem; }
.facts svg { width: 20px; height: 20px; color: var(--sage); flex: none; }

/* Services */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0; margin-top: 2.8rem;
  border-top: 1px solid var(--line);
}
.service {
  padding: 2rem 2rem 2rem 0;
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 44px 1fr; gap: 1.1rem; align-items: start;
}
.service svg { width: 44px; height: 44px; color: var(--river); }
.service h3 { margin-bottom: .35rem; }
.service p { color: var(--muted); margin: 0; font-size: 1rem; }

/* Local section */
.local { background: var(--river-deep); color: var(--white); }
.local .grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.local p { color: rgba(255,255,255,.8); }
.local ul { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.local li { padding: .9rem 0; border-top: 1px solid rgba(255,255,255,.14); }
.local li strong { display: block; font-family: var(--head); font-size: 1.05rem; color: var(--white); }
.local li span { color: rgba(255,255,255,.72); font-size: .98rem; }
.area-map { background: var(--river); border-radius: 10px; padding: 1.5rem; }
.area-map text { font-family: var(--body); fill: rgba(255,255,255,.85); font-size: 13px; }
.area-map .home text { fill: var(--amber); font-weight: 700; font-size: 15px; }
@media (max-width: 860px) { .local .grid { grid-template-columns: 1fr; } }

/* Process */
.steps { list-style: none; padding: 0; margin: 2.8rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--river); padding-top: 1.1rem; }
.steps li::before { content: counter(step); font-family: var(--head); font-weight: 800; font-size: 2rem; color: var(--sage); display: block; margin-bottom: .3rem; }
.steps p { color: var(--muted); font-size: 1rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: var(--mist); }
.contact .grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 6vw, 5rem); }
.contact-direct { margin-top: 1.8rem; }
.contact-direct a { display: block; font-family: var(--head); font-weight: 700; font-size: 1.25rem; text-decoration: none; margin-bottom: .4rem; }
@media (max-width: 860px) { .contact .grid { grid-template-columns: 1fr; } }

.tse-form { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.4rem, 4vw, 2.2rem); }
.tse-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .tse-form .row { grid-template-columns: 1fr; } }
.tse-form label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: .35rem; }
.tse-form .field { margin-bottom: 1.1rem; }
.tse-form input, .tse-form select, .tse-form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .75rem .85rem; border: 1px solid #B9C7C5; border-radius: 6px; background: var(--white);
}
.tse-form textarea { min-height: 140px; resize: vertical; }
.tse-form input:focus, .tse-form select:focus, .tse-form textarea:focus { outline: 3px solid rgba(227,162,59,.5); border-color: var(--river); }
.tse-form .btn-primary { width: 100%; font-size: 1.05rem; }
.tse-form .note { font-size: .85rem; color: var(--muted); margin: .8rem 0 0; }
.tse-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1rem 1.2rem; border-radius: 6px; margin-bottom: 1.2rem; font-weight: 600; }
.notice.ok { background: #E3F1E6; color: #1E5A2E; border: 1px solid #B7DABF; }
.notice.err { background: #FBEAEA; color: #8A2323; border: 1px solid #EBC0C0; }

/* Footer */
.site-footer { background: var(--river-deep); color: rgba(255,255,255,.72); font-size: .93rem; padding: 2.5rem 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer a { color: rgba(255,255,255,.9); }

/* Generic pages */
.page-body { padding: 4rem 0; }
.page-body .wrap { max-width: 760px; }
