/* Poly Golf Association of Arizona — colours drawn from the club logo */
:root {
  --cream: #f5f5ee;
  --sand: #efe6d4;
  --paper: #fffdf7;
  --ink: #2b1e14;
  --ink-soft: #5a4636;
  --muted: #7a6858;
  --terra: #b94e26;
  --terra-dark: #923a19;
  --sun: #f2a93b;
  --sun-dark: #d98d1c;
  --navy: #1f2f55;
  --navy-deep: #152240;
  --cactus: #66753a;
  --line: #e2d7c2;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(43, 30, 20, 0.06), 0 8px 24px rgba(43, 30, 20, 0.07);
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  /* Tapa-style band: an original repeating triangle pattern */
  --tapa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cpath d='M0 24 12 4 24 24z' fill='%231f2f55'/%3E%3Cpath d='M24 24 36 4 48 24z' fill='%23b94e26'/%3E%3Cpath d='M8 24 12 17 16 24z' fill='%23f2a93b'/%3E%3Cpath d='M32 24 36 17 40 24z' fill='%23f2a93b'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--terra-dark); text-underline-offset: 3px; }
a:hover { color: var(--terra); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.sand { background: var(--sand); }
.eyebrow { font: 600 0.8rem/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--terra); margin: 0 0 12px; }
.eyebrow.light { color: var(--sun); }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); text-transform: uppercase; color: var(--navy); margin-bottom: 14px; }
.lede { font-size: 1.2rem; line-height: 1.6; color: rgba(255, 255, 255, 0.9); max-width: 46ch; }
.lede.dark { color: var(--ink-soft); margin: 0 auto 24px; }

/* ── buttons & links ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 1rem/1 var(--body); text-decoration: none;
  padding: 14px 22px; border-radius: 999px; border: 2px solid transparent;
  transition: transform 0.15s, background 0.15s, color 0.15s;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 0.92rem; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #f6b955; color: var(--ink); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--terra-dark); }
.text-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform 0.15s; }
.text-link:hover svg { transform: translateX(3px); }

/* ── header ── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 245, 238, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img, .badge { border-radius: 50%; background: var(--cream); object-fit: contain; }
.brand img { padding: 3px; border: 1px solid var(--line); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font: 700 1.35rem/1 var(--display); letter-spacing: 0.04em; color: var(--navy); text-transform: uppercase; }
.brand-text small { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current] { border-color: var(--terra); color: var(--ink); }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span:not(.sr) { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 0.2s, opacity 0.2s; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 20px 18px; display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; justify-content: center; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 420px) { .brand-text small { display: none; } }

/* ── hero ── */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy-deep); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21, 34, 64, 0.92) 0%, rgba(21, 34, 64, 0.72) 45%, rgba(21, 34, 64, 0.15) 100%); }
.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); text-transform: uppercase; max-width: 16ch; margin-bottom: 18px; }
.hero .lede { margin-bottom: 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-logo { width: clamp(200px, 24vw, 300px); height: auto; border-radius: 50%; background: var(--cream); padding: 16px; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); border: 6px solid var(--cream); flex-shrink: 0; }
@media (max-width: 860px) {
  .hero::after { background: linear-gradient(180deg, rgba(21, 34, 64, 0.55) 0%, rgba(21, 34, 64, 0.9) 70%); }
  .hero-inner { flex-direction: column-reverse; align-items: flex-start; }
  .hero-logo { width: 140px; border-width: 4px; padding: 8px; }
}

/* ── pillars ── */
.pillars { background: var(--paper); border-bottom: 1px solid var(--line); }
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillar { padding: 40px 28px; border-left: 1px solid var(--line); }
.pillar:first-child { border-left: 0; padding-left: 0; }
.pillar-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--sand); color: var(--terra); margin-bottom: 18px; }
.pillar-icon svg, .placeholder svg, .empty-state svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pillar h2 { font-size: 1.35rem; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.pillar p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
@media (max-width: 960px) {
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .pillar { padding: 30px 22px; }
  .pillar:nth-child(odd) { border-left: 0; padding-left: 0; }
  .pillar:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar { border-left: 0 !important; padding-left: 0; border-top: 1px solid var(--line); }
  .pillar:first-child { border-top: 0; }
}

/* ── layout helpers ── */
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.split .muted { margin-bottom: 24px; max-width: 38ch; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head .h2 { margin: 0; }

/* ── events ── */
.event-list { display: grid; gap: 14px; }
.event { display: grid; grid-template-columns: 84px 1fr; gap: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 6px; text-transform: uppercase; font: 600 0.78rem/1.1 var(--body); letter-spacing: 0.1em; align-self: start; }
.event-date strong { font: 700 2.1rem/1 var(--display); letter-spacing: 0; margin: 4px 0; }
.event-date span:last-child { color: var(--sun); }
.event-type { font: 700 0.74rem/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; color: var(--cactus); }
.event-type.other { color: var(--terra); }
.event h3 { font-size: 1.4rem; color: var(--ink); margin-bottom: 8px; }
.event-meta { list-style: none; padding: 0; margin: 0 0 10px; color: var(--ink-soft); display: grid; gap: 4px; }
.event-meta li { display: flex; align-items: center; gap: 8px; }
.event-meta svg { width: 18px; height: 18px; fill: none; stroke: var(--terra); stroke-width: 2; flex-shrink: 0; }
.event-details { color: var(--ink-soft); }
.event-details p:last-child { margin-bottom: 10px; }
.event.compact { padding: 16px; grid-template-columns: 70px 1fr; gap: 16px; }
.event.compact .event-date strong { font-size: 1.7rem; }
.event.compact h3 { font-size: 1.2rem; }
.event.compact .event-meta { margin-bottom: 4px; }
.month { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--terra); margin: 34px 0 14px; }
.month:first-child { margin-top: 0; }
@media (max-width: 480px) { .event, .event.compact { grid-template-columns: 64px 1fr; gap: 14px; padding: 14px; } .event-date strong { font-size: 1.6rem; } }

.empty-state { display: flex; gap: 16px; align-items: center; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; color: var(--ink-soft); }
.empty-state svg { color: var(--terra); flex-shrink: 0; }
.empty-state p { margin: 0; }
.empty-state.big { flex-direction: column; text-align: center; padding: 48px 24px; }
.empty-state.big svg { width: 40px; height: 40px; }

/* ── highlight cards ── */
.hl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .hl-grid { grid-template-columns: 1fr; } }
.hl-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.hl-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--sand), #e7d8bd); color: var(--terra); }
.placeholder svg { width: 54px; height: 54px; opacity: 0.75; }
.hl-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.hl-body h3 { font-size: 1.45rem; color: var(--navy); margin-bottom: 6px; }
.hl-body p { color: var(--ink-soft); }
.hl-body .text-link { margin-top: auto; }
.hl-kind { font: 700 0.74rem/1.3 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--terra); margin-bottom: 8px; }
.hl-name { font-weight: 700; color: var(--ink) !important; margin-bottom: 8px; }
.hl-card.empty h3 { color: var(--muted); }

