/* Apical Arbor Solutions — design tokens & layout */

:root {
  --green-900: #1f3f1f;
  --green-700: #2d5a2d;
  --green-500: #3f7a3f;
  --green-100: #e6efe6;
  --cream:    #f8f5ee;
  --cream-2:  #f0ece2;
  --ink:      #1a1a1a;
  --ink-2:    #4a4a4a;
  --line:     #d8d4c7;
  --shadow:   0 2px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.08);
  --radius:   12px;
  --radius-sm: 8px;
  --max:      1180px;
  --font:     'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { font-family: var(--font); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-primary { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.btn-primary:hover { background: var(--green-900); border-color: var(--green-900); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--green-700); border-color: var(--green-700); }
.btn-outline:hover { background: var(--green-700); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--green-900); }

/* Mobile call bar */
.mobile-call-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--green-700); color: #fff;
  padding: 14px 16px;
  font-weight: 800; font-size: 16px;
  text-align: center;
  z-index: 50;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.18);
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
}
.mobile-call-bar:hover { background: var(--green-900); text-decoration: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248,245,238,0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 16px;
}
.brand img { height: 44px; width: auto; }
.site-nav { display: flex; gap: 24px; }
.site-nav a {
  color: var(--ink); font-weight: 600; font-size: 15px;
}
.site-nav a:hover { color: var(--green-700); text-decoration: none; }
.header-cta { font-size: 14px; padding: 10px 16px; }
.nav-toggle {
  display: none;
  background: transparent; border: 0; padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  margin: 5px 0; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column; gap: 4px;
  background: var(--cream); border-top: 1px solid var(--line);
  padding: 16px 20px;
}
.mobile-nav a {
  padding: 10px 8px;
  color: var(--ink); font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a.btn { border-bottom: 0; margin-top: 8px; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--line);
}
.hero-inner { text-align: center; max-width: 880px; }
.hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  color: var(--green-900);
  margin-bottom: 16px;
}
.hero-sub {
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--ink-2);
  margin-bottom: 32px;
}
.hero-ctas {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 32px;
}
.trust-strip {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-2);
}
.trust-strip li { white-space: nowrap; }

/* Sections */
.section { padding: 64px 0; }
.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: var(--green-900);
  text-align: center;
  margin-bottom: 12px;
}
.section-title-light { color: #fff; }
.section-lede {
  text-align: center;
  font-size: 17px; color: var(--ink-2);
  max-width: 640px; margin: 0 auto 40px;
}

/* Gallery */
.section-gallery { background: var(--cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green-100);
  position: relative;
}
.gallery-item.placeholder {
  background: linear-gradient(135deg, var(--green-100) 0%, var(--green-700) 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85); font-weight: 700; font-size: 14px;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.gallery-item.placeholder span {
  background: rgba(0,0,0,0.25);
  padding: 6px 12px;
  border-radius: 20px;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* Services */
.section-services { background: #fff; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--cream);
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.service-card h3 { color: var(--green-900); font-size: 20px; margin-bottom: 8px; }
.service-icon {
  font-size: 32px;
  margin-bottom: 12px;
  line-height: 1;
}
.services-not {
  margin-top: 40px;
  padding: 24px;
  background: var(--green-100);
  border-left: 4px solid var(--green-700);
  border-radius: var(--radius-sm);
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.services-not h3 { font-size: 18px; margin-bottom: 4px; color: var(--green-900); }
.services-not p { margin: 0; color: var(--ink-2); }

/* Why */
.section-why { background: var(--cream); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.why-card {
  background: #fff;
  padding: 32px 24px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--line);
}
.why-icon { font-size: 40px; margin-bottom: 16px; line-height: 1; }
.why-card h3 { color: var(--green-900); font-size: 20px; }

/* Service Area */
.section-area { background: #fff; }
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.area-card {
  padding: 24px;
  background: var(--cream);
  border-radius: var(--radius);
  border-left: 4px solid var(--green-700);
}
.area-card h3 { color: var(--green-900); font-size: 18px; margin-bottom: 8px; }
.area-card p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Reviews */
.section-reviews { background: var(--cream-2); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.review-card {
  background: #fff;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.stars { color: #f0a500; font-size: 18px; letter-spacing: 2px; margin-bottom: 12px; }
.review-card blockquote { margin: 0 0 12px; font-style: italic; color: var(--ink); }
.review-card cite { font-style: normal; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.review-card.placeholder { opacity: 0.85; }

/* FAQ */
.section-faq { background: #fff; }
.faq-list {
  max-width: 780px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 8px;
}
.faq-list details {
  background: var(--cream);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: 0;
}
.faq-list summary {
  padding: 18px 20px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--green-900);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-size: 22px; font-weight: 400;
  color: var(--green-700);
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p {
  padding: 0 20px 18px;
  margin: 0;
  color: var(--ink-2);
}

/* Contact */
.section-contact {
  background: var(--green-900);
  color: #fff;
}
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: rgba(255,255,255,0.04);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
}
.contact-info h2 { color: #fff; }
.contact-info p { color: rgba(255,255,255,0.85); }
.contact-meta { font-size: 14px; color: rgba(255,255,255,0.75); margin-top: 12px; }
.contact-meta a { color: #fff; }
.contact-form {
  display: grid; gap: 16px;
}
.contact-form label { display: flex; flex-direction: column; gap: 6px; }
.contact-form span {
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.5); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid #fff;
  outline-offset: 1px;
  border-color: #fff;
}
.contact-form option { color: var(--ink); }
.contact-form button { justify-self: start; }

/* Final CTA */
.section-cta {
  background: var(--green-700);
  color: #fff;
  text-align: center;
  padding: 56px 0;
}
.section-cta h2 {
  color: #fff;
  font-size: clamp(24px, 3.5vw, 32px);
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.site-footer img { height: 40px; width: auto; margin-bottom: 12px; }
.site-footer p { margin: 4px 0; font-size: 14px; }
.site-footer a { color: #fff; }
.footer-meta .small { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 12px; }

/* Responsive */
@media (max-width: 880px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .header-inner { padding-top: 8px; padding-bottom: 8px; }
  body { padding-bottom: 64px; } /* room for mobile-call-bar */
  .mobile-call-bar { display: flex; align-items: center; justify-content: center; gap: 8px; }
  .section { padding: 48px 0; }
  .hero { padding: 36px 0 48px; }
  .contact-card { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
}
@media (max-width: 480px) {
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .trust-strip { gap: 12px; font-size: 13px; }
}

/* Print: strip colors for ink-saving */
@media print {
  .mobile-call-bar, .site-header, .site-footer, .section-cta { display: none; }
  body { background: #fff; color: #000; padding: 0; }
  a { color: #000; text-decoration: underline; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}