/* Dana Peters Coaching — site styles */
:root { --ink: #434746; --sage: #5f726e; --sage-l: #a7b7b4; --beige: #f5efe8; --line: #ece6de; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: 'Poppins', sans-serif; overflow-x: hidden; }
a { color: var(--ink); }
a:hover { color: var(--sage); }
img { max-width: 100%; display: block; }
.page { max-width: 1440px; margin: 0 auto; }
main > section { position: relative; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

/* buttons inside content keep their own colors on hover */
main a[style*="background: #5f726e"]:hover, main a[style*="background: #434746"]:hover { opacity: .9; color: #fff; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 5; background: #fff;
  display: flex; align-items: center; justify-content: space-between; height: 104px; padding: 0 clamp(20px, 5.8vw, 84px); }
.logo img { width: 170px; height: auto; }
.nav-desktop { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 32px); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.nav-desktop a { text-decoration: none; }
.nav-desktop a[aria-current="page"] { color: var(--sage); border-bottom: 1px solid var(--sage); }
.nav-cta { background: var(--sage); color: #fff !important; padding: 12px 19px; text-decoration: none; letter-spacing: .06em; }
.nav-cta:hover { opacity: .9; }
.nav-mobile { display: none; }

/* ---------- hero media (video slideshow) ---------- */
.hero-media { height: clamp(260px, 39vw, 563px); background: #e9e4dd; box-shadow: 0 0 0 100vmax #e9e4dd; clip-path: inset(0 -100vmax); overflow: hidden; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes dpFadeIn { from { opacity: 0 } to { opacity: 1 } }
.dp-fade { animation: dpFadeIn 1.6s ease-out .9s both; }
@media (prefers-reduced-motion: reduce) { .dp-fade { animation: none; } }

/* ---------- forms ---------- */
input, select, textarea, button { font: inherit; }
button { cursor: pointer; }
.map { padding: 0 !important; height: 360px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.4); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--beige); box-shadow: 0 0 0 100vmax var(--ink); clip-path: inset(0 -100vmax);
  display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 48px; padding: clamp(44px, 5vw, 70px) clamp(20px, 5.8vw, 84px) 32px;
  font-size: 14px; font-weight: 300; line-height: 1.8; letter-spacing: .04em; }
.site-footer a { color: var(--beige); }
.site-footer a:hover { color: #fff; }
.f-brand, .f-col { display: flex; flex-direction: column; gap: 8px; }
.f-name { font-family: 'Marcellus', serif; font-size: 24px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; }
.f-h { font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
.f-copy { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 20px; border-top: 1px solid #5d6260; font-size: 12px; color: #d8d2ca; }

/* ---------- tablet ---------- */
@media (max-width: 1300px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; position: relative; }
  .nav-mobile summary { list-style: none; cursor: pointer; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
  .nav-mobile summary::-webkit-details-marker { display: none; }
  .nav-mobile nav { position: absolute; right: 0; top: 56px; width: min(86vw, 320px); background: #fff; border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(0,0,0,.08); display: flex; flex-direction: column; padding: 8px 0; z-index: 20; }
  .nav-mobile nav a { padding: 14px 22px; text-decoration: none; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
  .nav-mobile nav .nav-cta { margin: 10px 16px 8px; text-align: center; }
}

@media (max-width: 1180px) {
  main [style*="grid-template-columns: repeat(5"], main [style*="grid-template-columns: repeat(4"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  main [style*="grid-template-columns: repeat(3"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ---------- phone ---------- */
@media (max-width: 820px) {
  .site-header { height: 80px; }
  .logo img { width: 124px; }
  main [style*="display: flex"]:not([style*="flex-direction: column"]):not(.row):not(.logos) { flex-direction: column !important; align-items: stretch !important; }
  main .row { flex-wrap: wrap; }
  main .row > * { flex: 1 1 auto; text-align: center; }
  main [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  main [style*="width: min(100%"] { width: 100% !important; }
  main img[style*="aspect-ratio"] { width: 100% !important; max-height: 420px; }
  main section > img[style*="aspect-ratio"]:only-of-type { order: -1; }
  main .logos { flex-direction: row !important; flex-wrap: wrap; justify-content: center !important; align-items: center !important; gap: 24px 32px !important; padding: 36px 20px !important; }
  main .logos > p { width: 100%; text-align: center; }
  main .logos img { height: 26px !important; width: auto !important; max-width: 42%; object-fit: contain; flex: none !important; }
  main section > div[style*="padding: "], main section > div[style*="padding:"] { padding-left: 20px !important; padding-right: 20px !important; }
  main [style*="align-self: flex-end"] { align-self: flex-end !important; text-align: right; }
  main form { padding: 24px !important; }
  .site-footer { grid-template-columns: 1fr; gap: 26px; }
  .map { height: 280px; }
}

/* ---------- image/text split sections ---------- */
.split > img { flex: 0 0 42%; width: 42% !important; height: clamp(420px, 36vw, 540px) !important; aspect-ratio: auto !important; object-fit: cover; }
.split > div { flex: 1 1 0 !important; width: auto !important; align-self: center; }
.logos { padding-top: 40px !important; padding-bottom: 40px !important; flex-wrap: wrap; }
@media (max-width: 820px) {
  .split > img { flex: none; width: 100% !important; height: 280px !important; min-height: 0; order: -1; }
}

/* ---------- footer email signup ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.f-signup { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 8px; padding-top: 28px; border-top: 1px solid #5d6260; }
.f-signup-text { display: flex; flex-direction: column; gap: 4px; }
.f-signup-row { display: flex; gap: 10px; flex: 0 1 460px; }
.f-signup input { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid #f5efe8; background: #fff; color: var(--ink); font-size: 15px; }
.f-signup button { height: 48px; padding: 0 24px; border: 0; background: var(--sage-l); color: #2f3432; font-size: 14px; letter-spacing: .04em; }
.f-signup button:hover { background: #fff; }
@media (max-width: 820px) { .f-signup-row { flex-basis: 100%; } }
.site-footer > * { min-width: 0; }
@media (max-width: 820px) {
  .f-signup-row { flex-direction: column; }
  .f-signup input, .f-signup button { width: 100%; }
}

/* ---------- hero slideshow ---------- */
.hero-media { position: relative; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(30,32,31,.10), rgba(30,32,31,.38)); pointer-events: none; }
.hero-caption { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); margin: 0; padding: 0 20px; text-align: center;
  font-family: 'Marcellus', serif; text-transform: uppercase; letter-spacing: .08em; color: #fff;
  font-size: clamp(28px, 5vw, 68px); line-height: 1.1; text-shadow: 0 2px 18px rgba(0,0,0,.35); transition: opacity .45s ease; }
.hero-caption.out { opacity: 0; }
.hero-badge { position: absolute; right: 16px; bottom: 14px; background: rgba(255,255,255,.85); color: var(--ink); font-size: 12px; letter-spacing: .06em; padding: 6px 10px; }
@media (prefers-reduced-motion: reduce) { .hero-caption { transition: none; } }

/* ---------- blog ---------- */
.post-eyebrow { margin: 0; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--sage); }
.blog-hero { padding: clamp(56px, 6vw, 88px) clamp(20px, 5.8vw, 84px); background: #f9f9f9; box-shadow: 0 0 0 100vmax #f9f9f9; clip-path: inset(0 -100vmax); display: flex; flex-direction: column; gap: 18px; }
.blog-display { font-family: 'Marcellus', serif; text-transform: uppercase; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.1; letter-spacing: .03em; }
.blog-hero h1 { margin: 0; font-family: 'EB Garamond', serif; font-weight: 600; font-style: italic; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; }
.blog-hero p:last-child { margin: 0; max-width: 792px; font-size: 15px; font-weight: 300; line-height: 1.9; letter-spacing: .05em; }
.blog-list, .post-more { padding: clamp(48px, 6vw, 90px) clamp(20px, 5.8vw, 84px); display: flex; flex-direction: column; gap: 28px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-card, .post-feature { display: flex; flex-direction: column; gap: 12px; padding: 30px 28px; background: var(--beige); text-decoration: none; color: var(--ink); border-top: 3px solid var(--sage-l); transition: border-color .2s, transform .2s; }
.post-card:hover, .post-feature:hover { border-top-color: var(--sage); transform: translateY(-2px); color: var(--ink); }
.post-feature { background: #eef1f0; padding: clamp(30px, 4vw, 52px); border-top-color: var(--sage); }
.post-card-meta { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.post-card-title { font-family: 'EB Garamond', serif; font-weight: 600; font-size: 23px; line-height: 1.25; }
.post-feature-title { font-family: 'EB Garamond', serif; font-weight: 600; font-size: clamp(26px, 3vw, 38px); line-height: 1.2; max-width: 900px; }
.post-card-ex { font-size: 14px; font-weight: 300; line-height: 1.75; letter-spacing: .03em; flex: 1; }
.post-feature .post-card-ex { max-width: 760px; font-size: 15px; }
.post-card-more { font-size: 13px; letter-spacing: .04em; color: var(--sage); font-weight: 500; }
.post { max-width: 760px; margin: 0 auto; padding: clamp(40px, 5vw, 72px) 20px clamp(40px, 5vw, 64px); }
.post-crumbs { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); margin-bottom: 18px; }
.post-crumbs a { color: var(--sage); text-decoration: none; }
.post-head h1 { margin: 0 0 16px; font-family: 'EB Garamond', serif; font-weight: 600; font-size: clamp(32px, 4vw, 46px); line-height: 1.15; }
.post-meta { margin: 0 0 36px; padding-bottom: 26px; border-bottom: 1px solid var(--line); font-size: 13px; letter-spacing: .04em; color: #6b706e; }
.post-meta a { color: inherit; }
.post-body { font-size: 17px; font-weight: 300; line-height: 1.85; letter-spacing: .01em; }
.post-body p { margin: 0 0 1.15em; }
.post-body strong { font-weight: 500; }
.post-body h2 { font-family: 'EB Garamond', serif; font-weight: 600; font-size: clamp(25px, 2.6vw, 31px); line-height: 1.25; margin: 1.8em 0 .6em; }
.post-body h3 { font-family: 'EB Garamond', serif; font-weight: 600; font-size: clamp(21px, 2vw, 24px); line-height: 1.3; margin: 1.5em 0 .5em; }
.post-body ul, .post-body ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.post-body li { margin-bottom: .45em; }
.post-body a { color: var(--sage); }
.post-body blockquote, .post-body .pull { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--sage-l); font-family: 'EB Garamond', serif; font-style: italic; font-size: 23px; line-height: 1.45; }
.post-body blockquote p { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.post-body th, .post-body td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.post-body th { background: var(--beige); font-weight: 500; }
.post-cta { margin-top: 48px; padding: 34px 32px; background: var(--beige); display: flex; flex-direction: column; gap: 12px; }
.post-cta p { margin: 0; font-size: 15px; font-weight: 300; line-height: 1.8; }
.post-cta .post-cta-h { font-family: 'EB Garamond', serif; font-weight: 600; font-size: 26px; line-height: 1.2; }
.post-cta .row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.btn { display: inline-block; text-decoration: none; background: var(--sage); color: #fff !important; font-size: 13px; letter-spacing: .04em; padding: 15px 24px; }
.btn-o { display: inline-block; text-decoration: none; border: 1px solid var(--sage); color: var(--ink); font-size: 13px; letter-spacing: .04em; padding: 14px 23px; }
.post-more { padding-top: 0; }
@media (max-width: 1180px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .post-grid, .post-grid.two { grid-template-columns: 1fr; }
  .post-body { font-size: 16px; }
  .post-cta { padding: 26px 22px; }
}

/* ---------- booking (Calendly) ---------- */
.booking { padding: clamp(40px, 5vw, 72px) clamp(20px, 5.8vw, 84px); display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.booking h2 { margin: 0; font-family: 'EB Garamond', serif; font-weight: 600; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.2; }
.booking > p { margin: 0; max-width: 760px; font-size: 15px; font-weight: 300; line-height: 1.8; letter-spacing: .03em; }
.booking .calendly-inline-widget { width: 100%; max-width: 760px; height: 640px; overflow: hidden; }
.booking-mobile-btn { display: none; align-self: flex-start; }
@media (max-width: 820px) {
  .booking .calendly-inline-widget { height: 1000px; }
  /* contact page: a button instead of the full calendar, so the message form stays easy to reach */
  .booking-contact .booking-embed { display: none; }
  .booking-contact .booking-mobile-btn { display: inline-block; }
}

/* full-width header background without clipping the mobile menu */
.site-header::before { content: ""; position: absolute; top: 0; bottom: 0; left: -100vmax; right: -100vmax; background: #fff; border-bottom: 1px solid var(--line); z-index: -1; }
.nav-mobile[open] nav { z-index: 30; }
/* hide the iOS play button if autoplay is blocked (e.g. Low Power Mode); poster shows instead */
#hero-video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
#hero-video::-webkit-media-controls { display: none !important; }
#hero-video::-webkit-media-controls-overlay-play-button { display: none !important; }

/* contact page on phones: message form first, then phone/email/hours/address */
@media (max-width: 820px) { main form[name="contact"] { order: -1; } }
