/*
Theme Name: Dr Julian
Theme URI: http://localhost:8088/
Author: Local rebuild
Description: Clean, professional WordPress theme for Dr Julian Saunders, osteopath and climbing injury specialist.
Version: 1.0.18
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: drjulian
*/

:root {
  --ink: #17211c;
  --muted: #5f6b63;
  --line: #d8dfd8;
  --paper: #fbfaf6;
  --white: #ffffff;
  --moss: #4f6f58;
  --forest: #213d2e;
  --clay: #b95f35;
  --sky: #dbe9ed;
  --max: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  font-size: 17px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--clay);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid rgba(23, 33, 28, 0.1);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 76px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
}

.brand-line {
  display: block;
  width: 1px;
  height: 26px;
  background: var(--line);
}

.brand-subtitle {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 8px 12px;
  border-radius: 4px;
}

.primary-menu,
.primary-menu ul {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu a {
  color: var(--ink);
  font-size: 20px;
  font-weight: 750;
  text-decoration: none;
}

.primary-menu a:hover {
  color: var(--clay);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  color: var(--white);
  background: #17211c url("/wp-content/uploads/drjulian/dr-julian-saunders-banner.jpg") center 42% / cover no-repeat;
}

.hero::before {
  content: none;
}

.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 92px 24px 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.hero-kicker {
  margin: 0 0 14px;
  color: #d7e7dc;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 0;
  color: #eef4ef;
  font-size: 21px;
  padding: 10px 14px;
  background: rgba(23, 33, 28, 0.72);
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  justify-content: flex-end;
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--forest);
  border-radius: 4px;
  background: var(--forest);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.button.light {
  border-color: var(--line);
  background: var(--white);
  color: var(--forest);
}

.button:hover,
.wp-block-button__link:hover {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--white);
}

.site-main {
  min-height: 60vh;
}

.section,
.content-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px;
}

.intro-band {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 48px;
  align-items: start;
}

.content h1,
.content h2,
.content h3,
.entry-title,
.section-title {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.14;
  letter-spacing: 0;
}

.content h1,
.entry-title {
  margin: 0 0 22px;
  font-size: clamp(36px, 5vw, 58px);
}

.content h2,
.section-title {
  margin: 0 0 20px;
  font-size: clamp(28px, 3.4vw, 42px);
}

.content h3 {
  margin-top: 34px;
  font-size: 25px;
}

.content p {
  max-width: 760px;
}

.content ul,
.content ol {
  max-width: 760px;
}

.content blockquote {
  margin: 32px 0;
  padding-left: 24px;
  border-left: 4px solid var(--moss);
  color: var(--forest);
  font-size: 21px;
}

.feature-panel {
  padding: 28px;
  border: 1px solid var(--line);
  background: #f4f1e8;
  border-radius: 6px;
}

.feature-panel h2 {
  margin-top: 0;
  font-size: 28px;
}

.feature-panel p {
  margin: 0 0 14px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 42px;
  align-items: start;
}

.archive-results {
  min-width: 0;
}

.post-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.post-card {
  min-height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.post-list .post-card {
  display: block;
}

.post-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--sky);
}

.post-list .post-card img {
  aspect-ratio: 16 / 9;
}

.post-card-body {
  padding: 26px 30px 30px;
}

.post-card h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.post-card a {
  text-decoration: none;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.archive-sidebar {
  min-width: 0;
}

.sidebar-sticky {
  position: sticky;
  top: 100px;
  padding: 28px;
  background: #f4f1e8;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.archive-sidebar h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.15;
}

.archive-sidebar p {
  margin: 0 0 18px;
  color: var(--muted);
}

.article-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.article-filter {
  max-width: none;
  min-width: 0;
}

.article-search-submit {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.filter-chip.is-active,
.filter-chip:hover {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--white);
}

.meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.archive-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.archive-header .content-wrap {
  padding-top: 48px;
  padding-bottom: 48px;
}

.entry {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.entry-content {
  max-width: 780px;
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 48px;
  align-items: start;
}

.single-main {
  min-width: 0;
}

.single-layout .entry-content {
  max-width: none;
}

.single-sidebar {
  display: grid;
  gap: 22px;
}

.single-sidebar .archive-sidebar {
  min-width: 0;
}

.single-sidebar .sidebar-sticky {
  position: static;
}

.single-sidebar-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.single-sidebar-card h2 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.12;
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-list li + li {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.related-list a {
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
}

.related-list a:hover {
  color: var(--clay);
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: 22px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
}

.back-link:hover {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--white);
}

.entry-content a[href*="previous"],
.entry-content a[href*="next"] {
  display: inline-flex;
  margin: 24px 12px 0 0;
  font-weight: 800;
}

.page .entry-content {
  max-width: 860px;
}

.split-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.split-page .entry-content,
.split-page .content p,
.split-page .content ul,
.split-page .content ol {
  max-width: none;
}

.split-page-media {
  position: sticky;
  top: 112px;
  margin: 8px 0 0;
}

.split-page-media img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: 6px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  gap: 26px;
  align-items: stretch;
  margin: 34px 0;
}

.contact-page {
  background: var(--paper);
}

.contact-hero {
  min-height: 330px;
  display: grid;
  align-items: end;
  color: var(--white);
  background: #17211c url("/wp-content/uploads/drjulian/dr-julian-saunders-banner.jpg") center 42% / cover no-repeat;
  position: relative;
  isolation: isolate;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 18, 14, 0.78), rgba(12, 18, 14, 0.38) 52%, rgba(12, 18, 14, 0.08)),
    linear-gradient(0deg, rgba(12, 18, 14, 0.72), rgba(12, 18, 14, 0.08));
}

