/*
Theme Name: Cable Cowboys
Author: Cable Cowboys
Description: One-page website for Cable Cowboys Technology & Infrastructure. Add jobs under "Our Work" in the dashboard, and set your phone, email and quote inbox under Appearance > Customize.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cable-cowboys
*/

:root {
  /* Layout idea: alternating cream and pine-green bands, like the primary and
     reversed logo. One orange "cable run" threads through as rules and lines. */
  --ink: #17301F;          /* logo green: text on cream, dark bands */
  --ink-2: #1F3F2A;        /* raised surface on dark bands */
  --cream: #F6EFDD;        /* logo ground */
  --cream-2: #ECE2C7;      /* cards and fields on cream */
  --orange: #D9601A;       /* logo accent on cream */
  --orange-hi: #E8752B;    /* logo accent on green, buttons */
  --body-on-cream: #33473A;
  --body-on-ink: #D8D3BC;
  --display: 'Alfa Slab One', 'Rockwell', 'Roboto Slab', Georgia, serif;
  --label: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange-hi); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }

.label {
  font-family: var(--label);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 15px;
  line-height: 1.2;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--label); font-weight: 600; font-size: 19px;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  padding: 14px 26px; border: 3px solid var(--orange-hi); border-radius: 4px;
  background: var(--orange-hi); color: var(--ink); cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); background: #F08A45; border-color: #F08A45; }
.btn.ghost { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn.ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn.small { font-size: 16px; padding: 9px 18px; }

/* Quick-calls strip */
.alert-strip { display: block; background: var(--orange-hi); color: var(--ink); text-decoration: none; text-align: center; font-family: var(--label); font-weight: 600; font-size: 17px; letter-spacing: 0.06em; line-height: 1.3; padding: 9px 16px; }
.alert-strip:hover { background: #F08A45; }
.alert-strip strong { font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; margin-right: 12px; }
.alert-strip .go { display: inline-block; margin-left: 10px; transition: transform .15s ease; }
.alert-strip:hover .go { transform: translateX(4px); }

/* Header */
.site-head { background: var(--cream); border-bottom: 3px solid var(--ink); position: sticky; top: 0; z-index: 10; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 10px; padding-bottom: 10px; }
.lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.lockup svg { width: 46px; height: 53px; flex: none; }
.lockup-text { display: flex; flex-direction: column; gap: 4px; }
.lockup-name { font-family: var(--display); font-size: 25px; line-height: 1; letter-spacing: 0.01em; white-space: nowrap; }
.lockup-sub { font-family: var(--label); font-weight: 600; font-size: 10.5px; letter-spacing: 0.3em; line-height: 1; white-space: nowrap; border-bottom: 2px solid var(--orange); padding-bottom: 5px; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { white-space: nowrap; }
.nav a.link { font-family: var(--label); font-weight: 600; font-size: 17px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a.link:hover { border-bottom-color: var(--orange); }

/* Hero */
.hero { background: var(--ink); color: var(--cream); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero .label { color: var(--orange-hi); }
.hero h1 { font-family: var(--display); font-size: clamp(42px, 6.2vw, 78px); line-height: 1.02; letter-spacing: 0.005em; margin-top: 18px; }
.hero h1 span { display: block; }
.run { height: 4px; background: var(--orange-hi); margin: 28px 0; transform-origin: left center; animation: pull 1.1s cubic-bezier(.2,.7,.2,1) .15s both; max-width: 520px; }
@keyframes pull { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero p.lede { font-size: 21px; line-height: 1.5; color: var(--body-on-ink); max-width: 33em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.badge { justify-self: center; width: min(100%, 400px); aspect-ratio: 1; border-radius: 50%; border: 8px solid var(--orange-hi); display: flex; align-items: center; justify-content: center; color: var(--cream); background: var(--ink-2); }
.badge svg { width: 59%; height: auto; }

/* Tri-star band */
.creed { background: var(--cream); padding: 44px 0 40px; text-align: center; }
.creed .tristar { display: block; width: min(100%, 620px); height: auto; margin: 0 auto 14px; }
.creed p { font-family: var(--label); font-weight: 600; font-style: italic; font-size: clamp(19px, 2.6vw, 27px); letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.25; }

/* Sections */
section { scroll-margin-top: 84px; }
.band { padding: 80px 0 88px; }
.band.dark { background: var(--ink); color: var(--cream); }
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 44px; }
.sec-head .label { color: var(--orange); }
.dark .sec-head .label { color: var(--orange-hi); }
.sec-head h2 { font-family: var(--display); font-size: clamp(32px, 4.4vw, 50px); line-height: 1.06; }
.sec-head p { color: var(--body-on-cream); max-width: 38em; }
.dark .sec-head p { color: var(--body-on-ink); }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--ink); border-left: 3px solid var(--ink); }
.svc { border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 12px; background: var(--cream); transition: background .2s ease; }
.svc:hover { background: var(--cream-2); }
.svc.wide { grid-column: 1 / -1; }
.svc.wide p { max-width: 44em; }
.svc .tag { align-self: flex-start; font-family: var(--label); font-weight: 600; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.35; background: var(--ink); color: var(--cream); padding: 4px 10px 4px 12px; border-left: 5px solid var(--orange-hi); }
.svc h3 { font-family: var(--display); font-size: 26px; line-height: 1.1; }
.svc p { color: var(--body-on-cream); font-size: 17px; }

/* Process: steps strung on one cable */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 4px; background: var(--orange-hi); }
.steps li { position: relative; padding-top: 68px; display: grid; gap: 10px; align-content: start; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); border: 4px solid var(--orange-hi); color: var(--cream); font-family: var(--display); font-size: 20px; display: flex; align-items: center; justify-content: center; line-height: 1; }
.steps h3 { font-family: var(--display); font-size: 23px; line-height: 1.15; }
.steps p { color: var(--body-on-ink); font-size: 17px; }

/* Who we work for */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.who { border: 3px solid var(--ink); padding: 32px 30px 34px; display: grid; gap: 14px; align-content: start; }
.who.fill { background: var(--ink); color: var(--cream); }
.who .label { color: var(--orange); }
.who.fill .label { color: var(--orange-hi); }
.who h3 { font-family: var(--display); font-size: 30px; line-height: 1.1; }
.who p { color: var(--body-on-cream); }
.who.fill p { color: var(--body-on-ink); }
.who ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 17px; }
.who li { padding-left: 22px; position: relative; }
.who li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 12px; height: 3px; background: var(--orange-hi); }
.promise { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; border-top: 3px solid var(--ink); padding-top: 36px; }
.promise h3 { font-family: var(--label); font-weight: 600; font-size: 22px; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.2; margin-bottom: 8px; }
.promise p { color: var(--body-on-cream); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.contact .sec-head { margin-bottom: 28px; }
.reach { display: grid; gap: 18px; margin: 0; }
.reach div { display: grid; gap: 4px; }
.reach dt { font-family: var(--label); font-weight: 600; font-size: 14px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--orange-hi); }
.reach dd { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
form { background: var(--cream); color: var(--ink); padding: 30px; border-radius: 4px; display: grid; gap: 18px; border-top: 8px solid var(--orange-hi); }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--label); font-weight: 600; font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; color: var(--ink); background: #FFFBF0;
  border: 2px solid var(--ink); border-radius: 3px; padding: 11px 12px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
