/*
Theme Name: DBH Base
Theme URI: https://dogbusinesshub.co.uk
Author: Dog Business Hub
Author URI: https://dogbusinesshub.co.uk
Description: Shared base theme for the Dog Business Hub ecosystem — the design system plus the shared header and footer. Acts as the parent theme for the hub, guides, jobs and training child themes so all four properties share identical brand chrome.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dbh-base
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --cream: #FBF5EC;
  --cream-deep: #F4ECDE;
  --ink: #2A2520;
  --ink-soft: #5C544B;
  --coral: #E07856;
  --coral-deep: #C45D3D;
  --teal: #2F6B6B;
  --teal-deep: #235454;
  --mustard: #D9A441;
  --line: #E8DFD0;
  --white: #FFFFFF;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(42, 37, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(42, 37, 32, 0.08);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', 'Georgia', serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
a { color: var(--teal); text-decoration: none; transition: color .12s ease; }
a:hover { color: var(--teal-deep); }
img { max-width: 100%; height: auto; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; }
.section { padding: 80px 0; }
.section-cream-deep { background: var(--cream-deep); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  font-family: inherit;
  line-height: 1.2;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: var(--coral-deep); color: var(--white); }
.btn-secondary { background: var(--teal); color: var(--white); }
.btn-secondary:hover { background: var(--teal-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); padding: 11px 18px; }
.btn-ghost:hover { background: var(--cream-deep); }
.btn-outline { background: transparent; color: var(--teal-deep); border: 1.5px solid var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   SHARED HEADER / NAV (centered)
   ============================================================ */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 0 14px;
}
.site-logo-img { display: block; line-height: 0; }
.site-logo-img img { display: block; height: 72px; width: auto; }
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.main-nav .primary-menu-list {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
}
.main-nav a { color: var(--ink-soft); }
.main-nav a:hover { color: var(--ink); }
.main-nav .is-current > a { color: var(--ink); font-weight: 600; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; }

/* ============================================================
   SHARED FOOTER
   ============================================================ */
.site-footer { background: var(--cream-deep); padding: 60px 0 30px; color: var(--ink-soft); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.foot-col h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 10px; }
.foot-col a { color: var(--ink-soft); }
.foot-col a:hover { color: var(--ink); }
.footer-logo { display: block; line-height: 0; }
.footer-logo img { display: block; height: 50px; width: auto; }
.foot-brand p { margin-top: 14px; max-width: 300px; }
.foot-social { display: flex; gap: 12px; margin-top: 16px; }
.foot-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink-soft);
}
.foot-social a:hover { background: var(--coral); border-color: var(--coral); color: var(--white); }
.foot-social svg { width: 17px; height: 17px; display: block; }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

/* ============================================================
   HERO (generic)
   ============================================================ */
.hero { padding: 72px 0 64px; background: var(--cream); position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; }
.hero-centered { text-align: center; max-width: 720px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream-deep); color: var(--teal-deep);
  padding: 7px 14px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.hero h1 { font-size: 50px; line-height: 1.06; margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--coral-deep); font-weight: 500; }
.hero-sub { font-size: 18px; color: var(--ink-soft); margin-bottom: 28px; }
.hero-centered .hero-sub { max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-centered .hero-cta { justify-content: center; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); z-index: 0; }
.blob-1 { width: 280px; height: 280px; background: #F7D9CB; top: -40px; right: -40px; opacity: 0.5; }
.blob-2 { width: 220px; height: 220px; background: #C8DEDC; bottom: -30px; left: 10%; opacity: 0.45; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: 38px; margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); font-size: 17px; max-width: 580px; margin: 0 auto; }

/* ============================================================
   ECOSYSTEM ROUTING CARDS
   ============================================================ */
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.eco-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.eco-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--coral); }
.eco-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 28px;
  margin-bottom: 18px;
}
.eco-icon.guides { background: #F8E9C7; }
.eco-icon.jobs { background: #FCE3DA; }
.eco-icon.training { background: #C8DEDC; }
.eco-card h3 { font-size: 22px; margin-bottom: 8px; }
.eco-card p { color: var(--ink-soft); font-size: 15px; flex: 1; }
.eco-card .eco-link { font-weight: 600; color: var(--coral-deep); margin-top: 12px; }

/* ============================================================
   GENERIC CARD GRID
   ============================================================ */
.card-grid { display: grid; gap: 18px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   TWO-UP / HOW IT WORKS
   ============================================================ */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.panel { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip { background: var(--teal); color: var(--white); padding: 70px 0; }
.trust-strip .section-head h2 { color: var(--white); }
.trust-strip .section-head p { color: rgba(255,255,255,0.78); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 26px;
}
.trust-card h4 { font-size: 17px; margin-bottom: 8px; }
.trust-card p { font-size: 14px; color: rgba(255,255,255,0.8); margin: 0; }

/* ============================================================
   EMAIL CAPTURE BLOCK
   ============================================================ */
.capture {
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.capture h3 { font-size: 26px; margin-bottom: 8px; }
.capture p { color: var(--ink-soft); margin-bottom: 20px; }
.capture .capture-form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.capture input[type="email"] {
  padding: 13px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: inherit; font-size: 15px;
  min-width: 260px; outline: none; background: var(--white);
}
.capture input[type="email"]:focus { border-color: var(--coral); }

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip { background: var(--coral); padding: 70px 0; color: var(--white); text-align: center; }
.cta-strip h2 { font-size: 38px; margin-bottom: 14px; color: var(--white); }
.cta-strip p { font-size: 17px; opacity: 0.95; margin: 0 auto 28px; max-width: 560px; }
.cta-strip .btn-white { background: var(--white); color: var(--coral-deep); }
.cta-strip .btn-white:hover { background: var(--cream); color: var(--coral-deep); }
.cta-strip .btn-tealdeep { background: var(--teal-deep); color: var(--white); }

/* ============================================================
   GENERIC PAGE / CONTENT
   ============================================================ */
.page-wrap { padding: 50px 0 80px; }
.page-header-block { text-align: center; margin-bottom: 40px; }
.page-header-block h1 { font-size: 40px; }
.page-header-block .page-intro { color: var(--ink-soft); font-size: 17px; max-width: 600px; margin: 0 auto; }
.content-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.entry-content h2 { font-size: 26px; margin-top: 1.4em; }
.entry-content h3 { font-size: 20px; margin-top: 1.2em; }
.entry-content img { border-radius: var(--radius-md); }
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.post-card .post-title { font-size: 24px; margin-bottom: 8px; }
.post-meta { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }

/* ============================================================
   WORDPRESS CORE CLASSES
   ============================================================ */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}
.alignleft { float: left; margin: 0 24px 18px 0; }
.alignright { float: right; margin: 0 0 18px 24px; }
.aligncenter { display: block; margin: 0 auto 18px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--ink-soft); text-align: center; }
.sticky, .gallery-caption, .bypostauthor { display: block; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--white); padding: 10px 16px; border-radius: var(--radius-sm); z-index: 999; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .eco-grid, .trust-grid, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .two-up { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .section-head h2, .cta-strip h2 { font-size: 30px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-logo-img img { height: 54px; }
  .main-nav, .main-nav .primary-menu-list { gap: 18px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 32px; }
  .eco-grid, .trust-grid, .card-grid.cols-3, .card-grid.cols-4, .foot-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .panel, .content-card, .capture { padding: 24px; }
}
