/* Texoma Automations */
:root {
  --ink: #0f1b2d;
  --ink-2: #1c2b42;
  --text: #24324a;
  --muted: #5a6880;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --accent: #d9622b;
  --accent-dark: #b84f1f;
  --accent-soft: #fdf0e9;
  --ok: #1f8a5b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 8px 24px rgba(15, 27, 45, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
section[id] { scroll-margin-top: 72px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-top: 2.5rem; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4em;
  padding: .85em 1.4em;
  border-radius: 10px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(217, 98, 43, .4); outline-offset: 2px;
}
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
.btn-sm { padding: .5em 1em; font-size: .9rem; white-space: nowrap; }
.lbl-sm { display: none; }
@media (max-width: 480px) { .lbl-lg { display: none; } .lbl-sm { display: inline; } }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 27, 45, .96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.brand img { border-radius: 8px; }
.nav { display: none; gap: 28px; }
.nav a { color: rgba(255,255,255,.78); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: #fff; }
@media (max-width: 420px) {
  .brand span { font-size: .95rem; }
  .site-header .btn-sm { padding: .45em .75em; font-size: .82rem; }
}

/* Hero */
.hero {
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(217, 98, 43, .22), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: rgba(255,255,255,.86);
  padding: 56px 0 64px;
}
.hero h1 { color: #fff; }
.hero-grid { display: grid; gap: 44px; align-items: center; }
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9em;
}
.hero .eyebrow { color: #f3a27b; }
.lead { font-size: clamp(1.2rem, 2.6vw, 1.45rem); color: #fff; font-weight: 600; line-height: 1.4; }
.sub { color: rgba(255,255,255,.74); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1em; }
.fine { font-size: .85rem; color: var(--muted); margin: .8em 0 0; }
.hero .fine { color: rgba(255,255,255,.55); }

/* Phone mock */
.phone {
  background: #fff;
  color: var(--text);
  border-radius: 26px;
  padding: 18px 16px 14px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
  font-size: .92rem;
  line-height: 1.45;
}
.phone-top { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; color: var(--muted); padding: 0 4px 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.phone-top .dot { width: 8px; height: 8px; border-radius: 50%; background: #e0483e; }
.bubble { max-width: 85%; padding: 9px 13px; border-radius: 18px; margin-bottom: 8px; }
.bubble.out { background: var(--accent); color: #fff; margin-left: auto; border-bottom-right-radius: 6px; }
.bubble.in { background: #edf0f4; color: var(--ink); border-bottom-left-radius: 6px; }
.ph { font-weight: 700; }
.phone-note { font-size: .72rem; color: var(--muted); text-align: center; margin: 10px 0 0; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 40em; }

/* Service cards */
.cards { display: grid; gap: 18px; margin-top: 2.2rem; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card p { font-size: .97rem; }
.problem { color: var(--muted); }
.problem strong, .outcome strong { color: var(--ink); }
.outcome { margin-bottom: 0; }
.card-open { background: var(--ink); border-color: var(--ink); color: rgba(255,255,255,.8); }
.card-open h3, .card-open .problem strong { color: #fff; }
.card-open .problem { color: rgba(255,255,255,.72); }
.card-open .icon { background: rgba(255,255,255,.08); }
.card-open .icon svg { stroke: #f3a27b; }
.text-link { display: inline-block; margin-top: 1em; color: #f3a27b; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Who it's for */
.two-col { display: grid; gap: 32px; align-items: start; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  background: #fff; border: 1px solid var(--line);
  padding: .55em 1em; border-radius: 999px;
  font-weight: 600; color: var(--ink); font-size: .95rem;
}

/* Steps */
.steps { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 18px; counter-reset: none; }
.steps li { position: relative; padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step-num {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 800;
  margin-bottom: 14px;
}
.steps p { color: var(--muted); margin: 0; font-size: .97rem; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; color: var(--ink); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--accent); }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Contact */
.contact { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.checks { list-style: none; padding: 0; margin: 1.5em 0 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: .6em; font-weight: 600; color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9622b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: 0 2px 4px rgba(15,27,45,.04), 0 18px 40px rgba(15,27,45,.08);
}
.field { margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; gap: 0 14px; }
label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
input, textarea {
  width: 100%;
  font: inherit; font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #cfd7e3;
  border-radius: 10px;
  padding: .7em .85em;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,98,43,.15); outline: none; }
textarea { resize: vertical; min-height: 110px; }
::placeholder { color: #98a3b5; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fdecea; color: #a12c1f; border-radius: 10px; padding: .75em 1em; font-size: .95rem; font-weight: 600; }
.success { text-align: center; padding: 18px 4px; }
.success svg { width: 56px; height: 56px; margin: 0 auto 14px; padding: 12px; border-radius: 50%; background: #e3f4ec; fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.success p { color: var(--muted); margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); font-size: .9rem; padding: 28px 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.footer-row span { overflow-wrap: anywhere; }

/* Larger screens */
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 32px; }
}
@media (min-width: 900px) {
  body { font-size: 18px; }
  .nav { display: flex; }
  .hero { padding: 96px 0 104px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .section { padding: 104px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .contact .two-col { align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
