/* ===== City of Roses — PDX "We'll Keep You Posted" Redesign ===== */
/* Inspired by Port of Portland: carpet teal, llama beige, wood, sky */
/* Fonts loaded via <link> in base.njk with preconnect — @import blocks render */

:root {
  /* PDX Color Palette */
  --carpet:        #1A7A6B;   /* PDX carpet teal — primary */
  --carpet-dark:   #145C51;   /* deeper teal */
  --carpet-light:  #E0F0ED;   /* very light teal tint */
  --llama:         #D4A76A;   /* warm beige — secondary */
  --llama-dark:    #B8894E;   /* deeper beige */
  --llama-light:   #F5EDE0;   /* light beige background */
  --sky:           #7EC8E3;   /* PDX sky blue — accent */
  --sky-dark:      #4EA8C9;   /* deeper sky */
  --wood:          #8B6F47;   /* warm wood brown */
  --wood-light:    #C4956A;   /* lighter wood */
  --forest:        #3A6B2D;   /* PNW forest green */
  --forest-light:  #E8F0E3;   /* light forest tint */
  --paper:         #FFF8E7;   /* post-it note warmth */
  --paper-yellow:  #FFE066;   /* vibrant post-it yellow */
  --cream:         #FAF6F0;   /* warm background */
  --cream-dark:    #F0EBE3;   /* deeper background */
  --off-white:     #FFFBF7;   /* slightly off-white */

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --text:         #2C2C2C;
  --text-dim:     #6B6B6B;
  --text-cream:   #FBF7F0;
  --border:       #E0D8CC;
  --border-strong:#C4B8A8;

  --header-h: 72px;
  --max-w: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  color: var(--carpet);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color .2s, text-decoration-color .2s;
}
a:hover, a:focus-visible {
  color: var(--carpet-dark);
  text-decoration-color: currentColor;
}

::selection { background: var(--carpet); color: var(--off-white); }

/* Screen-reader-only utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion: disable all animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--carpet); color: var(--off-white);
  padding: .5rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; z-index: 1000;
}
.skip-link:focus { top: .5rem; }

/* ─── Header ─── */
header.site-header {
  background: var(--off-white);
  border-bottom: 2px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
}
header.site-header > div {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  color: var(--carpet); text-decoration: none;
}
.site-title:hover { color: var(--carpet-dark); }
.site-title .accent { color: var(--wood); }

/* PDX carpet pattern accent bar */
.site-header::after {
  content: ''; display: block;
  height: 6px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--carpet) 0px, var(--carpet) 12px,
      var(--carpet-dark) 12px, var(--carpet-dark) 14px,
      var(--carpet) 14px, var(--carpet) 18px,
      var(--sky) 18px, var(--sky) 22px,
      var(--carpet) 22px, var(--carpet) 26px,
      var(--llama) 26px, var(--llama) 28px,
      var(--carpet) 28px, var(--carpet) 40px
    );
}

nav ul {
  list-style: none; display: flex; gap: 1.5rem; align-items: center;
}
nav a {
  color: var(--text-dim); text-decoration: none;
  font-size: .9rem; font-weight: 500; padding: .25rem 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
nav a:hover, nav a[aria-current="page"] {
  color: var(--carpet); border-bottom-color: var(--carpet);
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .25rem; color: var(--carpet); font-size: 1.5rem; }

/* ─── Hero ─── */
.hero {
  background: linear-gradient(135deg, var(--llama-light) 0%, var(--carpet-light) 50%, var(--sky) 100%);
  padding: 5rem 1.5rem; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231A7A6B' fill-opacity='0.06'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 15.523 0 10s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .6; background-size: 120px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  color: var(--carpet-dark); margin-bottom: .75rem; position: relative;
}
.hero h1 .emoji { font-family: var(--font-body); }
.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-dim); max-width: 640px;
  margin: 0 auto 2rem; line-height: 1.6; position: relative;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.75rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none; font-size: .95rem;
  transition: all .2s; cursor: pointer; border: none;
}
.btn-primary {
  background: var(--carpet); color: var(--off-white);
  box-shadow: 0 2px 8px rgba(26,122,107,.2);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--carpet-dark); transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(26,122,107,.3); color: var(--off-white);
}
.btn-secondary {
  background: var(--off-white); color: var(--carpet-dark);
  border: 2px solid var(--border-strong);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  border-color: var(--carpet); transform: translateY(-2px);
}

