/* =============================================
   TADLEY.INFO — Shared Stylesheet
   Aesthetic: Rural Hampshire editorial warmth
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,300&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --forest:   #1e3a1f;
  --moss:     #3a5f3e;
  --sage:     #7a9c6e;
  --amber:    #c8882a;
  --honey:    #e8a83a;
  --cream:    #f7f2e8;
  --parchment:#ede6d5;
  --charcoal: #2a2a2a;
  --warm-mid: #5a4a35;
  --muted:    #7a6e5e;
  --white:    #ffffff;
  --border:   rgba(200,136,42,0.25);
  --shadow:   0 4px 24px rgba(30,58,31,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--cream);
  color: var(--charcoal);
  font-size: 17px;
  line-height: 1.7;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--charcoal); }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--forest); text-decoration: underline; }

/* ---- NAV ---- */
.site-header {
  background: var(--forest);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  flex-wrap: wrap;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.nav-brand .brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--honey);
  letter-spacing: 0.01em;
  line-height: 1;
}
.nav-brand .brand-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  color: var(--sage);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-menu a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.03em;
  display: block;
}
.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(232,168,58,0.18);
  color: var(--honey);
}

.hamburger {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  color: var(--white);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(160deg, var(--forest) 0%, #2d5c30 60%, var(--moss) 100%);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(200,136,42,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(122,156,110,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--honey);
  border: 1px solid rgba(232,168,58,0.4);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero h1 em { color: var(--honey); font-style: normal; }
.hero-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 640px;
  margin: 0 auto 2rem;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary {
  background: var(--amber);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(200,136,42,0.4);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(200,136,42,0.5); color: var(--white); }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--honey); color: var(--honey); }

/* ---- PAGE HEADER (for inner pages) ---- */
.page-header {
  background: linear-gradient(135deg, var(--forest) 0%, #3a5c2e 100%);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
}
.page-header .crumb {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: var(--sage);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.page-header h1 { color: var(--white); }
.page-header .page-lead {
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin: 0.75rem auto 0;
  font-size: 1.05rem;
}

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

.section {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.5rem;
}
.section-title {
  margin-bottom: 0.75rem;
  color: var(--forest);
}
.section-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 660px;
  margin-bottom: 2.5rem;
}

.divider {
  border: none;
  height: 2px;
  background: linear-gradient(to right, var(--amber), transparent);
  margin: 2rem 0;
  max-width: 80px;
}

/* ---- CARDS ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(30,58,31,0.16); }

.card-icon {
  background: linear-gradient(135deg, var(--forest), var(--moss));
  padding: 1.5rem;
  font-size: 2rem;
  text-align: center;
}
.card-body { padding: 1.25rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.15rem; color: var(--forest); margin-bottom: 0.5rem; }
.card-body p { font-size: 0.92rem; color: var(--muted); flex: 1; margin-bottom: 0.75rem; }
.card-body a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ---- FACT BAR ---- */
.fact-bar {
  background: var(--forest);
  padding: 2.5rem 1.5rem;
}
.fact-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.fact-item { padding: 0.5rem; }
.fact-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--honey);
  display: block;
}
.fact-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---- DIRECTORY ---- */
.dir-category {
  margin-bottom: 3rem;
}
.dir-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--forest);
  border-radius: 10px 10px 0 0;
  color: var(--white);
}
.dir-category-header .cat-icon { font-size: 1.4rem; }
.dir-category-header h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--honey);
}

.dir-list {
  background: var(--white);
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dir-entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--parchment);
  align-items: start;
  transition: background 0.15s;
}
.dir-entry:last-child { border-bottom: none; }
.dir-entry:hover { background: #f9f6f0; }

.dir-name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  color: var(--forest);
  font-size: 0.95rem;
}
.dir-address {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.15rem 0 0;
  font-family: 'DM Sans', sans-serif;
}
.dir-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}
.dir-phone {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--amber);
  white-space: nowrap;
}
.dir-web {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: var(--sage);
}