form .btn { justify-self: start; }
.form-note { font-size: 16px; color: var(--body-on-cream); border-left: 5px solid var(--orange); padding: 4px 0 4px 12px; }
.form-note[hidden] { display: none; }

/* Footer */
.site-foot { background: var(--cream); border-top: 3px solid var(--ink); padding: 44px 0 36px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-foot small { font-size: 15px; color: var(--body-on-cream); }
.foot-meta { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 28px; border-top: 2px solid var(--cream-2); padding-top: 18px; }
.foot-meta .powered { font-weight: 600; color: var(--ink); }
.foot-lockup svg { width: 62px; height: 71px; }
.foot-lockup .lockup-name { font-size: 32px; }
.foot-lockup .lockup-sub { font-size: 13px; }

/* Quick calls */
.fixes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.fixes li { border-top: 4px solid var(--orange-hi); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.fixes h3 { font-family: var(--display); font-size: 22px; line-height: 1.15; }
.fixes p { color: var(--body-on-ink); font-size: 17px; }
.quick-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 44px; }
.quick-foot p { color: var(--body-on-ink); font-size: 17px; max-width: 34em; }

/* Our work */
.band.work { background: var(--cream-2); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.job { background: var(--cream); border: 3px solid var(--ink); display: flex; flex-direction: column; }
.job .pic { position: relative; aspect-ratio: 4 / 3; border-bottom: 3px solid var(--ink); overflow: hidden; background: var(--ink); }
.job-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.job-meta { font-family: var(--label); font-weight: 600; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.3; color: var(--orange); }
.job h3 { font-family: var(--display); font-size: 24px; line-height: 1.12; }
.job p.sum { color: var(--body-on-cream); font-size: 17px; }
.more { align-self: flex-start; margin-top: auto; font-family: var(--label); font-weight: 600; font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.2; background: none; border: 0; border-bottom: 3px solid var(--orange); padding: 4px 0 3px; color: var(--ink); cursor: pointer; }
.more:hover { color: var(--orange); }
.photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph { width: 100%; height: 100%; background-color: var(--ink); background-image: repeating-linear-gradient(135deg, rgba(246, 239, 221, 0.05) 0 14px, transparent 14px 28px); color: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 16px; }
.ph svg { width: 44px; height: 50px; opacity: 0.35; }
.ph span { font-family: var(--label); font-weight: 600; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--body-on-ink); }
.chip { position: absolute; top: 12px; left: 12px; background: var(--orange-hi); color: var(--ink); font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1; padding: 5px 8px; }
.jobs-foot { display: flex; justify-content: center; margin-top: 36px; }
.jobs-foot[hidden], .job[hidden], .thumbs[hidden], .caption[hidden] { display: none; }

/* Job overlay */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(12, 26, 17, 0.84); display: flex; align-items: center; justify-content: center; padding: 24px; }
.overlay[hidden] { display: none; }
body.locked { overflow: hidden; }
.panel { position: relative; background: var(--cream); color: var(--ink); width: min(100%, 1000px); max-height: 100%; overflow: auto; border-top: 8px solid var(--orange-hi); border-radius: 4px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.gallery { background: var(--ink); display: flex; flex-direction: column; }
.stage { position: relative; aspect-ratio: 4 / 3; }
.stage .chip { z-index: 1; }
.step-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--orange-hi); background: var(--ink); color: var(--cream); font-family: var(--display); font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.step-btn:hover { background: var(--orange-hi); color: var(--ink); }
.step-btn.prev { left: 12px; }
.step-btn.next { right: 12px; }
.step-btn[hidden] { display: none; }
.caption { margin: 0; padding: 12px 14px 0; font-size: 15px; color: var(--body-on-ink); }
.thumbs { display: flex; gap: 8px; padding: 12px 14px 14px; overflow-x: auto; }
.thumb { width: 76px; height: 57px; flex: none; padding: 0; border: 3px solid transparent; background: none; cursor: pointer; overflow: hidden; }
.thumb[aria-current="true"] { border-color: var(--orange-hi); }
.thumb .ph { padding: 4px; gap: 0; }
.thumb .ph span { display: none; }
.thumb .ph svg { width: 18px; height: 21px; }
.detail { padding: 34px 30px 32px; display: flex; flex-direction: column; gap: 14px; }
.detail h3 { font-family: var(--display); font-size: 32px; line-height: 1.08; padding-right: 36px; }
.detail .sum { color: var(--body-on-cream); }
.detail h4 { margin: 8px 0 0; font-family: var(--label); font-weight: 600; font-size: 15px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--orange); }
.detail ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 17px; }
.detail li { padding-left: 22px; position: relative; }
.detail li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 12px; height: 3px; background: var(--orange-hi); }
.close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--ink); background: var(--cream); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.close:hover { background: var(--ink); color: var(--cream); }