/* ─── Main Content ─── */
main { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.page-content { padding: 3rem 0; }

/* Homepage hero bleeds edge-to-edge and touches the header — remove page-content top padding when hero is first child */
.page-content > .hero-immersive:first-child {
  margin-top: -3rem;
}

/* ─── Section Titles ─── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 600;
  font-variation-settings: 'SOFT' 80, 'WONK' .5;
  color: var(--carpet-dark);
  margin-bottom: .5rem;
}
.section-subtitle {
  font-size: 1.1rem; color: var(--text-dim);
  margin-bottom: 2rem; max-width: 700px;
}

/* ─── Cards (Post-it Note Style) ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem; margin-bottom: 3rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  /* slight rotation for "sticky note" feel */
  box-shadow: 2px 3px 6px rgba(0,0,0,.04);
}
.card:nth-child(even) { transform: rotate(.5deg); }
.card:nth-child(3n) { transform: rotate(-.3deg); }
.card:hover {
  transform: translateY(-3px) rotate(0deg);
  box-shadow: 4px 8px 20px rgba(26,122,107,.12);
  border-color: var(--carpet);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 600;
  font-variation-settings: 'SOFT' 80, 'WONK' .5;
  margin-bottom: .25rem;
}
.card h3 a { color: var(--carpet-dark); text-decoration: none; }
.card h3 a:hover { color: var(--carpet); }

.card .meta {
  font-size: .82rem; color: var(--text-dim);
  margin-bottom: .75rem; display: flex; flex-wrap: wrap; gap: .4rem;
}
.card .meta span {
  background: var(--llama-light); color: var(--wood);
  padding: 2px 10px; border-radius: 20px;
  font-weight: 500;
}
.card p { color: var(--text-dim); font-size: .93rem; line-height: 1.6; }
.card .tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1rem; }

.tag {
  display: inline-block;
  background: var(--cream-dark); color: var(--text-dim);
  font-size: .75rem; padding: 3px 12px; border-radius: 20px;
  font-weight: 500;
}
.tag-accent { background: var(--carpet-light); color: var(--carpet-dark); }
.tag-green { background: var(--forest-light); color: var(--forest); }
.tag-gold { background: #FFF3D6; color: #8B6914; }

/* ─── Breadcrumbs ─── */
.breadcrumbs {
  padding: .75rem 0; font-size: .82rem; color: var(--text-dim);
  max-width: var(--max-w); margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem;
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; }
.breadcrumbs li:not(:last-child)::after {
  content: '→'; margin-left: .35rem; color: var(--border-strong);
  font-size: .75rem;
}
.breadcrumbs a { color: var(--carpet); text-decoration: none; font-weight: 500; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ─── Detail Page ─── */
.detail-header {
  padding: 2rem 0 1.5rem; border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
}
.detail-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  font-variation-settings: 'SOFT' 80, 'WONK' .8;
  color: var(--carpet-dark); margin-bottom: .25rem;
}
.detail-header .subtitle {
  font-size: 1.05rem; color: var(--text-dim); margin-bottom: 1rem;
}
.detail-meta { display: flex; flex-wrap: wrap; gap: 1rem; }
.detail-meta-item {
  display: flex; align-items: center; gap: .35rem;
  font-size: .88rem; color: var(--text-dim);
}
.detail-meta-item strong { color: var(--text); font-weight: 600; }

/* ─── Content Sections ─── */
.content-section { margin-bottom: 3rem; }
.content-section h2 {
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 600;
  font-variation-settings: 'SOFT' 80, 'WONK' .5;
  color: var(--carpet-dark); margin-bottom: 1rem;
  padding-bottom: .35rem; border-bottom: 2px solid var(--carpet-light);
  display: inline-block;
}
.content-section h3 {
  font-family: var(--font-display);
  font-size: 1.2rem; color: var(--text);
  margin-top: 1.5rem; margin-bottom: .5rem;
}
.content-section p { margin-bottom: 1rem; color: var(--text-dim); line-height: 1.8; }
.content-section ul, .content-section ol {
  margin-bottom: 1rem; padding-left: 1.5rem;
  color: var(--text-dim);
}
.content-section li { margin-bottom: .35rem; line-height: 1.7; }

/* ─── Photo Gallery ─── */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.photo-gallery figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--off-white);
  transition: transform .2s, box-shadow .2s;
}
.photo-gallery figure:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.photo-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.photo-gallery figcaption {
  font-size: .78rem;
  color: var(--text-dim);
  padding: .35rem .75rem;
  text-align: right;
}
.photo-gallery figcaption a {
  color: var(--carpet);
  text-decoration: none;
}

