/* =====================================================
   LONE STAR LANDSCAPING & CONSTRUCTION LLC
   Built With Pride. Built Right.
   ===================================================== */

:root {
  --navy: #101C3A;
  --navy-deep: #0B142B;
  --red: #C51F32;
  --red-dark: #A31828;
  --white: #FFFFFF;
  --gray: #858B95;
  --bg-light: #F4F5F7;
  --text-dark: #1C2333;
  --radius: 0px;
  --shadow-card: 0 6px 24px rgba(16, 28, 58, 0.12);
  --font-display: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.12;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-align: center;
  padding: 13px 26px;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-lg { padding: 16px 34px; font-size: 17px; }
.btn-block { display: block; width: 100%; }

.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover { background: var(--bg-light); transform: translateY(-1px); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
}
.btn-outline-white:hover { background: var(--white); color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.header-inner {
  width: min(1280px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
}

.brand-star { flex-shrink: 0; }

.brand-text { display: flex; flex-direction: column; min-width: 0; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1;
  white-space: nowrap;
}

.brand-sub {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.main-nav a:hover { border-bottom-color: var(--red); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions .btn { padding: 10px 18px; font-size: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
}

.nav-toggle .bar {
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 100px;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(11, 20, 43, 0.88) 0%, rgba(11, 20, 43, 0.72) 45%, rgba(11, 20, 43, 0.42) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, 92%);
  margin: 0 auto;
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 700;
  margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero h1 .accent { color: var(--red); }

.hero-subhead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 2.4vw, 26px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 16px;
}

.hero-desc {
  max-width: 640px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 34px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-trust {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Section headings ---------- */
.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-heading h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  color: var(--navy);
  margin-bottom: 16px;
}

.section-heading.light h2 { color: var(--white); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.section-intro {
  color: var(--gray);
  font-size: 17px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading.light .section-intro { color: rgba(255, 255, 255, 0.8); }

/* ---------- Services ---------- */
.services {
  padding: 96px 0;
  background: var(--bg-light);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  border-top: 3px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(16, 28, 58, 0.18);
  border-top-color: var(--red);
}

.service-photo {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-photo img { transform: scale(1.05); }

.service-body {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  margin: -52px 0 16px;
  position: relative;
  border-bottom: 3px solid var(--red);
}

.service-body h3 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-body p {
  font-size: 15px;
  color: #4A5060;
  margin-bottom: 20px;
  flex: 1;
}

.service-cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
}

.service-cta:hover { color: var(--red-dark); }

/* ---------- Projects / Before & After ---------- */
.projects {
  padding: 96px 0;
  background: var(--navy);
}

.ba-wrapper { max-width: 900px; margin: 0 auto; }

.ba-slider {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  user-select: none;
  touch-action: none;
}

.ba-before-img,
.ba-after img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-after {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ba-after img { width: 1600px; max-width: none; }

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--white);
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}

.ba-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: var(--red);
  border: 3px solid var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.ba-handle span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-left: 2px solid var(--white);
  border-right: 2px solid var(--white);
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}

.ba-label {
  position: absolute;
  top: 18px;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(11, 20, 43, 0.85);
  color: var(--white);
  padding: 6px 14px;
}

.ba-label-before { left: 18px; }
.ba-label-after { right: 18px; background: var(--red); }

.ba-caption {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

.ba-caption strong { color: var(--white); }

.finished-gallery {
  max-width: 1100px;
  margin: 72px auto 0;
}

.finished-gallery h3 {
  color: var(--white);
  font-size: 24px;
  margin-bottom: 6px;
}

.gallery-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
}

/* ---------- Why Choose ---------- */
.why-us {
  padding: 96px 0;
  background:
    linear-gradient(rgba(11, 20, 43, 0.92), rgba(11, 20, 43, 0.92)),
    url('images/finishing-concrete.webp') center / cover no-repeat fixed;
}

.why-us .section-heading { margin-bottom: 48px; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 3px solid var(--red);
  padding: 34px 26px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.why-item:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-4px);
}

.why-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--red);
  color: var(--white);
  margin-bottom: 20px;
}

.why-item h3 {
  color: var(--white);
  font-size: 19px;
  margin-bottom: 10px;
}

.why-item p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

/* ---------- Process ---------- */
.process {
  padding: 96px 0;
  background: var(--white);
}

.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto 48px;
  counter-reset: step;
}

.process-step {
  text-align: center;
  padding: 0 12px;
  position: relative;
}

.step-number {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  border-bottom: 4px solid var(--red);
}

.process-step h3 {
  font-size: 21px;
  color: var(--navy);
  margin-bottom: 10px;
}

.process-step p { color: #4A5060; font-size: 15px; }

.process-cta { text-align: center; }

/* ---------- CTA Band ---------- */
.cta-band {
  padding: 88px 0;
  background: var(--red);
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-band-text h2 {
  color: var(--white);
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 14px;
}

.cta-band-text p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  font-size: 17px;
}

.cta-band-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Contact ---------- */
.contact {
  padding: 96px 0;
  background: var(--bg-light);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(30px, 4vw, 42px);
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-lead {
  color: #4A5060;
  font-size: 17px;
  margin-bottom: 32px;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 36px);
  color: var(--red);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.contact-phone:hover { color: var(--red-dark); }

.contact-phone svg { color: var(--navy); flex-shrink: 0; }

.contact-hours {
  margin-top: 14px;
  font-size: 14px;
  color: var(--gray);
}

.contact-form-wrap {
  background: var(--white);
  padding: 40px;
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--red);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field { margin-bottom: 20px; }

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 7px;
}

.req { color: var(--red); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
  border: 1.5px solid #C6CBD4;
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(16, 28, 58, 0.12);
}

.form-field input.invalid,
.form-field select.invalid,
.form-field textarea.invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(197, 31, 50, 0.12);
}

.form-field input[type="file"] {
  padding: 10px 12px;
  background: var(--bg-light);
}

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--gray);
}