@media (max-width: 1060px) {
  .nav a.link { display: none; }
}
@media (max-width: 900px) {
  .fixes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { grid-template-columns: 1fr; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 52px; padding-bottom: 60px; }
  .badge { width: min(70%, 300px); order: -1; justify-self: start; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { left: 21px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; }
  .steps li { padding-top: 0; padding-left: 68px; min-height: 46px; }
  .contact { grid-template-columns: 1fr; gap: 36px; }
  .nav a.link { display: none; }
}
@media (max-width: 640px) {
  .alert-strip { font-size: 15px; white-space: nowrap; padding: 9px 12px; }
  .alert-strip strong { letter-spacing: 0.1em; margin-right: 8px; }
  .alert-strip .go { margin-left: 6px; }
  .foot-meta { justify-content: flex-start; }
  .fixes { grid-template-columns: 1fr; }
  .jobs { grid-template-columns: 1fr; }
  .overlay { padding: 0; }
  .panel { height: 100%; border-radius: 0; align-content: start; }
  .detail { padding: 26px 20px 30px; }
  .detail h3 { font-size: 27px; }
  body { font-size: 17px; }
  .wrap { padding: 0 18px; }
  .band { padding: 56px 0 64px; }
  .services, .split, .promise, .row { grid-template-columns: 1fr; }
  .lockup svg { width: 38px; height: 44px; }
  .lockup-name { font-size: 18px; }
  .site-head .wrap { gap: 12px; }
  .lockup { min-width: 0; }
  .lockup-text { min-width: 0; overflow: hidden; }
  .lockup-sub { font-size: 8.5px; letter-spacing: 0.26em; }
  .btn.small { font-size: 13px; padding: 8px 10px; letter-spacing: 0.08em; }
  form { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .alert-strip .go { transition: none; }
  html { scroll-behavior: auto; }
  .run { animation: none; }
  .btn, .svc { transition: none; }
  .btn:hover { transform: none; }
}

/* WordPress additions */
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-head { top: 0; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note.ok { border-left-color: var(--ink); }
.reach a { text-decoration: none; border-bottom: 2px solid var(--orange-hi); }
.reach a:hover { color: var(--orange-hi); }
.page-band { padding: 64px 0 80px; }
.page-band h1 { font-family: var(--display); font-size: clamp(32px, 4.4vw, 50px); line-height: 1.06; margin-bottom: 24px; }
.page-content { max-width: 44em; display: grid; gap: 16px; }
.page-content h2, .page-content h3 { font-family: var(--display); line-height: 1.15; margin-top: 12px; }
.page-content a { color: var(--orange); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
