/* Daybreak Homes | Zander Real Estate Team
   Brand: navy #041e42, green #97c93d, white background
   Font: Gotham preferred; Montserrat / Helvetica Neue fallback (Gotham requires a paid license) */

:root {
  --navy: #041e42;
  --green: #97c93d;
  --white: #ffffff;
  --gray-light: #f5f6f8;
  --gray-text: #4a5568;
  --max-width: 1120px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 0.6em; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--gray-text); }
a { color: var(--navy); }

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

/* Header / Nav */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid #edf0f4;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.logo span { color: var(--green); }

nav.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.primary-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
nav.primary-nav a:hover,
nav.primary-nav a[aria-current="page"] { color: #5c8a1f; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--navy);
  font-size: 1.6rem;
  cursor: pointer;
}

.header-cta {
  background: var(--green);
  color: var(--navy) !important;
  padding: 8px 16px;
  border-radius: 999px;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  nav.primary-nav {
    display: none;
    width: 100%;
  }
  nav.primary-nav.open { display: block; }
  nav.primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
  }
  nav.primary-nav ul li { padding: 10px 0; border-top: 1px solid #edf0f4; width: 100%; }
  .nav-wrap { flex-wrap: wrap; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--green); color: var(--navy); }
.btn-primary:hover { background: #86b62f; }
.btn-secondary { background: transparent; border-color: var(--white); color: var(--white); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.btn-outline-navy { background: transparent; border-color: var(--navy); color: var(--navy); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0a3363 100%);
  color: var(--white);
  padding: 90px 0 70px;
  text-align: center;
}
.hero.hero-home {
  background: linear-gradient(135deg, rgba(4,30,66,0.82) 0%, rgba(10,51,99,0.72) 100%), url("images/daybreak-hero-lake.jpg");
  background-size: cover;
  background-position: center;
  padding: 110px 0 90px;
}
.hero h1 { color: var(--white); }
.hero p.lead { color: #d7dee8; font-size: 1.15rem; max-width: 640px; margin: 0 auto 2em; }
.hero .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Article byline / updated date */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  color: var(--gray-text);
  font-size: 0.92rem;
  margin: 4px 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e4e8ee;
}
.article-meta strong { color: var(--navy); }

/* Footer credential bio */
.footer-bio {
  max-width: var(--max-width);
  margin: 0 auto 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: #9fb0c7;
  font-size: 0.92rem;
  line-height: 1.6;
}
.footer-bio a { color: #fff; text-decoration: underline; }

/* Full-width banner image */
.banner-image {
  width: 100%;
  max-width: var(--max-width);
  height: auto;
  display: block;
  margin: 32px auto 0;
  border-radius: var(--radius);
}

/* Image + text split layout */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}
.split-layout img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  position: sticky;
  top: 100px;
}
.split-layout .split-text .section-intro { text-align: left; margin: 0 0 1.5em; max-width: none; }
@media (max-width: 700px) {
  .split-layout { grid-template-columns: 1fr; }
  .split-layout img { max-height: 280px; }
}

/* Sections */
section { padding: 70px 0; }
section.alt { background: var(--gray-light); }
.section-intro { max-width: 680px; margin: 0 auto 2.5em; text-align: center; }

/* Card grids */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid #e6e9ee;
  border-radius: var(--radius);
  padding: 28px;
}
section.alt .card { background: var(--white); }

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(151, 201, 61, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.icon-badge svg { width: 22px; height: 22px; }

/* Placeholder listing / blog cards */
.placeholder-note {
  border: 2px dashed #c9d2de;
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  background: var(--white);
}

.tag {
  display: inline-block;
  background: rgba(151,201,61,0.18);
  color: #4d6b1f;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* CTA banner */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: #d7dee8; }

/* Team cards */
.avatar-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* Forms */
form.contact-form {
  display: grid;
  gap: 18px;
}
.form-row { display: grid; gap: 6px; }
label { font-weight: 600; font-size: 0.9rem; }
input, textarea {
  padding: 12px 14px;
  border: 1px solid #cbd3dd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}
input:focus, textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-box {
  background: var(--navy);
  color: var(--white);
  padding: 32px;
  border-radius: var(--radius);
}
.contact-info-box a { color: var(--green); font-weight: 700; text-decoration: none; }

/* Footer */
footer.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 50px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h3 { color: var(--white); font-size: 1rem; }
footer.site-footer a { color: #cbd5e1; text-decoration: none; }
footer.site-footer a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}
.slogan {
  font-style: normal;
  color: var(--green);
  font-weight: 700;
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.social-icons a:hover,
.social-icons a:focus-visible {
  background: var(--green);
}
.social-icons svg {
  width: 17px;
  height: 17px;
  fill: #ffffff;
  transition: fill 0.15s ease;
}
.social-icons a:hover svg,
.social-icons a:focus-visible svg {
  fill: var(--navy);
}

/* Jump navigation (in-page anchors) */
.jumpnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 32px;
  padding: 16px;
  background: var(--gray-light);
  border-radius: var(--radius);
}
.jumpnav a {
  background: var(--white);
  border: 1px solid #dfe4ea;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
}
.jumpnav a:hover { border-color: var(--green); color: #4d6b1f; }

/* Comparison table */
table.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 8px;
  font-size: 0.92rem;
}
table.compare-table th, table.compare-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e6e9ee;
  vertical-align: top;
}
table.compare-table th { color: var(--navy); font-weight: 700; background: var(--gray-light); }
.table-scroll { overflow-x: auto; }

.village-anchor { scroll-margin-top: 90px; }
.village-tip {
  background: rgba(151,201,61,0.12);
  border-left: 3px solid var(--green);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  margin: 14px 0 22px;
}
.village-tip strong { color: var(--navy); }
.back-to-top { font-size: 0.85rem; display: inline-block; margin-top: 4px; }

.inline-icon {
  width: 22px;
  height: 22px;
  vertical-align: -4px;
  margin-right: 8px;
  flex-shrink: 0;
}

/* Newsletter signup (Mailchimp embed) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.newsletter-section {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.newsletter-section h2 { color: var(--white); }
.newsletter-section p { color: #d7dee8; }

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 460px;
  margin: 0 auto;
}
.newsletter-form input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
}
.newsletter-form .btn { flex: 0 0 auto; }

/* Compact footer variant */
.newsletter-footer {
  margin-top: 14px;
}
.newsletter-footer .newsletter-form {
  justify-content: flex-start;
  max-width: none;
}
.newsletter-footer input[type="email"] {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #2c4970;
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 0.9rem;
}
.newsletter-footer input[type="email"]::placeholder { color: #9fb0c7; }
.newsletter-footer .btn {
  padding: 10px 16px;
  font-size: 0.85rem;
}

/* Inline variant (blog/contact page) */
.newsletter-inline {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 24px;
}
.newsletter-inline .newsletter-form { justify-content: flex-start; margin: 0; }

/* Photos */
.photo-frame {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  margin: 0 0 8px;
}
.photo-caption {
  font-size: 0.85rem;
  color: var(--gray-text);
  text-align: center;
  margin-bottom: 40px;
}

/* Core values grid (5 items) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .values-grid { grid-template-columns: 1fr; } }
.values-grid .card { padding: 22px; text-align: center; }
.values-grid .card h3 { color: #4d6b1f; }

/* Live listings embed */
.listings-embed {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #e6e9ee;
  background: var(--white);
}
.listings-embed iframe {
  width: 100%;
  height: 900px;
  border: 0;
  display: block;
}
@media (max-width: 700px) {
  .listings-embed iframe { height: 700px; }
}
