/* ==========================================================
   Erin Castelloe, MD – new stylesheet (Bootstrap 5 overrides)
   Place at: stylesheets/castelloe-new.css
   ========================================================== */

:root {
  --navy: #1b3c71;        /* existing brand navy */
  --navy-dark: #05273b;   /* existing footer color */
  --text: #333333;        /* 12.6:1 on white */
  --focus-light: #ffd54a; /* focus ring on dark backgrounds */
  --font: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh; 
}

main {
  flex: 1 0 auto;       /* takes up all the extra space */
}

a { color: var(--navy); }
a:hover { color: var(--navy-dark); }

/* ---------- Accessibility helpers ---------- */
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
.site-header :focus-visible,
.cert-band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--focus-light);
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 2000;
  padding: 0.6rem 1rem;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  border: 2px solid var(--navy);
  border-radius: 0.25rem;
}
.skip-link:focus { top: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Header (background image) ---------- */
.site-header {
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(5, 39, 59, 0.35), rgba(5, 39, 59, 0.35)), /* keeps white text readable */
    url("images/web-header-background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 1.5rem 0;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

/* Round logo */
.logo-link {
  display: block;
  flex: 0 0 auto;
  border-radius: 50%;
}
.site-logo {
  display: block;
  width: 140px;
  height: 140px;
  object-fit: contain;
  padding: 18px;
  background: #fff;
  border-radius: 50%;
}


@media (max-width: 767.98px) {
  .logo-link {
    display: block;
    width: 140px;      
    margin: 0 auto;      
  }
}

.site-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.75rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* Header contact icons */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
}
.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;             /* touch target size */
  padding: 0.25rem 0.25rem;
  color: #fff;
  font-size: 1.15rem;
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.contact-list a:hover span,
.contact-list a:focus span { text-decoration: underline; }
.contact-list .bi { font-size: 1.4rem; }

@media (min-width: 768px) {
  .site-header { padding: 2rem 0; }
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: right;
    gap: 2rem;
  }
  .site-logo { width: 190px; height: 190px; padding: 24px; }
  .header-text { flex: 1 1 auto; }
  .contact-list { justify-content: flex-end; }
}

/* ---------- Three static images ---------- */
.image-strip { padding-top: 1.5rem; }
.strip-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d7dde8;
}

/* ---------- Bio ---------- */
.bio-section { padding-top: 2rem; padding-bottom: 2.5rem; }
.bio-photo { width: 100%; height: auto; max-width: 360px; }
@media (max-width: 767.98px) {
  .bio-photo { display: block; margin: 0 auto; }
}
.bio-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0;
}
.bio-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.bio-section p { font-size: 1.125rem; }

/* ------------ Breeze Lookup -------------- */
.breeze-section { padding-top: 2rem; padding-bottom: 2.5rem; }

.breeze-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0;
}
.breeze-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.breeze-section p { font-size: 1.125rem; }

.breeze-section .lookup {   
  height: auto;
  max-width: 45%;
}

@media (min-width: 768px) {
  .breeze-section .lookup {
    height: auto;
    max-width: 65%;
    min-width: 45%;
  }
}


.breeze-section .lookup {
  width: 60%;
  min-width: 200px;   
  max-width: 250px;   
  height: auto;
}


@media (min-width: 768px) {
  .breeze-section .lookup {
    width: 45%;
    min-width: 300px;  
    max-width: 450px;  
  }
}

/* ---------- Poetry book page ---------- */
.book-section {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.book-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.book-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

/* Left column: cover and ordering */
.book-cover-wrap { text-align: center; }


.book-cover {
  width: 100%;
  max-width: 400px;   /* was 320px */
  height: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}


.book-order {
  margin-top: 1.5rem;
  text-align: center;
}

.order-heading,
.description-heading,
.blurbs-heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.order-details {
  font-size: 1.0625rem;
  margin-bottom: 1rem;
}

.order-instructions {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  font-weight: bold;
  font-style: italic;
  text-align: center;
}


.btn-order-square,
.qr-code {
  --order-size: 140px;   /* change this one number to resize both */
  width: var(--order-size);
  height: var(--order-size);
}

.btn-order-square {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.5rem;
  background: var(--navy);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border-radius: 0.375rem;
}
.btn-order-square:hover {
  background: var(--navy-dark);
  color: #fff;
}

.qr-code {
  display: block;
  margin: 0;
  background: #fff;
  border-radius: 0.25rem;
}


/* Right column: description */
.book-description p {
  font-size: 1.125rem;
}

@media (min-width: 768px) {
  .book-cover-wrap { text-align: left; }
  .book-order { text-align: left; }
  .order-list { align-items: flex-start; }
}

/* Shared heading styles (replaces the earlier .blurbs-heading reference) */
.order-heading,
.description-heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

/* Row 2: endorsements (simple list) */
.endorsements {
  border-top: 2px solid var(--navy);
  padding-top: 1.5rem;
}

.endorsements-heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.endorsement {
  max-width: none;       
  margin: 0 0 1.5rem;    
}

.endorsement p {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 0.25rem;
}

.endorsement footer {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
}
.endorsement cite { font-weight: 400; }

/* Rectangular Order Now button below the endorsements */
.order-bottom {
  text-align: center;
  margin-top: 2rem;
}

.btn-order-wide {
  display: inline-block;
  min-height: 44px;
  padding: 0.75rem 3rem;
  background: var(--navy);       
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 0.375rem;        
}
.btn-order-wide:hover {
  background: var(--navy-dark);
  color: #fff;
}


/* ---------- Certifications band ---------- */
.cert-band {
  background: var(--navy);
  padding: 1.25rem 0;
}
.cert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.cert-list a { display: inline-block; border-radius: 0.25rem; }
.cert-list img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
}


/* ---------- Family medicine certification page ---------- */
.certification-section {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.certification-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.certification-intro {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.certification-figure {
  margin: 0 0 2rem;
}

.certification-img {
  max-width: 70%;
  height: auto;
  border: 1px solid #d7dde8;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.certification-verify {
  margin: 0;
}

/* Centered block; everything inside is left-aligned */
.centered-block {
  width: fit-content;    
  max-width: 100%;         
  margin: 0 auto 1.5rem;  
  text-align: left;
  font-size: 1.125rem;
}

.centered-block p {
  margin-bottom: 0.5rem;
  padding-left: 0.4rem;
}

.centered-list {
  margin: 0;
  padding-left: 1.25rem;  
}

.centered-list li {
  margin-bottom: 0.4rem;
  padding-left: 0.25rem;   
}




/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #fff;
  font-size: 0.875rem;
  padding: 1rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}
.site-footer a {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.site-footer a:hover { color: #B68CC5; }
.copyright { margin: 0; }
.copyright {
  text-wrap: balance;   /* splits the text into evenly sized lines */
  line-height: 1.5;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (max-width: 767.98px) {
  .site-footer .footer-links {
    flex-direction: column;
    align-items: center;
  }
}

/* ---------- Text pages: privacy policy and accessibility statement ---------- */
.privacy-section,
.accessibility-section {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.privacy-title,
.accessibility-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.privacy-updated,
.accessibility-updated {
  font-size: 0.9375rem;
  color: #555;
  margin-bottom: 1.75rem;
}

.privacy-section h3,
.accessibility-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.privacy-section p,
.privacy-section li,
.accessibility-section p,
.accessibility-section li {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.accessibility-section ul {
  padding-left: 1.5rem;
}
.accessibility-section li {
  margin-bottom: 0.4rem;
}