/* Welland Weekly — V2 stylesheet for the homepage and new pages.
   Old post pages keep their Elementor CSS; this file is not loaded there. */

:root {
  --navy: #1C244B;
  --blue: #467FF7;
  --blue-dark: #2F63D6;
  --ink: #1A1A1A;
  --muted: #5B6070;
  --cream: #FBF7F1;
  --paper: #FFFFFF;
  --line: #E7E1D8;
  --rose: #B8324F;
  --rose-soft: #F7E4E8;
  --sky-soft: #EAF1FF;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 36, 75, 0.06), 0 8px 24px rgba(28, 36, 75, 0.08);
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 780px; }

.section { padding: 56px 0; }
.section--tight { padding: 32px 0; }
.section--paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 10px;
}

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head .more { font-weight: 600; white-space: nowrap; }

.lede { font-size: 1.15rem; color: var(--muted); max-width: 640px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--blue-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--small { padding: 9px 16px; font-size: 0.9rem; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--cream); color: var(--navy); }

/* Header */
.ww-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.ww-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.ww-logo img { height: 52px; width: auto; }
.ww-nav { display: flex; align-items: center; gap: 28px; }
.ww-nav a { color: var(--navy); font-weight: 500; font-size: 1rem; position: relative; }
.ww-nav a:not(.btn):hover { text-decoration: none; }
.ww-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.15s ease;
}
.ww-nav a:not(.btn):hover::after, .ww-nav a[aria-current="page"]::after { transform: scaleX(1); }
.ww-burger {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy);
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
}
.ww-burger svg { width: 26px; height: 26px; display: block; }

@media (max-width: 820px) {
  .ww-header__inner { min-height: 64px; }
  .ww-logo img { height: 38px; }
  .ww-burger { display: block; }
  .ww-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 16px;
    box-shadow: var(--shadow);
  }
  .ww-nav.is-open { display: flex; }
  .ww-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .ww-nav a::after { display: none; }
  .ww-nav a.btn { margin-top: 12px; text-align: center; border-bottom: 0; }
}

