/* ============================================================
   Hickory Hills Community Association — local recreation
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Arvo:wght@400;700&family=PT+Serif:ital,wght@0,400;0,700;1,400&family=Open+Sans:wght@400;600;700&display=swap');

:root {
  --content-width: 960px;
  --ink:        #4f4a44;   /* body copy, warm gray  */
  --ink-soft:   #7a756d;
  --heading:    #6f6f6f;   /* gray section headings */
  --title:      #333333;   /* big banner title      */
  --link:       #4a4f86;
  --rule:       #d8d4cd;
  --orange:     #d9813f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  /* sunset background that continues down the whole page */
  background:
    linear-gradient(to bottom,
      #d9813f 0%,
      #c06a33 10%,
      #6f4140 32%,
      #2a1f33 58%,
      #0a0810 100%) fixed;
  background-size: cover;
  min-height: 100vh;
}

a { color: var(--link); }

/* ---------- Hero banner ---------- */
.hero {
  background: url('../assets/sunset.svg') center top / cover no-repeat;
  text-align: center;
  padding: 30px 16px 58px;
}
.hero h1 {
  margin: 0;
  font-family: 'Arvo', 'Rockwell', Georgia, serif;
  font-weight: 700;
  font-size: clamp(28px, 4.3vw, 52px);
  letter-spacing: 1.5px;
  line-height: 1.1;
  color: var(--title);
  text-shadow: 0 1px 0 rgba(255,255,255,0.18);
}
.hero h1 a { color: inherit; text-decoration: none; }

@media (max-width: 820px) {
  .hero { padding: 22px 14px 30px; }
}

/* ---------- Navigation ---------- */
.navwrap {
  max-width: var(--content-width);
  margin: -6px auto 0;
  padding: 0 12px;
}
nav.mainnav {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
nav.mainnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  width: 100%;
}
nav.mainnav li { position: relative; }
nav.mainnav a {
  display: block;
  padding: 10px 13px;
  color: #2a2f45;
  text-decoration: none;
  font-size: 14px;
  border-radius: 4px;
  white-space: nowrap;
}
nav.mainnav a:hover { background: #f0f0f0; }

/* active / current tab — dark raised button */
nav.mainnav a.active,
nav.mainnav li.more > a.active {
  background: linear-gradient(to bottom, #555 0%, #222 100%);
  color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* "More" dropdown */
nav.mainnav li.more { margin-left: auto; }
nav.mainnav li.more > a::after { content: ' \25BE'; font-size: 11px; }
.dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 6px;
  min-width: 230px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.4);
  border-top: 6px solid #1c1c1c;
  padding: 6px 0;
  display: none;
  z-index: 50;
}
nav.mainnav li.more:hover .dropdown { display: block; }
.dropdown a {
  border-radius: 0;
  padding: 9px 18px;
  font-size: 14px;
  color: #333;
}
.dropdown a:hover { background: #ededed; }

/* ---------- Content card ---------- */
main {
  max-width: var(--content-width);
  margin: 18px auto 26px;
  padding: 0 12px;
}
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.35);
  padding: 34px 44px 44px;
  min-height: 460px;
}

