/* ==========================================================================
   Cowboy Technology LLC — site styles
   Palette: deep charcoal night sky + warm rust/copper leather + cream
   ========================================================================== */

:root {
  --bg: #0d1117;
  --bg-elev: #141a23;
  --bg-card: #181f29;
  --border: #2a3340;
  --text: #ece6d8;
  --text-muted: #9aa0a8;
  --accent: #c97b3a;        /* warm copper / leather */
  --accent-hover: #d99459;
  --accent-soft: #2a1f15;   /* subtle background tint */
  --tan: #d4a574;
  --max: 1100px;
  --radius: 10px;
  --transition: 200ms ease;
  --font-display: "Bitter", Georgia, "Times New Roman", serif;
  --font-wordmark: "Rye", "Bitter", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-hover); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #111;
  padding: 8px 12px;
  z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 17, 23, 0.86);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-mark {
  color: var(--accent);
  display: inline-flex;
}
.brand-text {
  font-family: var(--font-wordmark);
  font-size: 18px;
  letter-spacing: 0.5px;
  line-height: 1;
}
.brand-text strong { color: var(--text); font-weight: 400; }
.brand-text span {
  color: var(--accent);
  margin-left: 4px;
  font-weight: 400;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-header nav a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}
.site-header nav a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: #111 !important;
  padding: 8px 14px;
  border-radius: 6px;
}
.nav-cta:hover { background: var(--accent-hover); }

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: #111;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #111;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(201, 123, 58, 0.18), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(212, 165, 116, 0.07), transparent 60%),
    var(--bg);
}
.hero-inner { text-align: left; max-width: 760px; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 14px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  margin: 0 0 22px;
  color: var(--text);
}
.hero-title .line-1 { display: block; }
.hero-title .line-2 {
  display: block;
  color: var(--accent);
  font-style: italic;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 0 32px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.hero-trust {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.badge {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}
.hero-divider {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

/* ----- Sections ----- */
.section {
  padding: 90px 0;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { border-bottom: none; }

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 18px;
  color: var(--text);
}
.section p { color: var(--text); }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}
.section-head .lede {
  color: var(--text-muted);
  font-size: 17px;
  margin-top: 8px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}

/* About */
.about p { color: var(--text); margin-bottom: 16px; }
.creds {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 8px;
}
.creds li {
  padding-left: 22px;
  position: relative;
  color: var(--text-muted);
}
.creds li::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 90px;
}
.about-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 18px;
  color: var(--accent);
}
.about-card dl { margin: 0; }
.about-card dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 14px;
}
.about-card dt:first-of-type { margin-top: 0; }
.about-card dd {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 15px;
}

/* Services grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0 0 8px;
  color: var(--text);
}
.card p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}

/* Contact */
.contact { background: var(--bg-elev); }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-list .ico {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-list a {
  color: var(--text);
  font-weight: 500;
}
.contact-list a:hover { color: var(--accent); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}
.field .optional {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 13px;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  padding: 11px 13px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 123, 58, 0.18);
}
.field textarea { resize: vertical; min-height: 110px; }
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin: 14px 0 0;
  font-size: 14px;
  min-height: 1.2em;
  color: var(--text-muted);
}
.form-status.success { color: #7bc47f; }
.form-status.error   { color: #e07a7a; }

/* Footer */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
}
.site-footer p { margin: 0; }

/* Responsive */
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .about-card { position: static; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 90px 0 70px; }
  .section { padding: 70px 0; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .site-header nav { gap: 14px; }
  .site-header nav a:not(.nav-cta) { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
