/*
Theme Name:  Port Stephens Unplugged
Theme URI:   https://unplugged.org.au
Author:      Cloud and Tech
Author URI:  https://cloudandtech.com.au
Description: Custom theme for Port Stephens Unplugged — a not-for-profit community movement protecting childhood from smartphone overexposure. Coastal design system: Deep Navy, Seafoam Teal, Warm Amber.
Version:     2.0.0
License:     GNU General Public License v2 or later
Text Domain: unplugged
Tags:        community, nfp, custom-colors, custom-menu, custom-logo, responsive-layout, translation-ready
*/

/* ------------------------------------------------------------
   This file holds the design system and site chrome ONLY.
   Anything specific to a single page lives in assets/css/ and is
   loaded only on that page — see inc/enqueue.php.

     assets/css/pages/home.css           the homepage
     assets/css/pages/about.css          /about
     assets/css/pages/resources.css      /resources
     assets/css/pages/take-the-pact.css  /take-the-pact
     assets/css/pages/regions.css        /regions
     assets/css/pages/contact.css        /contact
     assets/css/pages/buying-guide.css   /shop/buying-guide
     assets/css/blog.css                 posts and archives
     assets/css/woocommerce.css          shop, cart, checkout
   ------------------------------------------------------------ */

/* ============================================================
   CSS CUSTOM PROPERTIES — Brand Design System
   ============================================================ */
:root {
  --navy:    #0C2D48;
  --teal:    #3DBFA4;
  --amber:   #F5A623;
  --white:   #FAFCFB;
  --mint-bg: #EAF5F0;
  --card-bg: #FFFFFF;
  --text:    #1A2422;
  --muted:   #587068;
  --border:  #C8E4DA;
  --red:     #D94F3D;
  --green:   #27A264;
  --shadow:  0 2px 16px rgba(12, 45, 72, 0.10);
  --shadow-lg: 0 8px 32px rgba(12, 45, 72, 0.14);
  --radius:  10px;
  --transition: 0.22s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }

ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', 'Georgia', sans-serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 800;
}
h1 { font-size: clamp(2rem, 5vw, 3rem);    font-weight: 900; margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem;  margin-bottom: 0.5rem; font-weight: 700; }
h4 { font-size: 0.85rem; margin-bottom: 0.5rem; font-weight: 700;
     text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); }
h5 { font-size: 1rem;    margin-bottom: 0.4rem; }
h6 { font-size: 0.9rem;  margin-bottom: 0.4rem; }

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

.lead { font-size: 1.125rem; color: var(--muted); line-height: 1.7; }

.eyebrow {
  display: inline-block;
  background: var(--teal);
  color: var(--navy);
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 1rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }

.section         { padding: 5rem 0; }
.section-alt     { padding: 5rem 0; background: var(--mint-bg); }
.section-dark    { padding: 5rem 0; background: var(--navy); color: #fff; }
.section-sm      { padding: 3rem 0; }

.section-dark h2 { color: var(--teal); }
.section-dark h3 { color: #fff; }
.section-dark h4 { color: var(--amber); }
.section-dark p  { color: rgba(255,255,255,0.75); }
.section-dark .lead { color: rgba(255,255,255,0.65); }

/* Wave dividers */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-bottom: -2px;
}
.wave-divider svg { display: block; width: 100%; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: #e0941a;
  border-color: #e0941a;
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,166,35,0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-secondary:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-1px);
}
.btn-white {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--mint-bg);
  color: var(--navy);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}