/* ─── History Block ─── */
.history-block {
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 4px solid var(--llama);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.history-block p {
  color: var(--text);
  line-height: 1.8;
}

/* ─── Parks & Activities Grid ─── */
.parks-grid, .activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.parks-grid .park-item {
  background: var(--forest-light);
  border: 1px solid var(--forest);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}
.parks-grid .park-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--forest);
  margin-bottom: .25rem;
}
.parks-grid .park-item p {
  font-size: .88rem;
  color: var(--text-dim);
  margin-bottom: 0;
}
.activities-grid .activity-item {
  background: var(--carpet-light);
  border: 1px solid var(--carpet);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}
.activities-grid .activity-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--carpet-dark);
  margin-bottom: .25rem;
}
.activities-grid .activity-item p {
  font-size: .88rem;
  color: var(--text-dim);
  margin-bottom: 0;
}

/* ─── Itinerary Stops ─── */
.itinerary-stops { counter-reset: stop; }
.itinerary-stop {
  display: grid; grid-template-columns: 52px 1fr;
  gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--border);
  position: relative;
}
.itinerary-stop:last-child { border-bottom: none; }
.itinerary-stop::before {
  counter-increment: stop; content: counter(stop);
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: var(--paper-yellow); color: var(--text);
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.3rem; border-radius: 50%;
  box-shadow: 2px 2px 0 rgba(0,0,0,.06);
  flex-shrink: 0;
}
.itinerary-stop h3 {
  font-family: var(--font-display); font-size: 1.15rem;
  font-weight: 600; color: var(--carpet-dark);
  margin-bottom: .2rem; margin-top: 0;
}
.itinerary-stop .stop-meta { font-size: .82rem; color: var(--text-dim); margin-bottom: .35rem; }
.itinerary-stop p { color: var(--text-dim); font-size: .93rem; line-height: 1.6; }

/* ─── Post-it Note Block ─── */
.post-it {
  background: var(--paper-yellow);
  border: none; border-radius: 4px;
  padding: 1.5rem; margin-bottom: 1.5rem;
  box-shadow: 4px 4px 0 rgba(0,0,0,.06);
  transform: rotate(-.5deg);
  font-family: var(--font-display);
}
.post-it h3 {
  font-weight: 600; font-size: 1.1rem; margin-bottom: .5rem;
}

/* ─── Quick Facts (wood-panel style) ─── */
.quick-facts {
  background: var(--llama-light);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 1.5rem;
  margin-bottom: 2rem; position: relative;
}
.quick-facts::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--wood); border-radius: var(--radius) var(--radius) 0 0;
}
.quick-facts h3 {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 600;
  color: var(--wood); margin-bottom: .75rem; margin-top: 0;
}
.quick-facts p { color: var(--text-dim); font-size: .95rem; }

.quick-facts dl { display: grid; grid-template-columns: 1fr 2fr; gap: .5rem 1rem; }
.quick-facts dt { color: var(--text-dim); font-size: .88rem; font-weight: 600; }
.quick-facts dd { color: var(--text); font-size: .93rem; }

