/* ============================================================
   DR. JONATHAN BROYLES
   Main Stylesheet
   ============================================================ */


/* ============================================================
   1. ROOT / GLOBAL VARIABLES
   ============================================================ */

:root {
  --navy: #10213a;
  --navy-dark: #0a1729;
  --navy-light: #1b3457;

  --red: #9e1b32;
  --red-dark: #7f1428;
  --red-light: #b52a43;

  --white: #ffffff;
  --off-white: #f8f9fb;
  --light-gray: #eef1f5;
  --medium-gray: #667085;
  --dark-gray: #344054;
  --text: #1f2937;

  --border: #dde2e8;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;

  --max-width: 1200px;

  --shadow-light: 0 5px 24px rgba(16, 33, 58, 0.06);
  --shadow-medium: 0 10px 35px rgba(16, 33, 58, 0.10);

  --transition: 0.25s ease;
}


/* ============================================================
   2. RESET
   ============================================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

section {
  scroll-margin-top: 90px;
}


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  color: var(--navy);
}

h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.95;
  margin-bottom: 24px;
  font-weight: 700;
}

h2 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: 20px;
  font-weight: 700;
}

h3 {
  font-size: 1.8rem;
  line-height: 1.15;
  margin-bottom: 14px;
}

h4 {
  font-size: 1.3rem;
  line-height: 1.2;
}

p {
  margin-bottom: 20px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;

  font-family: var(--sans);
  font-size: 0.73rem;
  font-weight: 600;

  text-transform: uppercase;
  letter-spacing: 2.1px;

  color: var(--red);
}


/* ============================================================
   4. HEADER / NAVIGATION
   ============================================================ */

header {
  background: var(--white);
}

.main-nav {
  width: min(var(--max-width), calc(100% - 64px));
  min-height: 90px;

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 40px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo {
  width: 310px;
  height: auto;
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  align-items: center;
  gap: 31px;
}

.nav-links li {
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;

  font-size: 0.88rem;
  font-weight: 600;

  color: var(--navy);

  text-decoration: none;

  padding: 33px 0 30px;

  transition: color var(--transition);
}

.nav-links a::after {
  content: "";

  position: absolute;
  left: 0;
  right: 100%;
  bottom: 23px;

  height: 2px;

  background: var(--red);

  transition: right var(--transition);
}

.nav-links a:hover {
  color: var(--red);
}

.nav-links a:hover::after {
  right: 0;
}


/* ============================================================
   5. HERO
   ============================================================ */

.hero {
  width: min(var(--max-width), calc(100% - 64px));

  margin: 0 auto;
  padding: 76px 0 86px;

  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 75px;
}

.hero-content {
  max-width: 690px;
}

.hero-text {
  max-width: 640px;

  margin-bottom: 34px;

  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  font-weight: 300;

  color: var(--medium-gray);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 49px;

  padding: 13px 24px;

  border: 2px solid var(--red);
  border-radius: 3px;

  background: var(--red);
  color: var(--white);

  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.4px;

  text-decoration: none;

  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.btn:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);

  transform: translateY(-2px);
}

