/* Dog Friendly HEREfordshire – main stylesheet
   Brand colours are set once here. Change them and the whole site follows. */
:root {
  --brand: #1F4D3A;      /* deep Wye Valley green */
  --brand-mid: #2E6A50;
  --brand-soft: #E3EDE4;
  --accent: #A84E0C;     /* cider amber (for text/buttons on light backgrounds) */
  --here: #F2B35E;       /* light amber for "HERE" on dark backgrounds */
  --ground: #F3F6F1;
  --ink: #14231B;
  --muted: #4A5A50;
  --line: #DCE5DD;
  --white: #FFFFFF;
  --radius: 18px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--ground); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--here); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { background: var(--brand); color: var(--white); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.logo:hover { color: var(--white); }
.logo-text { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.05; }
.here { color: var(--here); }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; font-weight: 500; }
.main-nav a { color: var(--white); text-decoration: none; padding: 10px 0; }
.main-nav a:hover, .main-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; color: var(--white); }

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 600; font-size: 16px; padding: 13px 22px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; cursor: pointer; min-height: 44px; }
.btn-white { background: var(--white); color: var(--brand); }
.btn-white:hover { color: var(--brand); background: var(--brand-soft); }
.btn-brand { background: var(--brand); color: var(--white); }
.btn-brand:hover { color: var(--white); background: var(--brand-mid); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { color: var(--white); background: #8E420A; }
.btn-outline { background: var(--white); color: var(--brand); border-color: #B9CDBE; }
.btn-small { font-size: 15px; padding: 11px 18px; }

/* Hero */
.hero { background: var(--brand); color: var(--white); position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 200px; }
.eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.hero .eyebrow { color: #CFE3D4; }
.hero h1 { margin: 0; max-width: 780px; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; }
.hero-lead { margin: 20px 0 32px; max-width: 620px; font-size: 19px; line-height: 1.55; color: #E6F0E8; }
.search { display: flex; flex-wrap: wrap; gap: 10px; max-width: 680px; background: var(--white); padding: 8px; border-radius: 16px; }
.search input { flex: 1 1 260px; min-width: 0; border: 0; font: inherit; font-size: 17px; padding: 14px; color: var(--ink); background: transparent; }
.search input:focus { outline: none; }
.search:focus-within { outline: 3px solid var(--here); outline-offset: 2px; }
.quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.quick a { color: var(--white); text-decoration: none; font-size: 14px; font-weight: 500; padding: 10px 14px; border: 1px solid #6F9A80; border-radius: 999px; }
.quick a:hover { background: var(--brand-mid); color: var(--white); }
.hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 200px; display: block; }

/* Sections */
.section { padding: 48px 0; }
.section h2, .h2 { margin: 0 0 22px; font-family: var(--display); font-size: clamp(28px, 3.5vw, 34px); font-weight: 700; line-height: 1.15; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.eyebrow-accent { color: var(--accent); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-wide { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Category tiles */
.tile { position: relative; display: flex; flex-direction: column; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.tile:hover { color: var(--ink); border-color: var(--brand); transform: translateY(-2px); }
.tile-title { font-family: var(--display); font-weight: 700; font-size: 21px; }
.tile-text { font-size: 15px; color: var(--muted); }
.soon { position: absolute; top: 18px; right: 18px; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--ground); padding: 4px 9px; border-radius: 8px; }

/* Cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-photo { height: 180px; background: #D5E4D8; display: flex; align-items: center; justify-content: center; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3, .card h2 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.15; }
.card-where { margin: 0; font-size: 14px; color: var(--muted); }
.card-note { margin: 0; font-size: 15px; line-height: 1.55; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.area-tag { flex: none; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--ground); padding: 5px 9px; border-radius: 8px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.badge { font-size: 13px; font-weight: 600; background: var(--brand-soft); color: var(--brand); padding: 6px 10px; border-radius: 999px; }
.card-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; font-weight: 600; }

/* Welcome levels band */
.band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wrap { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
.band-intro { flex: 1 1 320px; }
.band-intro p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.levels { flex: 2 1 560px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.level { background: var(--ground); border-radius: 14px; padding: 20px; }
.level h3 { margin: 0 0 6px; font-size: 17px; }
.level p { margin: 0; font-size: 15px; color: var(--muted); }

/* Panels */
.panel { border-radius: 20px; padding: 36px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.panel h2 { margin: 0; font-size: 30px; }
.panel p { margin: 0; font-size: 17px; line-height: 1.6; }
.panel-brand { background: var(--brand); color: var(--white); }
.panel-brand p { color: #E6F0E8; }
.panel-white { background: var(--white); border: 1px solid var(--line); }
.panel-white p { color: var(--muted); }
.gallery-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.gallery-strip > * { aspect-ratio: 1; border-radius: 10px; background: #D5E4D8; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; }
.cta { background: var(--brand-soft); border-radius: 20px; padding: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta h2 { margin: 0 0 8px; font-size: 28px; }
.cta p { margin: 0; color: #34463B; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Page header (inner pages) */
.page-head { background: var(--white); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 32px; padding-bottom: 36px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.page-head h1 { margin: 0 0 10px; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; }
.page-head p { margin: 0; max-width: 680px; font-size: 18px; color: var(--muted); }

/* Filters */
.filters { display: flex; flex-direction: column; gap: 16px; padding-top: 28px; padding-bottom: 8px; }
.filter-group { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.filter-group legend, .filter-label { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: #34463B; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 15px; font-weight: 600; padding: 10px 16px; border-radius: 999px; cursor: pointer; min-height: 44px; background: var(--white); color: var(--brand); border: 1px solid #B9CDBE; }
.chip[aria-pressed="true"] { background: var(--brand); color: var(--white); border-color: var(--brand); }
.text-filter { max-width: 420px; display: flex; flex-direction: column; gap: 6px; }
.text-filter input { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #B9CDBE; border-radius: 12px; background: var(--white); }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; }
.results-count { margin: 0; font-weight: 600; }
.link-btn { border: 0; background: transparent; color: var(--brand); font: inherit; font-size: 15px; font-weight: 600; text-decoration: underline; padding: 12px 0; cursor: pointer; }
.results { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); padding-bottom: 40px; }
.empty { background: var(--white); border: 1px dashed #B9CDBE; border-radius: var(--radius); padding: 40px; text-align: center; }
.notice { background: var(--brand-soft); border-radius: 20px; padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 64px; }
.notice p { margin: 0; flex: 1 1 420px; color: #34463B; }

/* Forms */
.form { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 18px; max-width: 720px; margin: 32px 0 64px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 14px; color: var(--muted); margin: 0; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #B9CDBE; border-radius: 12px; background: var(--white); color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; }
.hp { display: none; }

/* Footer */
.site-footer { background: var(--ink); color: #D5E0D8; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 48px; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); font-size: 15px; line-height: 1.7; }
.site-footer a { color: #D5E0D8; display: block; }
.site-footer a:hover { color: var(--white); }
.foot-title { margin: 0 0 8px; font-weight: 600; color: var(--white); }
.foot-brand { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--white); }
.foot-small { margin: 0; }
.card-facts { margin: 0; font-size: 14px; font-weight: 600; color: var(--accent); }
.call { background: var(--brand); color: var(--white) !important; text-decoration: none; padding: 8px 14px; border-radius: 999px; }
.call:hover { background: var(--brand-mid); }
.card-links { align-items: center; }
.alert { background: #FFF4E6; border: 1px solid #F2C894; border-radius: 18px; padding: 22px 26px; margin-top: 28px; }
.alert h2 { margin: 0 0 8px; font-family: var(--display); font-size: 22px; }
.alert p { margin: 0 0 8px; color: #4A3A26; }
.alert p:last-child { margin-bottom: 0; }
.verified { margin: 0; display: flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 600; color: #1D6B3A; }
.info { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 24px 28px; margin-top: 28px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.info h2 { margin: 0 0 8px; font-family: var(--display); font-size: 20px; }
.info p, .info li { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.info ul { margin: 0; padding-left: 18px; }
fieldset.field { border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 0; }
fieldset.field legend { padding: 0 6px; }
.checks { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.subform { background: var(--ground); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.subform h2 { margin: 0; font-family: var(--display); font-size: 22px; }
.subform[hidden] { display: none; }
.topbar { background: var(--ink); color: #D5E0D8; font-size: 14px; }
.topbar .wrap { padding-top: 9px; padding-bottom: 9px; }
.topbar a { color: var(--here); font-weight: 600; }
.topbar a:hover { color: var(--white); }
.legal { max-width: 760px; padding: 32px 0 64px; }
.legal h2 { font-family: var(--display); font-size: 24px; margin: 32px 0 10px; }
.legal p { margin: 0 0 14px; line-height: 1.65; }
.footer-legal { border-top: 1px solid #2C3F33; }
.footer-legal .wrap { display: block; padding-top: 22px; padding-bottom: 28px; font-size: 13px; line-height: 1.6; color: #B8C6BC; }
.footer-legal p { margin: 0 0 8px; max-width: 900px; }
.footer-legal a { display: inline; color: #D5E0D8; }
.logo-badge { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; }
.hero-text { flex: 1 1 520px; min-width: 0; }
.hero-badge { flex: none; width: 300px; height: 300px; border-radius: 50%; box-shadow: 0 18px 40px rgba(0,0,0,.28); }
@media (max-width: 700px) {
  .hero-grid { flex-direction: column-reverse; align-items: flex-start; }
  .hero-badge { width: 180px; height: 180px; }
  .logo-badge { width: 52px; height: 52px; }
}
.memorial { background: #FAF7F0; }
.memorial-head { text-align: center; border-bottom: 1px solid #ECE4D3; background: #FFFDF8; }
.memorial-head .wrap { padding-top: 32px; padding-bottom: 44px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.memorial-head .crumbs { align-self: flex-start; margin-bottom: 8px; }
.memorial-head h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5vw, 52px); }
.memorial-head p { margin: 0; max-width: 560px; font-size: 18px; color: var(--muted); }
.tributes { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); padding: 40px 0 8px; }
.tribute { background: var(--white); border: 1px solid #ECE4D3; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.tribute img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.tribute-body { padding: 18px 20px 22px; text-align: center; }
.tribute h2 { margin: 0; font-family: var(--display); font-size: 24px; }
.tribute-age { margin: 2px 0 10px; font-size: 14px; color: var(--muted); }
.tribute-bio { margin: 0; font-size: 15px; line-height: 1.6; font-style: italic; }
.tribute-by { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.tributes-empty { text-align: center; color: var(--muted); padding: 40px 0 8px; margin: 0; }
.tribute-form-wrap { padding: 40px 0 0; }
.tribute-form-wrap > h2 { margin: 0 0 8px; font-family: var(--display); font-size: 30px; }
.tribute-form-wrap > p { margin: 0; color: var(--muted); max-width: 640px; }

/* Explore menu */
.main-nav { align-items: center; }
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; padding: 10px 14px; border: 1px solid #6F9A80; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu[open] > summary { background: var(--white); color: var(--brand); }
.menu-panel { position: absolute; top: calc(100% + 10px); left: 0; z-index: 20; background: var(--white); color: var(--ink); border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.25); padding: 22px 24px; display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 18px 26px; width: max-content; max-width: calc(100vw - 48px); }
.menu-panel a { display: block; color: var(--ink); text-decoration: none; padding: 6px 0; font-weight: 500; }
.menu-panel a:hover { color: var(--accent); text-decoration: underline; }
.menu-h { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 900px) {
  .menu-panel { position: fixed; left: 12px; right: 12px; top: auto; width: auto; max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 70vh; overflow-y: auto; }
}

.photo-grid { columns: 3 280px; column-gap: 18px; padding: 32px 0 0; }
.photo { break-inside: avoid; margin: 0 0 18px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.photo img { width: 100%; }
.photo figcaption { padding: 12px 16px; font-size: 15px; }
.photo figcaption span { color: var(--muted); }
.search-light { margin-top: 16px; border: 1px solid #B9CDBE; }
.search-hit { display: flex; flex-direction: column; gap: 6px; }
.search-section { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.search-hit .card { flex: 1; }
@media (min-width: 901px) {
  .site-header .wrap { position: relative; }
  details.menu { position: static; }
  .menu-panel { left: 24px; right: 24px; top: calc(100% - 8px); width: auto; max-width: none; }
}
