/* Pickleball Sydney — Harbour Blue + Sandstone palette
   Design DNA: Coastal, sophisticated, Australian, premium */

:root {
  /* Brand palette */
  --harbour: #1d4d6e;           /* Deep harbour blue */
  --harbour-deep: #0f2f47;      /* Sydney night-sky */
  --sandstone: #d4a574;         /* Warm golden sandstone */
  --sandstone-deep: #b08556;    /* Deeper warm tone */
  --ivory: #faf6ec;             /* Warm off-white */
  --sand: #ede4d0;              /* Soft sand accent */
  --charcoal: #1f1e1c;          /* Primary text */
  --graphite: #3a3938;          /* Secondary text */
  --mist: #d9d5cd;              /* Borders, dividers */
  --cream: #f4ede0;             /* Section backgrounds */

  /* Type */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-xxl: 8rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  color: var(--harbour-deep);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; font-family: var(--font-sans); font-weight: 600; }
h5 { font-size: 0.875rem; font-family: var(--font-sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--graphite); margin-bottom: 1rem; }

p { margin-bottom: 1.2rem; font-size: 1.0625rem; color: var(--graphite); }
p.lede { font-size: 1.25rem; color: var(--charcoal); line-height: 1.5; margin-bottom: 2rem; }

a { color: var(--harbour); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sandstone-deep); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sandstone-deep);
  margin-bottom: 1rem;
  display: inline-block;
}

/* Containers */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 960px; margin: 0 auto; padding: 0 2rem; }
.container-prose { max-width: 720px; margin: 0 auto; padding: 0 2rem; }

/* Navigation */
.site-nav {
  background: var(--ivory);
  border-bottom: 1px solid var(--mist);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(250, 246, 236, 0.95);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--harbour-deep);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--sandstone);
  border-radius: 50%;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--charcoal);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--sandstone-deep); }

.nav-cta {
  background: var(--harbour);
  color: var(--ivory) !important;
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--harbour-deep);
  color: var(--ivory) !important;
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--charcoal);
}

/* Hero */
.hero {
  padding: 4rem 0 6rem;
  background: linear-gradient(180deg, var(--ivory) 0%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content h1 em {
  font-style: italic;
  color: var(--sandstone-deep);
}

.hero-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--sand);
  box-shadow: 0 20px 60px rgba(15, 47, 71, 0.15);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all 0.2s;
  text-align: center;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--harbour);
  color: var(--ivory);
}

.btn-primary:hover {
  background: var(--harbour-deep);
  color: var(--ivory);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 47, 71, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--harbour);
  border: 1px solid var(--harbour);
}

.btn-ghost:hover {
  background: var(--harbour);
  color: var(--ivory);
}

.btn-accent {
  background: var(--sandstone);
  color: var(--harbour-deep);
}

.btn-accent:hover {
  background: var(--sandstone-deep);
  color: var(--ivory);
  transform: translateY(-2px);
}

/* Stats strip */
.stats-strip {
  background: var(--harbour-deep);
  color: var(--ivory);
  padding: 4rem 0;
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--sandstone);
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0;
}

/* Section spacing */
section {
  padding: var(--space-xl) 0;
}

section.section-alt {
  background: var(--cream);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: var(--ivory);
  border: 1px solid var(--mist);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15, 47, 71, 0.1);
  border-color: var(--sandstone);
}

.card-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--harbour) 0%, var(--sandstone) 100%);
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.card-content p {
  font-size: 0.9375rem;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.card-link {
  color: var(--harbour);
  font-weight: 500;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto;
}

.card-link:hover { color: var(--sandstone-deep); }

/* Venues list (table-ish, for site 'Where to Play') */
.venue-list {
  margin-top: 3rem;
}

.venue-item {
  padding: 2rem;
  background: var(--ivory);
  border: 1px solid var(--mist);
  border-radius: 8px;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  transition: all 0.2s;
}

.venue-item:hover {
  border-color: var(--sandstone);
  box-shadow: 0 4px 16px rgba(15, 47, 71, 0.08);
}

.venue-item h4 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--harbour-deep);
  margin-bottom: 0.375rem;
}

.venue-item .venue-meta {
  font-size: 0.875rem;
  color: var(--graphite);
  margin-bottom: 0.5rem;
}

.venue-item .venue-meta strong {
  color: var(--harbour);
  font-weight: 600;
}

.venue-item p {
  font-size: 0.9375rem;
  margin: 0;
}

/* Two-col blocks */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col .col-image {
  aspect-ratio: 4/5;
  border-radius: 8px;
  overflow: hidden;
  background: var(--sand);
}

.two-col .col-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Newsletter promo block */
.newsletter-promo {
  background: var(--harbour-deep);
  color: var(--ivory);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.newsletter-promo::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--sandstone) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}

.newsletter-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.newsletter-content h2 { color: var(--ivory); }
.newsletter-content p { color: var(--sand); font-size: 1.125rem; }

.newsletter-content .btn-accent {
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: var(--sand);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--ivory);
  margin-bottom: 1rem;
}

.footer-brand p { color: var(--sand); font-size: 0.9375rem; }

.footer-col h5 { color: var(--ivory); margin-bottom: 1.25rem; font-size: 0.75rem; }

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.75rem; }
.footer-col a { color: var(--sand); font-size: 0.9375rem; }
.footer-col a:hover { color: var(--sandstone); }

.footer-bottom {
  border-top: 1px solid rgba(212, 165, 116, 0.2);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--mist);
}

/* Blog post styles */
.post-hero {
  padding: 6rem 0 3rem;
  background: var(--cream);
  text-align: center;
}

.post-meta {
  font-size: 0.875rem;
  color: var(--graphite);
  margin-bottom: 1rem;
}

.post-content {
  padding: 3rem 0 6rem;
}

.post-content p, .post-content li {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--graphite);
}

.post-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-content ul, .post-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content blockquote {
  border-left: 4px solid var(--sandstone);
  padding: 1rem 0 1rem 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--harbour);
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.post-content a {
  color: var(--harbour);
  text-decoration: underline;
  text-decoration-color: var(--sandstone);
  text-underline-offset: 3px;
}

.post-content a:hover { color: var(--sandstone-deep); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 3rem; }
  .hero-image { aspect-ratio: 16/10; max-width: 500px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    right: 2rem;
    background: var(--ivory);
    padding: 1rem;
    border-radius: 8px;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 8px 24px rgba(15,47,71,0.15);
    border: 1px solid var(--mist);
  }
  .venue-item { grid-template-columns: 1fr; }
  section { padding: var(--space-lg) 0; }
}

@media (max-width: 500px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: 1fr; }
}