.btn-lg { font-size: 1.05rem; padding: 0.9rem 2.2rem; }
.btn-sm { font-size: 0.82rem; padding: 0.5rem 1.1rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-accent   { border-left: 4px solid var(--teal); }
.card-amber    { border-left: 4px solid var(--amber); }
.card-dark {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'Raleway', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}
.badge-teal  { background: rgba(61,191,164,0.15); color: #1A7A65; }
.badge-amber { background: rgba(245,166,35,0.15);  color: #9A6800; }
.badge-navy  { background: rgba(12,45,72,0.08);   color: var(--navy); }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.18);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.site-logo-mark {
  width: 38px;
  height: 38px;
  background: var(--teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.site-logo-mark svg { width: 22px; height: 22px; fill: var(--navy); }
.site-logo-text { line-height: 1.15; }
.site-logo-text .logo-name {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0.02em;
}
.site-logo-text .logo-sub {
  display: block;
  font-size: 0.68rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

/* Primary navigation */
.primary-nav { display: flex; align-items: center; gap: 0.25rem; }
.primary-nav a {
  color: rgba(255,255,255,0.8);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.4rem 0.75rem;
  border-radius: 5px;
  text-decoration: none;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}
.primary-nav a:hover,
.primary-nav a.current-menu-item {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.nav-cta {
  background: var(--amber) !important;
  color: var(--navy) !important;
  padding: 0.45rem 1.2rem !important;
  margin-left: 0.5rem;
  border-radius: 6px !important;
}
.nav-cta:hover {
  background: #e0941a !important;
  color: var(--navy) !important;
  box-shadow: 0 3px 12px rgba(245,166,35,0.4);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #fff;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: all var(--transition);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-brand .logo-name { color: #fff; font-family: 'Raleway', sans-serif; font-weight: 900; font-size: 1.1rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.55); max-width: 260px; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.footer-nav h4 {
  color: var(--teal);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.1rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
}
.footer-nav ul { list-style: none; padding: 0; }
.footer-nav ul li { margin-bottom: 0.6rem; }
.footer-nav ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-nav ul a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); margin: 0; }
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--teal); }
.strive-hive-credit {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}
.strive-hive-credit a { color: var(--teal); }

/* Acknowledgement of Country */
.footer-acknowledgement {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.75rem 0;
  text-align: center;
}
.footer-acknowledgement h4 {
  color: var(--teal);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.6rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
}
.footer-acknowledgement p {
  margin: 0 auto;
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  max-width: 72ch;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: 4.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 85% 30%, rgba(61,191,164,0.12) 0%, transparent 65%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1    { color: #fff; max-width: 680px; }
.page-hero .lead { color: rgba(255,255,255,0.6); max-width: 540px; margin-top: 0.75rem; }

/* Breadcrumb */
.breadcrumb { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { color: rgba(255,255,255,0.25); margin: 0 0.4rem; }

/* ============================================================
   404
   ============================================================ */
.error-404-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}
.error-404-wrap .big-num {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: 8rem;
  color: var(--mint-bg);
  line-height: 1;
  margin-bottom: 0;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center  { text-align: center; }
.text-muted   { color: var(--muted); }
.text-white   { color: #fff; }
.text-teal    { color: var(--teal); }
.text-amber   { color: var(--amber); }
.mt-0  { margin-top: 0; }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mt-6  { margin-top: 3rem; }
.mb-0  { margin-bottom: 0; }
.mb-2  { margin-bottom: 1rem; }
.mb-4  { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================================
   POST CARDS  (shared: homepage, blog, archives)
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}
.post-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card-thumb { height: 200px; background: var(--mint-bg); overflow: hidden; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 1.5rem; }
.post-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.6rem; display: flex; gap: 1rem; }
.post-category {
  display: inline-block;
  background: rgba(61,191,164,0.1);
  color: var(--teal);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.post-card-title { font-size: 1.1rem; margin-bottom: 0.5rem; }
.post-card-title a { color: var(--navy); text-decoration: none; }
.post-card-title a:hover { color: var(--teal); }
.post-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.post-read-more { color: var(--teal); font-size: 0.85rem; font-weight: 700; margin-top: 0.75rem; display: inline-block; }

/* ============================================================
   POST CONTENT  (shared: single posts and all generic pages)
   ============================================================ */
.post-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  line-height: 1.8;
}
.post-content h2 { margin: 2rem 0 0.75rem; }
.post-content h3 { margin: 1.5rem 0 0.5rem; }
.post-content ul, .post-content ol { margin-bottom: 1rem; }
.post-content blockquote {
  border-left: 4px solid var(--teal);
  padding: 1rem 1.5rem;
  background: var(--mint-bg);
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--navy);
}

/* ============================================================
   VIDEO EMBED  (shared: resources and buying guide)
   ============================================================ */
.video-embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--navy);
}
.video-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   LAYOUT HELPERS  (added in v2 — these replace inline styles
   that used to live in the PHP templates)
   ============================================================ */
.container-cta    { max-width: 640px; }
.container-form   { max-width: 700px; }

.split-grid       { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split-grid-wide  { grid-template-columns: 1.2fr 1fr; gap: 4rem; }

.section-intro        { max-width: 640px; margin-left: auto; margin-right: auto; }
.section-intro-narrow { max-width: 580px; }
.text-center .section-intro-narrow { margin-left: auto; margin-right: auto; }

.section-header-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem;
}
.section-header-row h2 { margin: 0; }

.button-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.step-icon { font-size: 2.5rem; margin-bottom: 0.5rem; line-height: 1; }

.muted            { color: var(--muted); }
.section-dark .muted { color: rgba(255,255,255,0.65); }
.card-text        { color: var(--muted); font-size: 0.88rem; }
.card-note-text   { font-size: 0.85rem; color: var(--muted); margin-top: 0.75rem; }
.card-note        { padding: 1.5rem; }
.card-values,
.card-video,
.card-form        { padding: 2rem; }

.table-scroll     { overflow-x: auto; }
.pagination-wrap  { margin-top: 2.5rem; }
.empty-state      { text-align: center; padding: 3rem; }

.skip-link:focus {
  position: fixed; top: 0.5rem; left: 0.5rem; z-index: 999;
  width: auto; height: auto; clip: auto; margin: 0;
  padding: 0.75rem 1.25rem; background: var(--amber); color: var(--navy);
  border-radius: 6px; font-weight: 700;
}

.site-header.is-scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.25); }

