/*
Theme Name: ITP
Description: Integrated Telehealth Partners is now PMC Telehealth. One hardcoded landing page (index.php).
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Author: XV Development Team
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: itp
*/

/* Fonts: self-hosted variable fonts (SIL OFL, see assets/fonts-license.txt). */
@font-face {
  font-family: "Montserrat";
  src: url("assets/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("assets/public-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #174067;
  --ink: #131f3e;
  --teal: #00737d;
  --teal-bg: #00727c;
  --sky: #b0f3ff;
  --gold: #ffcd57;
  --ground: #f4f5f8;
  --edge: clamp(16px, 8.333vw, 120px);
  --font: "Montserrat", system-ui, sans-serif;
  --font-ui: "Public Sans", system-ui, sans-serif;
}

/* ---- Base ---- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 100px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--navy);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p,
ul,
address {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.hero :focus-visible,
.story :focus-visible,
.contact :focus-visible {
  outline-color: var(--gold);
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 16px;
  background: #fff;
  color: var(--navy);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 32px;
}

/* Section content stays inside the 1440px design frame; only section backgrounds go full width. */
.container {
  max-width: 1440px;
  margin-inline: auto;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15.5px 28.5px;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font: 600 15px/22.5px var(--font-ui);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover {
  background: #005e67;
}

.btn--small {
  padding: 9.5px 22.5px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 21px;
}

.btn--light {
  border: 1px solid #3b5998;
  background: #fff;
  color: var(--navy);
}

.btn--light:hover {
  background: var(--sky);
}

.btn--row {
  flex: none;
  width: 160px;
}

.btn[hidden] {
  display: none;
}

/* ---- Header & notice ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px var(--edge);
  background: var(--ground);
  box-shadow: 0 10px 30px -18px rgba(19, 31, 62, 0.35);
}

.admin-bar .site-header {
  top: var(--wp-admin--admin-bar--height, 0px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 65px;
  padding-block: 11.5px;
}

/* Fixed 44px height (not the 43.97px the 105px width implies) so the header is a whole 99px and
   every section below starts on a whole pixel - fractional section edges show seam lines. */
.site-header__logo img,
.site-footer__brand img {
  width: auto;
  height: 44px;
}

.notice {
  padding: 16px var(--edge);
  border-bottom: 1px solid #b9c5de;
  background: #fff9b2;
  color: var(--ink);
  font: 400 15px/21px var(--font-ui);
  text-align: center;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

/*
 * Wider than 1440px the artwork stops at the container edges. Carry those edges out to the
 * viewport so it doesn't end in a hard line: left, the light-blue wave strip; right, the photo's
 * edge colours (sampled from its last pixel column), then the wave line and navy.
 *
 * The right extension starts 1px inside the container, over the photo's last column. Abutting
 * them left a seam: at odd viewport widths (e.g. with a scrollbar) the edge falls on a half
 * pixel, both edges half-cover it and the navy behind shows through as a thin vertical line.
 */
@media (min-width: 1441px) {
  .hero::before,
  .hero::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    pointer-events: none;
  }
}

.hero::before {
  left: 0;
  right: calc(50% + 720px);
  background: linear-gradient(var(--sky) 24px, var(--navy) 25px);
}

.hero::after {
  left: calc(50% + 719px);
  right: 0;
  background: linear-gradient(
    #8dd7fb 0,
    #d2f6fd 104px,
    #f2fdfe 165px,
    #fefefe 221px,
    #fefefe 281px,
    #dbdbe4 314px,
    #a6b5ca 346px,
    #7e96b7 375px,
    #6487ad 396px,
    #4d77a1 423px,
    #45709a 446px,
    #44769b 456px,
    #3c7096 483px,
    #357495 561px,
    var(--sky) 562px 564.5px,
    var(--navy) 564.5px
  );
}

.hero__inner {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 40px;
  min-height: 580px;
  padding: 80px clamp(24px, 5.556vw, 80px);
}

/* Artwork canvas: the Figma frame is 1440 x 580; everything inside is placed in % of it. */
.hero__art {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  aspect-ratio: 1440 / 580;
  pointer-events: none;
}

.hero__wave {
  position: absolute;
  top: -20.167%;
  left: -0.347%;
  width: 100.382%;
  max-width: none;
  height: 117.5%;
}

.hero__photo {
  position: absolute;
  top: -27.409%;
  left: 8.333%;
  width: 91.667%;
  height: 124.346%;
  -webkit-mask: url("assets/hero-mask.svg") 0 0 / 100% 100% no-repeat;
  mask: url("assets/hero-mask.svg") 0 0 / 100% 100% no-repeat;
}

.hero__photo img {
  position: absolute;
  top: -28.437%;
  left: -1.239%;
  width: 101.259%;
  max-width: none;
  height: 139%;
  object-fit: cover;
}

.hero__logos {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.hero__logos img:first-child {
  width: 122px;
}

.hero__logos img:last-child {
  width: 128px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 564px;
  letter-spacing: -0.64px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 500;
  line-height: 48px;
}

.hero h1 strong {
  font-weight: 700;
}

.hero__text p {
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
}

/* ---- Story: circle photo + "part of PMC since 2019" ---- */

.story {
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.story__inner {
  --circle: clamp(320px, 43.333vw, 624px);
  display: flex;
  align-items: flex-start;
  gap: clamp(32px, 5.556vw, 80px);
  padding: 80px clamp(24px, 2.778vw, 40px) 0 clamp(24px, 7.014vw, 101px);
}

/* The circle runs past the bottom of the section and is cut off by it, as in the design. */
.story__media {
  flex: none;
  align-self: flex-end;
  width: var(--circle);
  height: calc(var(--circle) * 0.798);
  height: round(calc(var(--circle) * 0.798), 1px); /* whole pixels: see the logo note above */
}

.story__circle {
  position: relative;
  width: var(--circle);
  height: var(--circle);
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: -25px -12px 0 26px var(--sky);
}

.story__circle img {
  position: absolute;
  top: -8.489%;
  left: 50%;
  width: 135.897%;
  max-width: none;
  height: 90.545%;
  object-fit: cover;
  transform: translateX(-50%);
}

.story__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 41px;
  padding: 60px clamp(0px, 2.778vw, 40px) 60px 0;
  text-align: right;
}

.story h2 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.219;
}

.story p {
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
}

/* ---- Contact ---- */

.contact {
  background: var(--teal-bg);
  color: #fff;
}

.contact__inner {
  display: flex;
  gap: 24px;
  padding: 104px var(--edge);
}

.contact__intro {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 310px;
  padding-right: clamp(0px, 5.208vw, 75px);
}

.contact__lead {
  margin-top: 1.219em;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.219;
}

.contact__name {
  flex: 1;
  display: flex;
  align-items: center;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.219;
}

.contact__reach {
  flex: 0 0 49.17%; /* 590px of the 1200px row at 1440 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.contact__reach h2 {
  color: var(--gold);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.219;
}

.contact__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
  list-style: none;
}

.contact__row {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 62px;
  padding: 4px 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
}

.contact__row > img {
  flex: none;
  width: 34px;
  height: 34px;
}

.contact__text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.contact__text--small {
  font-size: 12px;
}

/* ---- Footer ---- */

.site-footer {
  padding-inline: var(--edge);
  background: #fff;
  color: var(--navy);
}

.site-footer .wrap {
  padding-block: 48px 32px;
}

.site-footer__cols {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 280px;
  max-width: 100%;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
}

.site-footer__contact a {
  text-decoration: none;
}

.site-footer__contact a:hover,
.site-footer__legal a:hover {
  text-decoration: underline;
}

.site-footer__contact .site-footer__small {
  font-size: 12px;
}

.site-footer__small a {
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  font: 400 14px/21px var(--font-ui);
}

.site-footer__bottom p {
  color: #20376c;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

.site-footer__legal a {
  color: #8fa3c8;
  text-decoration: none;
}

/* ---- 404 ---- */

.not-found {
  padding: 120px var(--edge);
}

.not-found h1 {
  margin-bottom: 16px;
  font-size: 42px;
  line-height: 48px;
}

.not-found p + p {
  margin-top: 32px;
}

/* ---- Tablet ---- */

@media (max-width: 1023px) {
  .story__inner {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 56px;
    padding: 64px 24px 0;
  }

  .story__media {
    align-self: center;
  }

  .story__text {
    align-items: flex-start;
    gap: 24px;
    padding: 0;
    text-align: left;
  }
}

/* Contact stacks earlier: its two columns need the full desktop width. */
@media (max-width: 1199px) {
  .contact__inner {
    flex-direction: column;
    gap: 48px;
    padding-block: 72px;
  }

  .contact__intro {
    min-height: 0;
    padding-right: 0;
  }

  .contact__lead {
    margin-top: 0;
  }

  .contact__reach {
    flex-basis: auto;
  }
}

/* ---- Mobile ---- */

@media (max-width: 767px) {
  .wrap {
    padding-inline: 0;
  }

  .hero__inner {
    min-height: 0;
    gap: 32px;
    padding: calc(40.278vw + 32px) 24px 48px;
  }

  .hero__logos {
    gap: 32px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 38px;
  }

  .hero__text p {
    font-size: 18px;
    line-height: 28px;
  }

  .story__inner {
    --circle: min(84vw, 420px);
  }

  .story h2 {
    font-size: 24px;
  }

  .contact__lead {
    font-size: 22px;
  }

  .contact__name {
    font-size: 28px;
  }

  .contact__row {
    flex-wrap: wrap;
    padding: 16px;
  }

  .btn--row {
    width: 100%;
  }

  .site-footer__cols {
    flex-direction: column;
  }
}
