/* Giraffe House Pickleball Club – site styles
   Colours: navy #1B2F63, yellow #F2C318, cream #FBF6EA, light blue #DCE8F7, dark navy #0E1A3D */

:root {
  --navy: #1B2F63;
  --navy-dark: #0E1A3D;
  --yellow: #F2C318;
  --cream: #FBF6EA;
  --blue-light: #DCE8F7;
  --text: #2A3B66;
  --muted: #4A5A80;
  --line: #E6DCC3;
  --heading: 'Montserrat', 'Arial Black', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --accent: 'Kalam', 'Comic Sans MS', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--navy); background: var(--cream); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
h1, h2, h3 { font-family: var(--heading); margin: 0; line-height: 1.1; }
h2 { font-size: 2rem; font-weight: 800; }
h3 { font-size: 1.375rem; font-weight: 800; }
p { margin: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.accent { font-family: var(--accent); font-size: 1.5rem; color: #2F5BA8; }
.lead { font-size: 1.15rem; line-height: 1.65; color: var(--text); max-width: 760px; }
.label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 700; border-radius: 999px; padding: 14px 26px; font-size: 1rem; border: 2px solid transparent; }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: #e3b50c; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { background: var(--navy); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 68px; height: 68px; }
.brand span { display: flex; flex-direction: column; font-family: var(--heading); line-height: 1.05; }
.brand b { font-weight: 900; font-size: 1.25rem; letter-spacing: 0.02em; color: #fff; }
.brand small { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.18em; color: var(--yellow); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-weight: 600; font-size: 0.95rem; }
.site-nav a { color: #fff; text-decoration: none; padding: 10px 0; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-bottom-color: rgba(242,195,24,0.6); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--yellow); }
.site-nav a.btn { padding: 11px 18px; border: 0; color: var(--navy); }

/* Sections */
.section { padding: 72px 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 28px; }
.section-head a { font-weight: 600; }
.band { background: var(--navy); color: #fff; }
.band .lead { color: #E4EAF7; }
.band-light { background: var(--blue-light); }

/* Hero */
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 3.75rem); font-weight: 900; line-height: 1.02; letter-spacing: -0.01em; }
.hero h1 span { background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); }
.hero figure { flex: 1 1 420px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.hero figure img { width: 100%; height: 400px; object-fit: cover; border-radius: 20px; }
.hero figcaption { font-size: 0.875rem; color: var(--muted); }

/* Page heading band */
.page-head .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 14px; }
.page-head .accent { color: var(--yellow); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 900; }

/* Town tags */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding: 0; list-style: none; }
.tags li { padding: 8px 15px; border-radius: 999px; border: 1.5px solid #8FA6D6; font-size: 0.95rem; }
.tags li.home { background: var(--yellow); color: var(--navy); border-color: var(--yellow); font-weight: 700; }

/* Cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.card p { color: var(--text); }
.card.highlight { background: var(--blue-light); border-color: #C3D5EE; }
.card.highlight .label { color: #2F4A82; }

/* Our week strip */
.week { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.day { background: #fff; border-top: 5px solid var(--navy); border-radius: 0 0 14px 14px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.day.open { border-top-color: var(--yellow); }
.day h3 { font-weight: 900; font-size: 1.375rem; text-transform: uppercase; }
.day .time { font-weight: 600; }
.day p:last-child { color: var(--text); font-size: 0.95rem; }

/* New to pickleball */
.newbie .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.newbie-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pbe-box { flex: 1 1 300px; min-width: 0; background: #fff; border-radius: 18px; padding: 28px; display: flex; align-items: center; gap: 22px; }
.pbe-box img { width: 72px; flex-shrink: 0; }
.pbe-box p { font-family: var(--heading); font-weight: 800; font-size: 1.1rem; margin-bottom: 8px; }

/* Session cards */
.sessions { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.session { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.session-top { background: var(--navy); color: #fff; padding: 18px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.session-top h3 { font-weight: 900; font-size: 1.6rem; }
.session-top .name { color: var(--yellow); font-weight: 600; font-size: 0.95rem; }
.session-top .time { background: #fff; color: var(--navy); font-weight: 700; padding: 8px 14px; border-radius: 10px; }
.session-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; color: var(--text); }
.session-body .where { font-weight: 600; color: var(--navy); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-weight: 700; font-size: 0.8rem; padding: 5px 10px; border-radius: 999px; }
.pill.all { background: #E5F4E4; color: #1D5C2A; }
.pill.invite { background: #F9EEDA; color: #6E4A07; }
.pill.dupr { background: #E7F1FB; color: #1E4A85; }

/* Home court panel */
.panel { background: var(--blue-light); border-radius: 20px; padding: 32px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.panel-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.panel-text h2 { font-size: 1.75rem; }
.panel-text p:last-child { font-size: 1.05rem; line-height: 1.6; color: var(--text); }
.panel img { flex: 1 1 300px; min-width: 0; max-width: 440px; height: 240px; object-fit: cover; border-radius: 14px; }

/* Venues */
.venue iframe { width: 100%; height: 200px; border: 0; border-radius: 12px; background: #EEF2F8; }
.venue address { font-style: normal; color: var(--text); }
.venue .note { font-size: 0.9rem; color: var(--muted); }

/* Prose pages */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 18px; font-size: 1.075rem; line-height: 1.7; color: var(--text); }
.prose h2 { color: var(--navy); font-size: 1.6rem; margin-top: 16px; }
.prose ul { margin: 0; padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }

/* Gallery */
.photos { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.photos figure { margin: 0; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.photos a { display: block; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photos figcaption { padding: 10px 14px; font-size: 0.9rem; color: var(--text); }
.photos-empty { color: var(--muted); }

/* Contact */
.contact .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 64px; padding-bottom: 88px; }
.contact-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-side h1 { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 900; }
.info { border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.info.dark { background: var(--navy); color: #fff; }
.info.dark a { color: var(--yellow); font-weight: 600; font-size: 1.05rem; }
.info.light { background: #fff; border: 1px solid var(--line); }
.info.light address { font-style: normal; color: var(--text); }
.info strong { font-family: var(--heading); font-weight: 800; font-size: 1.1rem; }
form.enquiry { flex: 1 1 520px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.fields { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .req { color: #9A2A2A; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: 13px 14px; border: 1.5px solid #B9C3D9; border-radius: 10px; background: #fff; color: var(--navy); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(242,195,24,0.6); border-color: var(--navy); }
.field textarea { resize: vertical; min-height: 150px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.form-foot p { font-size: 0.875rem; color: var(--muted); }
form.enquiry button { font: inherit; font-weight: 700; font-size: 1rem; padding: 15px 30px; background: var(--yellow); color: var(--navy); border: 0; border-radius: 999px; cursor: pointer; }
form.enquiry button:hover { background: #e3b50c; }
.hidden { display: none; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #E4EAF7; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; padding-top: 48px; padding-bottom: 28px; }
.foot-brand { flex: 1 1 280px; display: flex; gap: 16px; align-items: center; }
.foot-brand img { width: 72px; height: 72px; }
.foot-brand strong { display: block; font-family: var(--heading); font-weight: 800; color: #fff; }
.foot-brand em { font-family: var(--accent); font-style: normal; font-size: 1.15rem; color: var(--yellow); }
.foot-contact { flex: 1 1 260px; font-size: 0.95rem; line-height: 1.6; }
.foot-contact address { font-style: normal; }
.foot-contact a { color: #fff; }
.foot-pbe { flex: 0 1 230px; display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 14px; padding: 14px 18px; align-self: center; }
.foot-pbe img { width: 40px; }
.foot-pbe a { font-size: 0.875rem; font-weight: 600; }
.copyright { flex-basis: 100%; font-size: 0.8rem; color: #A9B6D6; }

/* Phones */
@media (max-width: 760px) {
  .site-header .wrap { justify-content: center; }
  .site-nav { justify-content: center; gap: 2px 16px; }
  .section { padding: 52px 0; }
  .hero .wrap { padding-top: 40px; }
  .hero figure img { height: 260px; }
  h2 { font-size: 1.6rem; }
  .panel { padding: 24px; }
  form.enquiry { padding: 22px; }
}
