/* ============================================================
   DCHE CUSTOM THEME — MAIN STYLESHEET
   Brand: Periwinkle Blue #4A6FA5 · Warm Gold #E8B84B · Cream #FDFAF5
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --blue: #4A6FA5;
  --blue-deep: #3A5A8A;
  --blue-soft: #6B8FC5;
  --blue-pale: #D6E3F5;
  --blue-mist: #EBF1FA;
  --gold: #E8B84B;
  --gold-warm: #D4A23A;
  --gold-pale: #FDF3D8;
  --gold-mist: #FEF9ED;
  --cream: #FDFAF5;
  --cream-warm: #F7F0E4;
  --warm-white: #FFFDF9;
  --white: #FFFFFF;
  --text-heading: #2C3E50;
  --text-body: #4A5568;
  --text-soft: #718096;
  --text-on-blue: #F0F4FA;
  --text-on-gold: #3A2E10;
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50px;
  --shadow-soft: 0 2px 8px rgba(74,111,165,0.06);
  --shadow-md: 0 4px 20px rgba(74,111,165,0.08);
  --shadow-lift: 0 8px 30px rgba(74,111,165,0.10);
  --shadow-warm: 0 4px 16px rgba(232,184,75,0.12);
  --transition: 0.3s ease;
  --max-width: 1140px;
}

/* ---------- RESET (scoped to custom elements) ---------- */
.dche-utility-bar,
.dche-site-header,
.dche-site-footer,
.dche-landing {
  box-sizing: border-box;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.dche-utility-bar *,
.dche-site-header *,
.dche-site-footer *,
.dche-landing * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.dche-utility-bar ul,
.dche-site-header ul,
.dche-site-footer ul {
  list-style: none;
}
.dche-utility-bar a,
.dche-site-header a,
.dche-site-footer a,
.dche-landing a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}
.dche-utility-bar img,
.dche-site-header img,
.dche-site-footer img,
.dche-landing img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- CONTAINER ---------- */
.dche-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ---------- TYPOGRAPHY ---------- */
.dche-landing h1,
.dche-landing h2,
.dche-landing h3,
.dche-landing h4 {
  font-family: var(--font-display);
  line-height: 1.3;
  color: var(--text-heading);
}

/* ---------- SKIP LINK ---------- */
.dche-skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--gold);
  color: var(--text-on-gold);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  font-family: var(--font-body);
}
.dche-skip-link:focus { top: var(--space-sm); }

/* ============================================================
   UTILITY BAR
   ============================================================ */
.dche-utility-bar {
  display: block;
  visibility: visible;
  position: relative;
  z-index: 1001;
  background: var(--blue);
  padding: 0.4rem 0;
  font-size: 0.8rem;
  color: var(--text-on-blue);
  font-family: var(--font-body);
}
.dche-utility-bar .dche-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.dche-utility-contact { display: flex; gap: var(--space-md); align-items: center; }
.dche-utility-contact a { color: var(--blue-pale); }
.dche-utility-contact a:hover { color: var(--white); }
.dche-utility-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}
/* Social SVG icons (utility bar) */
.dche-utility-bar .dche-utility-socials .dche-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.95);
  background: transparent;
  font-size: 0;
  line-height: 0;
  opacity: 1;
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.dche-utility-bar .dche-utility-socials .dche-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.dche-utility-bar .dche-utility-socials .dche-social-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.dche-utility-bar .dche-utility-socials .dche-social-link:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.12);
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.dche-site-header {
  background: var(--white);
  border-bottom: 1px solid var(--blue-pale);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-soft);
  font-family: var(--font-body);
}
.dche-header-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0.75rem var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}
.dche-logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.dche-logo-group img { width: 50px; height: 50px; border-radius: 50%; }
.dche-logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--blue-deep);
  font-weight: 600;
  line-height: 1.25;
}
.dche-logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--gold-warm);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* Nav + CTAs: one cluster so links & buttons never wrap onto separate header rows */
.dche-header-nav-cluster {
  display: none;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: var(--space-sm);
}
.dche-main-nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  justify-content: flex-end;
  padding: 0;
  overflow: visible;
}
.dche-nav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-sm) var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}
.dche-nav-links > li {
  position: relative;
  flex-shrink: 0;
}
.dche-nav-links > li > a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
  padding: var(--space-xs) 0;
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.dche-nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width var(--transition);
}
.dche-nav-links > li > a:hover { color: var(--blue); }
.dche-nav-links > li > a:hover::after { width: 100%; }

/* Dropdown */
.dche-dropdown { position: relative; }
.dche-dropdown-toggle { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.dche-dropdown-toggle::after { content: '\25BE'; font-size: 0.6rem; opacity: 0.5; }
.dche-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px); left: -8px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  padding: var(--space-xs) 0;
  min-width: 220px;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--transition);
  border: 1px solid var(--blue-pale);
  list-style: none;
  margin: 0;
  z-index: 100;
}
.dche-dropdown:hover .dche-dropdown-menu,
.dche-dropdown:focus-within .dche-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dche-dropdown-menu li { margin: 0; padding: 0; }
.dche-dropdown-menu a {
  display: block;
  padding: 0.45rem var(--space-md);
  font-size: 0.85rem;
  color: var(--text-body);
}
.dche-dropdown-menu a:hover { background: var(--blue-mist); color: var(--blue-deep); }

