/* =================================================================
   Desert Tech Services, LLC -- site stylesheet
   Desert-modern palette: warm sand + terracotta accent + tech blue.
   No framework, no build step -- plain CSS, mobile-first-ish with
   a single desktop breakpoint at 900px.
   ================================================================= */

:root {
  /* Palette */
  --color-bg: #fbf7f1;
  --color-bg-alt: #f3e9dc;
  --color-surface: #ffffff;
  --color-text: #2b2622;
  --color-text-muted: #6b5f54;
  --color-border: #e6dac8;

  --color-primary: #c1591f;      /* terracotta */
  --color-primary-dark: #9c4718;
  --color-primary-light: #f0dcc9;

  --color-secondary: #1d4e89;    /* tech blue */
  --color-secondary-dark: #143a68;
  --color-secondary-light: #dde8f4;

  --color-dark: #241f1c;
  --color-dark-alt: #322a24;

  /* Type */
  --font-heading: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-width: 1160px;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(43, 38, 34, 0.08);
  --shadow-lg: 0 12px 32px rgba(43, 38, 34, 0.14);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-secondary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 1.2em; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-dark);
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn-outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }
.btn-secondary {
  background: var(--color-secondary);
  color: #fff;
}
.btn-secondary:hover { background: var(--color-secondary-dark); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--color-dark);
  color: #eae3da;
  font-size: 0.88rem;
}
.topbar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.topbar a { color: #eae3da; }
.topbar a:hover { color: #fff; }
.topbar .topbar-phone {
  font-weight: 600;
  color: #f2c9a8;
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-dark);
}
.brand:hover { text-decoration: none; }
.brand-mark { flex-shrink: 0; }
.brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.15;
  color: var(--color-dark);
}
.brand-text span {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 10px 14px;
  border-radius: 8px;
}
.main-nav a:hover { background: var(--color-bg-alt); text-decoration: none; }
.main-nav a.active { color: var(--color-primary); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { display: block; }

@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 18px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; }
  .nav-cta { margin-left: 0; margin-top: 6px; }
  .nav-toggle { display: block; }
  .topbar .container { justify-content: center; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(155deg, var(--color-dark) 0%, var(--color-dark-alt) 45%, #4a3324 100%);
  color: #fdf6ee;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(193,89,31,0.35), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(29,78,137,0.35), transparent 45%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  padding-top: 84px;
  padding-bottom: 84px;
  display: grid;
  gap: 32px;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f2c9a8;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero p.lead {
  font-size: 1.15rem;
  color: #e7dccd;
  max-width: 56ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 28px;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: #fff;
}
.hero-stat span { font-size: 0.88rem; color: #cbbca9; }

@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark {
  background: var(--color-dark);
  color: #e9e0d4;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head .kicker {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.section-head p { color: var(--color-text-muted); }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Some page sections set a specific two-column ratio (e.g. 1.1fr 0.9fr)
   as an inline style for desktop layout. Force those back to a single
   column on narrower screens -- !important is needed here because it's
   overriding an inline style, not another stylesheet rule. */
@media (max-width: 900px) {
  .grid.stack-mobile {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  /* A grid item's default min-width is "auto" (its content's min-content
     size), which can keep a column wider than the viewport even after
     it's forced to a single 1fr track. min-width: 0 lets it actually
     shrink to fit. */
  .grid.stack-mobile > * {
    min-width: 0;
  }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--color-text-muted); margin-bottom: 0; }
.card .icon-badge { margin-bottom: 18px; }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.icon-badge.blue { background: var(--color-secondary-light); color: var(--color-secondary); }
.icon-badge svg { width: 26px; height: 26px; }

/* ---------- Why-choose-us list ---------- */
.feature-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.feature-row .icon-badge { width: 42px; height: 42px; flex-shrink: 0; }
.feature-row .icon-badge svg { width: 20px; height: 20px; }
.feature-row h3 { margin-bottom: 4px; font-size: 1.05rem; }
.feature-row p { color: var(--color-text-muted); margin-bottom: 0; }

/* ---------- Service detail sections ---------- */
.service-block {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 22px;
  padding: 34px 0;
  border-bottom: 1px solid var(--color-border);
}
.service-block:last-child { border-bottom: none; }
.service-block .tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}
.service-block .tech-list li {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
@media (max-width: 560px) {
  .service-block { grid-template-columns: 1fr; }
}

/* ---------- Technology / partner strip ---------- */
.tech-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.tech-strip span {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #fbe6d6; max-width: 52ch; margin: 0 auto 26px; }
.cta-band .btn-secondary-inv {
  background: #fff;
  color: var(--color-primary-dark);
}
.cta-band .btn-secondary-inv:hover { background: #fdf0e5; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}
.faq-item h3 { margin-bottom: 8px; font-size: 1.05rem; }
.faq-item p { color: var(--color-text-muted); margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}
.form-grid .full { grid-column: 1 / -1; }
/* Without this, a grid item's default min-width is its content's
   min-content size -- and a <select> with a long option (e.g. "Cloud
   Services (AWS, Microsoft 365, Google Workspace)") can force the
   whole grid, and the page, wider than the viewport on mobile. */
.form-grid > div { min-width: 0; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--color-dark);
}
input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px var(--color-secondary-light);
}
textarea { resize: vertical; min-height: 130px; }
.field-hint { font-size: 0.82rem; color: var(--color-text-muted); margin-top: 4px; }

/* honeypot field -- hidden from real visitors, left in the tab order trap for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.alert {
  padding: 16px 18px;
  border-radius: var(--radius);
  margin-bottom: 26px;
  font-weight: 500;
}
.alert-success {
  background: #e5f4e6;
  border: 1px solid #b7ddb9;
  color: #1f5c22;
}
.alert-error {
  background: #fbe6e2;
  border: 1px solid #f1b7ab;
  color: #8a2c1a;
}

/* ---------- Contact info cards ---------- */
.contact-info-list { list-style: none; padding: 0; margin: 0; }
.contact-info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-info-list strong { display: block; color: var(--color-dark); }
.contact-info-list a { color: var(--color-text); font-weight: 600; }
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--color-dark);
  color: #fff;
  padding: 56px 0;
}
.page-header .container { position: relative; }
.page-header h1 { color: #fff; margin-bottom: 10px; }
.page-header p { color: #d9cdbc; max-width: 60ch; margin-bottom: 0; }
.breadcrumb { font-size: 0.85rem; color: #cbbca9; margin-bottom: 14px; }
.breadcrumb a { color: #f2c9a8; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-dark);
  color: #cfc3b3;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  margin-bottom: 40px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.site-footer .brand-text, .site-footer .brand-text span { color: #fff; }
.site-footer .brand-text span { color: #f2c9a8; }
.footer-desc { color: #b3a692; max-width: 36ch; margin-top: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #cfc3b3; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #a89a86;
}
.footer-bottom a { color: #a89a86; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.error-page .error-code {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0;
  line-height: 1;
}