.btn.alt {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn.alt:hover {
  background: var(--navy);
  color: var(--white);
}

.photo {
  position: relative;

  min-height: 480px;

  overflow: hidden;

  border-radius: 2px;

  box-shadow: var(--shadow-medium);
}

.photo::before {
  content: "";

  position: absolute;
  z-index: -1;

  width: 100%;
  height: 100%;

  top: 18px;
  left: 18px;

  background: var(--navy);
}

.photo img {
  width: 100%;
  height: 100%;

  min-height: 480px;

  object-fit: cover;
  object-position: center top;
}


/* ============================================================
   6. STATS
   ============================================================ */

.stats {
  width: 100%;

  padding: 38px max(32px, calc((100vw - var(--max-width)) / 2));

  background: var(--navy);

  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  position: relative;

  min-height: 168px;

  padding: 20px 30px;

  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-item:not(:last-child)::after {
  content: "";

  position: absolute;

  right: 0;
  top: 18%;

  width: 1px;
  height: 64%;

  background: rgba(255, 255, 255, 0.18);
}

.stat-icon {
  margin-bottom: 9px;

  font-size: 1.55rem;

  color: #d6a5ae;
}

.stats h2 {
  margin-bottom: 5px;

  font-family: var(--serif);
  font-size: 2rem;

  color: var(--white);
}

.stats p {
  max-width: 220px;

  margin: 0;

  font-size: 0.8rem;
  line-height: 1.5;

  color: rgba(255, 255, 255, 0.69);
}


/* ============================================================
   7. GENERIC SECTION HEADING
   ============================================================ */

.section-heading {
  max-width: 720px;

  margin: 0 auto 46px;

  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  margin-right: 0;

  text-align: left;
}

.section-heading p {
  font-size: 1rem;
  line-height: 1.75;

  color: var(--medium-gray);
}


/* ============================================================
   8. ABOUT SECTION
   ============================================================ */

.content {
  width: min(860px, calc(100% - 64px));

  margin: 0 auto;
  padding: 100px 0;
}

.content > p {
  font-size: 1rem;
  line-height: 1.85;

  color: var(--dark-gray);
}

.content > p:first-of-type {
  font-size: 1.08rem;
  color: var(--text);
}


/* ============================================================
   9. AREAS OF SERVICE
   ============================================================ */

.areas {
  padding: 95px 32px 105px;

  background: var(--off-white);

  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}

.area-grid {
  max-width: var(--max-width);

  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.area-card {
  min-height: 300px;

  padding: 38px 28px 34px;

  background: var(--white);

  border: 1px solid var(--border);
  border-radius: 5px;

  text-align: center;

  box-shadow: var(--shadow-light);

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.area-card:hover {
  transform: translateY(-6px);

  box-shadow: var(--shadow-medium);

  border-color: rgba(158, 27, 50, 0.25);
}

.area-card > i {
  margin-bottom: 23px;

  font-size: 2.25rem;

  color: var(--red);
}

.area-card h3 {
  font-size: 1.7rem;

  margin-bottom: 13px;
}

.area-card p {
  margin: 0;

  font-size: 0.89rem;
  line-height: 1.7;

  color: var(--medium-gray);
}


/* ============================================================
   10. LEADERSHIP PILLARS
   ============================================================ */

.cards {
  max-width: var(--max-width);

  margin: 0 auto;
  padding: 105px 32px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 31px;
}

.cards article {
  padding: 40px 34px 42px;

  border-top: 4px solid var(--red);

  background: var(--white);

  box-shadow: var(--shadow-light);

  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.cards article:hover {
  transform: translateY(-5px);

  box-shadow: var(--shadow-medium);
}

.card-icon {
  width: 58px;
  height: 58px;

  margin-bottom: 23px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: rgba(158, 27, 50, 0.08);

  color: var(--red);

  font-size: 1.3rem;
}

.cards h3 {
  margin-bottom: 16px;

  font-size: 1.9rem;
}

.cards p {
  margin: 0;

  font-size: 0.9rem;
  line-height: 1.75;

  color: var(--medium-gray);
}


/* ============================================================
   FEATURE SECTIONS
   Research / Teaching / Speaking
   ============================================================ */

.feature-section {
  width: min(var(--max-width), calc(100% - 64px));
  margin: 0 auto;
  padding: 70px 0;

  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 55px;
}

.feature-section + .feature-section {
  border-top: 1px solid var(--light-gray);
}


/* IMAGE */

.feature-image {
  height: 285px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow-light);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* CONTENT */

.feature-content {
  max-width: 650px;
}

.feature-content h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.feature-content p {
  margin-bottom: 18px;

  color: var(--medium-gray);
  line-height: 1.8;
}


/* ALTERNATING LAYOUT */

.alt-section {
  grid-template-columns: 1.2fr 0.8fr;
}

.alt-section .feature-image {
  grid-column: 2;
  grid-row: 1;
}

.alt-section .feature-content {
  grid-column: 1;
  grid-row: 1;
}


/* TABLET / MOBILE */

@media (max-width: 780px) {

  .feature-section,
  .alt-section {
    width: calc(100% - 48px);
    padding: 55px 0;

    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature-image,
  .alt-section .feature-image {
    grid-column: 1;
    grid-row: 1;

    height: 260px;
  }

  .feature-content,
  .alt-section .feature-content {
    grid-column: 1;
    grid-row: 2;
  }

}
/* ============================================================
   12. CONTACT / CALL TO ACTION
   ============================================================ */

.contact-section {
  padding: 100px 32px;

  background:
    linear-gradient(
      rgba(16, 33, 58, 0.97),
      rgba(16, 33, 58, 0.97)
    );
}

.contact-content {
  max-width: 790px;

  margin: 0 auto;

  text-align: center;
}

.contact-content .eyebrow {
  color: #d8a4ad;
}

.contact-content h2 {
  color: var(--white);
}

.contact-content p {
  max-width: 650px;

  margin: 0 auto 32px;

  font-size: 1rem;
  line-height: 1.75;

  color: rgba(255, 255, 255, 0.72);
}

.contact-content .btn {
  background: var(--red);
  border-color: var(--red);
}


/* ============================================================
   13. FOOTER
   ============================================================ */

.site-footer {
  background: var(--navy-dark);
  color: var(--white);
}


/* MAIN FOOTER AREA */

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 65px 32px 48px;

  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 70px;

  align-items: start;
}


/* PHOTO / BRAND */

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-photo {
  width: 210px;
  height: 210px;

  object-fit: cover;
  object-position: center top;

  border-radius: 50%;

  margin-bottom: 24px;

  border: 4px solid rgba(255,255,255,.12);

  box-shadow:
    0 12px 30px rgba(0,0,0,.25);
}


/* TAGLINE */

.footer-tagline {
  margin: 0;

  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;

  line-height: 1.2;

  color: var(--white);
}

.footer-tagline span {
  display: inline-block;

  padding-right: 8px;

  border-right: 1px solid rgba(255,255,255,.25);
}

.footer-tagline span:last-child {
  border-right: none;
  padding-right: 0;
}


/* HEADINGS */

.site-footer h4 {
  margin: 0 0 18px;

  font-family: var(--serif);
  font-size: 1.5rem;

  color: var(--white);
}


/* FOCUS + CONTACT */

.footer-focus,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-focus p,
.footer-contact p {
  margin: 0 0 7px;

  color: rgba(255,255,255,.65);

  font-size: 0.86rem;
  line-height: 1.6;
}

.footer-contact strong {
  color: var(--white);
}

.site-footer a {
  color: rgba(255,255,255,.68);

  text-decoration: none;

  transition:
    color var(--transition),
    transform var(--transition);
}

.site-footer a:hover {
  color: var(--white);
  transform: translateX(3px);
}


/* BOTTOM / DISCLAIMER */

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;

  padding: 26px 32px 30px;

  border-top: 1px solid rgba(255,255,255,.12);

  text-align: center;
}

.footer-disclaimer {
  max-width: 850px;

  margin: 0 auto 14px;

  font-size: 0.68rem;
  line-height: 1.65;

  color: rgba(255,255,255,.38);
}

.footer-copyright {
  margin: 0;

  font-size: 0.72rem;

  color: rgba(255,255,255,.48);
}


/* TABLET */

@media (max-width: 850px) {

  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
  }

  .footer-photo {
    width: 180px;
    height: 180px;
  }

}


/* MOBILE */

@media (max-width: 650px) {

  .footer-inner {
    grid-template-columns: 1fr;

    padding: 50px 24px 38px;

    gap: 38px;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .footer-focus,
  .footer-contact {
    align-items: center;
    text-align: center;
  }

  .footer-tagline {
    justify-content: center;
  }

  .footer-bottom {
    padding: 24px;
  }

}


/* ============================================================
   14. SELECTION / ACCESSIBILITY
   ============================================================ */

::selection {
  background: var(--red);
  color: var(--white);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(158, 27, 50, 0.35);
  outline-offset: 4px;
}


/* ============================================================
   15. TABLET
   ============================================================ */

@media (max-width: 1000px) {

  .main-nav {
    width: calc(100% - 40px);
    gap: 25px;
  }

  .logo {
    width: 250px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 0.8rem;
  }


  .hero {
    width: calc(100% - 50px);

    grid-template-columns: 1fr 0.8fr;
    gap: 45px;

    padding: 60px 0 72px;
  }


  .stats {
    grid-template-columns: repeat(2, 1fr);

    padding-left: 25px;
    padding-right: 25px;
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }


  .area-grid {
    grid-template-columns: repeat(2, 1fr);

    max-width: 800px;
  }


  .cards {
    grid-template-columns: 1fr;

    max-width: 760px;
  }


  .feature-section {
    grid-template-columns: 0.65fr 1.35fr;

    gap: 45px;
  }


  .footer-inner {
    grid-template-columns: 1.6fr 1fr 1fr;
  }

  .footer-contact {
    grid-column: 2 / 4;
  }

}


/* ============================================================
   16. MOBILE NAV / SMALL TABLET
   ============================================================ */

@media (max-width: 780px) {

  .main-nav {
    width: calc(100% - 40px);

    padding: 17px 0;

    flex-direction: column;
    align-items: flex-start;

    gap: 14px;
  }

  .logo {
    width: 280px;
    max-width: 100%;
  }

  .nav-links {
    width: 100%;

    gap: 0;

    flex-wrap: wrap;
  }

  .nav-links li {
    margin-right: 22px;
  }

  .nav-links a {
    display: block;

    padding: 7px 0;
  }

  .nav-links a::after {
    bottom: 2px;
  }


  .hero {
    width: calc(100% - 40px);

    grid-template-columns: 1fr;

    padding: 55px 0 70px;

    gap: 45px;
  }

  .hero-content {
    max-width: 100%;
  }

  .photo {
    min-height: 480px;

    width: min(100%, 520px);

    margin: 0 auto;
  }

  .photo img {
    min-height: 480px;
  }


  .content {
    width: calc(100% - 48px);

    padding: 78px 0;
  }


  .areas {
    padding: 75px 24px 80px;
  }


  .cards {
    padding: 80px 24px;
  }


  .feature-section,
  .alt-section {
    width: calc(100% - 48px);

    padding: 78px 0;

    grid-template-columns: 1fr;

    gap: 35px;
  }

  .feature-icon,
  .alt-section .feature-icon {
    grid-column: 1;
    grid-row: 1;

    min-height: 250px;
  }

  .feature-content,
  .alt-section .feature-content {
    grid-column: 1;
    grid-row: 2;
  }


  .contact-section {
    padding: 78px 24px;
  }


  .footer-inner {
    grid-template-columns: 1fr 1fr;

    gap: 42px;

    padding: 55px 28px 42px;
  }

  .footer-brand {
    grid-column: 1 / 3;
  }

  .footer-contact {
    grid-column: auto;
  }

}


/* ============================================================
   17. PHONE
   ============================================================ */

@media (max-width: 550px) {

  body {
    font-size: 15px;
  }


  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.55rem;
  }


  .main-nav {
    width: calc(100% - 30px);
  }

  .logo {
    width: 250px;
  }

  .nav-links {
    gap: 4px 0;
  }

  .nav-links li {
    margin-right: 17px;
  }

  .nav-links a {
    font-size: 0.76rem;
  }


  .hero {
    width: calc(100% - 32px);

    padding-top: 45px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .photo,
  .photo img {
    min-height: 400px;
  }


  .stats {
    grid-template-columns: 1fr;

    padding: 25px 24px;
  }

  .stat-item {
    min-height: 145px;

    padding: 24px 15px;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .stat-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }


  .content {
    width: calc(100% - 38px);

    padding: 70px 0;
  }


  .area-grid {
    grid-template-columns: 1fr;
  }

  .area-card {
    min-height: 0;
  }


  .cards {
    padding: 70px 19px;
  }

  .cards article {
    padding: 34px 27px;
  }


  .feature-section,
  .alt-section {
    width: calc(100% - 38px);

    padding: 70px 0;
  }

  .feature-icon {
    min-height: 210px;
  }

  .feature-icon i {
    font-size: 4rem;
  }


  .contact-section {
    padding: 70px 20px;
  }


  .footer-inner {
    grid-template-columns: 1fr;

    padding: 50px 23px 38px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-logo {
    width: 250px;
  }

  .footer-bottom {
    padding: 22px 23px;

    flex-direction: column;
    align-items: flex-start;

    gap: 9px;
  }

}


/* ============================================================
   18. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

}