/* ============================================================
   Shared styles for Desert Valley EcoClean — clean & modern theme
   ============================================================ */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7faf3;          /* warm, slightly green-tinted off-white */
  --color-text: #0f172a;
  --color-muted: #475569;
  --color-border: #e2e8f0;
  --color-primary: #0E3D6F;          /* brand navy from logo */
  --color-primary-dark: #082c52;
  --color-accent: #1e88e5;
  --color-eco: #6A7F3D;              /* brand olive-green from logo */
  --color-eco-dark: #4f6029;
  --color-eco-soft: #eef2e1;         /* tint background for eco badge */
  --color-gold: #E09B46;             /* brand warm gold from logo */
  --color-success: #4f6029;
  --max-width: 1100px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; color: var(--color-text); }
h1 { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.875rem; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--color-muted); }

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

section { padding: 72px 0; }
section.alt { background: var(--color-bg-alt); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img {
  height: 64px;
  width: auto;
  display: block;
}
/* Logo already contains the "Desert Valley EcoClean" wordmark — hide the redundant text label */
.brand-text { display: none; }
@media (max-width: 520px) {
  .brand img { height: 52px; }
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--color-muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.05s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-primary);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}
.hero h1 { max-width: 720px; }
.hero .lead {
  font-size: 1.2rem;
  max-width: 640px;
  color: var(--color-muted);
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Hero: window-onto-the-desert variant (home page) ---------- */
.hero-window {
  position: relative;
  min-height: 600px;
  padding: 0;
  background: #0a0a0a;
  overflow: hidden;
}
@media (min-width: 900px) { .hero-window { min-height: 660px; } }
@media (max-width: 600px) { .hero-window { min-height: 520px; } }

.hero-window .photo {
  position: absolute;
  inset: 0;
  background: #e8d3a2;
  overflow: hidden;
}
.hero-window .photo svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-window .frame {
  position: absolute;
  inset: 0;
  border: 18px solid #1a1a1a;
  box-sizing: border-box;
  pointer-events: none;
}
.hero-window .mullion-v {
  position: absolute;
  left: 50%;
  top: 18px;
  bottom: 18px;
  width: 6px;
  background: #1a1a1a;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero-window .mullion-h {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 60%;
  height: 6px;
  background: #1a1a1a;
  pointer-events: none;
}
.hero-window .interior-shadow {
  position: absolute;
  inset: 18px;
  box-shadow: inset 0 0 120px rgba(0,0,0,0.5),
              inset 0 0 40px rgba(0,0,0,0.25);
  pointer-events: none;
}
.hero-window .desk {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 14%;
  background: linear-gradient(180deg, #6b4a2e 0%, #3e2a18 100%);
  pointer-events: none;
}
.hero-window .desk::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.08);
}
.hero-window .laptop {
  position: absolute;
  left: 5%; bottom: 4%;
  width: 16%; height: 4.5%;
  background: #0e0e0e;
  border-radius: 4px 4px 0 0;
  pointer-events: none;
}
.hero-window .laptop::before {
  content: "";
  position: absolute;
  inset: 2px 2px 0 2px;
  background: #2a2a2a;
  border-radius: 3px 3px 0 0;
}
.hero-window .plant {
  position: absolute;
  right: 6%; bottom: 3%;
  width: 6%; height: 9%;
  pointer-events: none;
}
.hero-window .plant::before {
  content: "";
  position: absolute;
  inset: 0 0 25% 0;
  background: #3a5028;
  border-radius: 50% 50% 35% 35%;
}
.hero-window .plant::after {
  content: "";
  position: absolute;
  left: 15%; right: 15%; bottom: 0;
  height: 35%;
  background: #5a3a1f;
  border-radius: 2px;
}
.hero-window .container {
  position: relative;
  z-index: 2;
  padding-top: 90px;
  padding-bottom: 90px;
  min-height: inherit;
}
.hero-window h1,
.hero-window .lead {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.75), 0 0 40px rgba(0,0,0,0.45);
}
.hero-window h1 { max-width: 620px; }
.hero-window .lead {
  font-size: 1.2rem;
  max-width: 560px;
  margin-bottom: 28px;
  color: rgba(255,255,255,0.96);
}
.hero-window .trust-badge {
  background: rgba(238, 242, 225, 0.95);
  border-color: rgba(205, 217, 176, 0.6);
}
.hero-window .btn-secondary {
  background: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.4);
}
.hero-window .btn-secondary:hover {
  background: #ffffff;
  border-color: var(--color-primary);
}

/* ---------- Trust badge ---------- */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-eco-soft);
  color: var(--color-eco-dark);
  border: 1px solid #cdd9b0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.trust-badge::before {
  content: "✓";
  font-weight: 700;
}

/* ---------- Tagline callout ---------- */
.tagline {
  margin: 40px 0 0;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #103F71 100%);
  color: #fff;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  border-left: 6px solid var(--color-gold);
}
.tagline span {
  display: inline-block;
  padding: 0 10px;
  color: #ffe4bf;
}

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card h3 { color: var(--color-primary); }
.card p { margin-bottom: 0; }

/* ---------- Feature row (icons + text) ---------- */
.features {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 32px;
}
.feature {
  padding: 16px 0;
}
.feature .check {
  display: inline-block;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #dbeafe;
  color: var(--color-primary);
  text-align: center;
  line-height: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature h4 { margin: 0 0 6px; font-size: 1rem; }
.feature p { margin: 0; font-size: 0.95rem; }

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

.contact-info p { margin-bottom: 0.5em; }
.contact-info .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  font-weight: 600;
  margin-top: 18px;
  margin-bottom: 4px;
}
.contact-info .value {
  font-size: 1.1rem;
  color: var(--color-text);
  font-weight: 500;
}

form .field { margin-bottom: 18px; }
form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}
form input, form textarea, form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
form input:focus, form textarea:focus, form select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(14, 79, 139, 0.15);
}
form textarea { min-height: 140px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 36px 0;
  font-size: 0.9rem;
}
.site-footer a { color: #93c5fd; }
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Mobile nav fallback ---------- */
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 64px 0 48px; }
  section { padding: 56px 0; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.9rem; }
}
