/* site/assets/site.css
   Single shared stylesheet for texas4x4.us.com.
   Covers the header/nav/main/cards/sections/footer/hero patterns used by every
   page. Palette: #2c3e50 (ink/header), #34495e (nav), #3498db (accent),
   #f8f9fa (page background). */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background: #f8f9fa;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #3498db;
}

a:hover,
a:focus {
  color: #217dbb;
}

:focus-visible {
  outline: 3px solid #3498db;
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header + navigation */

.site-header {
  background: #2c3e50;
  color: #fff;
  padding: 16px 0;
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.brand:hover,
.brand:focus {
  color: #fff;
  text-decoration: underline;
}

nav[aria-label="Primary"] ul,
nav[aria-label="Principal"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav[aria-label="Primary"] a,
nav[aria-label="Principal"] a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

nav[aria-label="Primary"] a:hover,
nav[aria-label="Primary"] a:focus,
nav[aria-label="Primary"] a[aria-current="page"],
nav[aria-label="Principal"] a:hover,
nav[aria-label="Principal"] a:focus,
nav[aria-label="Principal"] a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
}

/* EN/ES language switcher shown on each paired page. */
.lang-switch {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}

.lang-switch:hover,
.lang-switch:focus {
  color: #fff;
}

/* Main content */

main {
  padding: 32px 0 48px;
}

h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.25;
  margin: 0 0 16px;
}

h2 {
  font-size: 1.4rem;
  margin: 32px 0 12px;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 8px;
}

section {
  margin-bottom: 32px;
}

address {
  font-style: normal;
}

/* Hero image. The intrinsic width/height attributes in the HTML plus this
   aspect-ratio reserve layout space before the image loads, preventing CLS.
   Never lazy on the LCP image. */

.hero {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1170 / 780;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 24px;
}

/* Trust bar */

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 24px 0;
  padding: 16px 20px;
  list-style: none;
  background: #fff;
  border-left: 4px solid #3498db;
  border-radius: 4px;
}

/* Card grids (categories + locations) */

.category-grid,
.location-grid,
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.category-card,
.location-card {
  background: #fff;
  border: 1px solid #dbe2e8;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.category-card p,
.location-card p {
  margin: 8px 0 0;
}

/* Sitemap page */

.sitemap-category {
  background: #fff;
  border: 1px solid #dbe2e8;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.sitemap-category h3 {
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 8px;
}

.sitemap-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-list li {
  margin: 10px 0;
}

/* Buttons / calls to action */

.btn {
  display: inline-block;
  background: #3498db;
  color: #fff;
  padding: 12px 24px;
  margin: 10px 0;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover,
.btn:focus {
  background: #217dbb;
  color: #fff;
}

/* Footer */

footer {
  background: #2c3e50;
  color: #fff;
  padding: 32px 0;
  margin-top: 40px;
}

footer p {
  margin: 6px 0;
}

footer a {
  color: #8ec6ee;
}

footer a:hover,
footer a:focus {
  color: #fff;
}