/* ─── Highlights List ─── */
.highlights-list { list-style: none; padding: 0; }
.highlights-list li {
  padding: .4rem 0 .4rem 1.75rem; position: relative;
}
.highlights-list li::before {
  content: '✦'; position: absolute; left: 0;
  color: var(--carpet); font-size: .85rem;
}

/* ─── Feature Grid ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem; margin-bottom: 3rem;
}
.feature-item {
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  text-align: center; transition: all .2s;
  box-shadow: 2px 2px 0 rgba(0,0,0,.03);
}
.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 4px 6px 16px rgba(26,122,107,.1);
  border-color: var(--sky);
}
.feature-icon { font-size: 2rem; margin-bottom: .5rem; }
.feature-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 600;
  color: var(--carpet-dark); margin-bottom: .25rem;
}
.feature-item p { font-size: .88rem; color: var(--text-dim); }

/* ─── Footer ─── */
footer.site-footer {
  background: var(--carpet-dark); color: var(--text-cream);
  border-top: 4px solid var(--llama); padding: 3rem 1.5rem; margin-top: 4rem;
}
footer.site-footer > div {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
}
.footer-brand .site-title { color: var(--off-white); }
.footer-brand p { color: rgba(255,255,255,.7); font-size: .88rem; margin-top: .5rem; }
.footer-section h4 {
  font-family: var(--font-display);
  font-size: .9rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--llama); margin-bottom: 1rem;
}
.footer-section ul { list-style: none; padding: 0; }
.footer-section li { margin-bottom: .5rem; }
.footer-section a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .88rem; }
.footer-section a:hover { color: var(--off-white); }

.footer-bottom {
  max-width: var(--max-w); margin: 2rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15);
  text-align: center; font-size: .82rem; color: rgba(255,255,255,.5);
}

