/* Cape Oncology — static rebuild of the BeTheme WordPress site */

@font-face {
  font-family: "Century Gothic";
  src: url("../../wp-content/uploads/2018/09/gothic.woff") format("woff"),
       url("../../wp-content/uploads/2018/09/gothic.ttf") format("truetype");
  font-display: swap;
}

:root {
  --sage: #87948f;
  --sage-dark: #687770;
  --sage-pale: #b4c3bb;
  --pink: #e1b7b7;
  --pink-dark: #d29393;
  --mist: #eef0ef;
  --mist-2: #f6f7f7;
  --footer: #726f77;
  --rule: #a5b1ab;
  --page: #fcfcfc;
  --gutter: clamp(20px, 5vw, 60px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--page);
  color: var(--sage);
  font: 17px/30px "Century Gothic", "URW Gothic", "Avant Garde", Futura, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage); }
a:hover { color: var(--sage-dark); }
h1, h2, h3, h4, h5, h6 { color: var(--sage-dark); font-weight: normal; margin: 0 0 15px; }
h1 { font-size: 48px; line-height: 1.1; }
h2 { font-size: 30px; line-height: 30px; }
h3 { font-size: 24px; line-height: 30px; margin-bottom: 11px; }
p { margin: 0 0 15px; }
hr { border: 0; height: 1px; background: var(--pink); margin: 30px 0; }
hr.accent { height: 11px; width: 135px; margin: 0 auto 42px; background: var(--pink); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 10px; top: 10px; }

.button {
  display: inline-block;
  background: var(--sage);
  color: #fff !important;
  font: inherit;
  font-size: 18px;
  line-height: 30px;
  padding: 8px 20px;
  border: 0;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--sage-dark); }

/* ------------------------------------------------------------- header */
#Header { background: #fff; position: relative; z-index: 50; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.header-inner {
  max-width: 1600px; margin: 0 auto; height: 98px;
  display: flex; align-items: center; padding: 0 var(--gutter); position: relative;
}
.logo img { width: 260px; height: auto; }
.header-phone {
  position: absolute; right: var(--gutter); top: 10px;
  display: flex; align-items: center; gap: 8px;
  color: var(--sage); font-weight: bold; font-size: 18px; text-decoration: none;
}
.header-phone svg { width: 22px; height: 22px; fill: var(--pink); }
#Header nav { margin-left: auto; align-self: flex-end; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; }
.menu > li { position: relative; }
.menu > li > a {
  display: block; padding: 0 8px; line-height: 40px;
  color: var(--sage-dark); text-decoration: none; font-size: 15px; white-space: nowrap;
}
.menu > li > a:hover { color: var(--sage-dark); background: var(--mist); }
.menu > li > a[aria-current="page"], .menu > li.current-parent > a { background: var(--pink); color: var(--sage-dark); }
.menu .booking-item > a { color: var(--pink); font-weight: bold; }
.menu .booking-item > a:hover { color: var(--pink-dark); background: none; }
.sub-menu {
  list-style: none; margin: 0; padding: 5px 0;
  position: absolute; left: 0; top: 100%; width: 275px;
  background: var(--mist); box-shadow: 0 6px 18px rgba(0,0,0,.08);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .has-sub.open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 5px 15px; font-size: 14px; line-height: 22px; color: var(--sage-dark); text-decoration: none; }
