/* ========================================
   Jones Affordable Services - Earthy Theme
   ======================================== */

:root {
  --forest: #2d4a3e;
  --forest-dark: #1e3329;
  --sage: #5c7a6a;
  --olive: #6b7c4c;
  --terracotta: #b06a4a;
  --terracotta-dark: #8f5439;
  --cream: #f5f0e6;
  --sand: #e8dfd0;
  --warm-gray: #5a5348;
  --dark: #2c2a26;
  --white: #ffffff;
  --shadow: rgba(44, 42, 38, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--cream);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--forest);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--terracotta);
}

/* ---------- Header & Navigation ---------- */
header {
  background: var(--forest-dark);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px var(--shadow);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo img {
  height: 52px;
  width: auto;
  border-radius: 6px;
  background: white;
  padding: 2px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--cream);
}

.logo-tag {
  font-size: 0.7rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #c4b89a;
  font-weight: 500;
}

/* Large logo on home hero */
.hero-logo {
  max-width: 280px;
  margin: 0 auto 1.75rem;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  background: white;
  padding: 8px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

nav a {
  color: var(--cream);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  position: relative;
}

nav a:hover,
nav a.active {
  color: #e8c9a0;
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--terracotta);
}

.phone-btn {
  background: var(--terracotta);
  color: white !important;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.phone-btn:hover {
  background: var(--terracotta-dark);
  color: white !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ---------- Main Content ---------- */
main {
  flex: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest) 55%, #3d5c4e 100%);
  color: var(--cream);
  padding: 4.5rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.hero-content {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.hero .tagline {
  font-size: 1.25rem;
  color: #d4c4a8;
  margin-bottom: 1.75rem;
  font-weight: 500;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--terracotta);
  color: white;
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  color: white;
}

.btn-outline {
  background: transparent;
  border-color: rgba(245, 240, 230, 0.5);
  color: var(--cream);
}

.btn-outline:hover {
  background: rgba(245, 240, 230, 0.12);
  border-color: var(--cream);
  color: var(--cream);
}

/* ---------- Sections ---------- */
section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: 1.9rem;
  color: var(--forest-dark);
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--warm-gray);
  max-width: 520px;
  margin: 0 auto;
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 16px var(--shadow);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(45, 74, 62, 0.08);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(44, 42, 38, 0.14);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--forest);
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--forest-dark);
  margin-bottom: 0.4rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--warm-gray);
}

/* Detailed service blocks */
.service-detail {
  background: var(--white);
  border-radius: 12px;
  padding: 1.75rem 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 3px 14px var(--shadow);
  border-left: 5px solid var(--forest);
}

.service-detail h3 {
  color: var(--forest-dark);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.service-detail p {
  color: var(--warm-gray);
  font-size: 0.98rem;
  line-height: 1.65;
}

.service-detail .price-note {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--terracotta-dark);
  font-size: 0.95rem;
}

/* Pricing highlight */
.pricing-box {
  background: linear-gradient(145deg, var(--forest) 0%, var(--forest-dark) 100%);
  color: var(--cream);
  border-radius: 14px;
  padding: 2.25rem;
  margin-top: 2.5rem;
  box-shadow: 0 6px 20px rgba(30, 51, 41, 0.25);
}

.pricing-box h3 {
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  text-align: center;
  color: #e8d9b8;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.price-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: #d4c4a8;
  font-weight: 600;
}

.price-item .amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
}

/* Areas */
.areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.area-tag {
  background: var(--sand);
  color: var(--forest-dark);
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* About */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  color: var(--forest-dark);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--warm-gray);
}

.about-highlight {
  background: var(--sand);
  border-left: 4px solid var(--terracotta);
  padding: 1.25rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin-top: 1.5rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}

.contact-info h2 {
  color: var(--forest-dark);
  margin-bottom: 1.25rem;
  font-size: 1.8rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-item .icon {
  width: 42px;
  height: 42px;
  background: var(--sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--forest);
  font-size: 1.1rem;
}

.contact-item h4 {
  font-size: 0.95rem;
  color: var(--forest-dark);
  margin-bottom: 0.15rem;
}

.contact-item p,
.contact-item a {
  color: var(--warm-gray);
  font-size: 0.95rem;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 18px var(--shadow);
}

.contact-form h3 {
  margin-bottom: 1.25rem;
  color: var(--forest-dark);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--warm-gray);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #d4cbb8;
  border-radius: 7px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--cream);
  color: var(--dark);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--sage);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  background: var(--forest);
  color: white;
  border: none;
  padding: 0.9rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit:hover {
  background: var(--forest-dark);
}

/* CTA banner */
.cta-banner {
  background: var(--terracotta);
  color: white;
  text-align: center;
  padding: 3rem 1.5rem;
}

.cta-banner h2 {
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.cta-banner .btn {
  background: white;
  color: var(--terracotta-dark);
}

.cta-banner .btn:hover {
  background: var(--cream);
  color: var(--terracotta-dark);
}

/* ---------- Footer ---------- */
footer {
  background: var(--forest-dark);
  color: #b8b0a0;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo-name {
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--cream);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

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

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: #b8b0a0;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #e8c9a0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ---------- Page-specific ---------- */
.page-hero {
  background: var(--forest);
  color: var(--cream);
  padding: 2.75rem 1.5rem;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.1rem;
  margin-bottom: 0.4rem;
}

.page-hero p {
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .nav-toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--forest-dark);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 8px 16px var(--shadow);
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }

  .phone-btn {
    display: none;
  }

  .about-content,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3.5rem 1.25rem 4rem;
  }
}

@media (max-width: 500px) {
  .logo img {
    height: 42px;
  }

  .logo-name {
    font-size: 1.15rem;
  }

  .logo-tag {
    font-size: 0.6rem;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero-logo {
    max-width: 200px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