/* ─── Search ─── */
.search-bar { display: flex; gap: .5rem; margin-bottom: 2rem; }
.search-bar input {
  flex: 1; background: var(--off-white);
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  padding: .6rem 1rem; color: var(--text); font-size: 1rem;
  font-family: var(--font-body); transition: border-color .2s;
}
.search-bar input::placeholder { color: var(--text-dim); opacity: .6; }
.search-bar input:focus { border-color: var(--carpet); outline: none; }
/* ─── Itinerary Detail Map ─── */
#itinerary-map { height: 400px; border-radius: var(--radius-md); margin-bottom: 2rem; border: 2px solid var(--border); z-index: 1; position: relative; }
.itinerary-stops { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.itinerary-stop {
 display: flex; gap: 1rem; padding: 1rem 1.25rem;
 background: var(--llama-light); border-radius: var(--radius-sm);
 border-left: 4px solid var(--carpet); cursor: pointer;
 transition: transform .15s, box-shadow .15s; position: relative;
}
.itinerary-stop:hover { transform: translateX(4px); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.itinerary-stop.stop-active {
 border-left-color: var(--llama); background: var(--off-white);
 box-shadow: 0 2px 12px rgba(26,122,107,.2);
}
.itinerary-stop .stop-number {
 flex-shrink: 0; width: 2.2rem; height: 2.2rem;
 background: var(--carpet); color: white; border-radius: 50%;
 display: flex; align-items: center; justify-content: center;
 font-family: var(--font-heading); font-weight: 700; font-size: .95rem;
}
.itinerary-stop .stop-content { flex: 1; }
.itinerary-stop h3 { margin: 0 0 .3rem; font-size: 1.05rem; color: var(--text); font-family: var(--font-heading); }
.itinerary-stop .stop-meta { font-size: .85rem; color: var(--text-dim); margin-bottom: .4rem; }
.itinerary-stop .stop-meta span { display: inline-block; margin-right: .75rem; }
.itinerary-stop .stop-meta .stop-time { font-weight: 600; color: var(--carpet-dark); }
.itinerary-stop p { margin: 0; font-size: .9rem; color: var(--text-dim); line-height: 1.45; }
.itinerary-map-links { display: flex; gap: .75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.itinerary-map-links a {
 display: inline-flex; align-items: center; gap: .4rem;
 padding: .5rem 1rem; border-radius: var(--radius-sm);
 font-size: .85rem; font-weight: 600; text-decoration: none;
 border: 2px solid var(--border); color: var(--text);
 transition: all .15s;
}
.itinerary-map-links a:hover { border-color: var(--carpet); background: var(--carpet-light); color: var(--carpet-dark); }
.itinerary-map-links .icon { font-size: 1.1rem; }

/* ─── Responsive ─── */

/* ─── Card Links ─── */
a.card-link { text-decoration: none; color: inherit; display: block; }
a.card-link:hover { text-decoration: none; }
a.card-link .card { transition: transform .2s, box-shadow .2s; }
a.card-link:hover .card { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }


/* --- Hero Images --- */
.hero-image { margin: 0 0 2rem; border-radius: var(--radius-md); overflow: hidden; max-height: 600px; }
.hero-image-img { width: 100%; height: auto; max-height: 600px; object-fit: cover; display: block; }
.photo-credit { font-size: .75rem; color: var(--text-dim); padding: .25rem .75rem .5rem; text-align: right; }
.photo-credit a { color: var(--carpet); text-decoration: none; }
.photo-credit a:hover { text-decoration: underline; }

/* --- Card Images --- */
.card-with-img { padding: 0; overflow: hidden; }
.card-with-img .card-thumb { width: 100%; height: 200px; object-fit: cover; display: block; }
.card-with-img .card-body { padding: 1rem 1.25rem; }
.card-with-img h3 { margin-top: 0; }

/* --- Legal Pages --- */
.legal-content { max-width: 800px; }
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600; color: var(--carpet-dark);
  margin: 2.5rem 0 1rem; padding-bottom: .35rem;
  border-bottom: 2px solid var(--carpet-light);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 1rem; color: var(--text-dim); line-height: 1.8; }
.legal-content ul { margin-bottom: 1rem; padding-left: 1.5rem; color: var(--text-dim); }
.legal-content li { margin-bottom: .4rem; line-height: 1.7; }
.legal-content a { color: var(--carpet); text-decoration: underline; }

/* --- Contact Form --- */
.contact-form-wrap { max-width: 600px; margin: 2rem 0; }
.contact-form .form-group { margin-bottom: 1.5rem; }
.contact-form label {
  display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem;
  color: var(--text);
}
.contact-form .required { color: var(--carpet); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%; padding: .7rem 1rem; font-size: 1rem;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  background: var(--off-white); color: var(--text);
  font-family: var(--font-body); transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--carpet);
  box-shadow: 0 0 0 3px var(--carpet-light);
}
.contact-form .field--valid { border-color: var(--forest) !important; }
.contact-form .field--invalid { border-color: #D32F2F !important; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.turnstile-wrap { min-height: 65px; }
.form-status { display: none; padding: .75rem 1rem; border-radius: var(--radius-sm); margin-top: 1rem; font-size: .9rem; }
.form-status--sending { display: block; background: var(--carpet-light); color: var(--carpet-dark); }
.form-status--error { display: block; background: #FFEBEE; color: #D32F2F; }
.form-status--success { display: block; background: var(--forest-light); color: var(--forest); }

/* --- Honeypot --- */
.honeypot {
  position: absolute; left: -9999px; top: -9999px;
  opacity: 0; height: 0; width: 0; z-index: -1;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--carpet-dark); color: var(--text-cream);
  padding: 1rem 1.5rem; display: none; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap; font-size: .88rem; line-height: 1.5;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; max-width: 600px; }
.cookie-banner a { color: var(--llama); text-decoration: underline; }
.cookie-banner a:hover { color: var(--llama-light); }
.cookie-banner .btn {
  padding: .5rem 1.25rem; font-size: .85rem; white-space: nowrap;
}
.cookie-banner .btn-accept {
  background: var(--llama); color: var(--text); border: none;
}
.cookie-banner .btn-reject {
  background: transparent; color: var(--text-cream); border: 1px solid rgba(255,255,255,.3);
}

/* ===== QUIRKY OVERHAUL — hand-drawn, immersive, experimental ===== */

/* Hand-drawn font for headings */
h1, h2, h3, h4, h5, h6, .hero-city, .card-link h3, .site-title {
  font-family: 'Caveat', 'Fraunces', Georgia, 'Times New Roman', serif !important;
  font-weight: 600;
}

/* ─── Immersive Hero — full bleed, edge-to-edge, animated ─── */
.hero-immersive {
  position: relative;
  min-height: 65vh;
  padding: 3rem 1.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 30%, var(--carpet-light) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, var(--llama-light) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, var(--sky) 0%, transparent 60%),
    linear-gradient(135deg, var(--cream) 0%, var(--paper) 50%, var(--llama-light) 100%);
  border-bottom: 6px dashed var(--carpet);
  /* Full bleed: break out of parent container's max-width */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 900px;
  width: 100%;
  padding: 0 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  color: var(--carpet-dark);
  transform: rotate(-0.5deg);
  display: inline-block;
}

.hero-city {
  display: block;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  background: linear-gradient(135deg, var(--carpet), var(--sky-dark), var(--carpet-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
  margin-top: -0.15em;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
}

/* Floating doodles in hero */
.hero-doodles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-doodles .doodle {
  position: absolute;
  animation: floatSlow 20s ease-in-out infinite;
}

.doodle-star { width: 80px; height: 80px; top: 8%; left: 10%; animation-delay: -3s; }
.doodle-circle { width: 120px; height: 120px; top: 15%; right: 12%; animation-delay: -7s; }
.doodle-scribble { width: 200px; height: 40px; bottom: 20%; left: 5%; animation-delay: -11s; }
.doodle-cloud { width: 160px; height: 80px; bottom: 10%; right: 20%; animation-delay: -5s; }

.doodle-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.shape-1 {
  width: 300px; height: 300px;
  background: var(--carpet);
  top: -50px; right: -50px;
  animation: floatSlow 25s ease-in-out infinite reverse;
}

.shape-2 {
  width: 200px; height: 200px;
  background: var(--llama);
  bottom: -30px; left: -30px;
  animation: floatSlow 18s ease-in-out infinite;
  animation-delay: -6s;
}

.shape-3 {
  width: 150px; height: 150px;
  background: var(--sky);
  top: 40%; left: 60%;
  animation: floatSlow 22s ease-in-out infinite;
  animation-delay: -12s;
}

@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(15px, -20px) rotate(5deg); }
  50% { transform: translate(-10px, 10px) rotate(-3deg); }
  75% { transform: translate(20px, 5px) rotate(4deg); }
}

/* ─── Bouncy Buttons ─── */
.btn-bounce {
  animation: bounce 2s ease-in-out infinite;
}

.btn-wiggle {
  animation: wiggle 3s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-1.5deg); }
  75% { transform: rotate(1.5deg); }
}

