/* Fairways HOA website styles.
   Most of the look lives in each page's inline styles (copied from the approved design);
   this file holds the shared pieces: page base, header, footer, contact form and phone sizes. */

:root { --green: #2F5233; --green-dark: #1d3620; --ink: #1c1c1a; --muted: #4b4b45; --line: #e4e4dc; --wash: #f4f5ef; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #ffffff; color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 300; letter-spacing: 0.01em;
  font-size: 20px; line-height: 1.55;
}
img { max-width: 100%; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .bar { max-width: 1180px; margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-header .logo { display: block; line-height: 0; }
.site-header .logo img { height: 64px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; font-family: 'Gilda Display', Georgia, serif; font-size: 17px; letter-spacing: 0.04em; }
.site-nav a { text-decoration: none; color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--green); border-bottom: 1px solid var(--green); }
.site-nav a.pill { color: #ffffff; background: var(--green); padding: 8px 18px; border-radius: 999px; }
.site-nav a.pill[aria-current="page"] { background: var(--green-dark); border-bottom: 0; }

/* Footer */
.site-footer { background: #ffffff; border-top: 1px solid var(--line); }
.site-footer .inner { max-width: 1180px; margin: 0 auto; padding: 52px 24px 40px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.site-footer .rule { width: 100%; display: flex; align-items: center; justify-content: center; gap: 24px; }
.site-footer .rule span { flex: 1; max-width: 280px; height: 1px; background: var(--ink); }
.site-footer .rule img { height: 84px; width: auto; display: block; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 30px; font-family: 'Gilda Display', Georgia, serif; font-size: 17px; letter-spacing: 0.04em; }
.site-footer nav a { color: var(--ink); text-decoration: none; }
.site-footer .copy { background: var(--green); color: #eef1e9; font-size: 16px; text-align: center; padding: 12px 24px; font-weight: 400; }

/* Contact form */
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.contact-form legend { font-size: 17px; margin-bottom: 8px; padding: 0; }
.contact-form .field { display: flex; flex-direction: column; gap: 4px; font-size: 17px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"],
.contact-form input[type="date"], .contact-form select, .contact-form textarea {
  font: inherit; font-size: 18px; padding: 10px 12px; border: 1px solid #b9bdaf; border-radius: 4px; background: #fff; color: var(--ink); width: 100%;
}
.contact-form textarea { resize: vertical; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; cursor: pointer; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 9px 18px; border-radius: 999px;
  font-family: 'Gilda Display', Georgia, serif; font-size: 17px; background: #ffffff; color: var(--ink); border: 1px solid #b9bdaf;
}
.pills input:checked + span { background: var(--green); color: #ffffff; border-color: var(--green); }
.pills input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 3px; }
.contact-form .extra { background: var(--wash); border: 1px solid #e0e2d8; border-radius: 4px; padding: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-form .fin-fields { grid-template-columns: 1fr; gap: 10px; }
.contact-form .extra[disabled] { display: none; }
.contact-form .note { margin: 0; font-size: 16px; color: var(--muted); }
.contact-form .send { font-family: 'Gilda Display', Georgia, serif; font-size: 19px; color: #ffffff; background: var(--green); border: 0; padding: 13px 30px; border-radius: 999px; cursor: pointer; }
.contact-form .send:hover { background: var(--green-dark); }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Phones and small tablets */
@media (max-width: 720px) {
  body { font-size: 19px; }
  .page-title { font-size: 40px !important; }
  .hero { height: 260px !important; }
  .tiles { grid-template-columns: 1fr !important; }
  .board-member { border-left: 0 !important; padding: 12px 0 !important; }
  .site-header .bar { justify-content: center; }
  .site-nav { justify-content: center; gap: 6px 18px; }
  .contact-form, .contact-form .extra { grid-template-columns: 1fr; }
  .site-footer .rule img { height: 64px; }
}
