/*
Theme Name: ChemoCaps
Theme URI: https://www.chemocaps.com/
Author: ChemoCaps
Description: A warm, accessible WordPress theme for the Heather Spoll No Hair Day Hat Program.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: chemocaps
*/

:root {
  --ink: #2f2628;
  --muted: #6d6265;
  --rose: #9b5962;
  --rose-dark: #713d45;
  --coral: #c96f5b;
  --sage: #69846e;
  --cream: #fbf8f3;
  --paper: #fffdf9;
  --border: #eadfd8;
  --shadow: 0 16px 42px rgba(80, 51, 57, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

.top-bar {
  background: var(--rose-dark);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 9px 18px;
  text-align: center;
  text-transform: uppercase;
}

.site-header {
  background: rgba(255, 253, 249, 0.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner,
.footer-inner,
main {
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 24px;
}

.header-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 88px;
  gap: 24px;
}

.logo {
  align-items: center;
  display: inline-flex;
  gap: 13px;
  text-decoration: none;
}

.logo-icon {
  align-items: center;
  background: var(--rose);
  border-radius: 50%;
  display: flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.logo-icon svg {
  height: 30px;
  width: 30px;
}

.brand {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.tagline {
  color: var(--muted);
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 4px;
  text-transform: uppercase;
}

.main-nav,
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 800;
  padding: 10px 15px;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  background: #f1e5df;
  color: var(--rose-dark);
}

.carousel-section {
  background: #211719;
  min-height: 560px;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 520ms ease;
}

.carousel-slide {
  flex: 0 0 100%;
  min-height: 560px;
  position: relative;
}

.carousel-slide img {
  height: 560px;
  object-fit: cover;
  width: 100%;
}

.carousel-slide::after {
  background: linear-gradient(90deg, rgba(24, 17, 19, 0.7), rgba(24, 17, 19, 0.06) 70%);
  content: "";
  inset: 0;
  position: absolute;
}

.carousel-slide.carousel-slide-image-only::after {
  background: none;
  content: none;
  display: none;
}

.carousel-caption {
  color: #fff;
  left: max(28px, calc((100vw - 1120px) / 2 + 24px));
  max-width: 520px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.carousel-caption h1,
.carousel-caption h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: 0.98;
  margin: 0 0 18px;
}

.carousel-caption p {
  font-size: clamp(1rem, 1.6vw, 1.23rem);
  margin: 0 0 26px;
}

.carousel-caption-bottom {
  bottom: 14px;
  top: auto;
  transform: none;
}

.carousel-caption-bottom h1 {
  font-size: clamp(0.7rem, 1vw, 0.92rem);
  line-height: 1.25;
  margin-bottom: 10px;
}

.carousel-caption-bottom p {
  max-width: 460px;
}

.opening-slide-title {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3.2vw, 3rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 18px;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.9), 0 0 18px rgba(0, 0, 0, 0.68);
}

.opening-slide-title span {
  display: block;
}

.carousel-btn {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 0;
  border-radius: 50%;
  color: var(--rose-dark);
  cursor: pointer;
  display: flex;
  font-size: 1.3rem;
  height: 42px;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  z-index: 3;
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.carousel-dots {
  bottom: 22px;
  display: flex;
  gap: 8px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  z-index: 3;
}

.carousel-dot {
  background: rgba(255, 255, 255, 0.55);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 10px;
  padding: 0;
  width: 10px;
}

.carousel-dot.active {
  background: #fff;
  width: 28px;
}

.intro-banner,
.tag-reminder {
  background: var(--rose);
  color: #fff;
  font-weight: 800;
  padding: 18px 24px;
  text-align: center;
}

.intro-banner p,
.tag-reminder p {
  margin: 0 auto;
  max-width: 980px;
}

main {
  padding-bottom: 72px;
  padding-top: 72px;
}

.memorial,
.mission,
.commitment,
.designer-note,
.contact-wrap,
.yarn-tips {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.memorial,
.mission {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: 0.85fr 1.15fr;
  margin-bottom: 58px;
  padding: 42px;
}

.mission {
  grid-template-columns: 1.15fr 0.85fr;
}

.memorial-image img,
.mission-image img {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

.memorial h2,
.mission h2,
.section-title,
.commitment h2,
.designer-note h2,
.contact-wrap h2,
.yarn-tips h2,
.patterns-label {
  color: var(--rose-dark);
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  margin: 0 0 18px;
}

.btn,
.card a,
.pattern-card a,
.submit-btn {
  background: var(--rose);
  border: 2px solid var(--rose);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  text-decoration: none;
}

.btn:hover,
.card a:hover,
.pattern-card a:hover,
.submit-btn:hover {
  background: var(--rose-dark);
  border-color: var(--rose-dark);
}

.btn-outline-white {
  background: transparent;
  border-color: #fff;
}

.photo-grid-section {
  margin: 28px auto 20px;
  text-align: center;
}

.section-sub,
.patterns-sub {
  color: var(--muted);
  margin: -6px auto 28px;
  max-width: 640px;
}

.cards,
.patterns-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 56px;
}

.card,
.pattern-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(80, 51, 57, 0.08);
  min-height: 100%;
  padding: 28px;
}

.card-icon {
  align-items: center;
  background: #edf1ea;
  border-radius: 50%;
  display: flex;
  height: 54px;
  justify-content: center;
  margin-bottom: 18px;
  width: 54px;
}

.card-icon svg {
  fill: none;
  height: 27px;
  stroke: var(--sage);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 27px;
}

.card h3,
.pattern-card h3 {
  color: var(--ink);
  font-size: 1.25rem;
  margin: 0 0 12px;
}

.card p,
.pattern-card p {
  color: var(--muted);
}

.commitment {
  margin: 12px 0 34px;
  padding: 38px;
}

.commitment ol {
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.commitment li {
  border-left: 5px solid var(--coral);
  padding-left: 18px;
}

.commitment strong,
.commitment span {
  display: block;
}

.tag-reminder {
  background: var(--sage);
  border-radius: 8px;
  margin-bottom: 42px;
}

.cta-strip,
.page-hero {
  background: var(--rose-dark);
  color: #fff;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 56px 24px;
  text-align: center;
}

.cta-strip h2,
.page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  margin: 0 0 12px;
}

.cta-strip p,
.page-hero p {
  margin: 0 auto 24px;
  max-width: 720px;
}

.page-hero {
  background: linear-gradient(rgba(113, 61, 69, 0.84), rgba(113, 61, 69, 0.84)), url("assets/img/knitter_creating_chemocap.jpg") center / cover;
}

.designer-note,
.contact-wrap,
.yarn-tips {
  margin-bottom: 38px;
  padding: 38px;
}

.patterns-label,
.patterns-sub {
  text-align: center;
}

.pattern-card {
  overflow: hidden;
  padding: 0;
}

.pattern-card-body {
  padding: 28px;
}

.badge {
  background: var(--sage);
  color: #fff;
  display: block;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  padding: 9px 16px;
  text-transform: uppercase;
}

.yarn-tips ul {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.yarn-tips li {
  background: #f7f2ed;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}

.yarn-tips strong {
  color: var(--rose-dark);
  display: block;
}

.contact-wrap {
  max-width: 760px;
}

.contact-form,
.contact-page-content .wpcf7-form {
  display: grid;
  gap: 16px;
}

.contact-form label,
.contact-page-content .wpcf7-form label {
  color: var(--ink);
  display: block;
  font-weight: 850;
}

.contact-form input,
.contact-form textarea,
.contact-page-content .wpcf7-form input[type="text"],
.contact-page-content .wpcf7-form input[type="email"],
.contact-page-content .wpcf7-form input[type="tel"],
.contact-page-content .wpcf7-form input[type="url"],
.contact-page-content .wpcf7-form textarea {
  background: #fff;
  border: 1px solid #d9cbc4;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  margin-top: 6px;
  padding: 12px 14px;
  width: 100%;
}

.contact-form textarea,
.contact-page-content .wpcf7-form textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-page-content .wpcf7-form p {
  margin: 0;
}

.contact-page-content .wpcf7-submit {
  background: var(--rose);
  border: 2px solid var(--rose);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 850;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
}

.contact-page-content .wpcf7-submit:hover {
  background: var(--rose-dark);
  border-color: var(--rose-dark);
}

.site-footer {
  background: #2b2224;
  color: #fff;
  padding: 48px 0;
  text-align: center;
}

.footer-logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
}

.footer-tagline,
.footer-copy {
  color: rgba(255, 255, 255, 0.72);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin: 20px 0;
}

.footer-nav a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 850px) {
  .header-inner,
  .memorial,
  .mission {
    display: block;
  }

  .header-inner {
    padding-bottom: 18px;
    padding-top: 18px;
  }

  .main-nav {
    justify-content: flex-start;
    margin-top: 16px;
  }

  .memorial-image,
  .mission-image {
    margin-bottom: 28px;
  }

  .cards,
  .patterns-grid {
    grid-template-columns: 1fr;
  }

  .carousel-section,
  .carousel-slide,
  .carousel-slide img {
    min-height: 500px;
    height: 500px;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .footer-inner,
  main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand {
    font-size: 1.55rem;
  }

  .tagline {
    font-size: 0.66rem;
  }

  .carousel-caption {
    left: 22px;
    right: 22px;
  }

  .carousel-btn {
    display: none;
  }

  .memorial,
  .mission,
  .commitment,
  .designer-note,
  .contact-wrap,
  .yarn-tips {
    padding: 24px;
  }
}