/* HOME button used on sub-pages */
.homebtn {
  display: inline-block;
  float: right;
  margin: 0 0 10px 12px;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #222;
  text-decoration: none;
  background: linear-gradient(to bottom, #fdfdfd, #dcdcdc);
  border: 1px solid #b9b9b9;
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.homebtn.center { float: none; display: block; width: max-content; margin: 0 auto 18px; }
.homebtn:hover { background: linear-gradient(to bottom, #fff, #e8e8e8); }

/* headings */
.section-title {
  font-family: 'PT Serif', Georgia, serif;
  color: var(--heading);
  font-weight: 400;
  letter-spacing: 1px;
  text-align: center;
  font-size: 30px;
  margin: 8px 0 26px;
}
.section-title.spaced { letter-spacing: 4px; }
h2.left, h3.left { text-align: left; }

p { line-height: 1.6; color: var(--ink); }
.muted { color: var(--ink-soft); }

hr.soft { border: 0; border-top: 1px solid var(--rule); margin: 26px 0; }

/* ---------- Home page layout ---------- */
.home-grid {
  display: grid;
  grid-template-columns: 300px 1px 1fr;
  gap: 28px;
}
.home-grid .divider { background: var(--rule); }

.signbox img, .signbox svg { width: 100%; border: 1px solid #ccc; border-radius: 2px; display:block; }

.quicklinks { text-align: center; margin-top: 18px; }
.quicklinks .btn-contact {
  display: inline-block;
  padding: 9px 26px;
  background: linear-gradient(to bottom, #fafafa, #d9d9d9);
  border: 1px solid #b9b9b9;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.quicklinks ul { list-style: none; padding: 0; margin: 18px 0 0; line-height: 2; }
.quicklinks ul a { font-weight: 700; text-decoration: underline; color: #2f2f6b; }
.quicklinks .flag { color: #c0392b; font-weight: 700; }

.welcome h2 {
  font-family: 'PT Serif', Georgia, serif;
  color: var(--heading);
  font-weight: 400;
  letter-spacing: 3px;
  font-size: 24px;
  margin: 4px 0 18px;
}
.welcome p { color: #6f6a8a; }

.infocols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; margin-top: 18px; }
.office u { text-decoration: underline; }
.office .label { font-weight: 700; text-decoration: underline; }

.social .fb, .social .tw {
  display:flex; align-items:center; justify-content:flex-end; gap:10px;
  font-size: 12px; color:#444; margin-bottom: 10px;
}
.likebtn, .followbtn {
  display:inline-flex; align-items:center; gap:6px;
  background:#3b5998; color:#fff; font-weight:700; font-size:12px;
  padding:6px 12px; border-radius:3px; text-decoration:none;
}
.followbtn { background:#1da1f2; }
.followers { font-size:11px; color:#666; border:1px solid #ccc; padding:4px 8px; border-radius:3px; }

.survey { text-align:center; margin-top: 26px; }
.survey p { font-weight: 700; font-size: 18px; color:#222; }
.survey a { font-weight:700; text-decoration: underline; }

.hoa-logo { text-align:center; margin-top: 8px; }
.hoa-logo svg, .hoa-logo img { width: 200px; border:1px solid #ddd; border-radius:4px; padding:8px; }

/* ---------- Forms ---------- */
form.styled { max-width: 520px; }
form.styled.narrow { max-width: 360px; }
.field { margin-bottom: 16px; }
.field label { display:block; font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; }
.field label .req { color:#c0392b; }
.field input[type=text],
.field input[type=email],
.field select,
.field textarea {
  width: 100%;
  background:#e9e9e9;
  border:1px solid #cfcfcf;
  border-radius:2px;
  padding:9px 10px;
  font: inherit;
  color:#333;
}
.field textarea { min-height: 96px; resize: vertical; }
.field.inline { display:flex; gap:18px; align-items:center; }
.field.inline label { margin:0; }
.note { color: var(--ink-soft); }

.captcha {
  width: 302px; max-width:100%;
  border:1px solid #d3d3d3; border-radius:3px; background:#f9f9f9;
  padding:12px 14px; display:flex; align-items:center; gap:12px; margin:18px 0;
}
.captcha .box { width:28px; height:28px; border:2px solid #c1c1c1; border-radius:2px; background:#fff; }
.captcha .rc { margin-left:auto; text-align:center; color:#9aa; font-size:10px; }
.captcha .rc .logo { color:#4285f4; font-size:22px; }

.submit {
  background: linear-gradient(to bottom, #fafafa, #dadada);
  border:1px solid #b3b3b3; border-radius:4px;
  padding:8px 18px; font-weight:700; color:#222; cursor:pointer;
}
.submit:hover { background: linear-gradient(to bottom, #fff, #e6e6e6); }

.form-note { color:#6f6a8a; }

/* honeypot — visually removed, still in the DOM for bots to trip on */
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* thank-you confirmation */
.thanks { padding: 30px 0 20px; }
.thanks .check {
  width: 78px; height: 78px; line-height: 78px; margin: 0 auto 6px;
  border-radius: 50%; background: #4caf50; color: #fff; font-size: 40px;
}
.thanks code { background:#f1f1f1; padding:2px 6px; border-radius:3px; }

/* ---------- Tables (business directory) ---------- */
table.dir { width:100%; border-collapse: collapse; margin-top: 8px; }
table.dir th {
  background:#9c93e6; color:#3a3a5a; text-align:center;
  padding:12px; font-size:15px; border:1px solid #fff;
}
table.dir td { padding:14px 16px; border:1px solid #e3e3e3; vertical-align: top; font-size:14px; }
table.dir tr:nth-child(odd) td { background:#f3f3f3; }
table.dir .company { font-weight:700; color:#444; text-align:center; font-size:16px; }
table.dir .contact { text-align:center; }
.listing-req {
  display:inline-block; padding:14px 26px; font-size:20px; font-weight:700;
  background: linear-gradient(to bottom, #fafafa, #d6d6d6);
  border:1px solid #b3b3b3; border-radius:8px; color:#222; text-decoration:none;
  box-shadow:0 2px 3px rgba(0,0,0,0.2);
}

/* ---------- Documentation ---------- */
.doc-cols { display:grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.doc-cols h3 { font-family:'PT Serif',Georgia,serif; font-style:italic; color:#5a5a5a; margin:22px 0 8px; }
.doc-cols ul { list-style:none; padding:0; margin:0; line-height: 1.9; }
.doc-cols ul a { color:#2f2f6b; text-decoration:underline; }
.doc-cols .new { color:#888; font-style:italic; }

/* ---------- Gallery ---------- */
.albums { display:grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 18px; }
.album { text-align:center; }
.album .thumb {
  display:inline-block; background:#fff; padding:10px 10px 22px;
  box-shadow:0 3px 8px rgba(0,0,0,0.25); transform: rotate(-1deg);
  border:1px solid #eee;
}
.album .thumb img, .album .thumb svg { width:200px; height:150px; object-fit:cover; display:block; }
.album h4 { margin:14px 0 4px; }
.album h4 a { color:#2f2f6b; text-decoration:underline; }
.album .meta { font-size:13px; color:#777; }

/* ---------- Payment page ---------- */
.pay-head { text-align:center; max-width:520px; margin:0 auto 30px; border:1px solid #e0e0e0; border-radius:6px; padding:24px; }
.make-payment {
  display:inline-block; font-family:'Arvo',serif; font-weight:700; font-size:30px;
  color:#1a3a6b; background: linear-gradient(to bottom,#ffe49a,#f4a92e);
  border:2px solid #e89b1c; border-radius:40px; padding:14px 40px;
}
.cards { margin-top:18px; display:flex; gap:10px; justify-content:center; }
.cards .c { width:74px; height:46px; border-radius:5px; border:1px solid #ccc; display:flex;align-items:center;justify-content:center;font-weight:700;font-size:11px;color:#fff; }
.cards .visa{background:#1a1f71;} .cards .mc{background:#eb001b;} .cards .amex{background:#2e77bb;} .cards .disc{background:#e9730c;}
.pay-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:30px 20px; text-align:center; margin-top:10px; }
.pay-grid .full { grid-column: 2 / 3; }
.pay-grid h3 { font-size:20px; color:#222; margin:0 0 18px; }
.paynow {
  display:inline-block; padding:5px 14px; font-size:13px;
  background: linear-gradient(to bottom,#fafafa,#e2e2e2); border:1px solid #bbb;
  border-radius:4px; color:#222; text-decoration:none;
}

/* ---------- Calendar ---------- */
.cal-toolbar { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; margin:6px 0 10px; }
.cal-toolbar .left { display:flex; align-items:center; gap:8px; }
.cal-email { font-weight:700; color:#222; font-size:18px; }
.cal-btn { background:#f1f1f1; border:1px solid #c9c9c9; border-radius:3px; padding:3px 9px; font-size:13px; color:#333; cursor:pointer; }
.cal-btn.nav { color:#fff; background:#7b86c6; border-color:#6b76b6; font-weight:700; }
.cal-btn.active { background:#fff; font-weight:700; }
.cal-views { display:flex; gap:4px; align-items:center; }
.cal-views .v { color:#3b6; }
table.calendar { width:100%; border-collapse:collapse; table-layout:fixed; }
table.calendar th { background:#eef0fb; color:#3a55c0; font-weight:600; font-size:13px; padding:5px; border:1px solid #d7dcf0; }
table.calendar td { height:84px; border:1px solid #e6e9f5; vertical-align:top; padding:4px 6px; font-size:12px; }
table.calendar td .d { color:#777; }
table.calendar td.dim .d { color:#bbb; }
table.calendar td.today { background:#fdf6d8; }
table.calendar .evt { color:#3a55c0; font-size:11px; margin-top:3px; }
.cal-foot { display:flex; justify-content:space-between; background:#eef0fb; padding:6px 10px; font-size:12px; color:#444; border:1px solid #d7dcf0; border-top:0; }
.cal-foot .gc b { color:#4285f4; }

/* ---------- Local business ---------- */
.lb-row { display:grid; grid-template-columns: 280px 1fr 280px; gap:24px; align-items:start; margin-top:24px; }
.lb-photo { border:1px solid #ddd; }
.lb-photo svg, .lb-photo img { width:100%; display:block; }

/* ---------- Footer ---------- */
footer.site {
  background: linear-gradient(to bottom, #2c2c2c, #050505);
  color:#cfcfcf;
  text-align:center;
  padding:26px 16px 36px;
  font-family:'PT Serif',Georgia,serif;
  font-style:italic;
  font-size:14px;
}
footer.site a { color:#9fb4e6; text-decoration:underline; }

@media (max-width: 820px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-grid .divider { display:none; }
  .infocols, .doc-cols, .albums, .pay-grid, .lb-row { grid-template-columns: 1fr; }
  .card { padding: 22px 18px 30px; }
}
