/* Shared design layer. Loaded after each page's own styles, so site-wide changes go here. */

/* ---------- Base ---------- */
:root {
  --brass: #7f9a8c;            /* thin accent lines: soft green */
  --deep: #004632;             /* dark green band */
  --sand: #e3e1db;             /* neutral stone section background */
  --cream: #f4f3f0;            /* light fill inside white cards */
  --edge: #cbc9c2;             /* card borders */
  --ink: #18211c; --muted: #465049;
}
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { font-size: 16px; line-height: 1.55; }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; }
.hero :focus-visible, .contact-band :focus-visible, .footer :focus-visible { outline-color: #fff; }
.page-hero-content { width: min(680px, 100%) !important; padding: 30px 0 32px !important; }
.page-hero .eyebrow { margin: 0 0 8px; font-size: 12px; letter-spacing: .14em; }
.page-hero .eyebrow::before { display: none; }
.page-hero p, .hero p, .intro p { text-wrap: pretty; }
.page-hero h1 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.1; }
.page-hero p:not(.eyebrow) { max-width: 60ch; margin: 8px 0 0; font-size: 16px; line-height: 1.5; }
main > section:not(.hero):not(.page-hero) .container, .page-hero .container, .footer .container { width: min(1220px, calc(100% - 48px)); }
.section-heading h2, .mission h2, .homes h2, .nearby h2, .appfolio h2, .resource-section h2,
.community-view-text h2, .contact-copy h2, .contact-form h2, .dashboard-panel h2, .text-panel h2, .portal-card h2 {
  font-size: clamp(25px, 2.4vw, 34px); line-height: 1.15;
}
.section, .page-section, .resource-section, .listings, .contact-section, .appfolio, .homes, .nearby, .community-view {
  padding-top: 44px !important; padding-bottom: 44px !important;
}

/* Readable body copy instead of bold paragraphs */
.columns p, .mission p, .nearby p, .intro p, .contact-copy > p, .dashboard-panel p, .text-panel p, .portal-card p,
.rules-list p, .rules-note p, .info-card span:not(.link-label), .support-item span, .contact-inner p {
  font-weight: 400; line-height: 1.6;
}
.columns p { color: var(--muted); font-size: 15px; }
.nearby p, .intro p { font-size: 16px; color: var(--muted); }
.community-view-text > p:last-child { font-size: 16px; }

