/*
Theme Name: Blocksy Child
Theme URI: https://www.premierhospital.org/
Description: Premier Hospital child theme for Blocksy. Page sections are Elementor containers. Navy and olive, Corbel titles and Calibri body.
Author: Premier Hospital
Template: blocksy
Version: 1.0.0
Text Domain: blocksy-child
*/

:root {
  --ph-navy: #182860;
  --ph-navy-deep: #101a40;
  --ph-olive: #a0a818;
  --ph-olive-deep: #7d8412;
  --ph-cream: #f7f5ef;
  --ph-ink: #1c2433;
  --ph-line: #e4e0d4;
}

body {
  background: var(--ph-cream);
  color: var(--ph-ink);
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
}

h1, h2, h3, h4, .ph-brand, .ph-logo-word {
  font-family: Corbel, Candara, Carlito, "Segoe UI", sans-serif;
}

#header,
footer.ct-footer,
.ct-footer,
#footer,
.hero-section,
.entry-header {
  display: none !important;
}

.elementor-heading-title {
  color: var(--ph-navy);
  font-family: Corbel, Candara, Carlito, "Segoe UI", sans-serif;
}

.elementor-widget-text-editor,
.elementor-widget-html {
  font-size: 1.05rem;
  line-height: 1.55;
}

.elementor-widget-image img,
.ph-wide {
  width: 100%;
  height: auto;
  display: block;
}

.ph-package {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: #101a40;
  border-radius: 12px;
}
.ph-package a {
  font-weight: 700;
  color: #fff;
}
.ph-package span {
  display: block;
  margin-top: 4px;
  color: #d7d3c6;
  font-size: 0.92rem;
}

.ph-header {
  background: #fff;
  border-bottom: 4px solid var(--ph-olive);
  position: sticky;
  top: 0;
  z-index: 30;
}

.ph-header-inner,
.ph-footer-inner,
.ph-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.ph-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.ph-logo {
  height: 88px;
  width: auto;
  display: block;
}

.ph-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: flex-end;
  font-weight: 700;
}

.ph-contacts a {
  color: var(--ph-navy);
  text-decoration: none;
  font-size: 1.05rem;
}

.ph-contacts .ph-emergency {
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.ph-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ph-navy);
  color: var(--ph-cream) !important;
  font-weight: 700;
  text-decoration: none;
}

.ph-btn.olive {
  background: var(--ph-olive);
  color: var(--ph-navy-deep) !important;
}

.ph-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 0 12px;
}

.ph-nav a {
  color: var(--ph-navy);
  text-decoration: none;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 999px;
}

.ph-nav a:hover,
.ph-nav a[aria-current="page"] {
  background: var(--ph-cream);
}

.ph-footer {
  background: var(--ph-navy-deep);
  color: #f4f1ea;
  padding: 40px 0 28px;
  margin-top: 20px;
}

.ph-footer a { color: #fff; }

.ph-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
}

.ph-footer h2 {
  color: var(--ph-olive);
  font-size: 1rem;
  margin: 0 0 10px;
}

.ph-footer ul { list-style: none; margin: 0; padding: 0; }
.ph-footer li { margin: 6px 0; }

.ph-social { display: flex; gap: 10px; margin-top: 12px; }
.ph-social a {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
}

.ph-float {
  position: fixed;
  z-index: 40;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(16, 26, 64, .25);
}
.ph-float.left { left: 12px; background: var(--ph-navy); color: #fff; }
.ph-float.right { right: 12px; background: #1f8a4c; color: #fff; }

.ph-prose { max-width: 760px; }
.ph-prose h2 { color: var(--ph-navy); margin-top: 1.4em; }
.ph-wide { width: 100%; height: auto; display: block; background: var(--ph-cream); }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ph-card {
  background: #fff;
  border: 1px solid var(--ph-line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}
.ph-card img { width: 100%; height: auto; display: block; background: var(--ph-cream); object-fit: contain; }
.ph-card strong { display: block; padding: 12px 14px 14px; color: var(--ph-navy); }
.ph-person { display: flex; gap: 12px; align-items: center; padding: 12px; }
.ph-person img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }

.ph-hero-copy { background: #fff; border-bottom: 1px solid var(--ph-line); padding: 28px 0 32px; }
.ph-kicker { color: var(--ph-olive-deep); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; }
.ph-hero-copy h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: .2em 0; color: var(--ph-navy); }
.ph-prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.ph-prices div { border: 1px solid var(--ph-line); border-radius: 10px; padding: 10px 12px; background: var(--ph-cream); }
.ph-slide { display: none; }
#ph-s1:checked ~ .ph-slides .ph-slide-1,
#ph-s2:checked ~ .ph-slides .ph-slide-2,
#ph-s3:checked ~ .ph-slides .ph-slide-3,
#ph-s4:checked ~ .ph-slides .ph-slide-4,
#ph-s5:checked ~ .ph-slides .ph-slide-5 { display: block; }
.ph-slider input { position: absolute; opacity: 0; pointer-events: none; }
.ph-dots { display: flex; gap: 8px; margin-top: 14px; }
.ph-dots label {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--ph-line);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 700; color: var(--ph-navy);
}

.ph-form { display: grid; gap: 12px; max-width: 640px; }
.ph-form label { font-weight: 700; color: var(--ph-navy); display: grid; gap: 6px; }
.ph-form input, .ph-form select, .ph-form textarea {
  font: inherit; padding: 12px; border-radius: 10px; border: 1px solid var(--ph-line); width: 100%;
}
.ph-notice { background: #fff; border: 1px solid var(--ph-line); border-radius: 16px; padding: 16px; margin: 12px 0; }
.ph-announce { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }

@media (max-width: 800px) {
  .ph-logo { height: 68px; }
  .ph-footer-grid, .ph-prices { grid-template-columns: 1fr 1fr; }
  .ph-header-top { align-items: flex-start; }
  .ph-contacts { justify-content: flex-start; }
  .ph-contacts .ph-emergency { font-size: 1.05rem; }
  .ph-float { bottom: 10px; max-width: calc(50% - 16px); }
  .home .ph-main, .ph-has-float { padding-bottom: 72px; }
}
