/*
Theme Name: Sydney Pulse
Theme URI: https://sydneypulse.com.au
Author: Sydney Pulse
Description: Hyperlocal news, events and jobs for Sydney suburbs
Version: 1.0
*/

:root {
  --navy: #0d1f3c;
  --navy-mid: #162d52;
  --gold: #c9a84c;
  --gold-light: #e4c97e;
  --white: #ffffff;
  --off-white: #f5f5f5;
  --border: #e8e8e8;
  --ink: #1a1a1a;
  --ink-mid: #444;
  --ink-light: #888;
  --green: #1e6b45;
  --red: #c0392b;
}

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

body {
  background: var(--white);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

/* UTILITY BAR */
.util-bar {
  background: var(--navy);
  padding: 0.4rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.util-bar span { color: rgba(255,255,255,0.4); }
.util-links { display: flex; gap: 1.25rem; }
.util-links a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 11px; transition: color 0.2s; }
.util-links a:hover { color: var(--gold); }

/* MASTHEAD */
.masthead {
  background: var(--navy);
  padding: 1.25rem 1.5rem 0;
  border-bottom: 3px solid var(--gold);
}

.masthead-inner { max-width: 1100px; margin: 0 auto; }

.masthead-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 1rem;
  gap: 1rem;
}

.brand-label { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); opacity: 0.7; margin-bottom: 0.2rem; }

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.brand-name span { color: var(--gold); }
.brand-tagline { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-top: 0.3rem; }
.masthead-date { text-align: right; color: rgba(255,255,255,0.35); font-size: 11px; letter-spacing: 0.06em; line-height: 1.7; }

/* SUBURB SELECTOR */
.suburb-selector {
  background: var(--gold);
  margin: 0 -1.5rem;
  padding: 0 1.5rem;
  display: flex;
  align-items: stretch;
}

.suburb-selector-label {
  background: var(--navy);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.suburb-tabs { display: flex; overflow-x: auto; scrollbar-width: none; flex: 1; }
.suburb-tabs::-webkit-scrollbar { display: none; }

.suburb-tab {
  font-size: 12px;
  font-weight: 600;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  color: rgba(13,31,60,0.6);
  background: transparent;
  border: none;
  border-right: 1px solid rgba(13,31,60,0.1);
  white-space: nowrap;
  transition: all 0.15s;
  user-select: none;
}

.suburb-tab:hover { background: rgba(255,255,255,0.3); color: var(--navy); }
.suburb-tab.active { background: var(--white); color: var(--navy); font-weight: 700; }
.suburb-tab .soon { display: block; font-size: 8px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.5; }

/* NAV */
.nav-bar { background: var(--navy-mid); border-top: 1px solid rgba(255,255,255,0.07); }
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }

.nav-bar a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,0.5);
  padding: 0.75rem 1.1rem;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.05);
  transition: all 0.15s;
}

.nav-bar a:hover { color: var(--gold); }
.nav-bar a.active { color: var(--gold); border-bottom: 2px solid var(--gold); }

/* TICKER */
.ticker {
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  background: var(--white);
}

.ticker-label { background: var(--red); color: white; font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; padding: 0.25rem 0.75rem; margin-right: 1rem; flex-shrink: 0; }

.ticker-scroll { display: inline-block; animation: tickerScroll 38s linear infinite; font-size: 12px; color: var(--ink-mid); }
.tdot { margin: 0 1rem; color: var(--gold); }

@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* SUBURB BANNER */
.suburb-banner { background: var(--off-white); border-bottom: 1px solid var(--border); padding: 0.85rem 0; }

.suburb-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.suburb-banner-left { display: flex; align-items: center; gap: 0.75rem; }
.suburb-dot { width: 10px; height: 10px; background: var(--gold); border-radius: 50%; }
.suburb-banner-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.suburb-banner-meta { font-size: 11px; color: var(--ink-light); padding-left: 0.75rem; border-left: 1px solid var(--border); }

.suburb-stats { display: flex; }
.suburb-stat { text-align: center; padding: 0 1.25rem; border-left: 1px solid var(--border); }
.suburb-stat-num { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--navy); display: block; line-height: 1; }
.suburb-stat-label { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-light); display: block; margin-top: 0.15rem; }

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