/* ---------- Buttons ---------- */
.primary-button, .secondary-button, .card-button, .button, .btn-primary,
.hero .primary-button, .hero .secondary-button {
  min-height: 46px; padding: 0 22px; border-radius: 8px;
  font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none;
}
.btn-primary { display: inline-flex; align-items: center; box-shadow: none; }
.primary-button, .secondary-button, .button { transition: background .18s ease, border-color .18s ease; }
main .primary-button:hover, .button:not(.secondary):hover, .btn-primary:hover { background: #00553b; color: #fff; transform: none; box-shadow: none; }
main .secondary-button:hover, .button.secondary:hover { background: var(--sand); }
.contact-band .secondary-button:hover { background: rgba(255, 255, 255, .14); }
.hero .primary-button { box-shadow: none; }
.hero .primary-button:hover { background: #e9eeeb; color: var(--green); transform: none; box-shadow: none; }
.hero .secondary-button:hover { background: rgba(255, 255, 255, .12); }
.phone-button { border-radius: 8px; box-shadow: none; }

/* ---------- Cards ---------- */
.home-spotlight-card, .feature-home, .appfolio-card, .dashboard-panel, .text-panel, .portal-card,
.contact-form, .rules-note, .info-card, .stats, .home-card {
  border: 1px solid var(--edge); border-radius: 14px; box-shadow: 0 10px 28px -20px rgba(20, 40, 25, .35);
}

/* ---------- Home: hero ---------- */
.hero { min-height: 0; grid-template-columns: 1fr 1fr; }
.hero-content { padding: 34px clamp(24px, 4vw, 56px) 36px max(24px, calc((100vw - 1220px) / 2)); }
.hero .eyebrow { margin: 0; color: rgba(255, 255, 255, .86); font-size: 12px; letter-spacing: .12em; }
.hero .eyebrow::before { background: rgba(255, 255, 255, .5); }
.page-hero .eyebrow { color: rgba(255, 255, 255, .86); }
.community-view .eyebrow::before { background: var(--brass); }
.hero h1 { margin-top: 10px; font-size: clamp(34px, 3.5vw, 48px); line-height: 1.05; }
.hero p:not(.eyebrow) { max-width: 46ch; margin: 12px 0 20px; font-size: 16px; line-height: 1.5; }
.hero-photo { min-height: 300px; background: url("entrance-sign.jpg") 30% 42% / cover no-repeat; }
.hero-photo::after { display: none; }

/* ---------- Featured home (home page and Homes for Sale) ---------- */
.home-spotlight { padding: 24px 0 36px; background: var(--sand); border: 0; }
.spotlight-title { margin: 0 0 14px; color: var(--deep); font-size: clamp(28px, 2.7vw, 38px); font-weight: 600; line-height: 1.1; }
.home-spotlight-card, .feature-home {
  display: grid; grid-template-columns: 400px minmax(0, 1fr); align-items: stretch; gap: 0;
  max-width: none; margin: 0; padding: 0; overflow: hidden;
  background: #fff; border: 0; border-radius: 14px; box-shadow: 0 18px 40px -22px rgba(10, 30, 20, .55);
}
.feature-home { grid-template-columns: 440px minmax(0, 1fr); }
/* The floor plan fills its own panel, sized to the drawing's tall shape */
.home-spotlight-media.home-spotlight-plan, .listing-plan {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 0; padding: 14px 18px 12px; background: #fff; border-right: 1px solid var(--edge); text-align: center;
}
.home-spotlight-plan img, .listing-plan img { width: auto; max-width: 100%; max-height: 345px; }
.listing-plan img { max-height: 500px; }
.plan-caption { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.home-spotlight-copy, .feature-home-info { display: flex; flex-direction: column; justify-content: center; align-items: stretch; padding: 32px clamp(28px, 4vw, 56px); }
.feature-home-info .badge { align-self: flex-start; margin-bottom: 14px; background: var(--green); color: #fff; box-shadow: none; }
.feature-home-info .btn-primary { align-self: flex-start; }
.listing-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 32px; }
.listing-head h2, .listing-head h3, .home-spotlight-copy .listing-head h3 {
  margin: 0; color: var(--ink); font-family: var(--serif); font-size: clamp(28px, 2.9vw, 40px); font-weight: 600; line-height: 1.1;
}
.listing-city { margin: 6px 0 0; color: var(--muted); font-size: 17px; }
.listing-price { margin: 0; color: var(--green); font-family: var(--serif); font-size: clamp(34px, 3.4vw, 48px); font-weight: 600; line-height: 1; white-space: nowrap; }
.home-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0 18px; padding: 16px 0; list-style: none; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.home-facts li { padding: 0 20px; color: var(--muted); font-size: 15px; line-height: 1.3; }
.home-facts li:first-child { padding-left: 0; }
.home-facts li + li { border-left: 1px solid var(--edge); }
.home-facts strong { display: block; color: var(--ink); font-size: 28px; line-height: 1.15; }
.home-model { margin: 0; color: var(--ink); font-size: 16px; font-weight: 600; }
.listing-text { max-width: 58ch; margin: 4px 0 22px; color: var(--muted); font-size: 16px; line-height: 1.55; text-wrap: pretty; }

/* ---------- Section backgrounds: white and stone take turns ---------- */
.homes, .community-view, .appfolio, .resource-section, .contact-section { background: #fff; }
.appfolio { border-top: 0; }
.mission, .nearby, .listings, #rules-regulations, .page-section.alt { background: var(--sand); }
#rules-regulations + .mission { background: #fff; }
#rules-regulations + .mission + .community-view { background: var(--sand); }
#rules-regulations + .mission + .community-view + .nearby { background: #fff; }
.gallery-section, .page-section:not(.alt) { background: #fff; }
.appfolio-card, .contact-form { background: var(--cream); }

/* ---------- Home: highlights, photos, mission ---------- */
.feature-strip { background: var(--deep); border: 0; }
.feature-strip .feature { border-color: rgba(255, 255, 255, .2); }
.feature-strip .feature svg { color: #fff; }
.feature-strip .feature h3 { color: #fff; }
.feature-strip .feature p { color: rgba(255, 255, 255, .86); }
.features { padding: 20px 0; }
.feature { grid-template-columns: 40px 1fr; gap: 14px; min-height: 0; padding: 6px 24px; }
.feature:first-child { padding-left: 0; }
.feature-icon, .feature svg { width: 40px; height: 40px; }
.feature h3 { font-weight: 700; }
.feature p { margin-top: 3px; font-weight: 400; }
.section-heading { margin-bottom: 20px; }
.view-all { font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 4px; }
.home-grid { gap: 20px; }
.home-card:hover { transform: none; box-shadow: 0 10px 28px -20px rgba(20, 40, 25, .35); }
.card-media { height: 230px; }
.card-body { padding: 14px 18px 16px; }
.card-body .address { margin: 0; color: var(--muted); font-size: 15px; font-weight: 400; }
.mission .container, main > section.mission:not(.hero):not(.page-hero) .container {
  width: min(1220px, calc(100% - 48px)); grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px; align-items: center; padding-top: 44px !important; padding-bottom: 44px !important;
}
.mission-copy { padding: 0; }
.mission .section-heading { margin-bottom: 0; }
.mission .rule { display: none; }
.mission .columns { gap: 32px; margin-top: 20px; }
.columns h3 { margin-bottom: 6px; }
.mission-photo { align-self: stretch; min-height: 340px; border-radius: 14px; }
.stats { margin-top: 26px; }
.stat { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 14px 16px; }
.stat svg { width: 36px; height: 36px; }
.stat strong { font-size: 22px; }
.stat span { font-size: 13px; font-weight: 500; }

/* ---------- Community map, nearby, portal ---------- */
.community-view .container { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
.community-view .rule { margin: 16px 0 !important; }
.community-view-text > p:last-child { margin-top: 0; }
.community-view-media { border-width: 0; border-radius: 14px; box-shadow: none; }
.community-view-media { border: 1px solid var(--edge); }
.community-view-media img, .community-view-media:hover img { transform: none; }
.nearby p { margin: 6px auto 20px; }
.nearby-card { min-height: 0; }
.nearby-mark { height: 44px; }
.nearby-mark svg { width: 46px; height: 40px; }
.nearby-name { font-size: 13px; font-weight: 600; }
.appfolio-card { padding: 28px 32px; }
.appfolio p { margin: 10px 0 18px; font-size: 16px; }
.appfolio-list { grid-template-columns: 1fr 1fr; }
.appfolio-list li { font-size: 14px; font-weight: 600; }

/* ---------- Homes for sale ---------- */
.gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 0; }
.gallery-section .section-heading { display: block; }
.gallery-section .section-heading p { margin: 6px 0 0; color: var(--muted); font-weight: 400; }
.gallery-item { border-radius: 12px; box-shadow: none; }
.gallery-item:hover img { transform: none; }

/* ---------- Information, contact, AppFolio ---------- */
.info-card { align-content: start; min-height: 0; }
.info-card .link-label { margin-top: auto; color: var(--green); font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; text-decoration: underline; text-underline-offset: 4px; }
.contact-copy > p { margin-top: 10px; color: var(--muted); }
.form-note { font-size: 14px; font-weight: 400; line-height: 1.5; }
.field input, .field select, .field textarea { border-radius: 8px; font-size: 16px; font-weight: 400; }
.content-grid { gap: 24px; align-items: stretch; }
.support-list { grid-template-columns: repeat(3, 1fr); }

/* ---------- Contact band and footer ---------- */
.contact-band { padding-top: 0 !important; padding-bottom: 0 !important; }
.contact-inner { min-height: 0; padding: 26px 0; }
.contact-inner h2 { font-size: 20px; }
.contact-band .contact-inner p, .contact-band .contact-row p { font-weight: 400; }
.contact-band .contact-inner > a:last-child, .contact-band .contact-row > a:last-child { min-height: 46px; border-radius: 8px; font-size: 15px; font-weight: 600; text-transform: none; }
.contact-inner p, .contact-item { margin-top: 4px; }
.contact-item { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.footer { padding: 30px 0 18px; }
.footer li { font-weight: 400; font-size: 14px; }
.footer li a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 22px; padding-top: 14px; font-weight: 400; }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .mission .container, main > section.mission:not(.hero):not(.page-hero) .container { grid-template-columns: 1fr; gap: 24px; }
  .mission-photo { min-height: 260px; }
  .feature, .feature:first-child { padding: 10px 14px; border: 0; }
  .contact-inner { grid-template-columns: 1fr 1fr; }
  .support-list { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { min-height: 250px; }
  .hero-content { padding: 22px 24px 24px; }
  .home-spotlight-card, .feature-home { grid-template-columns: 1fr; }
  .home-spotlight-copy, .feature-home-info { order: -1; padding: 26px 28px; }
  .home-spotlight-media.home-spotlight-plan, .listing-plan { border-right: 0; border-top: 1px solid var(--edge); }
  .community-view .container { grid-template-columns: 1fr; gap: 24px; }
  .community-view-media { width: 100%; max-width: none; }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
  .nav { min-height: 68px; }
  .brand-logo { height: 40px; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--green); font-weight: 700; }
  .footer .brand-logo { height: 52px; }
  html { scroll-padding-top: 80px; }
  main > section:not(.hero):not(.page-hero) .container, .mission .container,
  main > section.mission:not(.hero):not(.page-hero) .container, .page-hero .container, .footer .container, .site-header .container {
    width: calc(100% - 40px);
  }
  .section, .page-section, .resource-section, .listings, .contact-section, .appfolio, .homes, .nearby, .community-view {
    padding-top: 32px !important; padding-bottom: 32px !important;
  }
  .page-hero-content { padding: 22px 0 24px !important; }
  .hero-photo { min-height: 120px; }
  .hero-content { width: auto; max-width: none; margin: 0; padding: 18px 20px 20px; }
  .hero .eyebrow { font-size: 11px; letter-spacing: .06em; }
  .hero .eyebrow::before { display: none; }
  .hero h1 { font-size: 32px; }
  .hero p:not(.eyebrow) { margin: 8px 0 14px; font-size: 15px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero .primary-button, .hero .secondary-button { padding: 0 10px; font-size: 14px; }
  .home-spotlight { padding: 18px 0 28px; }
  .home-spotlight-copy, .feature-home-info { padding: 20px; }
  .listing-head { flex-direction: column-reverse; gap: 8px; }
  .listing-head h2, .listing-head h3, .home-spotlight-copy .listing-head h3 { font-size: 25px; }
  .listing-price { font-size: 38px; }
  .listing-city { margin-top: 2px; font-size: 16px; }
  .home-facts { margin: 14px 0 12px; padding: 12px 0; }
  .home-facts li { padding: 0 10px; font-size: 13px; }
  .home-facts strong { font-size: 22px; }
  .listing-text { margin-bottom: 16px; font-size: 15px; }
  .home-spotlight-copy .home-model { margin-bottom: 14px; }
  .home-spotlight-copy .listing-text { display: none; }
  .features { grid-template-columns: 1fr 1fr; gap: 18px 14px; padding: 22px 0; }
  .feature, .feature:first-child { grid-template-columns: 1fr; align-content: start; gap: 6px; padding: 0; }
  .feature-icon, .feature svg { width: 32px; height: 32px; }
  /* Swipeable photo row; the next card peeks in from the edge */
  .home-grid { display: flex; gap: 12px; margin-right: -20px; padding: 0 20px 6px 0; overflow-x: auto; scroll-snap-type: x proximity; }
  .home-card { flex: 0 0 82%; scroll-snap-align: start; }
  .card-media { height: 190px; }
  .mission .columns { gap: 18px; }
  .mission-photo { min-height: 200px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { grid-template-columns: 1fr; justify-items: center; gap: 4px; padding: 12px 6px; text-align: center; border-top: 0; border-left: 1px solid var(--line); }
  .stat svg { width: 28px; height: 28px; }
  .stat strong { font-size: 19px; }
  .stat span { font-size: 12px; }
  .nearby-grid { grid-template-columns: repeat(3, 1fr); gap: 18px 8px; }
  .appfolio-card, .dashboard-panel, .text-panel, .portal-card, .contact-form, .rules-note { padding: 20px; }
  .appfolio-list li { padding: 10px 12px; }
  .content-grid, .rules-layout, .contact-layout { grid-template-columns: 1fr; gap: 24px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .info-grid { grid-template-columns: 1fr; gap: 12px; }
  .btn-primary { width: 100%; justify-content: center; }
  .contact-inner { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
