/*
Theme Name: ZHP Oldham
Theme URI: https://zhpoldham.co.uk
Description: ZHP Oldham — Związek Harcerstwa Polskiego, Oldham
Version: 1.1
Author: ZHP Oldham
Text Domain: zhp-oldham
*/

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

.zhp-root {
  --navy:          #2A4A8C;
  --navy-dk:       #1E3668;
  --wood:          #B07840;
  --wood-dk:       #7A4E26;
  --wood-lt:       #D9A56B;
  --cream:         #FBF5E5;
  --paper:         #FFFFFF;
  --bg:            #FAF6EC;
  --gold:          #C99A2F;
  --leaf:          #4A8B3E;
  --red:           #B82E2A;
  --ink:           #1E3668;
  --muted:         #5C6A88;
  --border:        rgba(30,54,104,0.14);
  --border-strong: rgba(30,54,104,0.28);

  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp 0.7s cubic-bezier(0.2,0.7,0.2,1) both; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 72px 0; } }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.display-1 { font-size: clamp(40px,6vw,68px); line-height: 1.05; font-weight: 600; }
.display-2 { font-size: clamp(28px,4vw,44px); line-height: 1.1;  font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 6px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none; font-family: inherit; line-height: 1.2;
}
.btn-primary { background: var(--red); color: white; }
.btn-primary:hover { background: #962623; }
.btn-light { background: var(--cream); color: var(--ink); border-color: var(--border-strong); }
.btn-light:hover { background: white; border-color: var(--ink); }

/* Eyebrow */
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red); margin-bottom: 16px;
}
.eyebrow .num { color: var(--muted); margin-right: 8px; font-weight: 500; }

/* Section header */
.sec-head { margin-bottom: 56px; max-width: 760px; }
@media (max-width: 720px) { .sec-head { margin-bottom: 40px; } }
.sec-head p.lede { margin-top: 16px; font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 640px; }

/* Elementor full-width compatibility */
main#top { margin: 0; padding: 0; }
.elementor-section.elementor-section-boxed > .elementor-container { max-width: 1200px; }
.e-con-inner { max-width: 1200px; }

/* ============ HEADER ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,246,236,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.header.scrolled { border-bottom-color: var(--border); background: rgba(250,246,236,0.94); }
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo-mark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo-text { line-height: 1.1; }
.logo-text .top { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 600; }
.logo-text .bot { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); font-weight: 600; margin-top: 2px; }

.nav-desktop { display: flex; gap: 4px; align-items: center; }
.nav-desktop a {
  color: var(--ink); text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 6px;
  transition: background 0.2s ease;
}
.nav-desktop a:hover { background: rgba(30,54,104,0.06); }
.nav-cta { margin-left: 8px; }

.menu-btn {
  display: none;
  background: transparent; border: 1px solid var(--border-strong);
  border-radius: 6px; cursor: pointer; color: var(--ink);
  padding: 8px 14px; align-items: center; gap: 8px;
  font-family: inherit; font-size: 14px; font-weight: 500;
}
@media (max-width: 900px) { .nav-desktop { display: none; } .menu-btn { display: flex; } }

.drawer {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink); color: var(--cream);
  transform: translateY(-100%);
  transition: transform 0.35s ease;
  display: flex; flex-direction: column; padding: 24px;
}
.drawer.open { transform: translateY(0); }
.drawer-top { display: flex; justify-content: space-between; align-items: center; }
.drawer-nav { margin: auto 0; display: flex; flex-direction: column; gap: 10px; }
.drawer-nav a { color: var(--cream); text-decoration: none; font-family: 'Fraunces', serif; font-size: 36px; line-height: 1; font-weight: 600; }

/* ============ HERO ============ */
.hero {
  background: var(--navy); color: var(--cream);
  padding: 160px 0 96px; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 70% 30%, rgba(232,179,57,0.10), transparent 60%);
  pointer-events: none;
}
@media (max-width: 720px) { .hero { padding: 130px 0 80px; } }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero .eyebrow { color: var(--wood-lt); }
.hero .eyebrow .num { color: rgba(251,245,229,0.5); }
.hero h1 { color: var(--cream); }
.hero h1 .accent { color: var(--gold); }
.hero h1 .italic { font-style: italic; color: var(--wood-lt); font-weight: 500; }
.hero-sub { font-size: 17px; line-height: 1.65; color: rgba(251,245,229,0.78); max-width: 540px; margin: 24px 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-light { background: var(--cream); border-color: transparent; }
.hero .btn-light:hover { background: white; }
.hero-mottos {
  margin-top: 56px; padding-top: 32px;
  border-top: 1px solid rgba(251,245,229,0.15);
  display: grid; grid-template-columns: repeat(4,1fr); gap: 24px;
}
@media (max-width: 720px) { .hero-mottos { grid-template-columns: repeat(2,1fr); gap: 16px; } }
.motto-item .label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wood-lt); margin-bottom: 6px; }
.motto-item .text  { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 500; color: var(--cream); font-style: italic; }
.signpost-stage { display: flex; align-items: center; justify-content: center; }

