/* ===========================================================
   Southern Roots Landscaping — Rustic demo template
   =========================================================== */

:root {
  --barnred: #8B4A34;
  --barnred-dark: #713a29;
  --forest: #2F4A34;
  --forest-dark: #23392A;
  --wheat: #F1E6D0;
  --ink: #3A2E24;
  --mustard: #C98A2C;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--wheat);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--forest);
  margin: 0 0 0.5em;
  line-height: 1.15;
}

h1 { font-weight: 700; font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-weight: 600; font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--barnred);
  margin: 0 0 0.6em;
}

.eyebrow.center, h2.center { text-align: center; }
.eyebrow.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--barnred);
  color: var(--wheat);
}
.btn-primary:hover { background: var(--barnred-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--wheat);
  color: var(--wheat);
}
.btn-outline:hover { background: rgba(241,230,208,0.15); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  background: var(--forest);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
body.is-editable .site-header { top: 44px; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark { flex-shrink: 0; }

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--wheat);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}

.logo-sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mustard);
}

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  color: var(--wheat);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

.main-nav a:hover { color: var(--mustard); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--wheat);
  font-weight: 600;
  white-space: nowrap;
}

.phone-link svg { flex-shrink: 0; }

.header-cta { white-space: nowrap; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--wheat);
  border-radius: 2px;
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: var(--forest);
  padding: 56px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.hero-copy .eyebrow { color: var(--mustard); }

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

.hero-text {
  color: var(--wheat);
  opacity: 0.9;
  font-size: 1.05rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.6em;
}

.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-blob {
  position: absolute;
  inset: -6% -10%;
  background: var(--mustard);
  opacity: 0.28;
  border-radius: 58% 42% 63% 37% / 41% 55% 45% 59%;
  z-index: 0;
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3.1;
  object-fit: cover;
  border-radius: 58% 42% 63% 37% / 41% 55% 45% 59%;
  border: 8px solid var(--wheat);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* ---------- Organic dividers ---------- */
.divider {
  height: 70px;
  background: var(--wheat);
  position: relative;
}

.divider-1 { background: var(--wheat); margin-top: -2px; }
.divider-1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--forest);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.divider-2, .divider-4 { background: var(--wheat); }
.divider-3 { background: var(--wheat); }

/* ---------- About ---------- */
.about { padding: 20px 0 70px; }

.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text p { max-width: 56ch; }

.about-badges {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.badge-card {
  background: #fff;
  border: 2px solid rgba(139,74,52,0.15);
  border-radius: 22px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 18px rgba(58,46,36,0.08);
}

.badge-card p { margin: 0; font-weight: 600; color: var(--forest); }

.badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--wheat);
  flex-shrink: 0;
}

.badge-rotate-l { transform: rotate(-2deg); }
.badge-rotate-r { transform: rotate(2deg); }

/* ---------- Services ---------- */
.services { padding: 30px 0 80px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: #fff;
  border-radius: 26px;
  padding: 30px 26px;
  border: 2px solid rgba(47,74,52,0.1);
  box-shadow: 0 10px 24px rgba(58,46,36,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
body.is-editable .service-card { position: relative; padding-top: 3.25rem; }
body.is-editable .obt-service-toggle { position: absolute; top: 0.85rem; right: 0.85rem; z-index: 2; }

.service-card:hover {
  transform: translateY(-4px) rotate(0deg) !important;
  box-shadow: 0 16px 30px rgba(58,46,36,0.14);
}

.rotate-1 { transform: rotate(-1.3deg); }
.rotate-2 { transform: rotate(1.3deg); }

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wheat);
  border: 2px solid var(--mustard);
  margin-bottom: 16px;
}

.service-card h3 { margin-bottom: 0.4em; }
.service-card p { margin: 0; font-size: 0.95rem; color: var(--ink); opacity: 0.85; }

/* ---------- Gallery ---------- */
.gallery { padding: 30px 0 80px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 40px;
}

.frame {
  margin: 0;
  padding: 10px;
  background: #fff;
  border: 3px solid var(--mustard);
  border-radius: 20px;
  box-shadow: 0 10px 22px rgba(58,46,36,0.1);
}

.frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.frame-1 { transform: rotate(-1.6deg); }
.frame-2 { transform: rotate(1.2deg); }
.frame-3 { transform: rotate(-0.8deg); }
.frame-4 { transform: rotate(1.6deg); }

/* ---------- Contact ---------- */
.contact {
  background: var(--wheat);
  padding: 30px 0 90px;
}

.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.map-frame {
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 10px 24px rgba(58,46,36,0.12);
}

.contact-form-wrap {
  background: #fff;
  border-radius: 26px;
  padding: 34px;
  box-shadow: 0 14px 30px rgba(58,46,36,0.1);
  border: 2px solid rgba(139,74,52,0.1);
}

.quote-form .form-row {
  margin-bottom: 18px;
}

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

.quote-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--forest);
  margin-bottom: 6px;
}

.quote-form input[type="text"],
.quote-form input[type="tel"],
.quote-form input[type="email"],
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 0.75em 1em;
  border-radius: 12px;
  border: 2px solid rgba(47,74,52,0.18);
  background: var(--wheat);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}

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

.quote-form textarea { resize: vertical; }

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0;
}

.checkbox-item input { width: 16px; height: 16px; accent-color: var(--barnred); flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-dark);
  color: var(--wheat);
  padding-top: 46px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(241,230,208,0.15);
}

.footer-brand p { margin: 0.3em 0; opacity: 0.85; font-size: 0.92rem; }
.footer-brand a:hover { color: var(--mustard); }

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-nav a { opacity: 0.9; font-weight: 500; }
.footer-nav a:hover { color: var(--mustard); }

.footer-bottom {
  text-align: center;
  padding: 18px 0;
  font-size: 0.82rem;
  opacity: 0.7;
}

/* ===========================================================
   Responsive
   =========================================================== */

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--forest);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.is-open {
    max-height: 400px;
    padding-bottom: 12px;
  }

  .main-nav a {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    border-top: 1px solid rgba(241,230,208,0.12);
  }

  .site-header { position: sticky; }
  .header-inner { position: relative; flex-wrap: wrap; }

  .phone-link span { display: none; }
  .header-cta { display: none; }

  .hamburger { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions { justify-content: center; }
  .hero-media { order: -1; margin-bottom: 10px; }

  .about-inner { grid-template-columns: 1fr; }
  .about-text { text-align: center; }
  .about-text p { margin-left: auto; margin-right: auto; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .form-row-half { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .header-inner { padding-top: 12px; padding-bottom: 12px; }
  .logo-text { font-size: 1.05rem; }
}