.form-status { display: none; }

.form-status p {
  padding: 14px 16px;
  font-weight: 600;
  font-size: 15px;
}

.form-status .success {
  background: #E7F5EC;
  border: 1px solid #2E7D4F;
  color: #1F5C3A;
}

.form-status .error {
  background: #FBEAEC;
  border: 1px solid var(--red);
  color: var(--red-dark);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding: 64px 0 48px;
}

.brand-footer { align-items: flex-start; }

.footer-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--red);
  margin: 18px 0 12px;
}

.footer-desc { font-size: 14.5px; }

.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--white); }

.footer-col p { font-size: 14.5px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  text-align: center;
  font-size: 13.5px;
}

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  gap: 1px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.mobile-cta-call { background: var(--navy); color: var(--white); }
.mobile-cta-estimate { background: var(--red); color: var(--white); }

/* ---------- Privacy page ---------- */
.privacy-hero {
  background: var(--navy);
  padding: 170px 0 60px;
}

.privacy-hero h1 { color: var(--white); font-size: clamp(34px, 5vw, 52px); }

.privacy-content {
  padding: 64px 0 96px;
  max-width: 820px;
}

.privacy-content h2 {
  font-size: 24px;
  color: var(--navy);
  margin: 34px 0 12px;
}

.privacy-content p, .privacy-content ul {
  color: #4A5060;
  font-size: 16px;
  margin-bottom: 14px;
}

.privacy-content ul { padding-left: 24px; }

.privacy-content a { color: var(--red); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .main-nav { gap: 18px; }
}

@media (max-width: 820px) {
  .header-actions .btn-phone-header { display: none; }
  .header-actions .btn-red { display: none; }

  .nav-toggle { display: flex; position: relative; z-index: 130; }

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 110px 24px 36px;
    gap: 6px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    z-index: 110;
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    font-size: 18px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .main-nav a:last-child { border-bottom: none; }

  .mobile-cta { display: flex; }
  body { padding-bottom: 54px; }

  .hero { min-height: auto; padding: 130px 0 90px; }
  .hero h1 { font-size: clamp(38px, 11vw, 56px); }
  .hero-desc { font-size: 16px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-trust { font-size: 11.5px; letter-spacing: 0.1em; }

  .services, .projects, .why-us, .process, .contact { padding: 72px 0; }
  .cta-band { padding: 64px 0; }

  .process-steps { grid-template-columns: 1fr; gap: 40px; }

  .contact-form-wrap { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .cta-band-actions { width: 100%; }
  .cta-band-actions .btn { flex: 1 1 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 36px; }
}

@media (max-width: 480px) {
  .service-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 18px; }
  .brand-sub { font-size: 9px; }
  .brand-star { width: 26px; height: 26px; }
  .hero h1 { font-size: clamp(34px, 12vw, 44px); }
  .hero-subhead { font-size: 16px; }
  .ba-slider { aspect-ratio: 4 / 3; }
}

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