/* Golf club public site: plain CSS, no build step */

:root {
  --green-dark: #1d3b2a;
  --green: #2e6b47;
  --green-light: #e8f1ea;
  --sand: #f7f4ec;
  --ink: #1f2a24;
  --muted: #5d6b63;
  --line: #d9e0db;
  --white: #ffffff;
  --radius: 8px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 1rem;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); }
a:hover { color: var(--green-dark); }

h1, h2, h3 {
  line-height: 1.25;
  color: var(--green-dark);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 1.6em; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--white);
  padding: 0.5rem 1rem;
  z-index: 10;
}

/* Header and navigation */
.site-header {
  background: var(--green-dark);
  color: var(--white);
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1rem;
}
.site-brand {
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}
.site-brand:hover { color: var(--green-light); }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--green-light);
  color: var(--white);
}
.site-nav a.member-link {
  background: var(--green);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border-bottom: none;
}
.site-nav a.member-link:hover { background: var(--white); color: var(--green-dark); }

/* Hero */
.hero {
  background:
    linear-gradient(rgba(29, 59, 42, 0.72), rgba(29, 59, 42, 0.72)),
    var(--green);
  color: var(--white);
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
}
.hero h1 { color: var(--white); }
.hero p { font-size: 1.15rem; max-width: 40rem; }
.hero .button { margin-top: 0.5rem; }

.button {
  display: inline-block;
  background: var(--white);
  color: var(--green-dark);
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
}
.button:hover { background: var(--green-light); color: var(--green-dark); }
.button.secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.button.secondary:hover { background: var(--white); color: var(--green-dark); }

/* Sections */
section.block { padding: clamp(2.5rem, 6vw, 4rem) 0; }
section.block.alt { background: var(--sand); }

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }

.two-col {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

/* Lists and facts */
ul.checks {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}
ul.checks li {
  padding-left: 1.6em;
  position: relative;
  margin-bottom: 0.45em;
}
ul.checks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

dl.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.25rem;
  margin: 0;
}
dl.facts dt { font-weight: 600; color: var(--green-dark); }
dl.facts dd { margin: 0; }

/* Forms (contact) */
form.stacked label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  margin-top: 0.9rem;
}
form.stacked input,
form.stacked textarea,
form.stacked select {
  width: 100%;
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid #b9c4bd;
  border-radius: 6px;
  background: var(--white);
}
form.stacked textarea { min-height: 9rem; resize: vertical; }
form.stacked button {
  margin-top: 1.25rem;
  font: inherit;
  font-weight: 600;
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  cursor: pointer;
}
form.stacked button:hover { background: var(--green-dark); }

/* News */
.news-item {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}
.news-item:last-child { border-bottom: none; }
.news-item time {
  color: var(--muted);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.25rem;
}
.news-item h3 { margin-bottom: 0.3em; }

/* Page header (inner pages) */
.page-header {
  background: var(--green-light);
  padding: clamp(2rem, 5vw, 3rem) 0;
  border-bottom: 1px solid var(--line);
}
.page-header p { color: var(--muted); margin: 0; }

.notice {
  background: var(--sand);
  border-left: 4px solid var(--green);
  padding: 1rem 1.2rem;
  border-radius: 4px;
  margin: 1.5rem 0;
}

/* Footer */
.site-footer {
  background: var(--green-dark);
  color: #cfdcd3;
  padding: 2.5rem 0 2rem;
  font-size: 0.95rem;
}
.site-footer a { color: var(--white); }
.site-footer .container {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.site-footer h2 {
  color: var(--white);
  font-size: 1rem;
  margin: 0 0 0.5em;
}
.site-footer p { margin-bottom: 0.4em; }
.site-footer .legal {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .site-nav ul { gap: 0.2rem 0.9rem; }
  dl.facts { grid-template-columns: 1fr; }
  dl.facts dt { margin-top: 0.6rem; }
}