/* ---- EMERGENCY BANNER ---- */
.emergency-bar {
  background: #8b1a1a;
  color: var(--white);
  padding: 0.85rem 1rem;
}
.emergency-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem 1rem;
  align-items: center;
}
.emerg-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  padding: 0.3rem 0.4rem;
  min-width: 0;
}
.emerg-item > span:first-child { font-size: 1.1rem; flex-shrink: 0; }
.emerg-item .emerg-text { min-width: 0; }
.emerg-item .emerg-label { font-size: 0.7rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.08em; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emerg-item .emerg-num { font-size: 1.1rem; font-weight: 700; color: var(--honey); display: block; white-space: nowrap; }

@media (max-width: 700px) {
  .emergency-bar-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 380px) {
  .emergency-bar-inner {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  .emerg-item .emerg-num { font-size: 0.95rem; }
  .emerg-item .emerg-label { font-size: 0.62rem; }
}

/* ---- CONTENT PROSE ---- */
.prose { max-width: 740px; }
.prose p { margin-bottom: 1.25rem; }
.prose h2 { color: var(--forest); margin: 2.5rem 0 0.75rem; }
.prose h3 { color: var(--moss); margin: 1.75rem 0 0.5rem; }

.callout {
  background: linear-gradient(135deg, var(--forest), var(--moss));
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  color: var(--white);
}
.callout h4 { color: var(--honey); margin-bottom: 0.5rem; }
.callout p { color: rgba(255,255,255,0.85); margin: 0; }

.info-box {
  background: var(--parchment);
  border-left: 4px solid var(--amber);
  padding: 1.25rem 1.5rem;
  border-radius: 0 10px 10px 0;
  margin: 1.5rem 0;
}
.info-box h4 { color: var(--forest); margin-bottom: 0.4rem; }
.info-box p { margin: 0; font-size: 0.95rem; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--charcoal);
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 1rem;
}
.footer-col p, .footer-col li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.9;
}
.footer-col ul { list-style: none; }
.footer-col ul a { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.footer-col ul a:hover { color: var(--honey); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin: 0; }

/* ---- HIGHLIGHT STRIP ---- */
.highlight-strip {
  background: var(--parchment);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.5rem;
}
.highlight-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.highlight-tile {
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  display: block;
  box-shadow: 0 2px 10px rgba(30,58,31,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}
.highlight-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(30,58,31,0.14);
  text-decoration: none;
}
.highlight-tile .tile-icon { font-size: 2.2rem; margin-bottom: 0.75rem; display: block; }
.highlight-tile .tile-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  color: var(--forest);
  font-size: 0.95rem;
}
.highlight-tile .tile-sub { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }

/* ---- EXPLORE CARDS ---- */
.explore-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 100px 1fr;
  transition: transform 0.2s;
}
.explore-card:hover { transform: translateY(-3px); }
.explore-card-icon {
  background: linear-gradient(160deg, var(--forest), var(--moss));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.explore-card-body { padding: 1.25rem 1.5rem; }
.explore-card-body h3 { color: var(--forest); font-size: 1.1rem; margin-bottom: 0.4rem; }
.explore-card-body p { font-size: 0.9rem; color: var(--muted); margin: 0; }
.explore-card-tags { display: flex; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap; }
.tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: var(--parchment);
  color: var(--warm-mid);
  letter-spacing: 0.04em;
}

/* ---- PHOTO GALLERY ---- */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 0.75rem;
  margin: 2rem 0;
}
.photo-gallery .photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--charcoal);
}
.photo-gallery .photo-item.wide {
  grid-column: span 2;
}
.photo-gallery .photo-item.tall {
  grid-row: span 2;
}
.photo-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.photo-gallery .photo-item.tall img { height: 455px; }
.photo-gallery .photo-item.wide img { height: 220px; }
.photo-gallery .photo-item:hover img { transform: scale(1.04); }
.photo-credit {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82), transparent);
  padding: 1.5rem 0.75rem 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}
.photo-credit a { color: rgba(255,255,255,0.75); text-decoration: underline; font-size: 0.68rem; }
.photo-credit a:hover { color: var(--honey); }
.photo-caption { font-weight: 600; color: var(--white); font-size: 0.78rem; }

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 2rem 0;
}
.photo-strip .photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--charcoal);
}
.photo-strip img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.photo-strip .photo-item:hover img { transform: scale(1.05); }

@media (max-width: 768px) {
  .photo-gallery {
    grid-template-columns: 1fr 1fr;
  }
  .photo-gallery .photo-item.wide { grid-column: span 2; }
  .photo-gallery .photo-item.tall { grid-row: span 1; }
  .photo-gallery img, .photo-gallery .photo-item.tall img, .photo-gallery .photo-item.wide img {
    height: 180px;
  }
  .photo-strip {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .photo-gallery, .photo-strip {
    grid-template-columns: 1fr;
  }
  .photo-gallery .photo-item.wide { grid-column: span 1; }
}

/* ---- CONTACT FORM ---- */
.contact-form {
  background: var(--white);
  border-radius: 14px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  max-width: 680px;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 0.4rem;
}
.form-group label .req { color: #c0392b; margin-left: 0.2rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--cream);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--amber);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-captcha {
  background: var(--parchment);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.form-captcha h4 { font-size: 0.9rem; color: var(--forest); margin-bottom: 0.75rem; }
.captcha-question {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--warm-mid);
  background: var(--white);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  display: inline-block;
  margin-bottom: 0.75rem;
  border: 1.5px solid var(--border);
}
.form-submit {
  background: var(--amber);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 0.85rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.form-submit:hover { background: var(--forest); transform: translateY(-2px); }
.honeypot { display: none !important; visibility: hidden !important; position: absolute; left: -9999px; }

.msg-success {
  background: #1e3a1f;
  color: var(--white);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  display: none;
  margin-top: 1rem;
}
.msg-error {
  background: #8b1a1a;
  color: var(--white);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  display: none;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0.75rem 0 1rem;
    gap: 0;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 0.65rem 1rem; }
  .nav-inner { flex-wrap: wrap; padding: 0.75rem 1.5rem; }

  .dir-entry { grid-template-columns: 1fr; }
  .dir-meta { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }

  .explore-card { grid-template-columns: 70px 1fr; }
  .explore-card-icon { font-size: 1.8rem; }

  .section { padding: 2.5rem 1.25rem; }

  .hero { padding: 3.5rem 1.25rem 3rem; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .fact-bar-inner { grid-template-columns: repeat(2, 1fr); }
}