/* ============ ABOUT ============ */
.about-section { background: var(--paper); border-top: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.about-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); display: block; }
.about-prose p { font-size: 16px; line-height: 1.7; color: var(--muted); margin-bottom: 16px; }
.about-prose p:first-of-type { font-size: 19px; line-height: 1.55; color: var(--ink); font-weight: 500; }
.about-prose strong { color: var(--ink); font-weight: 600; }
.pull-quote {
  margin-top: 32px; padding: 24px 28px;
  background: var(--cream); border-left: 3px solid var(--red); border-radius: 0 6px 6px 0;
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; font-size: 18px; line-height: 1.5; color: var(--ink);
}

/* ============ QUOTE BAND ============ */
.quote-band { background: var(--ink); color: var(--cream); padding: 96px 0; }
.quote-inner { max-width: 820px; margin: 0 auto; padding: 0 24px; text-align: center; }
.quote-mark { width: 44px; height: 44px; border-radius: 999px; background: var(--gold); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 28px; }
.quote-text { font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; font-size: clamp(20px,2.2vw,26px); line-height: 1.55; color: var(--cream); }
.quote-attr { margin-top: 28px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--gold); }
.quote-attr .small { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; color: rgba(251,245,229,0.55); margin-top: 6px; font-size: 13px; font-style: italic; font-family: 'Fraunces', serif; }

/* ============ CARDS ============ */
.card { background: var(--paper); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: border-color 0.2s ease; display: flex; flex-direction: column; height: 100%; }
.card:hover { border-color: var(--border-strong); }
.card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; border-bottom: 1px solid var(--border); }
.card-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.card-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.card h3 { font-size: 22px; font-weight: 600; line-height: 1.2; margin-bottom: 8px; }
.card .motto { font-family: 'Fraunces', serif; font-style: italic; font-size: 14px; color: var(--red); font-weight: 500; margin-bottom: 14px; }
.card-text { font-size: 14px; line-height: 1.6; color: var(--muted); flex: 1; }
.card-meta { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 500; color: var(--ink); }
.card-meta .arr { color: var(--muted); transition: transform 0.2s ease, color 0.2s ease; }
.card:hover .card-meta .arr { color: var(--red); transform: translate(2px,-2px); }

/* ============ UNITS ============ */
.units-section { background: var(--bg); }
.units-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
@media (max-width: 1000px) { .units-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px)  { .units-grid { grid-template-columns: 1fr; } }

/* ============ PROGRAMME ============ */
.prog-section { background: var(--paper); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.prog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 880px) { .prog-grid { grid-template-columns: 1fr; } }
.prog-card { padding: 32px 28px; }
.prog-icon { width: 44px; height: 44px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; background: var(--cream); color: var(--ink); border: 1px solid var(--border); }
.prog-card h3 { font-size: 20px; margin-bottom: 8px; }
.prog-card p { font-size: 14.5px; line-height: 1.65; color: var(--muted); }

