/* ==========================================================================
   Devon Rex Adoption — Adoption Process page + craft-floor corrections
   ========================================================================== */

/* ------------------------------------------------ Photographic page hero */

.e-con.dr-photohero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 0 0 var(--dr-r-lg) var(--dr-r-lg);
  background-color: var(--dr-ink);
}
.e-con.dr-photohero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--dr-hero-image);
  background-size: cover;
  background-position: center 24%;
}
.e-con.dr-photohero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(23,20,18,.38) 0%, rgba(23,20,18,.66) 62%, rgba(23,20,18,.80) 100%),
    radial-gradient(110% 80% at 50% 38%, rgba(23,20,18,0) 0%, rgba(23,20,18,.55) 100%);
}
.dr-photohero .elementor-heading-title { color: #fff !important; }
.dr-photohero .elementor-widget-text-editor,
.dr-photohero .elementor-widget-text-editor p { color: rgba(255,255,255,.86); }

/* --------------------------------------------------------- Fact panels */

.e-con.dr-facts {
  --display: flex;
  display: flex;
  --flex-direction: column;
  flex-direction: column;
  gap: 14px;
}
.dr-fact {
  background: #fff;
  border: 1px solid var(--dr-line);
  border-radius: var(--dr-r);
  padding: 1.15rem 1.3rem;
}
.dr-fact + .dr-fact { margin-top: 0; }
.dr-fact__title .elementor-heading-title {
  font-size: 1rem !important;
  color: var(--dr-copper) !important;
  margin-bottom: .3rem;
}
.dr-fact__body, .dr-fact__body p {
  font-size: var(--dr-t-sm);
  color: var(--dr-slate);
  line-height: 1.6;
  margin: 0;
}

/* Split with a narrower aside, matching the reference layout */
.e-con.dr-split--aside {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 900px) {
  .e-con.dr-split--aside { grid-template-columns: 1fr; }
}

/* Two-column checklist that collapses cleanly */
.dr-el-checklist--two .elementor-icon-list-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
}
@media (max-width: 700px) {
  .dr-el-checklist--two .elementor-icon-list-items { grid-template-columns: 1fr; }
}

/* Sub-heading inside a prose block */
.dr-el-h3 .elementor-heading-title {
  font-size: var(--dr-t-h3) !important;
  line-height: 1.24;
  letter-spacing: -0.014em;
}

/* ==========================================================================
   Craft-floor corrections
   ========================================================================== */

/* A colored left border heavier than 1px is decoration. Replaced with a
   hairline plus a tinted ground, which carries the same grouping quietly. */
.dr-k__panel {
  border: 1px solid var(--dr-copper-line);
  border-left-width: 1px;
  border-radius: var(--dr-r);
  background: var(--dr-copper-wash);
}
.e-con .dr-el-note .elementor-alert {
  border: 1px solid var(--dr-copper-line);
  border-left-width: 1px;
}

/* ---- Browser surfaces: the parts we did not draw still carry the design -- */

html { scrollbar-color: var(--dr-copper-soft) var(--dr-mist); scrollbar-width: thin; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--dr-mist); }
::-webkit-scrollbar-thumb {
  background: #D9CCC3;
  border-radius: 999px;
  border: 3px solid var(--dr-mist);
}
::-webkit-scrollbar-thumb:hover { background: var(--dr-copper-soft); }

input, textarea, select, [contenteditable] { caret-color: var(--dr-copper); }

::selection { background: var(--dr-copper); color: #fff; }
::-moz-selection { background: var(--dr-copper); color: #fff; }

/* Links get a considered underline rather than the browser's default offset */
.dr-el-lead a,
.elementor-widget-text-editor a,
.entry-content a:not(.elementor-button):not(.dr-btn) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--dr-copper-line);
  transition: text-decoration-color .2s var(--dr-ease);
}
.dr-el-lead a:hover,
.elementor-widget-text-editor a:hover,
.entry-content a:not(.elementor-button):not(.dr-btn):hover {
  text-decoration-color: var(--dr-copper);
}

