/* tightsolutions.com: one stylesheet, phone first. */
:root {
  --green: #537813;
  --green-dark: #3f5c0e;
  --ink: #16181b;
  --muted: #555b61;
  --line: #e2e5e8;
  --paper: #ffffff;
  --soft: #f5f6f4;
  --black: #0d0e0f;
  --radius: 8px;
  --wrap: 1100px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--green-dark); text-underline-offset: 2px; }
a:hover { color: var(--green); }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; margin: 1.6em 0 .5em; }
h1 { font-size: 2rem; margin-top: 0; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.2rem; }
p, ul, ol, blockquote, figure { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
blockquote { border-left: 4px solid var(--green); background: var(--soft); padding: .9em 1.1em; margin-left: 0; border-radius: 0 var(--radius) var(--radius) 0; }
blockquote p:last-child { margin-bottom: 0; }
mark { background: #f3f7a8; padding: 0 .1em; }
figure img { border-radius: var(--radius); }
figcaption { font-size: .9rem; color: var(--muted); margin-top: .4em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: #fff; padding: 8px 12px; }

/* Top bar: wide screens only; phones get the Call button in the header instead. */
.topbar { display: none; }

/* Header: one row on every screen. */
.site-header { background: var(--black); color: #fff; position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; margin-right: auto; }
.site-header .brand:hover { color: #fff; }
.brand img { border-radius: 6px; }
.call, .menu-toggle {
  min-height: 44px; padding: 0 14px; border-radius: var(--radius); font: 600 .95rem var(--font);
  display: inline-flex; align-items: center; cursor: pointer;
}
.call { background: var(--green); color: #fff; text-decoration: none; }
.call:hover { background: var(--green-dark); color: #fff; }
.menu-toggle { background: transparent; color: #fff; border: 1px solid #4a4f55; }
.site-nav { display: none; width: 100%; }
.site-nav.open, .no-js .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 4px 0 12px; }
.site-nav a { display: block; padding: 12px 4px; color: #fff; text-decoration: none; border-top: 1px solid #25282c; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #b9de6d; }
.no-js .menu-toggle { display: none; }

/* Page body */
main { display: block; }
.page { padding-top: 32px; padding-bottom: 48px; max-width: 820px; }
.page-date { color: var(--muted); margin-top: -.3em; }

/* Home */
.hero {
  color: #fff; text-align: center; padding: 64px 0 56px;
  background: linear-gradient(rgba(10, 12, 14, .62), rgba(10, 12, 14, .62)), url("/assets/img/antenna-mast.jpg") center / cover no-repeat;
}
.hero h1 { font-size: 1.75rem; letter-spacing: .02em; margin-bottom: .4em; }
.hero p { font-size: 1.1rem; margin-bottom: 1.4em; }
.buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 0; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  border-radius: var(--radius); background: var(--green); color: #fff; border: 1px solid var(--green);
  font: 600 .95rem var(--font); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.button-ghost { background: transparent; border-color: #fff; }
.button-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.projects { padding-top: 40px; padding-bottom: 48px; text-align: center; }
.projects h2 { margin-top: 0; }
.projects > p { color: var(--muted); }

/* Cards: home projects and the Services page */
.cards { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; text-align: left; }
.card { background: var(--soft); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); padding: 18px 20px; }
.card h2, .card h3 { margin: 0 0 .4em; font-size: 1.15rem; }
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--green-dark); text-decoration: underline; }
.card p { margin: 0; }
.card .more { display: inline-block; margin-top: 10px; font-weight: 600; padding: 6px 0; }

/* Wireless page: the three narrow photos sit side by side */
.photo-row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 1em; }
.photo-row figure { flex: 1 1 90px; max-width: 182px; margin: 0; }
.photo-row figure:has(figcaption) { order: 3; flex-basis: 100%; max-width: none; display: flex; gap: 12px; align-items: flex-start; }
.photo-row figure:has(figcaption) img { width: 120px; flex: none; }

/* Contact form */
.contact-form { display: grid; gap: 16px; max-width: 560px; }
.contact-form fieldset { border: 0; padding: 0; margin: 0; }
.contact-form legend, .contact-form label { font-weight: 600; }
.contact-form .row { display: grid; gap: 12px; margin-top: 6px; }
.contact-form .row label { font-weight: 400; color: var(--muted); font-size: .95rem; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px; font: 400 1rem var(--font);
  border: 1px solid #c9ced3; border-radius: var(--radius); background: #fff; color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.contact-form .req { color: #b3261e; }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form .button { justify-self: start; }

/* Footer */
.site-footer { background: var(--black); color: #c9cdd1; font-size: .95rem; }
.site-footer a { color: #e6e8ea; }
.site-footer a:hover { color: #b9de6d; }
.skyline { display: block; width: 100%; height: 90px; object-fit: cover; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; padding-top: 28px; padding-bottom: 8px; }
.footer-about { grid-column: 1 / -1; }
.footer-about .brand { color: #fff; margin-bottom: 8px; }
.site-footer h2 { font-size: 1rem; color: #fff; margin: .6em 0 .4em; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 1em; }
.site-footer li { padding: 4px 0; }
.site-footer li a { display: inline-block; padding: 4px 0; }
.site-footer > .wrap > div:last-child { grid-column: 1 / -1; }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a, .topbar-social a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid #3a3f45;
  border-radius: 999px; text-decoration: none; font-size: .9rem;
}
.copy { border-top: 1px solid #25282c; padding-top: 14px; padding-bottom: 24px; margin: 0 auto; color: #8f959b; }

/* Wider screens */
@media (min-width: 560px) {
  .contact-form .row { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 880px) {
  body { font-size: 18px; }
  h1 { font-size: 2.4rem; }
  .topbar { display: block; background: var(--green); color: #fff; font-size: .9rem; }
  .topbar .wrap { display: flex; align-items: center; gap: 22px; min-height: 40px; }
  .topbar a { color: #fff; text-decoration: none; }
  .topbar a:hover { text-decoration: underline; color: #fff; }
  .topbar-social { margin-left: auto; display: flex; gap: 6px; }
  .topbar-social a { min-height: 28px; border-color: rgba(255, 255, 255, .45); font-size: .82rem; padding: 0 10px; }
  .site-header .wrap { flex-wrap: nowrap; min-height: 68px; }
  .call, .menu-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; width: auto; }
  .site-nav ul { display: flex; gap: 6px; padding: 0; }
  .site-nav a { border: 0; padding: 8px 12px; border-radius: 6px; }
  .page { padding-top: 48px; padding-bottom: 64px; }
  .hero { padding: 120px 0 110px; }
  .hero h1 { font-size: 2.8rem; }
  .projects { padding-top: 64px; padding-bottom: 72px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .services .cards { grid-template-columns: repeat(2, 1fr); }
  .skyline { height: auto; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; padding-top: 40px; }
  .footer-about, .site-footer > .wrap > div:last-child { grid-column: auto; }
}

/* Live from our antennas */
.live h3 { margin-top: .4em; }
.live-frame { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--soft); aspect-ratio: 4 / 5; }
.live-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-link { margin-top: .6em; font-weight: 600; }
@media (min-width: 880px) { .live-frame { aspect-ratio: 16 / 10; } }