/* Nav actions — always flex; cluster visibility controls desktop vs mobile */
.dche-nav-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-xs);
  margin: 0;
  padding-left: var(--space-md);
  border-left: 1px solid var(--blue-pale);
}

/* Mobile Toggle */
.dche-mobile-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.dche-mobile-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--blue-deep); border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile Menu */
.dche-mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--blue-pale);
  padding: var(--space-md);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  box-shadow: var(--shadow-lift);
  z-index: 999;
}
.dche-mobile-menu.is-open { display: block; }
.dche-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.dche-mobile-menu li { border-bottom: 1px solid var(--blue-mist); }
.dche-mobile-menu a {
  display: block;
  padding: 0.7rem 0;
  font-size: 0.95rem;
  color: var(--text-body);
  font-family: var(--font-body);
}
.dche-mobile-menu a:hover { color: var(--blue); }
.dche-mobile-menu .dche-mobile-sub { padding-left: var(--space-md); }
.dche-mobile-menu .dche-mobile-sub a { font-size: 0.85rem; color: var(--text-soft); }
.dche-mobile-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--blue-mist);
  margin-top: var(--space-xs);
}
.dche-mobile-ctas .dche-btn {
  width: 100%;
  max-width: 100%;
  justify-content: center;
  min-height: 44px;
}

/* ============================================================
   BUTTONS (shared across header, footer, landing)
   ============================================================ */
.dche-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: all var(--transition);
  line-height: 1;
}
.dche-btn-outline { border: 1.5px solid var(--blue); color: var(--blue); background: transparent; }
.dche-btn-outline:hover { background: var(--blue); color: var(--white); }
.dche-btn-primary { background: var(--gold); color: var(--text-on-gold); }
.dche-btn-primary:hover { background: var(--gold-warm); box-shadow: var(--shadow-warm); transform: translateY(-1px); }
.dche-btn-large { padding: 0.8rem 1.8rem; font-size: 0.95rem; }
.dche-btn-soft { background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.3); color: var(--white); }
.dche-btn-soft:hover { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.5); }
.dche-btn-gold-outline { border: 1.5px solid var(--gold); color: var(--gold); background: transparent; }
.dche-btn-gold-outline:hover { background: var(--gold); color: var(--text-on-gold); }
.dche-btn-white { background: var(--white); color: var(--blue-deep); border: none; }
.dche-btn-white:hover { background: var(--cream); }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.dche-site-footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.8);
  padding: var(--space-xl) 0 0;
  font-family: var(--font-body);
}
.dche-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
}
.dche-footer-brand p {
  font-size: 0.88rem; line-height: 1.75;
  opacity: 0.65;
  margin: var(--space-sm) 0 var(--space-md);
}
.dche-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}
.dche-site-footer .dche-footer-socials .dche-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 0;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  text-decoration: none;
  opacity: 1;
  flex-shrink: 0;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.dche-site-footer .dche-footer-socials .dche-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.dche-site-footer .dche-footer-socials .dche-social-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.dche-site-footer .dche-footer-socials .dche-social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(232, 184, 75, 0.12);
}
/* Brand column may match generic `a` rules; keep social row icon-sized, not text labels */
.dche-site-footer .dche-footer-brand .dche-footer-socials a.dche-social-link {
  font-size: 0 !important;
  line-height: 0 !important;
}
.dche-footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: var(--space-md);
}
.dche-footer-col ul { list-style: none; margin: 0; padding: 0; }
.dche-footer-col ul li { margin-bottom: 0.4rem; }
.dche-footer-col ul a { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.dche-footer-col ul a:hover { color: var(--gold); }
.dche-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-md) 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; opacity: 0.5;
  flex-wrap: wrap; gap: var(--space-sm);
}

/* ============================================================
   RESPONSIVE (mobile-first)
   ============================================================ */

@media (min-width: 769px) {
  .dche-header-nav-cluster {
    display: flex;
  }
  .dche-mobile-toggle {
    display: none;
  }
}

@media (min-width: 1280px) {
  .dche-nav-links {
    gap: var(--space-md);
  }
}

@media (max-width: 1100px) and (min-width: 769px) {
  .dche-nav-links {
    gap: var(--space-sm);
  }
}

@media (max-width: 1024px) {
  .dche-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .dche-header-inner {
    align-items: center;
  }
  .dche-utility-contact { display: none; }
  /* Keep social icons visible; center row when email/phone hidden */
  .dche-utility-bar .dche-container {
    justify-content: center;
  }
  .dche-header-nav-cluster {
    display: none;
  }
  .dche-mobile-toggle {
    display: flex;
    margin-left: auto;
  }
  .dche-footer-grid { grid-template-columns: 1fr; }
}

@media (min-width: 380px) and (max-width: 768px) {
  .dche-mobile-ctas {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .dche-mobile-ctas .dche-btn {
    flex: 1 1 calc(50% - var(--space-sm) / 2);
    min-width: 9rem;
  }
}

/* SVG icons use currentColor from .dche-social-link */
.dche-utility-bar .dche-utility-socials .dche-social-link svg,
.dche-site-footer .dche-footer-socials .dche-social-link svg {
  -webkit-text-fill-color: currentColor;
}