/* Numbers in spec tables and prices align as data, not as prose */
.dr-kitten-card__price,
.dr-kitten-card__meta dd,
.dr-k__spec dd,
.dr-el-score .elementor-heading-title {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Focus ring themed from the palette, never the UA default */
:focus-visible {
  outline: 2px solid var(--dr-copper);
  outline-offset: 3px;
  border-radius: 4px;
}
.dr-btn:focus-visible,
.elementor-button:focus-visible { outline-offset: 4px; }

/* ---- One authored moment: the hero settles in on first paint ---------- */

@media (prefers-reduced-motion: no-preference) {
  .home .dr-section:first-of-type .dr-stack > .elementor-widget,
  .dr-photohero .dr-stack > .elementor-widget {
    animation: dr-settle .9s cubic-bezier(.16,1,.3,1) backwards;
  }
  .home .dr-section:first-of-type .dr-stack > .elementor-widget:nth-child(1),
  .dr-photohero .dr-stack > .elementor-widget:nth-child(1) { animation-delay: .04s; }
  .home .dr-section:first-of-type .dr-stack > .elementor-widget:nth-child(2),
  .dr-photohero .dr-stack > .elementor-widget:nth-child(2) { animation-delay: .12s; }
  .home .dr-section:first-of-type .dr-stack > .elementor-widget:nth-child(3),
  .dr-photohero .dr-stack > .elementor-widget:nth-child(3) { animation-delay: .2s; }
  .home .dr-section:first-of-type .dr-collage figure,
  .home .dr-section:first-of-type .dr-collage .elementor-widget {
    animation: dr-settle 1.05s cubic-bezier(.16,1,.3,1) .16s backwards;
  }
}

@keyframes dr-settle {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* ==========================================================================
   Brand lockup
   ========================================================================== */

.dr-logo-wrap { display: flex; align-items: center; }

.dr-logo {
  display: inline-flex;
  align-items: center;
  gap: .68rem;
  text-decoration: none;
  line-height: 1;
  color: var(--dr-ink);
}
.dr-logo:hover { color: var(--dr-ink); }

.dr-logo__mark {
  display: block;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: var(--dr-copper);
  transition: transform .34s var(--dr-ease), color .24s var(--dr-ease);
}
.dr-logo__mark svg { display: block; width: 100%; height: 100%; }

/* The ears lift a touch on hover: one small authored moment, nothing more. */
.dr-logo:hover .dr-logo__mark { transform: translateY(-1px) rotate(-3deg); }

.dr-logo__text { display: flex; flex-direction: column; gap: .16rem; min-width: 0; }

.dr-logo__name {
  font-family: var(--dr-font-brand);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.022em;
  color: var(--dr-ink);
  white-space: nowrap;
}

.dr-logo__desc {
  font-family: var(--dr-font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .085em;
  text-transform: uppercase;
  color: var(--dr-muted);
  white-space: nowrap;
}

/* Astra wraps this in .site-title; neutralise its own type rules */
.site-title, .site-title a { font-size: inherit !important; line-height: 1 !important; margin: 0 !important; }
.site-title { margin-bottom: 0 !important; }

/* --- Responsive: the descriptor is the first thing to go ---------------- */

@media (max-width: 1100px) {
  .dr-logo__name { font-size: 1.08rem; }
  .dr-logo__mark { width: 34px; height: 34px; }
}
@media (max-width: 921px) {
  .dr-logo__desc { display: none; }
}
@media (max-width: 400px) {
  .dr-logo { gap: .5rem; }
  .dr-logo__mark { width: 30px; height: 30px; }
  .dr-logo__name { font-size: .98rem; }
}

/* --- Footer variant on the dark ground --------------------------------- */

.dr-logo--footer { gap: .7rem; margin-bottom: 1rem; }
.dr-logo--footer .dr-logo__mark { color: var(--dr-copper-soft); width: 40px; height: 40px; }
.dr-logo--footer .dr-logo__name { color: #fff; font-size: 1.2rem; }
.dr-logo--footer .dr-logo__desc { color: #8C857E; }

/* --- Print: the mark still reads in one ink ---------------------------- */

@media print {
  .dr-logo__mark { color: #000; }
  .dr-logo__name { color: #000; }
}

/* The header bar and footer wrapper carry their own inset, so their children
   never sit flush against the border at any width. */
.ast-primary-header-bar { padding-inline: clamp(12px, 2vw, 24px); padding-block: 6px; }
.site-primary-footer-wrap, .site-below-footer-wrap { padding-inline: clamp(12px, 2vw, 24px); }

/* Footer secondary text: 5.1:1 on the #171412 ground */
.site-footer p, .site-footer .widget p { color: #9A928A; }

/* Footer copy: 6.0:1 on the #171412 ground, set in CSS rather than inline. */
.site-footer .dr-foot-copy {
  font-size: .9rem;
  line-height: 1.7;
  color: #A79E95;
  margin: .9rem 0 0;
}
.site-footer .widget_nav_menu + * .dr-foot-copy { margin-top: 0; }
.site-footer .dr-foot-links { margin: .55rem 0 0; font-size: .9rem; }
.site-footer .dr-foot-links a { color: var(--dr-copper-soft); }
.site-footer .dr-foot-links a:hover { color: #E0B296; }

/* ==========================================================================
   Touch targets
   The footer nav and the mobile menu are real tap targets, not prose links,
   so they need room for a fingertip rather than just room for the text.
   ========================================================================== */

.site-footer .widget_nav_menu ul { margin: 0; padding: 0; list-style: none; }
.site-footer .widget_nav_menu li { margin: 0; }
.site-footer .widget_nav_menu a {
  display: block;
  padding: .55rem 0;
  min-height: 24px;
  line-height: 1.5;
}

@media (max-width: 782px) {
  .site-footer .widget_nav_menu a { padding: .72rem 0; }

  /* Astra's off-canvas / collapsed menu */
  .ast-mobile-popup-content .menu-link,
  .ast-mobile-header-wrap .main-header-menu .menu-link,
  .main-header-menu .menu-link {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  /* The hamburger itself */
  .ast-mobile-menu-trigger-minimal,
  .ast-mobile-menu-buttons button,
  .menu-toggle {
    min-width: 48px;
    min-height: 48px;
  }
}

/* Inline prose links stay inline: WCAG exempts links inside a sentence, and
   padding them would break the line box. */
.dr-fact__body a,
.elementor-widget-text-editor a { display: inline; }