.sub-menu a:hover, .sub-menu a[aria-current="page"] { background: var(--pink); color: #2e2e2e; }
.menu-toggle { display: none; }

/* ------------------------------------------------------------- home */
.hero { position: relative; background: #333; }
.hero-img { width: 100%; height: clamp(360px, 46.5vw, 892px); object-fit: cover; }
.hero-text {
  position: absolute; left: 0; right: 0; top: 48%;
  max-width: 920px; margin: 0 auto; padding: 0 var(--gutter); color: #fff;
}
.hero-text .quote { font-size: 52px; line-height: 60px; font-style: italic; color: #fff; margin: 0; }
.hero-text .cite { font-size: 24px; line-height: 60px; color: #fff; margin: 0; }

.intro { padding: 47px var(--gutter) 11px; text-align: center; }
.narrow { max-width: 1100px; margin: 0 auto; }
.section-title { font-size: 48px; line-height: 1.1; margin-bottom: 26px; }

.doctors { background: var(--mist-2); }
.doctor { display: grid; grid-template-columns: 60% 40%; align-items: center; }
.doctor-reverse { grid-template-columns: 40% 60%; }
.doctor-reverse .doctor-img { order: 2; }
.doctor-img img { width: 100%; height: 100%; object-fit: cover; }
.doctor-bio { padding: 30px clamp(20px, 4vw, 60px); max-width: 650px; }
.doctor-bio .image_frame { margin-bottom: 20px; }
.doctor-bio .image_frame img { max-height: 120px; width: auto; }
.doctor-bio p { margin-bottom: 15px; }
.doctor-bio .button { margin-top: 10px; }
.doctor-reverse .doctor-bio { justify-self: end; }

.featured-services {
  background: #485159 url("../../wp-content/uploads/2018/09/section-3-background.jpg") left center / cover no-repeat;
}
.featured-inner { margin-left: 47.5%; padding: 60px var(--gutter) 40px 0; max-width: 900px; }
.service-item { margin-bottom: 30px; }
.service-item .icon img { width: auto; height: 60px; margin-bottom: 12px; }
.service-item h3 { font-size: 30px; line-height: 34px; color: #fff; font-weight: bold; }
.service-item p { color: #fff; font-size: 17px; line-height: 24px; max-width: 520px; margin-bottom: 12px; }
.service-item a { color: var(--pink); font-size: 18px; font-weight: bold; text-decoration: none; }
.service-item a:hover { color: #fff; }

/* ------------------------------------------------------------- secondary pages */
.page-banner {
  height: clamp(150px, 16vw, 306px);
  background: #555 url("../../wp-content/uploads/2018/09/secondary-top-image.jpg") center / cover no-repeat;
  display: flex; align-items: center; justify-content: center;
}
.page-banner h1 { color: #fff; text-align: center; margin: 0; padding: 0 var(--gutter); text-shadow: 0 1px 3px rgba(0,0,0,.25); }

.secondary { position: relative; background: var(--mist); overflow: hidden; }
.secondary::after {
  content: ""; position: absolute; top: 0; right: -6%; width: min(48vw, 900px); aspect-ratio: 1;
  background: url("../../wp-content/uploads/2018/09/logo-watermark.png") center / contain no-repeat;
  pointer-events: none; z-index: 0;
}
.secondary-inner {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto; padding: 75px var(--gutter);
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 60px;
}
.layout-single .secondary-inner { grid-template-columns: minmax(0, 1fr); }
.layout-single .content-col { max-width: 900px; }

.content-col h2 {
  position: relative; background: var(--pink); color: #fff; font-weight: bold;
  padding: 22px 30px 22px 0; max-width: 560px; margin-bottom: 34px;
}
.content-col h2::before { content: ""; position: absolute; right: 100%; top: 0; bottom: 0; width: 100vw; background: var(--pink); }
.content-col h2 strong { font-weight: bold; }
.content-col ul, .content-col ol { padding-left: 20px; margin: 0 0 20px; }
.content-col li ul { margin: 0; }
.content-col strong { color: var(--sage-dark); }

/* service pills */
.side-col a, .even-resource, .odd-resource {
  display: block;
  width: 325px; max-width: 100%; min-height: 78px; margin-bottom: 10px;
  padding: 13px 12px 13px 95px; background: no-repeat left center / 325px 78px;
  color: #fff !important; font-size: 17px; line-height: 26px; letter-spacing: .2px; font-weight: bold; text-decoration: none;
}
.side-col p { margin: 0; }
.side-col .odd-service, .odd-resource { background-image: url("../../wp-content/uploads/2019/01/list-image-odd-longer.png"); }
.side-col .even-service, .even-resource { background-image: url("../../wp-content/uploads/2019/01/list-image-even-longer.png"); }
.side-col a:hover, .even-resource:hover, .odd-resource:hover { filter: brightness(.95); }
.side-col a.single-line-service { padding-top: 26px; }
.side-col a.single-line-service br { display: none; }

/* show more */
.show-more-toggle {
  display: block; width: 250px; margin-top: 20px; padding: 10px;
  background: var(--pink); color: #fff; border: 0; font: inherit; font-weight: bold; font-size: 17px; cursor: pointer;
}
.show-more-toggle:hover { background: var(--pink-dark); }

/* doctor profile */
.layout-profile .secondary-inner { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 50px; align-items: start; }
.profile { display: contents; }
.profile-image img { width: 100%; max-width: 380px; margin-left: auto; }

/* team */
.profile-container { display: flex; flex-wrap: wrap; gap: 25px; margin-bottom: 35px; }
.profile-container .image_frame { position: relative; margin: 0; flex: 1 1 340px; max-width: 560px; }
.profile-container .image_frame:only-child { flex: 0 1 300px; }
.profile-container figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px;
  background: rgba(104,119,112,.75); color: #fff; font-size: 15px; line-height: 22px;
}
.profile-container figcaption strong { color: #fff; }
.page-staff-team .content-col > hr { visibility: hidden; margin: 10px 0; }

/* resources */
.patient-resources-text a:not(.even-resource):not(.odd-resource),
.page-patient-information-and-resources .content-col p a:not(.even-resource):not(.odd-resource) {
  color: var(--sage-pale); font-size: 16px; line-height: 26px; font-weight: bold; word-break: break-word;
}
.page-patient-information-and-resources .content-col h3 { margin-bottom: 0; }
.page-patient-information-and-resources .content-col h2 + p, .page-patient-information-and-resources .content-col p:has(.odd-resource) { margin: 0; }
.second-resource-heading { margin-top: 36px !important; }

/* video */
.video { position: relative; max-width: 700px; aspect-ratio: 16 / 9; margin-bottom: 20px; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* contact */
.layout-contact .secondary-inner { grid-template-columns: minmax(0, 1fr); }
.layout-contact .content-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 60px; }
.layout-contact .content-col > h2 { grid-column: 1 / -1; }
.contact-left table { border-collapse: collapse; }
.contact-left td { vertical-align: top; font-size: 18px; line-height: 30px; padding: 0 0 20px; }
.contact-left td:first-child { padding-right: 25px; color: var(--sage-dark); white-space: nowrap; }
.map iframe { display: block; width: 100%; height: 500px; border: 0; }

/* forms */
.site-form label { display: block; font-size: 16px; color: var(--sage-dark); margin-bottom: 12px; }
.site-form input, .site-form textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px;
  border: 1px solid #d7ddda; background: #fff; color: #555; font: inherit; font-size: 16px; line-height: 22px;
}
.site-form input:focus, .site-form textarea:focus { outline: 2px solid var(--pink); outline-offset: 0; border-color: var(--pink); }
.site-form textarea { height: 90px; resize: vertical; }
.site-form .hp { position: absolute; left: -9999px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(40,44,42,.6); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-box { position: relative; background: #fff; width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; padding: 30px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal-close { position: absolute; top: 6px; right: 10px; border: 0; background: none; font-size: 32px; line-height: 1; color: var(--sage); cursor: pointer; }
.modal-note { font-size: 14px; line-height: 22px; }
body.modal-open { overflow: hidden; }

/* ------------------------------------------------------------- footer */
#Footer { background: var(--footer); color: #fff; }
.footer-widgets {
  max-width: 1200px; margin: 0 auto; padding: 60px var(--gutter) 40px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px;
}
.footer-contact { border-right: 1px solid var(--rule); padding-right: 40px; }
.footer-contact h4 { color: #aebcb5; font-size: 24px; line-height: 24px; margin-bottom: 30px; }
.footer-contact ul { list-style: none; margin: 0; padding: 0; }
.footer-contact li { display: flex; gap: 18px; margin-bottom: 16px; font-size: 15px; line-height: 24px; }
.footer-contact svg { flex: 0 0 26px; width: 26px; height: 26px; fill: var(--pink); }
#Footer a { color: var(--pink); text-decoration: none; }
#Footer a:hover { color: var(--pink-dark); }
.footer-about img { width: 260px; margin-bottom: 20px; }
.footer-about p { font-size: 15px; line-height: 24px; }
.footer-copy { border-top: 1px solid var(--rule); text-align: center; padding: 20px var(--gutter); font-size: 13px; line-height: 22px; }
.footer-copy p { margin: 6px 0 0; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1239px) {
  .menu > li > a { font-size: 14px; padding: 0 6px; }
  .logo img { width: 220px; }
  .hero-text { top: 30%; }
  .hero-text .quote { font-size: 40px; line-height: 48px; }
  .doctor, .doctor-reverse { grid-template-columns: 1fr; }
  .doctor-reverse .doctor-img { order: 0; }
  .doctor-bio, .doctor-reverse .doctor-bio { justify-self: center; padding: 30px 20px; }
  .featured-inner { margin-left: 40.5%; }
}

@media (max-width: 1099px) {
  .header-inner { height: 98px; }
  .menu-toggle {
    display: block; margin-left: auto; margin-top: 30px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative;
  }
  .menu-toggle span:first-child, .menu-toggle span:first-child::before, .menu-toggle span:first-child::after {
    position: absolute; left: 10px; width: 24px; height: 3px; background: var(--pink); content: ""; transition: .2s;
  }
  .menu-toggle span:first-child { top: 20px; }
  .menu-toggle span:first-child::before { left: 0; top: -8px; }
  .menu-toggle span:first-child::after { left: 0; top: 8px; }
  .menu-toggle[aria-expanded="true"] span:first-child { background: transparent; }
  .menu-toggle[aria-expanded="true"] span:first-child::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:first-child::after { top: 0; transform: rotate(-45deg); }
  #Header nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; }
  .menu { display: none; flex-direction: column; background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,.08); padding: 10px 0; }
  .menu.open { display: flex; }
  .menu > li > a { line-height: 44px; padding: 0 var(--gutter); font-size: 16px; }
  .sub-menu { position: static; width: auto; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; }
  .has-sub.open > .sub-menu { display: block; }
  .has-sub:hover > .sub-menu { display: none; }
  .has-sub.open:hover > .sub-menu { display: block; }
  .sub-menu a { padding: 8px calc(var(--gutter) + 20px); font-size: 15px; }
  .header-phone { top: 8px; font-size: 16px; }

  .secondary-inner, .layout-profile .secondary-inner { grid-template-columns: 1fr; gap: 30px; padding: 50px var(--gutter); }
  .profile-image img { margin: 0; }
  .secondary::after { width: 60vw; opacity: .6; }
  .layout-contact .content-col { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  body { font-size: 16px; line-height: 27px; }
  .header-inner { height: 150px; flex-wrap: wrap; align-content: flex-start; padding-top: 10px; }
  .logo img { width: 230px; }
  .header-phone { left: var(--gutter); right: auto; top: 105px; }
  .menu-toggle { position: absolute; right: var(--gutter); top: 30px; margin: 0; }
  .hero-img { height: 420px; }
  .hero-text { top: 50px; text-align: center; }
  .hero-text .quote { font-size: 30px; line-height: 36px; text-shadow: 1px 1px #000; }
  .hero-text .cite { font-size: 24px; line-height: 30px; text-shadow: 1px 1px #000; }
  .intro { padding: 50px 15px 10px; }
  .section-title { font-size: 40px; }
  .featured-inner { margin-left: 0; padding: 50px 25px 10px; background: rgba(40,45,50,.45); }
  .service-item h3 { font-size: 28px; }
  .content-col h2 { font-size: 26px; line-height: 30px; padding-right: 20px; }
  .secondary::after { display: none; }
  .footer-widgets { grid-template-columns: 1fr; gap: 30px; }
  .footer-contact { border: 0; padding-right: 0; }
  .contact-left td { font-size: 16px; display: block; padding: 0; }
  .contact-left tr { display: block; margin-bottom: 14px; }
  .map iframe { height: 360px; }
}
