/*
Theme Name: GAYO MRF Tours
Theme URI: https://gayoghana.org
Author: GAYO Comms
Author URI: https://gayoghana.org
Description: Lightweight custom theme for GAYO's Material Recovery Facility site — facility information and stakeholder tour booking.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: gayo-mrf
*/

/* ---------- Design tokens ---------- */
:root {
  --deep-blue: #1e186a;
  --deep-blue-dark: #16114e;
  --sky-blue: #00aeef;
  --sky-blue-dark: #0090c7;
  --white: #ffffff;
  --charcoal: #1c1c1c;
  --pale-blue: #eef6fb;
  --border: #d9e6ee;

  --font-body: "Gill Sans MT", "Gill Sans", Calibri, sans-serif;

  --max-width: 1120px;
  --gutter: 24px;

  --radius: 4px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--sky-blue-dark); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--sky-blue);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--deep-blue);
}
h1 { font-size: clamp(2.25rem, 4vw, 3rem); }
h2 { font-size: clamp(1.625rem, 2.6vw, 2rem); }
h3 { font-size: 1.375rem; }
p { max-width: 68ch; margin: 0 0 1.2em; }
.center p { margin-left: auto; margin-right: auto; }

ul, ol { padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: 72px 0; }
.section--pale { background: var(--pale-blue); }
.section--blue { background: var(--deep-blue); color: var(--white); }
.section--blue h1, .section--blue h2, .section--blue h3 { color: var(--white); }
.section--blue a { color: var(--white); text-decoration-color: rgba(255,255,255,0.5); }
.center { text-align: center; }
.eyebrow-none { /* intentionally no tracked-out eyebrow labels — see design notes */ }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  background: var(--sky-blue);
  color: var(--white);
  border: 2px solid var(--sky-blue);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover, .btn:focus { background: var(--sky-blue-dark); border-color: var(--sky-blue-dark); color: var(--white); text-decoration: none; }
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline:hover, .btn--outline:focus { background: var(--white); color: var(--deep-blue); border-color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  background: var(--deep-blue);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding img { max-height: 44px; width: auto; }
.site-title {
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.site-title a { color: var(--white); }
.site-title a:hover { text-decoration: none; }

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.primary-nav a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.98rem;
}
.primary-nav a:hover, .primary-nav a:focus { text-decoration: underline; text-decoration-color: var(--sky-blue); text-decoration-thickness: 2px; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--white);
  color: var(--white);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 1rem;
  font-family: var(--font-body);
}

@media (max-width: 780px) {
  .nav-toggle { display: inline-block; }
  .primary-nav { display: none; width: 100%; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 4px; padding: 16px 0; }
  .site-header .wrap { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--deep-blue);
  color: var(--white);
  padding: 88px 0 64px;
}
.hero .wrap { max-width: 780px; }
.hero p.lede {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  max-width: 58ch;
}
.hero .btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Stat strip ---------- */
.stat-strip {
  background: var(--sky-blue);
  color: var(--white);
}
.stat-strip .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.stat-strip .stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
.stat-strip .stat-label { font-size: 0.95rem; color: rgba(255,255,255,0.92); }

/* ---------- Three-path process diagram ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.process-path {
  border: 1px solid var(--border);
  border-top: 4px solid var(--sky-blue);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--white);
}
.process-path h3 { margin-bottom: 0.4em; }
.process-path .flow {
  font-size: 0.92rem;
  color: var(--deep-blue);
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.process-path .flow span.step { white-space: nowrap; }
.process-path .flow span.arrow { color: var(--sky-blue); }
.process-path p { margin-bottom: 0; }

/* ---------- Card grid (impact / resources) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
}
.card h3 { font-size: 1.15rem; }

/* ---------- Safety rules list ---------- */
.safety-rules {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 32px;
}
.safety-rules ul { list-style: none; padding: 0; margin: 0; }
.safety-rules li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 14px;
}
.safety-rules li:last-child { border-bottom: none; }
.safety-rules .rule-index {
  color: var(--sky-blue-dark);
  font-weight: 700;
  min-width: 1.6em;
}

/* ---------- Booking / Calendly embed ---------- */
.booking-embed {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 24px;
  min-height: 700px;
}
.booking-note {
  background: var(--pale-blue);
  border-left: 4px solid var(--sky-blue);
  padding: 18px 22px;
  border-radius: var(--radius);
  margin: 24px 0;
}

/* ---------- Resources / downloads ---------- */
.resource-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  background: var(--white);
  flex-wrap: wrap;
}
.resource-item .resource-meta { font-size: 0.9rem; color: #555; }
.empty-state {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  color: #555;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--deep-blue-dark);
  color: var(--white);
  padding: 48px 0 28px;
  margin-top: 0;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 0.8em; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer .footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding: 20px var(--gutter) 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
