/*
Theme Name: Doves Hollow (Hello Elementor Child)
Theme URI: https://doveshollow.org/
Description: Lightweight Hello Elementor child theme for the Doves Hollow Animal Sanctuary site. Provides the site header/footer fallback (free Elementor), menu registration, and small global styles. Requires the Hello Elementor parent theme (install from WordPress.org).
Author: Doves Hollow Animal Sanctuary
Template: hello-elementor
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: doveshollow-elementor-child
*/

/* ---------- Design tokens (mirrors DESIGN-SYSTEM.md) ---------- */
:root {
  --dh-brand: #215F70;
  --dh-green: #72BC6F;
  --dh-text: #284854;
  --dh-mint: #F4FBFA;
  --dh-band-light: #D5EBD4;
  --dh-band-mid: #AAD7A9;
  --dh-footer: #87C685;
  --dh-btn: #4CAF50;
  --dh-font-heading: 'Prata', serif;
  --dh-font-body: 'Lato', sans-serif;
}

body {
  font-family: var(--dh-font-body);
  color: var(--dh-text);
}

/* ---------- Site header (fallback, free Elementor) ---------- */
.dh-header {
  background: var(--dh-mint);
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 100;
}
.dh-header__inner {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}
.dh-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
}
.dh-nav a {
  font-family: var(--dh-font-heading);
  font-weight: 700;
  font-size: 16px;
  line-height: 38px;
  color: var(--dh-brand);
  text-decoration: none;
  padding: 10px 20px;
  display: inline-block;
}
.dh-nav a:hover,
.dh-nav .current-menu-item > a,
.dh-nav .current-menu-ancestor > a {
  color: var(--dh-text);
}
/* dropdowns */
.dh-nav li { position: relative; }
.dh-nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dh-mint);
  min-width: 220px;
  flex-direction: column;
  box-shadow: 0 6px 18px rgba(40, 72, 84, .12);
}
.dh-nav li:hover > ul,
.dh-nav li:focus-within > ul { display: flex; }
.dh-nav li ul a { line-height: 24px; width: 100%; }

/* mobile menu */
.dh-menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 12px;
  color: var(--dh-brand);
}
.dh-menu-toggle .dh-burger,
.dh-menu-toggle .dh-burger::before,
.dh-menu-toggle .dh-burger::after {
  content: '';
  display: block;
  width: 26px;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s;
}
.dh-menu-toggle .dh-burger { position: relative; }
.dh-menu-toggle .dh-burger::before { position: absolute; top: -8px; }
.dh-menu-toggle .dh-burger::after { position: absolute; top: 8px; }

@media (max-width: 1024px) {
  .dh-header__inner { justify-content: space-between; }
  .dh-menu-toggle { display: block; }
  .dh-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dh-mint);
    box-shadow: 0 10px 20px rgba(40, 72, 84, .15);
  }
  .dh-nav.is-open { display: block; }
  .dh-nav ul { flex-direction: column; }
  .dh-nav li ul {
    display: block;
    position: static;
    box-shadow: none;
    padding-left: 16px;
    min-width: 0;
  }
  .dh-nav a { width: 100%; }
}

/* ---------- Site footer (fallback, free Elementor) ---------- */
.dh-footer {
  background: var(--dh-footer);
  color: #fff;
  padding: 24px 0;
}
.dh-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.dh-footer h2 {
  /* !important guards against Elementor kit h2 element styles */
  font-family: var(--dh-font-heading) !important;
  font-weight: 400 !important;
  font-size: 22px !important;
  line-height: 1 !important;
  color: #fff;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.dh-footer p, .dh-footer a {
  font-family: var(--dh-font-body);
  font-weight: 700;
  font-size: 16px;
  color: var(--dh-text);
  margin: 0;
  text-decoration: none;
}
.dh-footer a:hover { color: #fff; }
.dh-footer__social {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
  justify-content: flex-end;
}
.dh-footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--dh-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dh-footer__social svg { width: 20px; height: 20px; fill: currentColor; }
.dh-footer__copyright { text-align: right; }
@media (max-width: 767px) {
  .dh-footer__inner { grid-template-columns: 1fr; }
  .dh-footer__social { justify-content: flex-start; }
  .dh-footer__copyright { text-align: left; }
}

/* ---------- Contact Form 7 styling to match source design ---------- */
.wpcf7 label {
  display: block;
  width: 100%;
  max-width: 640px;
  font-family: var(--dh-font-body);
  color: var(--dh-text);
}
.wpcf7 input[type=text],
.wpcf7 input[type=email],
.wpcf7 textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #d5e3e0;
  border-radius: 4px;
  padding: 12px 14px;
  font-family: var(--dh-font-body);
  font-size: 16px;
  color: var(--dh-text);
  margin-bottom: 14px;
}
.wpcf7 input:focus, .wpcf7 textarea:focus {
  outline: 2px solid var(--dh-brand);
  outline-offset: 1px;
}
.wpcf7 input[type=submit] {
  background: var(--dh-btn);
  color: #fff;
  font-family: var(--dh-font-heading);
  font-weight: 700;
  font-size: 16px;
  border: 0;
  border-radius: 4px;
  padding: 10px 28px;
  cursor: pointer;
  transition: opacity .2s;
}
.wpcf7 input[type=submit]:hover { opacity: .8; }