.contact-hero-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 44px;
}

.contact-hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 0.98;
}

.contact-hero p:last-child {
  max-width: 620px;
  margin: 18px 0 0;
  color: #edf4ef;
  font-size: 20px;
}

.contact-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 24px;
}

.contact-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.contact-map-card {
  min-height: 520px;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(219, 233, 237, 0.68), rgba(219, 233, 237, 0.68)),
    url("/wp-content/uploads/drjulian/osteopath-blue-mountains-03.jpg") center / cover no-repeat;
}

.contact-map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
  display: block;
}

.map-fallback {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 9px 14px;
  border-radius: 4px;
  background: var(--white);
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(23, 33, 28, 0.18);
}

.contact-details-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  padding: 40px;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(23, 33, 28, 0.08);
}

.contact-details-card h1,
.contact-details-card h2 {
  margin-top: 0;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-form-band {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.contact-form-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 24px 88px;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 54px;
  align-items: start;
}

.form-intro {
  position: sticky;
  top: 112px;
}

.form-intro h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
}

.form-intro p:last-child {
  color: var(--muted);
  font-size: 19px;
}

.form-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f4f1e8;
}

.map-panel iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 6px;
  background: var(--sky);
}

.contact-panel {
  padding: 26px;
  background: #f4f1e8;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.contact-panel h2 {
  margin-top: 0;
}

.drjulian-form {
  display: grid;
  gap: 16px;
  max-width: none;
  margin-top: 18px;
}

.drjulian-form p {
  margin: 0;
}

.drjulian-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

.drjulian-form p:nth-of-type(2),
.drjulian-form p:nth-of-type(3) {
  display: inline-block;
  width: calc(50% - 8px);
}

.drjulian-form p:nth-of-type(2) {
  margin-right: 12px;
}

.drjulian-form input,
.drjulian-form textarea {
  max-width: none;
  background: var(--white);
}

.drjulian-form button {
  width: auto;
  justify-self: start;
  min-width: 180px;
}

.form-status {
  padding: 12px 14px;
  background: #e6f0e8;
  border: 1px solid #b8d0bf;
  border-radius: 4px;
}

.sidebar-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-list li + li {
  margin-top: 12px;
}

.site-footer {
  background: var(--forest);
  color: #e9f1ec;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #e9f1ec;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 16px;
  padding: 10px 16px;
  border: 1px solid #e9f1ec;
  border-radius: 4px;
  background: var(--clay);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

input,
textarea,
select {
  width: 100%;
  max-width: 680px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px 12px;
  font: inherit;
  background: var(--white);
}

textarea {
  min-height: 150px;
}

@media (max-width: 880px) {
  .header-inner {
    align-items: flex-start;
    padding-top: 16px;
    padding-bottom: 16px;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-nav.is-open {
    display: block;
  }

  .primary-menu,
  .primary-menu ul {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .intro-grid,
  .post-grid,
  .archive-layout,
  .single-layout,
  .split-page,
  .contact-grid,
  .contact-feature-grid,
  .contact-form-layout {
    grid-template-columns: 1fr;
  }

  .archive-header .content-wrap {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .contact-hero {
    min-height: 300px;
  }

  .contact-map-card,
  .contact-map-card iframe {
    min-height: 360px;
  }

  .contact-details-card,
  .form-card {
    padding: 26px;
  }

  .form-intro {
    position: static;
  }

  .post-list .post-card img {
    aspect-ratio: 4 / 3;
  }

  .sidebar-sticky,
  .split-page-media {
    position: static;
  }

  .archive-sidebar {
    order: -1;
  }

  .split-page-media img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .hero {
    min-height: 720px;
    background-position: 55% center;
  }
}

@media (max-width: 1280px) {
  .brand-subtitle,
  .brand-line {
    display: none;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .hero-inner,
  .section,
  .content-wrap,
  .footer-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .hero {
    align-items: start;
    min-height: 660px;
    background-position: 42% center;
  }

  .hero-inner {
    align-items: flex-start;
    padding-top: 62px;
    text-align: left;
  }

  .hero h1 {
    max-width: 420px;
  }

  .hero-copy {
    max-width: 440px;
    margin-top: 18px;
  }

  .actions {
    justify-content: flex-start;
  }

  .contact-section,
  .contact-form-layout {
    padding-top: 36px;
    padding-bottom: 56px;
  }

  .drjulian-form p:nth-of-type(2),
  .drjulian-form p:nth-of-type(3) {
    display: block;
    width: 100%;
  }

  .drjulian-form p:nth-of-type(2) {
    margin-right: 0;
  }
}