/* ============ EVENTS ============ */
.events-section { background: var(--bg); }

/* ============ JOIN ============ */
.join-section { background: var(--paper); border-top: 1px solid var(--border); }
.join-inner { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
@media (max-width: 880px) { .join-inner { grid-template-columns: 1fr; gap: 40px; } }
.join-pitch p { font-size: 16px; line-height: 1.7; color: var(--muted); margin-bottom: 16px; }
.join-pitch p:first-of-type { font-size: 18px; color: var(--ink); }
.join-pitch .testimonial { margin-top: 24px; padding: 20px 24px; background: var(--cream); border-left: 3px solid var(--gold); border-radius: 0 6px 6px 0; font-family: 'Fraunces', serif; font-style: italic; font-size: 17px; line-height: 1.5; color: var(--ink); }
.testimonial .attr { display: block; font-family: 'Inter', sans-serif; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 10px; font-weight: 500; }

/* Elementor form overrides — makes the embedded form match the site style */
.join-form-wrap .elementor-form .elementor-field-group { margin-bottom: 0; }
.join-form-wrap .elementor-form input,
.join-form-wrap .elementor-form select,
.join-form-wrap .elementor-form textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border-strong) !important;
  background: var(--paper); color: var(--ink);
  font-family: inherit; font-size: 14px;
  border-radius: 6px; transition: border-color 0.2s ease;
  box-shadow: none !important;
}
.join-form-wrap .elementor-form input:focus,
.join-form-wrap .elementor-form select:focus,
.join-form-wrap .elementor-form textarea:focus { outline: none; border-color: var(--ink) !important; }
.join-form-wrap .elementor-form .e-form__buttons .elementor-button {
  background: var(--red) !important; color: white !important;
  border: none !important; border-radius: 6px !important;
  font-weight: 600 !important; padding: 12px 22px !important;
}
.join-form-wrap .elementor-form .e-form__buttons .elementor-button:hover { background: #962623 !important; }
.join-form-wrap { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 32px; }
.join-form-wrap h3 { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.join-form-wrap .form-sub { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

/* ============ CONTACT ============ */
.contact-section { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { padding: 32px 28px; }
.contact-ico { width: 40px; height: 40px; border-radius: 8px; background: var(--cream); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--red); margin-bottom: 20px; }
.contact-card h4 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.contact-card p, .contact-card a { font-size: 14.5px; line-height: 1.6; color: var(--muted); text-decoration: none; display: block; }
.contact-card a:hover { color: var(--red); }

/* ============ FOOTER ============ */
footer { background: var(--ink); color: var(--cream); padding: 72px 0 32px; border-top: 1px solid var(--border); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(251,245,229,0.12); }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; gap: 32px; } }
.foot-tagline { font-family: 'Fraunces', serif; font-size: 18px; line-height: 1.55; font-style: italic; max-width: 440px; color: rgba(251,245,229,0.78); }
.foot-tagline .accent { color: var(--gold); font-style: normal; font-weight: 600; }
.foot-col h5 { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wood-lt); margin-bottom: 16px; font-weight: 600; font-family: 'Inter', sans-serif; }
.foot-col a { display: block; color: rgba(251,245,229,0.7); font-size: 14px; text-decoration: none; padding: 4px 0; transition: color 0.2s ease; }
.foot-col a:hover { color: var(--cream); }
.foot-bot { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13px; color: rgba(251,245,229,0.5); flex-wrap: wrap; gap: 12px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 36px; height: 36px; border-radius: 6px; background: transparent; border: 1px solid rgba(251,245,229,0.2); color: rgba(251,245,229,0.7); display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.socials a:hover { background: rgba(251,245,229,0.1); color: var(--cream); border-color: rgba(251,245,229,0.4); }