/* ─── Quirkier Cards ─── */
.card {
  border: 3px solid var(--border) !important;
  border-radius: 16px !important;
  transform: rotate(var(--rot, 0deg));
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: visible !important;
}

.card:nth-child(odd) { --rot: -0.8deg; }
.card:nth-child(even) { --rot: 0.6deg; }
.card:nth-child(3n) { --rot: 1.2deg; }
.card:nth-child(5n) { --rot: -1.1deg; }

.card:hover {
  transform: translateY(-6px) rotate(0deg) scale(1.02);
  border-color: var(--carpet) !important;
  background: var(--off-white);
}

.card:hover h3 a,
.card:hover .card-link h3 a {
  color: var(--carpet);
}

.card:hover p {
  color: var(--text);
}

.card:hover .meta {
  opacity: 1;
}

/* Crayon-style shadow — thick colored shadow on one edge */
.card::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 100%;
  height: 100%;
  background: var(--carpet-light);
  border-radius: 16px;
  z-index: -1;
  transition: all .3s ease;
  opacity: 0.6;
}

.card:hover::after {
  bottom: -7px;
  right: -7px;
  opacity: 0.4;
  background: var(--carpet-light);
}

/* Hand-drawn tag styling */
.tag {
  font-family: 'Caveat', cursive !important;
  font-size: 0.9rem !important;
  border: 2px dashed var(--border-strong) !important;
  background: transparent !important;
  color: var(--text-dim) !important;
  padding: 2px 12px !important;
  border-radius: 20px;
}