/* Hero */
.hero { padding: 64px 0 56px; background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%); }
.hero__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 12px; }
.hero .lede { font-size: 1.25rem; margin-bottom: 24px; }
.hero__card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.hero__card h3 { margin-bottom: 6px; }
.hero__card ul { margin: 0 0 16px; padding-left: 20px; color: var(--ink); }
.hero__card li { margin-bottom: 6px; }
@media (max-width: 820px) {
  .hero { padding: 40px 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Subscribe form */
.subscribe { display: flex; gap: 10px; max-width: 520px; }
.subscribe input[type="email"] {
  flex: 1; min-width: 0; padding: 13px 16px; font-size: 1rem; font-family: var(--font-body);
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
}
.subscribe input[type="email"]:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.subscribe .btn { white-space: nowrap; }
.subscribe__note { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
.subscribe__msg { font-size: 0.95rem; margin-top: 10px; color: var(--navy); }
.subscribe__msg:empty { display: none; }
@media (max-width: 520px) {
  .subscribe { flex-direction: column; }
  .subscribe .btn { width: 100%; }
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sky-soft); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body h3 { margin: 0; font-size: 1.2rem; }
.card__body h3 a { color: var(--navy); }
.card__body h3 a:hover { color: var(--blue); text-decoration: none; }
.card__body p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card__meta { font-size: 0.8rem; color: var(--muted); margin-top: auto; }
.card--soon { border-style: dashed; background: transparent; }
.card--soon .card__img { display: flex; align-items: center; justify-content: center; background: var(--rose-soft); color: var(--rose); font-family: var(--font-head); font-size: 1.4rem; }
@media (max-width: 900px) { .cards, .cards--2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards, .cards--2 { grid-template-columns: 1fr; } }

/* Callout / teaser */
.callout {
  background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--rose);
  border-radius: var(--radius); padding: 20px 24px; margin: 0 0 32px;
}
.callout p { margin: 0; }
.callout a { font-weight: 600; }

/* Newsletter band */
.band { background: var(--navy); color: #fff; padding: 56px 0; }
.band h2 { color: #fff; }
.band .lede { color: rgba(255,255,255,0.8); }
.band .subscribe input[type="email"] { border-color: transparent; }
.band .subscribe__note { color: rgba(255,255,255,0.7); }
.band .subscribe__msg { color: #fff; }

/* Footer */
.ww-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 32px 0; font-size: 0.9rem; color: var(--muted); }
.ww-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.ww-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.ww-footer a { color: var(--navy); }

/* Article-style pages (things to do, advertise) */
.page-head { padding: 48px 0 24px; }
.page-head h1 { margin-bottom: 8px; }
.page-head .lede { margin-bottom: 0; }
.prose h2 { margin-top: 2.2em; padding-top: 0.4em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

/* Numbered idea list (evergreen page) */
.ideas { list-style: none; padding: 0; margin: 0; counter-reset: idea; }
.idea {
  counter-increment: idea; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px 22px 72px; margin-bottom: 16px; position: relative;
}
.idea::before {
  content: counter(idea); position: absolute; left: 22px; top: 20px; width: 36px; height: 36px;
  border-radius: 50%; background: var(--sky-soft); color: var(--navy); font-family: var(--font-head);
  font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.idea h3 { margin: 0 0 6px; font-size: 1.25rem; }
.idea p { margin: 0 0 8px; }
.idea p:last-child { margin-bottom: 0; }
.idea__meta { font-size: 0.9rem; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.idea__meta a { font-weight: 500; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--rose-soft); color: var(--rose); }
.tag--blue { background: var(--sky-soft); color: var(--navy); }
.tag--green { background: #E6F4EA; color: #1E6B3A; }
@media (max-width: 600px) {
  .idea { padding: 18px 18px 18px 60px; }
  .idea::before { left: 14px; top: 16px; width: 32px; height: 32px; }
}

/* Weekend page */
.day { margin-top: 40px; }
.day h2 { display: flex; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--navy); padding-bottom: 8px; }
.day h2 small { font-family: var(--font-body); font-weight: 500; font-size: 0.95rem; color: var(--muted); }
.events { list-style: none; padding: 0; margin: 0; }
.event { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 14px 0; display: grid; grid-template-columns: 96px 1fr; gap: 16px; }
.event__time { font-weight: 700; color: var(--navy); font-size: 0.95rem; line-height: 1.3; }
.event__time small { display: block; font-weight: 500; color: var(--muted); font-size: 0.8rem; }
.event h3 { margin: 0 0 4px; font-size: 1.15rem; }
.event p { margin: 0 0 6px; }
.event__meta { font-size: 0.9rem; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.event__cost { font-weight: 600; color: var(--navy); }
.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.pick { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--rose); border-radius: var(--radius); padding: 18px; }
.pick h3 { font-size: 1.1rem; margin: 0 0 6px; }
.pick p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.last-checked { font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 40px; }
.verify-note { background: #FFF6D9; border: 1px solid #F0DC9A; color: #6B5300; border-radius: 10px; padding: 12px 16px; font-size: 0.9rem; margin: 0 0 24px; }
@media (max-width: 900px) { .picks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .picks { grid-template-columns: 1fr; }
  .event { grid-template-columns: 1fr; gap: 6px; }
}

/* Advertise page */
.offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 24px 0 40px; }
.offer { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.offer h3 { margin: 0 0 8px; }
.offer p { margin: 0 0 8px; color: var(--ink); }
.offer .example { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 700px) { .offers { grid-template-columns: 1fr; } }

.form { display: grid; gap: 14px; max-width: 560px; }
.form label { font-weight: 600; font-size: 0.95rem; color: var(--navy); display: grid; gap: 6px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: var(--font-body);
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.form__note { font-size: 0.85rem; color: var(--muted); }
.form__msg { font-size: 0.95rem; color: var(--navy); }
.form__msg:empty { display: none; }

.stats { display: flex; gap: 32px; flex-wrap: wrap; margin: 16px 0 0; padding: 0; list-style: none; }
.stat { min-width: 140px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--navy); line-height: 1.1; }
.stat span { font-size: 0.9rem; color: var(--muted); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Post pages (migrated WordPress block content) */
.post-head { padding: 48px 0 8px; }
.post-head h1 { margin-bottom: 12px; }
.post-meta { font-size: 0.95rem; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.post-hero { border-radius: var(--radius); overflow: hidden; margin: 0 0 32px; background: var(--sky-soft); }
.post-hero img { width: 100%; height: auto; }
.post-body { font-size: 1.08rem; }
.post-body > p:first-of-type { font-size: 1.2rem; color: var(--navy); }
.post-body p:empty { display: none; }
.post-body h2 { margin-top: 2.2em; }
.post-body h3 { margin-top: 1.5em; }
.post-body a { text-decoration: underline; text-decoration-color: rgba(70,127,247,0.4); text-underline-offset: 2px; }
.post-body figure { margin: 28px 0; }
.post-body figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
.post-body img { border-radius: 10px; }
.post-body .wp-block-table { overflow-x: auto; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.post-body th, .post-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-body th { background: var(--sky-soft); color: var(--navy); font-weight: 600; }
.post-body tr:last-child td { border-bottom: 0; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.post-body blockquote { border-left: 4px solid var(--rose); margin: 24px 0; padding: 4px 0 4px 20px; color: var(--muted); font-style: italic; }
.post-body ul, .post-body ol { padding-left: 24px; }
.post-body li { margin-bottom: 6px; }
.post-body .wp-block-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .post-body .wp-block-columns { grid-template-columns: 1fr; } }
.post-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.archive-head { padding: 48px 0 24px; }
.notfound { text-align: center; padding: 72px 0 40px; }
.notfound h1 { font-size: clamp(2.4rem, 6vw, 4rem); }

/* ---- V2.5: partner card, rail layout, mobile bar, day tabs ---- */
.partner { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: var(--radius); padding: 20px 22px; margin: 32px 0; }
.partner h3 { margin: 8px 0 6px; font-size: 1.2rem; }
.partner p { margin: 0 0 14px; color: var(--ink); font-size: 0.98rem; }
.partner.card { margin: 0; border-left: 1px solid var(--line); padding: 20px; justify-content: center; }
.event--partner { border-left: 5px solid var(--blue); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.rail { display: none; }
.only-mobile { display: block; }
@media (min-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 720px) 320px; justify-content: center; gap: 56px; }
  .rail { display: grid; gap: 16px; align-self: start; position: sticky; top: 96px; }
  .rail .partner { margin: 0; }
  .rail__box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
  .rail__box h3 { font-size: 1.1rem; margin-bottom: 6px; }
  .rail__box .subscribe { flex-direction: column; }
  .rail__box .subscribe .btn { width: 100%; }
  .only-mobile { display: none; }
}

.anchor-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--navy); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(28,36,75,0.25); align-items: center; gap: 8px; }
.anchor-bar .subscribe { flex: 1; flex-direction: row; gap: 6px; max-width: none; }
.anchor-bar .subscribe input[type="email"] { padding: 10px 14px; font-size: 0.95rem; border-color: transparent; }
.anchor-bar .subscribe .btn { padding: 10px 16px; width: auto; }
.anchor-bar .subscribe__msg { position: absolute; left: 12px; bottom: 100%; margin: 0 0 8px; background: #fff; color: var(--navy); padding: 6px 10px; border-radius: 8px; font-size: 0.85rem; }
.anchor-bar__close { background: none; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; padding: 6px 8px; cursor: pointer; }
@media (max-width: 820px) {
  .anchor-bar.is-visible { display: flex; }
  body.has-bar { padding-bottom: 76px; }
}

.daytabs { position: sticky; top: 56px; z-index: 40; display: flex; gap: 8px; overflow-x: auto; background: var(--cream); padding: 10px 0; margin: 0 0 8px; scrollbar-width: none; }
.daytabs::-webkit-scrollbar { display: none; }
.daytabs a { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--navy); font-weight: 600; font-size: 0.9rem; }
.daytabs a:hover { text-decoration: none; border-color: var(--blue); color: var(--blue); }
@media (min-width: 821px) { .daytabs { top: 76px; } }
.day { scroll-margin-top: 120px; }

.event__place { display: inline-block; padding: 6px 0; }

@media (max-width: 820px) {
  .ww-header__inner { min-height: 56px; }
  .ww-logo img { height: 34px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 28px 0 32px; }
  .hero h1 { font-size: 2.3rem; }
  .hero .lede { font-size: 1.05rem; margin-bottom: 16px; }
  .section { padding: 40px 0; }
  .card__img { aspect-ratio: 16 / 9; }
  .page-head, .post-head, .archive-head { padding-top: 28px; }
  .event { padding: 14px 16px; }
  .event__time { font-size: 0.9rem; }
  .event__time small { display: inline; margin-left: 4px; }
  .post-body { font-size: 1.02rem; }
}

/* Image ads */
.partner--img { padding: 14px 14px 16px; text-align: center; border-left: 1px solid var(--line); }
.partner--img .tag { display: inline-block; margin-bottom: 10px; }
.partner--img.card { justify-content: center; }

/* Ad cards: HTML creatives, 300x250, stacked for crossfade */
.ad-rotate { position: relative; display: block; width: 300px; max-width: 100%; aspect-ratio: 6 / 5; margin: 0 auto; border-radius: 10px; overflow: hidden; background: #0c0c0e; }
.ad { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; opacity: 0; transition: opacity 0.8s ease; font-family: var(--font-body); }
.ad.is-on { opacity: 1; z-index: 1; }
.ad:hover { color: #fff; text-decoration: none; }
.ad__photo { display: block; height: 58%; overflow: hidden; border-bottom: 3px solid #C8102E; }
.ad__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1); }
.ad.is-on .ad__photo img { animation: ad-zoom 9s ease-out forwards; }
.ad__panel { display: block; position: relative; height: 42%; padding: 8px 12px 10px; box-sizing: border-box; }
.ad__h { display: block; font-size: 19px; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.ad__s { display: block; font-size: 11.5px; line-height: 1.3; color: #E1E1E1; margin: 3px 0 7px; }
.ad__btn { display: inline-block; position: relative; overflow: hidden; background: #C8102E; color: #fff; font-weight: 700; font-size: 11.5px; line-height: 1; padding: 7px 13px; border-radius: 999px; transition: background 0.15s ease, transform 0.15s ease; }
.ad:hover .ad__btn { background: #E0173A; transform: translateY(-1px); }
.ad__btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 100%); transform: skewX(-20deg); }
.ad.is-on .ad__btn::after { animation: ad-shine 4s ease-in-out infinite; }
.ad__logo { position: absolute; right: 12px; bottom: 12px; width: 82px; height: auto; }
.ad.is-on .ad__h { animation: ad-up 0.5s ease-out both; }
.ad.is-on .ad__s { animation: ad-up 0.5s 0.08s ease-out both; }
.ad.is-on .ad__btn { animation: ad-up 0.5s 0.16s ease-out both; }
@keyframes ad-zoom { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes ad-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ad-shine { 0%, 60% { left: -60%; } 100% { left: 120%; } }
@media (prefers-reduced-motion: reduce) {
  .ad, .ad *, .ad__btn::after { animation: none !important; transition: none !important; }
}