.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem; width: 100%;
}
.footer-nav-menu ul { list-style: none; padding: 0; margin: 0; }

/* ============================================================
   RESPONSIVE  (theme-level only — page-specific breakpoints
   live in the matching file under assets/css/)
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4      { grid-template-columns: repeat(2, 1fr); }
  .split-grid, .split-grid-wide { gap: 2.5rem; }
}

@media (max-width: 768px) {
  .section, .section-alt, .section-dark { padding: 3.5rem 0; }
  .primary-nav { display: none; }
  .primary-nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: 70px; left: 0; right: 0; background: var(--navy);
    padding: 1rem; border-top: 1px solid rgba(255,255,255,0.1); gap: 0.2rem;
  }
  .primary-nav.open a { border-radius: 6px; padding: 0.6rem 0.75rem; }
  .nav-toggle  { display: block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .split-grid, .split-grid-wide { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .posts-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}


/* === Custom overrides (added via admin) === */

/* Acknowledgement of Country — centred at all breakpoints */
.footer-acknowledgement { text-align: center; }
.footer-acknowledgement p { margin-inline: auto; }

/* Join the Movement page — larger, brighter hero title */
.page-id-67 .page-hero { padding-top: 5.5rem; }
.page-id-67 .page-hero h1 {
	font-size: clamp(2.75rem, 6vw, 4.25rem);
	line-height: 1.05;
	color: var(--logo-green);
	max-width: 100%;
}

:root { --logo-green: #CEFEA8; }

/* Join the Movement — logo green in the nav */
.nav-menu a[href$="/get-involved/"] { color: var(--logo-green); }
.nav-menu a[href$="/get-involved/"]:hover,
.nav-menu a[href$="/get-involved/"]:focus { color: #E4FFCF; }

/* ===== Partner cards — mobile: stack cards instead of carousel ===== */
/* Fixes clipped partner statements on phones: the carousel track was narrower
   than the fixed-width cards, so the right-hand side of each card was cut off. */
@media (max-width: 600px) {
  .post-content:has(.psu-sponsors-wrap) { padding-left: 0; padding-right: 0; }
  .psu-sponsors-wrap .psu-sponsors-tier-label { margin-bottom: 1.25rem; font-size: 1rem; }
  .psu-sponsors-wrap .psu-sponsors-carousel-wrap {
    width: 100% !important;
    margin-left: 0 !important;
    transform: none !important;
    padding: 0 !important;
  }
  .psu-sponsors-wrap .psu-carousel-btn { display: none !important; }
  .psu-sponsors-wrap .psu-sponsors-grid {
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
    gap: 1rem !important;
    padding-bottom: 0 !important;
  }
  .psu-sponsors-wrap .psu-sponsors-grid .psu-sponsor-card {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 1.25rem !important;
  }
  .psu-sponsors-wrap .psu-sponsor-mission {
    font-size: .9rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }
}
