/* Planning Surveyors Club — style.css */

/* ── Fonts ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Jost:wght@300;400;500&display=swap');

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --navy:       #1B2D4F;
  --navy-deep:  #111E35;
  --gold:       #B8963E;
  --gold-light: #D4AF62;
  --cream:      #F7F4EF;
  --white:      #FFFFFF;
  --ink:        #1C1C1C;
  --mid:        #5A5A5A;
  --rule:       #DDD8CF;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'Jost', 'Gill Sans', Optima, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
}

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

a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
a:hover { color: var(--gold); }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  padding: 0 2rem;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 2rem;
}

.site-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--white);
  text-decoration: none;
  line-height: 1.2;
  flex-shrink: 0;
}
.site-title:hover { color: var(--gold-light); }

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  display: flex;
  gap: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.5rem 1.1rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
  border-bottom-color: var(--gold);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: var(--navy-deep);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(184,150,62,0.03) 40px,
    rgba(184,150,62,0.03) 41px
  );
}

.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.hero-rule {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1.5rem auto;
}

.hero p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin: 0 auto;
  letter-spacing: 0.02em;
}

/* ── Page banner (inner pages) ───────────────────────────────── */
.page-banner {
  background: var(--navy);
  padding: 3rem 2rem;
  border-bottom: 3px solid var(--gold);
}

.page-banner-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.page-banner h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.02em;
}

/* ── Main content ────────────────────────────────────────────── */
.content-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.content-narrow {
  max-width: 720px;
}

/* ── Typography ─────────────────────────────────────────────── */
h2 {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
  line-height: 1.25;
}

h2:first-child { margin-top: 0; }

h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.6rem;
  margin-top: 2rem;
}

p { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.gold-rule {
  border: none;
  border-top: 1px solid var(--gold);
  margin: 2.5rem 0;
  opacity: 0.5;
}

/* ── Event card ─────────────────────────────────────────────── */
.event-card {
  border: 1px solid var(--rule);
  border-top: 4px solid var(--gold);
  padding: 2.5rem;
  margin-bottom: 2rem;
  background: var(--cream);
}

.event-date {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.event-card h2 {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--navy);
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.event-card .venue-line {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--mid);
  margin-bottom: 1.5rem;
}

/* ── Speaker block ───────────────────────────────────────────── */
.speaker-block {
  background: var(--navy);
  color: var(--white);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}

.speaker-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.speaker-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.speaker-block p {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ── Programme table ─────────────────────────────────────────── */
.programme {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.programme td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.programme td:first-child {
  font-weight: 500;
  white-space: nowrap;
  color: var(--navy);
  width: 160px;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.programme tr:last-child td { border-bottom: none; }

/* ── Ticket / CTA box ────────────────────────────────────────── */
.cta-box {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.cta-box .price {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.cta-box p {
  font-size: 0.95rem;
  color: var(--mid);
  margin-bottom: 0;
}

.cta-box a { color: var(--navy); font-weight: 400; }
.cta-box a:hover { color: var(--gold); }

/* ── Past events list ────────────────────────────────────────── */
.past-year {
  margin-bottom: 2.5rem;
}

.past-year-heading {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.past-year ul {
  list-style: none;
  padding: 0;
}

.past-year li {
  font-family: var(--serif);
  font-size: 1.1rem;
  padding: 0.4rem 0;
  color: var(--ink);
  border-bottom: 1px dotted var(--rule);
}

.past-year li:last-child { border-bottom: none; }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-item {
  border-top: 3px solid var(--gold);
  padding-top: 1.25rem;
}

.contact-item h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.contact-item a {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
}

/* ── Homepage sections ───────────────────────────────────────── */
.home-intro {
  max-width: 720px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
}

.pillar {
  padding: 0;
}

.pillar-number {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pillar h3 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.pillar p {
  font-size: 0.9rem;
  color: var(--mid);
  margin-bottom: 0;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-deep);
  border-top: 3px solid var(--gold);
  padding: 2.5rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-name {
  font-family: var(--serif);
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
}

.footer-contact {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  text-align: right;
}

.footer-contact a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}
.footer-contact a:hover { color: var(--gold-light); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 680px) {
  .header-inner {
    flex-direction: column;
    padding: 1.2rem 0;
    min-height: auto;
    gap: 1rem;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 0;
  }

  .site-nav a {
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-contact { text-align: left; }

  .event-card { padding: 1.5rem; }
  .speaker-block { padding: 1.25rem 1.5rem; }
}