.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; background: var(--paper); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); margin-top: 28px; }
.feature-photo { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.feature-body { padding: 36px 36px 36px 0; }
.feature-body h3 { font-size: 2rem; color: var(--navy); margin-bottom: 8px; }
.feature.empty .feature-body h3 { color: var(--muted); }
.feature .btn { margin-top: 8px; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; gap: 0; } .feature-photo { min-height: 240px; aspect-ratio: 16 / 10; } .feature-body { padding: 26px; } }
.intro { max-width: 60ch; }
.prose p { color: var(--ink-soft); }
.prose.big p { font-size: 1.15rem; }
.prose.small p { font-size: 0.98rem; }

.archive { margin-top: 26px; }
.archive summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 10px 0; }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 10px; }
.archive-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.archive-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.archive-item > div { padding: 18px; }
.archive-item h4 { font-size: 1.2rem; color: var(--navy); margin-bottom: 6px; }
.archive .event-list { margin-top: 10px; }

/* ── photos ── */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 10px; }
.mosaic a { border-radius: 12px; overflow: hidden; display: block; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.mosaic a:hover img { transform: scale(1.04); }
.mosaic .m0 { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) { .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } .mosaic .m0 { grid-column: span 2; grid-row: span 1; } }

.gallery { columns: 3 280px; column-gap: 14px; }
.gallery figure { margin: 0 0 14px; break-inside: avoid; }
.gallery-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; }
.gallery-open img { width: 100%; height: auto; transition: transform 0.4s; }
.gallery-open:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: 0.92rem; color: var(--muted); padding: 6px 2px 0; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 14, 26, 0.92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: min(92vw, 1400px); text-align: center; }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: #eee; margin-top: 12px; }
.lightbox button { position: fixed; background: rgba(255, 255, 255, 0.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ── page heads ── */
.page-head { position: relative; padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 72px); background: var(--navy); color: #fff; overflow: hidden; }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); text-transform: uppercase; max-width: 20ch; margin-bottom: 14px; }
.page-head .eyebrow { color: var(--sun); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--tapa) repeat-x bottom / auto 12px; }

/* ── about ── */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.about-photo { border-radius: 22px; box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } .about-photo { aspect-ratio: 16 / 11; } }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.steps > div { background: var(--paper); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.steps span { font: 700 1rem/1 var(--display); color: var(--sun-dark); letter-spacing: 0.1em; }
.steps h3 { font-size: 1.3rem; color: var(--navy); margin: 10px 0 8px; text-transform: uppercase; }
.steps p { margin: 0; color: var(--ink-soft); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.join-logo { margin: 0 auto 20px; border-radius: 50%; background: var(--paper); padding: 10px; box-shadow: var(--shadow); }

/* ── join band & footer ── */
.join-band { position: relative; background: var(--terra); color: #fff; padding: 56px 0 48px; }
.tapa { height: 14px; background: var(--tapa) repeat-x top / auto 14px; }
.join-band > .tapa { position: absolute; top: 0; left: 0; right: 0; }
.join-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.join-band h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); text-transform: uppercase; margin-bottom: 6px; }
.join-band p { margin: 0; color: rgba(255, 255, 255, 0.9); max-width: 52ch; }

.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.78); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 52px; padding-bottom: 36px; }
.footer-brand img { border-radius: 50%; background: var(--cream); padding: 13px; margin-bottom: 16px; }
.footer-brand p { max-width: 36ch; }
.site-footer h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--sun); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 18px; padding-bottom: 24px; font-size: 0.88rem; }
.footer-base p { margin: 0; }
.footer-base a { color: rgba(255, 255, 255, 0.55); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

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