.tag-accent {
  border-color: var(--carpet) !important;
  color: var(--carpet-dark) !important;
}

.tag-gold {
  border-color: var(--llama-dark) !important;
  color: var(--wood) !important;
}

.tag-green {
  border-color: var(--forest) !important;
  color: var(--forest) !important;
}

/* ─── Hand-drawn Section Dividers ─── */
.section-title {
  font-family: 'Caveat', 'Fraunces', Georgia, serif !important;
  font-size: clamp(2.2rem, 4vw, 3rem) !important;
  position: relative;
  display: inline-block;
  padding-bottom: 0.25rem;
  border-bottom: none !important;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--carpet) 0px, var(--carpet) 8px,
    transparent 8px, transparent 12px,
    var(--llama) 12px, var(--llama) 18px,
    transparent 18px, transparent 22px,
    var(--sky) 22px, var(--sky) 28px
  );
  border-radius: 2px;
}

section {
  position: relative;
  margin-bottom: 4rem;
}

/* ─── Playful Hover on Card Link ─── */
.card-link:hover .card-thumb {
  transform: scale(1.05);
  filter: saturate(1.1) brightness(1.05);
}

.card-thumb {
  transition: transform .4s ease, filter .4s ease;
}

/* ─── Doodle Arrows / Decorative elements ─── */
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ─── Wacky Nav Underline ─── */
nav a {
  border-bottom: 2px dashed transparent !important;
}

nav a:hover, nav a[aria-current="page"] {
  border-bottom-color: var(--carpet) !important;
  border-bottom-style: dashed !important;
}

/* ─── Footer doodle border ─── */
footer.site-footer {
  border-top: 6px dashed var(--llama) !important;
  position: relative;
}

footer.site-footer::before {
  content: '✦ ✦ ✦';
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--carpet-dark);
  padding: 0 1rem;
  color: var(--llama);
  font-size: 1rem;
  letter-spacing: 8px;
}

/* ─── Post-it note tilt ─── */
.post-it {
  border: 3px solid var(--paper-yellow) !important;
  transform: rotate(-1.2deg) !important;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.08) !important;
}

/* ─── Breadcrumb doodle style ─── */
.breadcrumbs li:not(:last-child)::after {
  content: '→' !important;
  font-family: 'Caveat', cursive !important;
  font-size: 1rem !important;
}

/* ─── Cookie banner with wavy border ─── */
.cookie-banner {
  border-top: 4px dashed var(--llama) !important;
}

/* ─── Responsive tweaks ─── */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  nav ul {
    display: none; flex-direction: column; position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: var(--off-white); border-bottom: 2px solid var(--border);
    padding: 1rem; gap: .75rem; z-index: 99;
  }
  nav.open ul { display: flex; }
  .card-grid { grid-template-columns: 1fr; }
  .card:nth-child(even), .card:nth-child(3n) { transform: none; }
  footer.site-footer > div { grid-template-columns: 1fr; gap: 1.5rem; }
  .quick-facts dl { grid-template-columns: 1fr; }
  .hero { padding: 3rem 1rem; }
  .hero-immersive { min-height: 50vh; padding: 2rem 1rem 3rem; }
  .hero-doodles .doodle { opacity: 0.06; }
  .doodle-shape { opacity: 0.04; }
  .section-title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  header.site-header > div { padding: 0 1rem; }
  .site-title { font-size: 1.1rem; }
  main { padding: 0 1rem; }
  .card-grid { grid-template-columns: 1fr; }
  .hero-immersive { min-height: 40vh; padding: 1.5rem 1rem 2rem; }
}

@media print {
  header, footer, .hero-cta, .nav-toggle, .search-bar { display: none; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
  .card { break-inside: avoid; border: 1px solid #ccc; }
}