/* CNC Repair Texas — Wix-matched corporate industrial (Cloudflare Pages) */
:root {
  --navy: #0f172a;
  --slate-band: #1e293b;
  --pale: #e2e8f0;
  --pale-soft: #eef2f5;
  --near-white: #f4f7f8;
  --orange: #ea580c;
  --orange-hover: #c2410c;
  --orange-soft: #fdba74;
  --white: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #cbd5e1;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Syne", "Arial Black", Impact, system-ui, sans-serif;
  --header-h: 78px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 16.5px;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--orange-hover); }
ul { list-style: none; }
code {
  font-size: 0.82em;
  background: rgba(15, 23, 42, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.container {
  width: min(100% - 5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.055);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  gap: 1.25rem;
  padding-block: 0.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  justify-self: start;
}
.brand:hover { color: inherit; }
.brand-logo {
  height: 58px;
  width: auto;
  max-width: min(248px, 44vw);
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.08));
}
.brand-logo-footer {
  height: 50px;
  max-width: min(210px, 52vw);
}

.nav { justify-self: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-list a {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  border-bottom: 1.5px solid transparent;
}
.nav-list a:hover,
.nav-list a.is-active {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

.header-cta { justify-self: end; }

.nav-toggle {
  display: none;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  justify-self: end;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-pill {
  background: var(--orange);
  color: #fff !important;
  padding: 0.9rem 1.85rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.3);
}
.btn-pill:hover {
  background: var(--orange-hover);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.38);
}
.btn-pill-ghost {
  background: transparent;
  color: var(--navy) !important;
  border: 2px solid var(--navy);
  box-shadow: none;
}
.btn-pill-ghost:hover {
  background: var(--navy);
  color: #fff !important;
  box-shadow: none;
}
.about-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  margin-top: 0.85rem;
  align-items: center;
}
.header-cta.btn-pill {
  padding: 0.82rem 1.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.btn-block {
  width: auto;
  min-width: 240px;
  padding: 1.05rem 2.4rem;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  margin-top: 0.5rem;
  float: right;
  clear: both;
}

/* ——— Display typography (wide industrial) ——— */
.display-title {
  font-family: var(--display);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-size: clamp(2.5rem, 5.6vw, 3.75rem);
  margin-bottom: 2.85rem;
  font-stretch: condensed;
}
.display-title-lg {
  font-size: clamp(2.15rem, 4.6vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 3rem;
  line-height: 0.98;
}
.display-title-light {
  color: #fff;
  margin-bottom: 1.4rem;
  font-size: clamp(1.95rem, 3.6vw, 2.7rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.display-title-stack {
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(2.35rem, 5.2vw, 3.55rem);
  margin-bottom: 0;
  line-height: 0.96;
}
.display-title-center {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  margin-bottom: 1.2rem;
}

.section-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1rem;
  opacity: 0.72;
}
.section-tag-light { color: rgba(255, 255, 255, 0.68); opacity: 1; }
.section-sub {
  color: var(--text-muted);
  font-size: 1.06rem;
  max-width: 40rem;
  margin: -1.85rem 0 3.25rem;
  line-height: 1.72;
}

.section { padding: 6.25rem 0; }
.col-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.32rem;
  color: var(--navy);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

/* ——— Core Solutions ——— */
.section-core {
  position: relative;
  overflow: hidden;
  background: var(--pale);
  padding-top: 5.5rem;
  padding-bottom: 6.25rem;
}
.core-watermark {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.core-watermark img {
  width: min(70vw, 880px);
  height: auto;
  max-height: 120%;
  object-fit: contain;
  opacity: 0.11;
  filter: grayscale(15%) contrast(1.06);
  transform: translateY(1%);
}
.section-core > .container {
  position: relative;
  z-index: 1;
}
.core-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 3.75rem;
}
.core-col {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.core-col p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* ——— Technical Authority ——— */
.section-authority {
  background: var(--white);
  padding-top: 5.75rem;
  padding-bottom: 5.75rem;
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.75rem 2.6rem;
}
.brand-card {
  padding-left: 1.15rem;
  border-left: 3px solid var(--orange);
  background: transparent;
  box-shadow: none;
}
.brand-card h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
  line-height: 1.15;
}
.brand-card p {
  color: var(--navy);
  font-size: 0.93rem;
  line-height: 1.65;
  opacity: 0.8;
}

/* ——— Service Request ——— */
.section-request {
  background: var(--slate-band);
  color: #fff;
  padding: 6rem 0;
}
.request-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.22fr;
  gap: 3.75rem 4.25rem;
  align-items: start;
}
.request-lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.03rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 30rem;
}

.service-checklist {
  background: transparent;
  border: none;
  border-left: 3px solid var(--orange);
  border-radius: 0;
  padding: 0.2rem 0 0.2rem 1.25rem;
}
.service-checklist-lead {
  color: #fff;
  margin-bottom: 0.7rem;
  font-size: 0.93rem;
}
.service-checklist-list {
  list-style: decimal;
  padding-left: 1.15rem;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.86);
}
.service-checklist-list li {
  margin-bottom: 0.35rem;
  line-height: 1.5;
  font-size: 0.89rem;
}
.service-checklist-list li::marker {
  color: var(--orange);
  font-weight: 700;
}
.service-checklist-phone,
.service-checklist-email {
  margin: 0;
  font-weight: 600;
  color: #fff;
  font-size: 0.93rem;
}
.service-checklist-phone { margin-bottom: 0.4rem; }
.service-checklist-phone a,
.service-checklist-email a,
.request-phone {
  color: var(--orange-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}
.service-checklist-phone a:hover,
.service-checklist-email a:hover,
.request-phone:hover { color: #fff; }

.request-form-panel { padding-top: 0.2rem; }
.request-form-panel::after {
  content: "";
  display: table;
  clear: both;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.25rem;
}
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-weight: 500;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.45rem;
  letter-spacing: 0.04em;
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  padding: 0.6rem 0.15rem 0.7rem;
  font: inherit;
  font-size: 0.96rem;
  color: #fff;
  background: transparent;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.36);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--orange);
}
.form-field textarea { min-height: 104px; resize: vertical; }
.form-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 1.25rem;
  line-height: 1.55;
  clear: both;
  text-align: left;
}
.form-note a {
  color: var(--orange-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ——— Expert Precision gallery ——— */
.section-precision {
  background: var(--near-white);
  padding-top: 6rem;
  padding-bottom: 6rem;
}
.precision-gallery {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr 1.2fr;
  grid-template-rows: 210px 170px;
  gap: 1.1rem;
}
.gal-a { grid-column: 1; grid-row: 1; }
.gal-c { grid-column: 1; grid-row: 2; }
.gal-b { grid-column: 2; grid-row: 1 / 3; min-height: 100%; }
.gal-d { grid-column: 3; grid-row: 1 / 3; min-height: 100%; }

.photo-slot {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 2px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  padding: 1.35rem 1.4rem;
  color: rgba(255, 255, 255, 0.72);
  gap: 0.25rem;
  height: 100%;
  isolation: isolate;
}
.photo-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 18% 20%, rgba(255,255,255,0.18), transparent 55%),
    linear-gradient(145deg, #94a3b8 0%, #64748b 42%, #334155 100%);
}
.photo-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(15,23,42,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.85), transparent 70%);
}
.gal-a::before {
  background:
    radial-gradient(80% 70% at 70% 30%, rgba(253,186,116,0.22), transparent 50%),
    linear-gradient(155deg, #cbd5e1 0%, #64748b 50%, #1e293b 100%);
}
.gal-b::before {
  background:
    radial-gradient(70% 60% at 40% 60%, rgba(148,163,184,0.35), transparent 55%),
    linear-gradient(180deg, #475569 0%, #1e293b 55%, #0f172a 100%);
}
.gal-c::before {
  background:
    linear-gradient(125deg, #94a3b8 0%, #475569 45%, #0f172a 100%);
}
.gal-d::before {
  background:
    linear-gradient(90deg, #334155 0%, #64748b 40%, #94a3b8 70%, #475569 100%);
}
.photo-slot strong {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(15,23,42,0.35);
}
.photo-slot span {
  font-size: 0.78rem;
  max-width: 16rem;
  line-height: 1.4;
  opacity: 0.78;
  font-weight: 500;
}
.photo-slot code { display: none; }

.photo-slot-mono {
  align-items: center;
  justify-content: center;
  text-align: center;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  min-height: 360px;
  border-radius: 0;
  padding: 2rem;
}
.photo-slot-mono::before {
  background:
    radial-gradient(ellipse 50% 40% at 30% 50%, rgba(255,255,255,0.14), transparent 60%),
    radial-gradient(ellipse 35% 30% at 72% 42%, rgba(234,88,12,0.12), transparent 55%),
    linear-gradient(160deg, #1e293b 0%, #0f172a 52%, #334155 100%);
  opacity: 1;
}
.photo-slot-mono::after {
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: none;
}
.photo-slot-mono strong {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
}
.photo-slot-mono span {
  max-width: 22rem;
  opacity: 0.65;
}
.photo-slot-mono code {
  display: inline;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
}

/* ——— Services / Capabilities ——— */
.section-services {
  background: var(--pale);
  padding-top: 6rem;
  padding-bottom: 5.5rem;
}
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 3.25rem;
}
.cap-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}
.cap-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.cap-card h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.22rem;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.cap-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--navy);
  border: 1.5px solid #94a3b8;
  border-radius: 3px;
}
.cap-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.machine-band {
  background: var(--navy);
  padding: 0;
}
.machine-band .container {
  width: 100%;
  max-width: none;
  padding: 0;
}
.machine-band .photo-slot-mono { min-height: 400px; }

/* ——— About ——— */
.section-about {
  background: var(--pale);
  padding-top: 6.25rem;
  padding-bottom: 5.25rem;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.48fr;
  gap: 3.75rem 4.25rem;
  align-items: start;
}
.about-copy p {
  color: var(--navy);
  font-size: 1.04rem;
  line-height: 1.8;
  margin-bottom: 1.4rem;
  max-width: 42rem;
  opacity: 0.92;
}
.about-copy .about-ctas { margin-top: 0.75rem; }

/* ——— North Texas Domains ——— */
.section-domains {
  background: var(--white);
  padding-top: 4rem;
  padding-bottom: 5.75rem;
}
.thin-rule {
  border: none;
  border-top: 1px solid var(--navy);
  opacity: 0.4;
  margin: 0 0 3rem;
  max-width: 100%;
}
.domains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.75rem 2.25rem;
  text-align: left;
  margin-bottom: 2.85rem;
}
.domain-card h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.45rem, 2.7vw, 2rem);
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.domain-stat {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.domains-note {
  text-align: left;
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 44rem;
  margin: 0;
  line-height: 1.72;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--near-white);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding: 3rem 0 3.15rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}
