/* ==========================================================================
   Hartwell Shores — main stylesheet
   ========================================================================== */

:root {
  --color-primary: #17436a;
  --color-primary-dark: #0e2c47;
  --color-primary-light: #2a5d8f;
  --color-accent: #EDC709;
  --color-accent-dark: #c9a803;
  --color-white: #ffffff;
  --color-off-white: #f6f8fa;
  --color-text: #1c2733;
  --color-text-muted: #5b6b78;
  --color-border: #e1e6ea;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --container-width: 1200px;
  --header-topbar-height: 38px;
  --header-nav-height: 80px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 2px 8px rgba(23, 67, 106, 0.08);
  --shadow-md: 0 8px 24px rgba(23, 67, 106, 0.14);
  --shadow-lg: 0 16px 48px rgba(23, 67, 106, 0.22);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
  padding-top: var(--header-nav-height);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-primary);
}

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

.section {
  padding: 80px 0;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 720px;
}

.section-head {
  text-align: center;
  margin: 0 auto 48px;
  max-width: 760px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-accent {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover { background: var(--color-accent-dark); box-shadow: var(--shadow-md); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--color-primary-dark);
  color: var(--color-white);
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-topbar-height);
}
.topbar-message { display: flex; align-items: center; gap: 8px; }
.topbar-message svg { width: 14px; height: 14px; fill: var(--color-accent); }
.topbar-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
}
.topbar-phone svg { width: 14px; height: 14px; fill: var(--color-accent); }
.topbar-phone a { color: var(--color-white); }
.topbar-phone a:hover { color: var(--color-accent); }

/* ---------- Fixed nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--color-white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.main-nav {
  height: var(--header-nav-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { flex-shrink: 0; }
.logo img { height: 52px; width: auto; max-width: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a {
  position: relative;
  color: var(--color-primary);
  padding: 6px 0;
}

@media (min-width: 861px) {
  .nav-links a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.2s ease;
  }
  .nav-links a:hover::after { transform: scaleX(1); }
}

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-cta .nav-phone {
  display: none;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  border: 1px solid currentColor;
  padding: 6px 14px;
  border-radius: 20px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--color-primary); }

@media (min-width: 860px) {
  .nav-cta .nav-phone { display: inline-flex; align-items: center; gap: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--color-white);
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,44,71,0.55) 0%, rgba(14,44,71,0.35) 40%, rgba(14,44,71,0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-bottom: 18px;
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  text-shadow: 0 4px 24px rgba(0,0,0,0.35);
  max-width: 980px;
  margin: 0 auto 18px;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  max-width: 720px;
  margin: 0 auto 36px;
  color: rgba(255,255,255,0.92);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* ---------- Countdown ---------- */
.countdown-wrap {
  position: relative;
  z-index: 2;
  margin-top: 8px;
}
.countdown-label {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.countdown {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.countdown-unit {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  min-width: 84px;
  padding: 14px 10px;
  text-align: center;
}
.countdown-unit .num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  color: var(--color-white);
  display: block;
}
.countdown-unit .label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

/* ---------- Differentiator ---------- */
.differentiator {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 70px 0;
}
.differentiator .easy {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 10px;
}
.differentiator .strong-line {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  color: var(--color-accent);
  max-width: 880px;
  margin: 0 auto;
  line-height: 1.3;
}

/* ---------- Highlights icon grid ---------- */
.highlights { background: var(--color-off-white); }
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.highlight-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.highlight-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.highlight-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(23,67,106,0.08);
}
.highlight-icon svg { width: 30px; height: 30px; fill: var(--color-primary); }
.highlight-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.highlight-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---------- Property listing cards ---------- */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.property-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.property-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.property-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.property-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.property-body h3 { font-size: 1.25rem; margin-bottom: 6px; }
.property-acreage {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}
.property-pricing { margin-bottom: 20px; display: flex; align-items: baseline; gap: 10px; }
.property-pricing .original {
  text-decoration: line-through;
  color: var(--color-text-muted);
  font-size: 1rem;
}
.property-pricing .sale {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--color-primary);
}
.property-body .btn { margin-top: auto; }

/* ---------- 4-step process ---------- */
.process { background: var(--color-off-white); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-bottom: 56px;
}
.process-step {
  text-align: center;
  position: relative;
  padding: 8px;
}
.process-step .step-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { color: var(--color-text-muted); font-size: 0.92rem; }

