/* ============================================================
   RETRAC ESTATE — Phoenix Park
   Shared stylesheet for all pages
   ============================================================ */

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #F7F1E8;
  color: #1F2933;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

/* --- Fixed header offset --- */
.main-content { padding-top: 73px; }

/* --- Header --- */
.site-header {
  background: rgba(247, 241, 232, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
}

/* --- Nav links --- */
.nav-link {
  text-decoration: none;
  color: rgba(31, 41, 51, 0.72);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { color: #C76B3F; }

/* Mobile menu */
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }
.mobile-nav-link {
  display: block;
  text-decoration: none;
  color: #1F2933;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(31, 41, 51, 0.08);
  transition: color 0.15s;
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover,
.mobile-nav-link.active { color: #C76B3F; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0 1.75rem;
  min-height: 3rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  white-space: nowrap;
  transition: transform 0.15s, background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { transform: translateY(-2px); }

.btn-terra {
  background: #C76B3F;
  color: #fff;
  box-shadow: 0 18px 36px rgba(199, 107, 63, 0.25);
}
.btn-terra:hover { background: #aa5833; }

.btn-terra-sm {
  min-height: 2.75rem;
  padding: 0 1.25rem;
  box-shadow: 0 14px 30px rgba(199, 107, 63, 0.24);
}

.btn-dark {
  background: #1F2933;
  color: #fff;
  box-shadow: none;
}
.btn-dark:hover { background: #556B4E; }

.btn-outline {
  border: 1px solid rgba(31, 41, 51, 0.18);
  background: rgba(255, 255, 255, 0.45);
  color: #1F2933;
}
.btn-outline:hover { border-color: #C76B3F; color: #C76B3F; }

/* --- Section heading helpers --- */
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: #C76B3F;
}
.eyebrow-gold { color: #C7A45D; }

.section-title {
  margin-top: 0.75rem;
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #1F2933;
  line-height: 1.15;
}
.section-title-dark { color: #fff; }

.section-body {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.9;
  color: rgba(31, 41, 51, 0.72);
}
.section-body-dark { color: rgba(255, 255, 255, 0.72); }

/* --- Page intro (used on all non-home pages) --- */
.page-intro {
  background: #F7F1E8;
  padding: 5rem 1.25rem 3.5rem;
  border-bottom: 1px solid rgba(31, 41, 51, 0.08);
}
@media (min-width: 640px) {
  .page-intro { padding-left: 2rem; padding-right: 2rem; }
}

/* --- Cards --- */
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12) !important;
}

/* --- Shadow --- */
.shadow-soft { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07); }

/* --- Dot bullet --- */
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #C7A45D; flex-shrink: 0; margin-top: 7px; }

/* --- Forms --- */
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: #1F2933; }
.form-field {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0 1rem;
  margin-top: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(31, 41, 51, 0.12);
  background: #fff;
  color: #1F2933;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field:focus {
  border-color: #C76B3F;
  box-shadow: 0 0 0 4px rgba(199, 107, 63, 0.12);
}
textarea.form-field {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  resize: vertical;
  min-height: 8rem;
}

/* --- FAQ --- */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.faq-icon { display: inline-block; transition: transform 0.2s ease; }
details[open] .faq-icon { transform: rotate(45deg); }

/* --- Color swatch --- */
.swatch { height: 7rem; flex: 1; }

/* --- Map grid bg --- */
.map-grid {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.42) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.42) 1px, transparent 1px);
  background-size: 42px 42px;
}

/* --- Footer links --- */
.footer-link {
  display: block;
  text-decoration: none;
  color: rgba(255,255,255,0.72);
  font-size: 0.875rem;
  transition: color 0.15s;
  margin-bottom: 0.5rem;
}
.footer-link:hover { color: #fff; }

.social-btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.14);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: border-color 0.15s, color 0.15s;
}
.social-btn:hover { border-color: rgba(255,255,255,0.45); color: #fff; }

/* --- CTA strip --- */
.cta-strip {
  background: #1F2933;
  color: #fff;
  padding: 4rem 1.25rem;
  text-align: center;
}
@media (min-width: 640px) { .cta-strip { padding-left: 2rem; padding-right: 2rem; } }