/* SECTION HEADERS */
.section-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--navy); }
.section-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 900; color: var(--navy); line-height: 1; }
.section-badge { background: var(--navy); color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; padding: 0.2rem 0.55rem; }
.section-line { flex: 1; height: 1px; background: var(--border); }
.section-sub { font-size: 11px; color: var(--ink-light); white-space: nowrap; }

/* TAGS */
.tag { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.18rem 0.5rem; margin-bottom: 0.5rem; }
.tag-news { background: var(--navy); color: var(--gold); }
.tag-culture { background: #6b3a7a; color: white; }
.tag-events { background: var(--green); color: white; }
.tag-trending { background: var(--red); color: white; }
.tag-community { background: #333; color: white; }
.tag-property { background: #7d6608; color: white; }

/* ARTICLES */
.headline { font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.2; color: var(--ink); cursor: pointer; transition: color 0.15s; }
.headline:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); }
.hl-xl { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-bottom: 0.6rem; }
.hl-lg { font-size: clamp(1.15rem, 1.8vw, 1.4rem); margin-bottom: 0.45rem; }
.hl-md { font-size: 1.05rem; margin-bottom: 0.35rem; }
.hl-sm { font-size: 0.92rem; margin-bottom: 0.3rem; }

.deck { font-family: 'Source Serif 4', serif; font-weight: 300; font-size: 0.88rem; color: var(--ink-mid); line-height: 1.55; margin-bottom: 0.45rem; }
.byline { font-size: 11px; color: var(--ink-light); }
.byline strong { color: var(--ink-mid); font-weight: 600; }

/* IMAGE PLACEHOLDERS */
.img-ph { width: 100%; background: var(--off-white); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: #ccc; margin-bottom: 0.85rem; }
.img-ph-icon { font-size: 1.4rem; opacity: 0.3; }
.img-xl { height: 240px; }
.img-md { height: 115px; }

/* HERO */
.hero-section { padding: 2rem 0; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1px 1fr; gap: 0; }
.col-rule { background: var(--border); }
.hero-left { padding-right: 1.75rem; }
.hero-right { padding-left: 1.75rem; }
.hero-right-item { padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
.hero-right-item:first-child { padding-top: 0; }
.hero-right-item:last-child { border-bottom: none; padding-bottom: 0; }

/* TOP 5 */
.top5-section { margin-bottom: 2.5rem; }
.top5-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.top5-item { padding-right: 1.25rem; margin-right: 1.25rem; border-right: 1px solid var(--border); }
.top5-item:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.story-num { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 900; color: var(--border); line-height: 1; margin-bottom: -0.5rem; user-select: none; transition: color 0.2s; }
.top5-item:hover .story-num { color: #e4c97e55; }
.read-more { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); text-decoration: none; margin-top: 0.5rem; border-bottom: 1px solid var(--navy); padding-bottom: 1px; transition: color 0.15s, border-color 0.15s; }
.read-more:hover { color: var(--gold); border-color: var(--gold); }

/* EVENTS */
.events-section { margin-bottom: 2.5rem; }
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.event-card { border: 1px solid var(--border); border-top: 3px solid var(--green); padding: 1.1rem; cursor: pointer; transition: box-shadow 0.2s; background: var(--white); }
.event-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.event-date-row { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.75rem; }
.event-cal { width: 44px; height: 44px; background: var(--navy); color: white; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.ecal-month { background: var(--gold); color: var(--navy); font-size: 8px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; width: 100%; text-align: center; padding: 0.1rem 0; }
.ecal-day { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.event-time { font-size: 11px; color: var(--ink-light); }
.event-time strong { display: block; font-size: 12px; color: var(--ink-mid); font-weight: 600; }
.event-title { font-family: 'Playfair Display', serif; font-size: 0.95rem; font-weight: 700; color: var(--ink); line-height: 1.25; margin-bottom: 0.35rem; }
.event-desc { font-size: 11px; color: var(--ink-light); line-height: 1.5; margin-bottom: 0.65rem; }
.event-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 0.6rem; border-top: 1px solid var(--border); font-size: 11px; }
.event-location { color: var(--ink-light); }
.event-price { font-weight: 700; color: var(--green); }

/* JOBS */
.jobs-section { margin-bottom: 2.5rem; }
.jobs-filter-bar { background: var(--off-white); border: 1px solid var(--border); padding: 0.7rem 1rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; flex-wrap: wrap; gap: 0.6rem; }
.jobs-filter-bar p { font-size: 12px; color: var(--ink-mid); }
.jobs-filter-bar p strong { color: var(--navy); }
.filter-btns { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.filter-btn { font-size: 10px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; padding: 0.3rem 0.65rem; border: 1px solid var(--border); color: var(--ink-mid); background: var(--white); cursor: pointer; transition: all 0.15s; }
.filter-btn:hover, .filter-btn.active { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.job-card { border: 1px solid var(--border); border-left: 3px solid var(--navy); padding: 0.9rem 1.1rem; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; margin-bottom: 0.4rem; cursor: pointer; background: var(--white); transition: all 0.15s; }
.job-card:hover { border-left-color: var(--gold); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.job-title { font-family: 'Playfair Display', serif; font-size: 0.95rem; font-weight: 700; color: var(--ink); margin-bottom: 0.2rem; }
.job-new { background: var(--red); color: white; font-size: 8px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.1rem 0.35rem; margin-left: 0.4rem; vertical-align: middle; }
.job-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.35rem; }
.job-meta-item { font-size: 11px; color: var(--ink-light); }
.job-tags { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.job-tag { font-size: 9px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; padding: 0.13rem 0.4rem; background: var(--off-white); color: var(--ink-mid); border: 1px solid var(--border); }
.job-right { text-align: right; }
.job-pay { font-size: 13px; font-weight: 700; color: var(--green); margin-bottom: 0.35rem; }
.apply-btn { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.4rem 0.9rem; background: var(--navy); color: var(--gold); border: none; cursor: pointer; transition: background 0.15s; white-space: nowrap; }
.apply-btn:hover { background: #1e3a6a; }

/* VIEW ALL */
.view-all { display: inline-block; margin-top: 1rem; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); text-decoration: none; padding: 0.55rem 1.25rem; border: 1.5px solid var(--navy); background: transparent; cursor: pointer; transition: all 0.15s; }
.view-all:hover { background: var(--navy); color: var(--gold); }

/* DIVIDER */
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* NEWSLETTER */
.newsletter { background: var(--navy); padding: 2.25rem 2rem; margin-bottom: 3rem; }
.newsletter-inner { max-width: 520px; margin: 0 auto; text-align: center; }
.newsletter-eyebrow { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; opacity: 0.8; }
.newsletter h3 { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 700; color: white; margin-bottom: 0.35rem; }
.newsletter p { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 1.1rem; }
.nl-form { display: flex; max-width: 400px; margin: 0 auto; }
.nl-form input { flex: 1; padding: 0.75rem 1rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-right: none; color: white; font-family: 'DM Sans', sans-serif; font-size: 13px; outline: none; }
.nl-form input:focus { border-color: var(--gold); }
.nl-form input::placeholder { color: rgba(255,255,255,0.28); }
.nl-form button { padding: 0.75rem 1.4rem; background: var(--gold); color: var(--navy); border: none; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: background 0.15s; white-space: nowrap; }
.nl-form button:hover { background: var(--gold-light); }

/* FOOTER */
footer { background: var(--navy); border-top: 3px solid var(--gold); color: white; padding: 2.5rem 0 1.25rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 900; margin-bottom: 0.5rem; }
.footer-logo span { color: var(--gold); }
.footer-desc { font-size: 12px; color: rgba(255,255,255,0.35); line-height: 1.7; margin-bottom: 0.9rem; }
.suburb-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.s-chip { font-size: 9px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.18rem 0.5rem; border: 1px solid rgba(201,168,76,0.25); color: var(--gold); opacity: 0.6; }
.footer-col-title { font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.85rem; padding-bottom: 0.4rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; font-size: 10px; color: rgba(255,255,255,0.22); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .col-rule { display: none; }
  .hero-left { padding-right: 0; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
  .hero-right { padding-left: 0; }
  .top5-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .top5-item { border-right: none; padding-right: 0; margin-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 1.25rem; }
  .top5-item:last-child { border-bottom: none; }
  .events-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .suburb-stats { display: none; }
}

@media (max-width: 600px) {
  .util-bar { display: none; }
  .masthead-date { display: none; }
  .events-grid { grid-template-columns: 1fr; }
  .top5-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nl-form { flex-direction: column; }
  .nl-form input { border-right: 1px solid rgba(255,255,255,0.12); }
  .job-card { grid-template-columns: 1fr; }
  .job-right { text-align: left; }
}