.testimonial {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.testimonial p.quote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
}
.testimonial .author {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-accent-dark);
}

.testimonial-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  border: 4px solid var(--color-accent);
}

@media (max-width: 767px) {
  .testimonial-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Contact form ---------- */
.contact { background: var(--color-primary); color: var(--color-white); }
.contact .section-title { color: var(--color-white); }
.contact .section-subtitle { color: rgba(255,255,255,0.78); }
.contact .section-head { color: var(--color-white); }

.contact-form-wrap {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(23,67,106,0.15);
}
.form-field textarea { resize: vertical; min-height: 100px; }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.form-checkbox input { margin-top: 3px; }

/* Honeypot — visually hidden but present & focusable to real bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-wrap { margin: 22px 0; display: flex; justify-content: center; }

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}
.form-status.success { color: #1b7a3e; }
.form-status.error { color: #b3261e; }

/* ---------- About page content blocks ---------- */
.about-hero {
  position: relative;
  background-color: var(--color-primary-dark);
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  padding: 90px 0 70px;
  text-align: center;
}
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,44,71,0.78) 0%, rgba(14,44,71,0.6) 100%);
}
.about-hero .container { position: relative; z-index: 1; }
.about-hero h1 { color: var(--color-white); font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 14px; }
.about-hero p { max-width: 680px; margin: 0 auto; color: rgba(255,255,255,0.85); font-size: 1.05rem; }

/* ---------- Photo strip gallery ---------- */
.photo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 36px;
}
.photo-strip img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.photo-strip img:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ---------- Regional attractions ---------- */
.attraction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.attraction-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.attraction-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.attraction-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.attraction-body { padding: 22px; }
.attraction-body h3 { font-size: 1.1rem; margin-bottom: 10px; }
.attraction-body p { color: var(--color-text-muted); font-size: 0.92rem; }

.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.area-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px;
  text-align: center;
}
.area-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.area-card p { color: var(--color-text-muted); font-size: 0.92rem; }

.content-block { max-width: 760px; margin: 0 auto; }
.content-block p { margin-bottom: 18px; color: var(--color-text-muted); line-height: 1.7; }
.content-block h2 { margin-bottom: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 30px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 24px;
}
.footer-brand img { height: 48px; margin-bottom: 14px; }
.footer-brand p { max-width: 320px; color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--color-white);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer-privacy { max-width: 760px; line-height: 1.6; margin-top: 18px; font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .logo img { height: 40px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-accent { padding: 10px 14px; font-size: 0.8rem; white-space: nowrap; }
}

@media (max-width: 600px) {
  .topbar .container {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: auto;
    padding: 8px 24px;
    gap: 4px;
  }
  .topbar { font-size: 0.75rem; }
  .topbar-message,
  .topbar-phone { white-space: nowrap; }
}

@media (max-width: 560px) {
  .countdown-unit { min-width: 68px; padding: 10px 6px; }
  .countdown-unit .num { font-size: 1.5rem; }
  .contact-form-wrap { padding: 26px; }
}

/* Mobile nav drawer */
.nav-links.is-open {
  display: flex;
  position: absolute;
  top: var(--header-nav-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  flex-direction: column;
  gap: 0;
  padding: 12px 24px 24px;
  box-shadow: var(--shadow-md);
}
.nav-links.is-open a { display: block; padding: 12px 0; width: 100%; }

/* ---------- Call strips ---------- */
.call-strip {
  background: #17436a;
  color: var(--color-white);
  padding: 20px 0;
}
.call-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.call-strip span {
  font-family: var(--font-heading);
  font-weight: 600;
}
.call-strip-alt {
  background: #EDC709;
  color: #17436a;
}
.call-strip-alt .btn-accent {
  background: #17436a;
  color: var(--color-white);
}
.call-strip-alt .btn-accent:hover {
  background: var(--color-primary-dark);
}

/* ---------- Call primary (above contact form) ---------- */
.call-primary {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 24px;
  font-weight: 600;
  color: #17436a;
}
.call-primary a { color: var(--color-primary); text-decoration: underline; }

/* ---------- Floating mobile call bar ---------- */
.mobile-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #EDC709;
  display: none;
  z-index: 999;
}
.mobile-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  font-weight: 700;
  color: #17436a;
  font-family: var(--font-heading);
}

@media (max-width: 767px) {
  .mobile-call-bar { display: flex; }
  body { padding-bottom: 60px; }
}
