/*
PHRC approved-design alignment 1.0 — for the PHRC CARE v2 Elementor theme.
Reversible presentation layer; no Elementor page data modifications.

Desktop goals:
- compact, high-contrast topbar & masthead
- approved forest-green / muted-gold palette
- full-bleed blended hero artwork, without a boxed photo
- side-by-side gold appointment + white shop buttons
- compact four-item highlight strip and more coherent content cards
Mobile: original editable Elementor image stays in normal content flow.
*/
:root {
  --phrc-brand-green:#06452e;
  --phrc-brand-deep:#063b2d;
  --phrc-brand-gold:#ba851f;
  --phrc-brand-cream:#fffdf7;
}

/* Tighten the overall header and fix illegible gold text in the contact strip. */
.site-topbar {
  background:#f5f9f3 !important;
  border-bottom:1px solid #e2eadc !important;
  color:#244f3b !important;
  font-weight:600;
}
.site-topbar .topbar-inner {
  padding-top:7px !important;
  padding-bottom:7px !important;
  gap:14px;
}
.site-topbar .topbar-inner span,
.site-topbar .topbar-inner a,
.site-topbar .topbar-right,
.site-topbar .topbar-right span,
.site-topbar .topbar-right a {
  color:#23513d !important;
  opacity:1 !important;
}
.site-topbar .topbar-right { gap:16px; }
.site-topbar .topbar-right a:hover { color:var(--phrc-brand-gold) !important; }
.site-header {background:#fffefa !important;box-shadow:0 5px 18px rgba(11,64,45,.045)!important;}
.site-header .header-inner {height:83px !important;gap:20px !important;}
.site-header .header-brand {min-width:275px;gap:11px;}
.site-header .header-emblem {width:70px !important;height:70px !important;object-fit:contain;}
.site-header .header-brand strong {font-size:15px;line-height:1.18;color:var(--phrc-brand-deep);}
.site-header .header-brand small {font-size:8px;letter-spacing:.13em;color:#287252;}
.site-header .header-nav {gap:clamp(11px,1.3vw,20px);}
.site-header .header-nav>a {font-weight:700;font-size:12px;}
.site-header .header-nav .nav-appointment {background:var(--phrc-brand-green);padding:12px 17px;border-radius:3px;}
.site-header .header-nav .nav-store {border:1px solid #c4942a;color:#075038;}

/* Elementor default widget widths and margins previously stacked both CTAs.
   Scope all reflow to the home-page hero only. */
@media (min-width:1025px) {
  .phrc-elementor-page .phrc-hero-section {
    isolation:isolate;
    position:relative !important;
    overflow:hidden;
    background:linear-gradient(95deg,#fffcf6 0%,#fffcf6 48%,#f3f7ed 100%) !important;
    min-height:555px !important;
  }
  .phrc-elementor-page .phrc-hero-section > .elementor-container {
    max-width:1380px !important;
    width:calc(100% - 92px) !important;
    min-height:555px !important;
    align-items:center;
    position:relative;
    margin-left:auto;
    margin-right:auto;
  }
  .phrc-elementor-page .phrc-hero-left.elementor-column {
    width:54% !important;
    position:relative;
    z-index:2;
    flex:0 0 54%;
  }
  .phrc-elementor-page .phrc-hero-left > .elementor-widget-wrap {
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    align-content:center !important;
    justify-content:flex-start !important;
    gap:0;
    padding:42px 20px 48px 0 !important;
  }
  .phrc-elementor-page .phrc-hero-left > .elementor-widget-wrap > .elementor-widget:not(.elementor-widget-button) {
    width:100% !important;
    max-width:100%;
    flex:0 0 100%;
    margin-right:0 !important;
  }
  .phrc-elementor-page .phrc-hero-left > .elementor-widget-wrap > .elementor-widget-button {
    display:inline-block !important;
    width:auto !important;
    max-width:100% !important;
    flex:0 0 auto !important;
    margin:13px 12px 0 0 !important;
    padding:0 !important;
  }
  .phrc-elementor-page .phrc-hero-section .phrc-hero-right.elementor-column {
    position:absolute !important;
    top:0 !important;
    bottom:0 !important;
    /* Pull the Elementor image to the screen's right edge, rather than boxed inside the grid. */
    right:calc(50% - 50vw) !important;
    width:53vw !important;
    max-width:none !important;
    min-width:0 !important;
    height:100% !important;
    z-index:1;
  }
  .phrc-elementor-page .phrc-hero-right > .elementor-widget-wrap {
    padding:0 !important;
    position:relative !important;
    width:100%;
    height:100%;
    display:block !important;
    overflow:hidden;
  }
  .phrc-elementor-page .phrc-hero-right .phrc-hero-image,
  .phrc-elementor-page .phrc-hero-right .phrc-hero-image .elementor-widget-container {
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    margin:0 !important;
    padding:0 !important;
  }
  .phrc-elementor-page .phrc-hero-right .phrc-hero-image img {
    display:block;
    position:absolute;
    inset:0;
    width:100% !important;
    height:100% !important;
    max-height:none !important;
    max-width:none !important;
    object-fit:cover !important;
    object-position:center 4% !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    filter:none !important;
    -webkit-mask-image:linear-gradient(to right,transparent 0%,rgba(0,0,0,.2) 9%,#000 29%) !important;
    mask-image:linear-gradient(to right,transparent 0%,rgba(0,0,0,.2) 9%,#000 29%) !important;
  }
  /* Keep artwork labelling, but visually demote the distracting two-line caption. */
  .phrc-elementor-page .phrc-hero-right .phrc-image-caption {
    position:absolute !important;
    bottom:12px;
    right:24px;
    z-index:3;
    max-width:230px;
    margin:0 !important;
    text-align:right !important;
    font-size:10px !important;
    line-height:1.35 !important;
    background:rgba(255,253,246,.85);
    border-radius:3px;
    padding:5px 7px;
  }
  .phrc-elementor-page .phrc-hero-right .phrc-image-caption .elementor-widget-container {
    position:static !important;
    width:auto !important;
    height:auto !important;
  }
  .phrc-elementor-page .phrc-hero-right .phrc-image-caption p {margin:0;font-size:9px;}
  .phrc-elementor-page .phrc-hero-title h1 {
    font-size:clamp(42px,3.4vw,58px) !important;
    line-height:1.08 !important;
    letter-spacing:-.045em !important;
    max-width:625px !important;
  }
  .phrc-elementor-page .phrc-hero-subtitle h3 {
    font-size:clamp(23px,1.9vw,30px) !important;
    line-height:1.3;
  }
  .phrc-elementor-page .phrc-hero-desc,
  .phrc-elementor-page .phrc-hero-desc .elementor-widget-container {
    max-width:590px !important;
    position:relative;
    z-index:2;
  }
  .phrc-elementor-page .phrc-hero-desc p {font-size:14px;line-height:1.7;}
  .phrc-elementor-page .phrc-hero-section .phrc-kicker h6 {
    color:#a27722 !important;
    font-size:10px !important;
    letter-spacing:2.2px;
  }
  /* Brand CTA colors, stronger specificity than Elementor widget defaults. */
  .phrc-elementor-page .phrc-hero-left .phrc-btn-gold.elementor-widget-button .elementor-button {
    background:linear-gradient(135deg,#d29c34,#b77e15) !important;
    border:1px solid #ba861d !important;
    color:white !important;
    box-shadow:0 4px 12px rgba(162,105,15,.17) !important;
  }
  .phrc-elementor-page .phrc-hero-left .phrc-btn-white.elementor-widget-button .elementor-button {
    background:#fffdfa !important;
    border:1px solid #0c6647 !important;
    color:#095338 !important;
    box-shadow:none !important;
  }
  .phrc-elementor-page .phrc-hero-left .elementor-widget-button .elementor-button {
    font-weight:700;
    white-space:nowrap;
    border-radius:3px !important;
    padding:14px 16px !important;
    font-size:13px !important;
  }
  /* Make the four highlights begin directly after the integrated hero. */
  .phrc-elementor-page .phrc-feature-section > .elementor-container {
    max-width:1380px !important;
    padding:13px 0 15px !important;
  }
  .phrc-elementor-page .phrc-feature-card > .elementor-widget-wrap {
    min-height:78px;
    padding-top:7px;
    padding-bottom:7px;
  }
}

/* Broad brand accuracy refinements across all pages. */
.phrc-elementor-page .phrc-btn-gold.elementor-widget-button .elementor-button {
  background:linear-gradient(135deg,#d29c34,#b77e15) !important;
  border-color:#b67b15 !important;
  color:white !important;
}
.phrc-elementor-page .phrc-btn-white.elementor-widget-button .elementor-button {
  background:#fffefa !important;
  color:#064c34 !important;
  border:1px solid #0a6442 !important;
}
.phrc-elementor-page .phrc-kicker h6 {color:#b48226 !important;}
.phrc-elementor-page .phrc-topic-card .phrc-card-action .elementor-button {
  background:#f5f7f0 !important;
  border:1px solid #d6e2d2 !important;
  border-radius:3px !important;
  color:#0b593b !important;
  padding:7px 12px !important;
  min-width:112px;
}
.phrc-elementor-page .phrc-topic-card .phrc-card-action .elementor-button:hover {
  background:#e8f0e4 !important;
  color:#07482e !important;
}

/* Preserve normal Elementor flow on tablets and phones. */
@media (max-width:1024px) {
  .site-header .header-inner {height:78px !important;}
  .site-header .header-emblem {width:56px !important;height:56px !important;}
  .phrc-elementor-page .phrc-hero-section {background:linear-gradient(118deg,#fffdf6,#f2f8ef) !important;}
  .phrc-elementor-page .phrc-hero-right .phrc-hero-image img {
    position:static !important;
    width:100% !important;
    height:auto !important;
    max-height:none !important;
    -webkit-mask-image:none !important;
    mask-image:none !important;
    object-fit:contain !important;
  }
  .phrc-elementor-page .phrc-hero-left .phrc-btn-gold .elementor-button,
  .phrc-elementor-page .phrc-hero-left .phrc-btn-white .elementor-button {width:auto !important;}
}
@media (max-width:767px) {
  .site-topbar .topbar-inner {font-size:9px;padding-top:7px !important;padding-bottom:7px !important;}
  .site-header .header-inner {height:75px !important;}
  .site-header .header-emblem {width:52px !important;height:52px !important;}
  .site-header .header-brand strong {font-size:11px;}
  .site-header .header-brand small {font-size:7px;letter-spacing:.055em;}
  .phrc-elementor-page .phrc-hero-section > .elementor-container {width:calc(100% - 32px) !important;}
  .phrc-elementor-page .phrc-hero-left > .elementor-widget-wrap {padding:38px 0 12px !important;}
  .phrc-elementor-page .phrc-hero-title h1 {font-size:clamp(34px,8vw,46px)!important;}
  .phrc-elementor-page .phrc-hero-section .phrc-kicker h6 {font-size:9px!important;}
  .phrc-elementor-page .phrc-hero-left .elementor-widget-button {width:auto!important;display:inline-block!important;margin:7px 8px 5px 0!important;}
  .phrc-elementor-page .phrc-hero-left .elementor-widget-button .elementor-button {padding:12px 13px!important;font-size:11px!important;}
  .phrc-elementor-page .phrc-hero-right .phrc-image-caption {font-size:9px !important;line-height:1.35 !important;}
}

/* Elementor edit mode: give edit handles priority over decorative layer. */
.elementor-editor-active .phrc-elementor-page .phrc-hero-left {pointer-events:auto;}

/* Elementor's image widget may wrap the photo in a <figure> when a caption is set.
   Keep the photograph filling the hero while avoiding duplicated giant captions. */
@media (min-width:1025px) {
  .phrc-elementor-page .phrc-hero-right .phrc-hero-image figure,
  .phrc-elementor-page .phrc-hero-right .phrc-hero-image .wp-caption {
    display:block !important;
    width:100% !important;
    height:100% !important;
    margin:0 !important;
    padding:0 !important;
    position:relative !important;
  }
  .phrc-elementor-page .phrc-hero-right .phrc-hero-image figcaption,
  .phrc-elementor-page .phrc-hero-right .phrc-hero-image .widget-image-caption {
    display:none !important; /* The short artwork notice appears in phrc-image-caption instead. */
  }
}
@media (min-width:1025px) and (max-width:1280px) {
  .site-header .header-inner {gap:12px!important;}
  .site-header .header-brand {min-width:225px;}
  .site-header .header-brand strong {font-size:12px;}
  .site-header .header-brand small {font-size:7px;}
  .site-header .header-nav {gap:9px;}
  .site-header .header-nav>a {font-size:11px;}
  .site-topbar .topbar-right > span:first-child {display:none;}
  .phrc-elementor-page .phrc-hero-section > .elementor-container {width:calc(100% - 60px)!important;}
  .phrc-elementor-page .phrc-hero-title h1 {font-size:clamp(36px,3.4vw,47px)!important;}
  .phrc-elementor-page .phrc-hero-right.elementor-column {width:54vw!important;}
}
