/*
Theme Name: Dale Cox 2026
Theme URI: https://drdalecox.com
Author: Dale Cox
Description: Custom theme for Dr Dale Cox — voice specialist, researcher and creative practitioner. Blush/teal/rust brand palette, Playfair Display + Jost.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: dalecox2026
*/

:root {
  --blush: #f8eee7;
  --cream: #fffaf6;
  --teal: #3f7374;
  --teal-dark: #24484a;
  --rust: #b4816f;
  --rust-dark: #93624f;
  --sage: #b5bc83;
  --text: #4f453d;
  --text-light: #8a7b6e;
  --max-width: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--blush);
  color: var(--text);
  font-family: 'Jost', 'Avenir', 'Century Gothic', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Georgia', serif;
  color: var(--teal);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; }

a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--rust-dark); text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

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

.eyebrow {
  font-family: 'Jost', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--rust);
  font-weight: 600;
  margin-bottom: 0.6em;
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  background: transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn:hover {
  background: var(--teal);
  color: #fff;
  text-decoration: none;
}
.btn-solid {
  background: var(--rust);
  border-color: var(--rust);
  color: #fff;
}
.btn-solid:hover {
  background: var(--rust-dark);
  border-color: var(--rust-dark);
  color: #fff;
}

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 238, 231, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(180, 129, 111, 0.25);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo-link {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--teal);
  letter-spacing: 0.01em;
}
.logo-link:hover { color: var(--rust); text-decoration: none; }
nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  color: var(--teal);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
nav.main-nav a:hover { color: var(--rust); text-decoration: none; }
nav.main-nav a.active,
nav.main-nav .current-menu-item a,
nav.main-nav .current_page_item a { color: var(--rust); border-bottom: 2px solid var(--rust); padding-bottom: 4px; }

.nav-toggle { display: none; }

@media (max-width: 780px) {
  nav.main-nav ul { gap: 18px; flex-wrap: wrap; justify-content: center; }
  .nav-wrap { flex-direction: column; gap: 12px; padding: 16px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 70px;
  text-align: center;
}
.hero .wave-rule {
  width: 100%;
  max-width: 460px;
  margin: 0 auto 28px;
  display: block;
}
.hero h1 { margin-bottom: 0.3em; }
.hero .tagline {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 620px;
  margin: 0 auto 1.6em;
}
.hero .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Hero with portrait photo ---------- */
.hero-photo { text-align: left; padding: 70px 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .tagline { margin-left: 0; }
.hero-copy .cta-row { justify-content: flex-start; }
.hero-portrait img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 24px 48px rgba(36, 72, 74, 0.18);
}
.about-portrait {
  width: 100%;
  max-width: 320px;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(36, 72, 74, 0.16);
  float: right;
  margin: 0 0 20px 32px;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-copy .cta-row { justify-content: center; }
  .about-portrait { float: none; margin: 0 auto 28px; }
}

.page-hero {
  padding: 64px 0 48px;
  text-align: center;
  border-bottom: 1px solid rgba(180,129,111,0.2);
}
.page-hero .eyebrow { text-align: center; }
.page-hero h1 { margin-bottom: 0.2em; }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
section.alt { background: var(--cream); }
section.teal-band {
  background: var(--teal-dark);
  color: #f2ece5;
}
section.teal-band h2 { color: #fff; }
section.teal-band p { color: #d9cfc4; }

.section-head { max-width: 700px; margin: 0 auto 40px; text-align: center; }

/* ---------- Feature cards (homepage) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  border: 1px solid rgba(180,129,111,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(63,115,116,0.12);
}
.card .card-icon {
  width: 44px; height: 44px; margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--blush);
  display: flex; align-items: center; justify-content: center;
  color: var(--rust);
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
}
.card h3 { margin-bottom: 0.5em; }
.card p { color: var(--text-light); font-size: 0.95rem; }
.card a.card-link {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ---------- Prose blocks ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 26px;
  border-left: 4px solid var(--rust);
}
.testimonial p.quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.08rem;
  color: var(--teal-dark);
  margin-bottom: 14px;
}
.testimonial .attribution {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial .attribution img {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
}
.testimonial .attribution .name { font-weight: 700; color: var(--teal); font-size: 0.95rem; }
.testimonial .attribution .role { font-size: 0.82rem; color: var(--text-light); }

/* ---------- Lists ---------- */
ul.styled { list-style: none; padding: 0; margin: 0 0 1.2em; }
ul.styled li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 0.55em;
}
ul.styled li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  background: var(--sage);
  border-radius: 50%;
}

.pub-list { list-style: none; padding: 0; }
.pub-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(180,129,111,0.18);
  font-size: 0.95rem;
}
.pub-list li:first-child { padding-top: 0; }

.timeline-item {
  display: flex;
  gap: 20px;
  margin-bottom: 22px;
}
.timeline-item .dot {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 2px;
}
.timeline-item .body { font-size: 0.92rem; color: var(--text); }

/* ---------- Image gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ---------- Book callout ---------- */
.book-callout {
  display: flex;
  gap: 30px;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid rgba(180,129,111,0.18);
}
.book-callout img { width: 130px; border-radius: 3px; box-shadow: 0 12px 24px rgba(0,0,0,0.12); }
@media (max-width: 560px) { .book-callout { flex-direction: column; text-align: center; } }

/* ---------- Contact form ---------- */
.contact-form { max-width: 620px; margin: 0 auto; }
.contact-form label {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 6px;
}
.contact-form .field { margin-bottom: 22px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(63,115,116,0.3);
  border-radius: var(--radius);
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--rust);
}
.contact-form .hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-notice {
  max-width: 620px;
  margin: 0 auto 24px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.92rem;
}
.form-notice.success { background: #e7f0e0; color: #3d5c2f; border: 1px solid #b5bc83; }
.form-notice.error { background: #f6e3df; color: #93624f; border: 1px solid #b4816f; }
.contact-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
  margin-top: 56px;
}
@media (max-width: 700px) { .contact-details { grid-template-columns: 1fr; } }
.contact-details .item h4 { margin-bottom: 0.3em; }
.contact-details .item p { color: var(--text-light); font-size: 0.92rem; margin: 0; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--teal-dark);
  color: #d9cfc4;
  padding: 60px 0 26px;
}
footer.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 700px) { footer.site-footer .footer-grid { grid-template-columns: 1fr; } }
footer.site-footer h4 {
  color: #fff;
  font-family: 'Jost', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  margin-bottom: 16px;
}
footer.site-footer a { color: #e7ddd2; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer .logo-footer img { height: 40px; margin-bottom: 14px; opacity: 0.96; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer ul li { margin-bottom: 10px; font-size: 0.92rem; }
footer.site-footer .book-mini { display: flex; gap: 12px; align-items: flex-start; }
footer.site-footer .book-mini img { width: 60px; border-radius: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  font-size: 0.8rem;
  color: #b9ab9d;
  text-align: center;
}

/* ---------- Misc ---------- */
.divider {
  width: 60px; height: 2px; background: var(--sage);
  margin: 26px auto;
}
.small-caps-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--rust);
  font-weight: 600;
}

/* WP core alignment helpers */
.alignwide { max-width: 1120px; }
.alignfull { max-width: 100%; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); overflow: hidden; height: 1px; width: 1px; }
