/* ==============================================================
   AnchorPoint Custom Homes — Shared Stylesheet
   ============================================================== */

:root {
  /* Palette: warm, grounded, earthy — not blue tech */
  --ink:        #1a1a18;          /* near-black for text & dark surfaces */
  --ink-2:      #2c2c2a;          /* secondary dark */
  --ink-3:      #5f5e5a;          /* muted text */
  --ink-4:      #888780;          /* subtle text / dividers labels */
  --paper:      #faf8f4;          /* page background, warm off-white */
  --paper-2:    #f1ede4;          /* secondary surface */
  --card:       #ffffff;
  --line:       rgba(26, 26, 24, 0.12);
  --line-2:     rgba(26, 26, 24, 0.22);

  --accent:     #0f6e56;          /* deep forest green */
  --accent-2:   #1d9e75;          /* lighter green accent */
  --accent-3:   #E1F5EE;          /* pale green wash */
  --warm:       #d85a30;          /* warm terra-cotta for CTAs */
  --warm-hover: #b8481f;
  --gold:       #fac775;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;

  --shadow-sm:  0 1px 2px rgba(26, 26, 24, 0.04), 0 2px 8px rgba(26, 26, 24, 0.04);
  --shadow-md:  0 4px 12px rgba(26, 26, 24, 0.06), 0 1px 3px rgba(26, 26, 24, 0.05);
  --shadow-lg:  0 12px 32px rgba(26, 26, 24, 0.10), 0 2px 6px rgba(26, 26, 24, 0.04);

  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --font-mono:  ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p { line-height: 1.7; color: var(--ink-2); }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==============================================================
   Header / Navigation
   ============================================================== */

header {
  position: sticky;
  top: 0;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 0.5px solid var(--line);
  z-index: 1000;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand-point { transition: color 0.2s ease; }
.brand:hover .brand-point { color: var(--warm-hover); }

.brand-mark {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.brand-mark svg { width: 16px; height: 16px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--ink);
  color: #fff !important;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--warm);
  color: #fff !important;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

.menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 840px) {
  .nav-links {
    position: fixed;
    top: 64px;
    right: 0;
    width: 100%;
    max-width: 320px;
    height: calc(100vh - 64px);
    background: var(--paper);
    border-left: 0.5px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1100;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 12px 0; font-size: 16px; width: 100%; }
  .nav-cta { width: 100%; justify-content: center; }
  .menu-toggle { display: block; }
}

body.no-scroll { overflow: hidden; }

/* ==============================================================
   Buttons
   ============================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--warm);
  color: #fff;
}

.btn-primary:hover {
  background: var(--warm-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--ink-2);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--card);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* ==============================================================
   Footer
   ============================================================== */

footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 80px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}

footer h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

footer .brand {
  color: #fff;
  margin-bottom: 16px;
}

footer p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

.footer-contact {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact a { color: rgba(255, 255, 255, 0.75); }
.footer-contact a:hover { color: #fff; }

.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: background 0.2s;
}
.socials a:hover { background: var(--accent); }
.socials svg { width: 16px; height: 16px; fill: #fff; }

.review-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  align-items: flex-start;
}

.review-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 2px;
}

.review-link:hover { color: #fff; border-color: #fff; }

.btn-review {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  transition: background 0.2s, border-color 0.2s;
}

.btn-review:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink) !important;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { color: rgba(255, 255, 255, 0.6); }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 840px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 48px 24px 24px;
  }
}

@media (max-width: 520px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ==============================================================
   Reveal-on-scroll animation
   ============================================================== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================================================
   Toast notification (form success / error)
   ============================================================== */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: #fff;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3000;
  max-width: calc(100vw - 48px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.25s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast.success { background: var(--accent); }
.toast.error   { background: #a32d2d; }

.toast svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 18px;
  padding: 0 4px;
  margin-left: 8px;
}
.toast-close:hover { color: #fff; }