.footer-center {
  text-align: center;
  color: var(--slate-band);
  font-size: 0.92rem;
  line-height: 1.6;
}
.footer-center a {
  color: var(--navy);
  font-weight: 600;
}
.footer-center a:hover { color: var(--orange); }
.footer-phone {
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}
.footer-meta {
  justify-self: end;
  text-align: right;
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem 1.15rem;
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
  }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  .nav-list a { padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: inline-flex; }
  .core-grid,
  .brand-grid,
  .capabilities-grid,
  .domains-grid,
  .request-grid,
  .about-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .form-row,
  .form-row-3 { grid-template-columns: 1fr; }
  .btn-block { float: none; width: 100%; }
  .precision-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gal-a, .gal-b, .gal-c, .gal-d {
    grid-column: auto;
    grid-row: auto;
    min-height: 180px;
  }
  .footer-center { text-align: left; }
  .footer-meta { justify-self: start; text-align: left; }
  .header-cta {
    display: inline-flex;
    padding: 0.65rem 1.1rem;
    font-size: 0.68rem;
  }
  .brand-logo { height: 48px; }
  .core-watermark img {
    width: min(78vw, 560px);
    opacity: 0.09;
  }
  .container { width: min(100% - 2.5rem, var(--max)); }
}

@media (max-width: 720px) {
  .core-watermark img {
    width: min(92vw, 420px);
    opacity: 0.07;
  }
  .section { padding: 3.85rem 0; }
  .container { width: min(100% - 1.75rem, var(--max)); }
  .precision-gallery { grid-template-columns: 1fr; }
  .machine-band .photo-slot-mono { min-height: 260px; }
  .section-core,
  .section-authority,
  .section-request,
  .section-precision,
  .section-services,
  .section-about,
  .section-domains {
    padding-top: 3.85rem;
    padding-bottom: 3.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}


/* Structural aliases (layout wrappers — spacing handled by parents) */
.about-heading { margin: 0; }
.footer-brand { justify-self: start; }
.gal-item { min-height: inherit; }
.request-copy { min-width: 0; }
