/* =========================================================
   Cavender Developments — styles.css
   Mobile-first, no external dependencies
   ========================================================= */

/* ---- CSS Custom Properties ---- */
:root {
  --green:         #2E6744;
  --green-dark:    #235235;
  --green-light:   #EEF5F0;
  --green-mid:     #C6DDD0;

  --bg:            #FAFAF7;
  --surface:       #FFFFFF;
  --surface-alt:   #F4F3EF;

  --text:          #1C1C1A;
  --text-muted:    #636360;
  --text-light:    #9A9A97;

  --border:        #E0DDD7;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif, "Apple Color Emoji";

  --radius:   8px;
  --radius-lg: 14px;
  --shadow:   0 1px 4px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);

  --max-w:   1100px;
  --narrow-w: 680px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 767px) {
  body { padding-bottom: 5.25rem; }
}

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

a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { color: var(--green-dark); }

h1, h2, h3 {
  margin: 0 0 0.6em;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}
h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 4vw, 1.9rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.5em; }
li { margin-bottom: 0.35em; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-narrow {
  max-width: var(--narrow-w);
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: 3.5rem 0;
  background: var(--surface);
}

.section-alt {
  background: var(--surface-alt);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--green);
  border-color: var(--green);
}
.btn-secondary:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.btn-full {
  width: 100%;
  display: block;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
}

/* ---- Header ---- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.header-phone {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--green); }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(160deg, var(--green-light) 0%, var(--surface) 70%);
  padding: 3rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-text h1 { color: var(--green-dark); }

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.7rem;
  background: #fff;
  color: var(--green-dark);
  border: 1px solid var(--green-mid);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.contact-line {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.contact-line strong { color: var(--text); font-size: 1.05rem; }
.contact-line a { color: var(--text-muted); }
.contact-line a:hover { color: var(--green); }

.trust-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trust-list li {
  margin: 0;
  padding: 0.45rem 0.7rem;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--green-mid);
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 650;
}

.postcard-callout {
  margin-top: 1.4rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--green-mid);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  color: var(--text-muted);
}

.postcard-callout strong { color: var(--green-dark); }

/* Photo */
.hero-photo {
  display: flex;
  justify-content: center;
}

.photo-placeholder {
  width: 220px;
  height: 260px;
  background: var(--green-mid);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.photo-placeholder-inner {
  text-align: center;
  padding: 1.5rem;
  color: var(--green-dark);
}
.photo-placeholder-inner svg {
  width: 80px;
  height: 80px;
  margin: 0 auto 0.75rem;
  display: block;
}
.photo-placeholder-inner p {
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  color: var(--green-dark);
}
.photo-placeholder-inner span {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--green);
  margin-top: 0.25rem;
}

/* Actual photo when provided */
.hero-photo img {
  width: 220px;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ---- Property list ---- */
.property-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.property-list li {
  padding: 0.6rem 0.75rem 0.6rem 2.25rem;
  background: var(--green-light);
  border-radius: var(--radius);
  position: relative;
  font-size: 0.975rem;
  margin-bottom: 0;
}

.property-list li::before {
  content: "";
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
}

.note {
  font-size: 0.925rem;
  color: var(--text-muted);
  border-left: 3px solid var(--green-mid);
  padding-left: 0.85rem;
  margin-top: 1rem;
}

.service-area {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--green-dark);
}

/* ---- Steps ---- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid var(--border);
  margin-bottom: 0;
}

.step-num {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 0.1rem;
}

.steps li > div > strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.steps li > div > p {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---- About ---- */
.sign {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ---- FAQ ---- */
.faq-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.1rem;
  font-weight: 600;
  font-size: 0.975rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  user-select: none;
  -webkit-user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--green);
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  padding: 0 1.1rem 1rem;
  margin: 0;
  font-size: 0.925rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.faq-item[open] summary {
  color: var(--green-dark);
}

/* ---- Contact section ---- */
.contact-direct {
  background: var(--green-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.contact-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.contact-phone {
  display: block;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 800;
  color: var(--green-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.contact-phone:hover { color: var(--green); }

.contact-direct .cta-group {
  justify-content: center;
  margin-top: 1.25rem;
}

/* Form divider */
.form-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  color: var(--text-light);
  font-size: 0.875rem;
}
.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border);
}

/* Contact form */
.contact-form { margin-top: 0.5rem; }

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,103,68,0.12);
}

.form-group textarea { resize: vertical; }

.form-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.6rem;
  text-align: center;
}

.form-status {
  min-height: 1.2rem;
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 650;
}

.form-status-success { color: var(--green-dark); }
.form-status-error { color: #c0392b; }

.contact-form button[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.field-error {
  border-color: #c0392b !important;
}
.error-msg {
  font-size: 0.8rem;
  color: #c0392b;
  margin: 0.25rem 0 0;
}

.remove-note {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  background: var(--surface-alt);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--text);
  color: var(--text-light);
  padding: 2rem 0;
  text-align: center;
}

.mobile-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  background: rgba(250,250,247,0.96);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}

.mobile-sticky-cta .btn {
  width: 100%;
  padding: 0.85rem 1rem;
}

.footer-inner p {
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
}

.footer-inner a {
  color: var(--green-mid);
  text-decoration: none;
}
.footer-inner a:hover { color: #fff; }

.footer-small {
  color: #666;
  font-size: 0.78rem;
  margin-top: 0.75rem;
}

/* ====================================================
   TABLET — 600px+
   ==================================================== */
@media (min-width: 600px) {
  .property-list {
    grid-template-columns: 1fr 1fr;
  }

  .cta-group .btn {
    min-width: 160px;
  }
}

/* ====================================================
   DESKTOP — 768px+
   ==================================================== */
@media (min-width: 768px) {
  .section { padding: 5rem 0; }
  .hero    { padding: 4rem 0 5rem; }

  .hero-inner {
    grid-template-columns: 1fr auto;
    gap: 3rem;
  }

  .hero-photo {
    order: 1; /* photo on right */
  }

  .photo-placeholder,
  .hero-photo img {
    width: 260px;
    height: 310px;
  }

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

  .mobile-sticky-cta { display: none; }
}

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

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 3px;
}
