:root {
  --bg: #ffffff;
  --bg-soft: #f4f8f7;
  --bg-panel: #eef5f3;
  --text: #073f37;
  --muted: #425d58;
  --line: #c8dcd7;
  --accent: #d95f49;
  --accent-dark: #bd4c38;
  --teal: #2f8379;
  --deep: #003f35;
  --shadow: 0 22px 60px rgba(4, 54, 47, 0.12);
  --radius: 8px;
  --max: 1180px;
  color-scheme: light;
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body,
button,
input,
textarea {
  font-family: inherit;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 10;
  transform: translateY(-160%);
  background: var(--deep);
  color: #fff;
  padding: 10px 14px;
  border-radius: 4px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(7, 63, 55, 0.12);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--max), calc(100% - 48px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 34px;
  height: 56px;
  color: var(--teal);
  display: inline-grid;
  place-items: center;
}

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

.brand strong {
  font-size: 1.45rem;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: 0;
}

.brand span span {
  margin-top: 2px;
  font-size: 1.05rem;
  line-height: 1.15;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(18px, 4vw, 54px);
  font-weight: 600;
  font-size: 0.98rem;
}

.nav a {
  position: relative;
  padding: 10px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--teal);
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: clamp(620px, calc(100svh - 92px), 780px);
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(56px, 8vw, 104px) 0 clamp(42px, 6vw, 72px);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 26px;
  font-size: clamp(3.1rem, 7vw, 5.75rem);
  line-height: 0.96;
  font-weight: 600;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 520px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.58;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 26px rgba(217, 95, 73, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
}

.button-secondary {
  border-color: var(--deep);
  color: var(--deep);
  background: rgba(255, 255, 255, 0.72);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--bg-soft);
}

.button-dark {
  background: var(--deep);
  color: #fff;
}

.hero-media {
  margin: 0;
  height: min(680px, calc(100svh - 160px));
  min-height: 440px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
}

.movement-lines {
  position: absolute;
  left: -120px;
  bottom: 28px;
  width: min(560px, 55vw);
  color: rgba(47, 131, 121, 0.22);
  pointer-events: none;
}

.movement-lines path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.services {
  padding: clamp(72px, 9vw, 116px) 0 clamp(66px, 8vw, 104px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 56px;
}

h2 {
  position: relative;
  margin-bottom: 0;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: 0;
}

h2::after {
  content: "";
  display: block;
  width: 58px;
  height: 2px;
  margin-top: 20px;
  background: var(--teal);
}

.section-heading p,
.approach-copy p,
.contact-copy p {
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 3vw, 44px);
}

.service-item {
  text-align: center;
}

.icon-bubble {
  width: 86px;
  height: 86px;
  margin: 0 auto 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #eff6f4 100%);
  color: var(--teal);
  display: grid;
  place-items: center;
}

.icon-bubble svg {
  width: 39px;
  height: 39px;
}

.service-item h3,
.principle h3,
.contact-card h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.3;
  font-weight: 700;
}

.service-item p,
.principle p,
.contact-card span,
.contact-card a {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.private-practice {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  padding: clamp(54px, 7vw, 84px) clamp(0px, 1vw, 12px);
  border-top: 1px solid rgba(7, 63, 55, 0.11);
  border-bottom: 1px solid rgba(7, 63, 55, 0.11);
}

.private-copy p,
.about-copy p,
.focus-panel p {
  color: var(--muted);
}

.private-copy p:last-child {
  margin-bottom: 0;
  font-weight: 700;
}

.private-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.private-list li {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 14px 18px 14px 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--deep);
  font-weight: 800;
}

.private-list li::before {
  content: "✓";
  position: absolute;
  left: 20px;
  color: var(--teal);
  font-weight: 900;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 0.72fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
  padding: clamp(70px, 8vw, 108px) 0;
}

.about-side {
  display: block;
}

.about-portrait {
  position: relative;
  width: min(360px, 100%);
  margin: 0 0 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--bg-panel);
  box-shadow: 0 22px 54px rgba(4, 54, 47, 0.1);
}

.about-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: inherit;
  pointer-events: none;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
}

.focus-panel {
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f8fcfb 0%, #eef6f4 100%);
  box-shadow: 0 18px 48px rgba(4, 54, 47, 0.08);
}

.focus-panel span {
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--teal);
  background: #fff;
}

.focus-panel svg {
  width: 32px;
  height: 32px;
}

.focus-panel h3 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  line-height: 1.16;
}

.approach {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(42px, 7vw, 88px);
  align-items: start;
  padding: clamp(72px, 8vw, 110px) 0;
  border-top: 1px solid rgba(7, 63, 55, 0.11);
}

.approach-copy p {
  max-width: 560px;
  margin-bottom: 18px;
}

.approach-copy .button {
  margin-top: 12px;
}

.principles {
  border-left: 1px solid var(--line);
}

.principle {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 28px;
  padding: 26px 0 28px 54px;
  border-bottom: 1px solid var(--line);
}

.principle:first-child {
  padding-top: 8px;
}

.principle span {
  color: var(--deep);
}

.principle svg {
  width: 46px;
  height: 46px;
}

.practice-band {
  width: 100%;
  height: clamp(420px, 48vw, 680px);
  overflow: hidden;
  background: var(--bg-soft);
}

.practice-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: clamp(38px, 5vw, 74px);
  align-items: center;
  padding: clamp(68px, 8vw, 102px) 0;
}

.contact-copy p {
  max-width: 520px;
  margin-bottom: 28px;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--line);
}

.contact-card {
  min-height: 230px;
  padding: 18px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-card a {
  color: var(--teal);
  font-weight: 600;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(280px, 1fr);
  align-items: center;
  gap: 32px;
  padding: 38px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--deep);
  color: #fff;
}

.site-footer .brand-mark {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer .brand strong {
  font-size: 1.12rem;
}

.site-footer .brand span span {
  font-size: 0.95rem;
}

.site-footer nav {
  display: flex;
  gap: clamp(18px, 4vw, 48px);
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-legal {
  justify-self: end;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.footer-legal p {
  margin-bottom: 4px;
}

.footer-legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page {
  background:
    linear-gradient(180deg, #f7fbfa 0, #fff 340px),
    var(--bg);
}

.legal-main {
  padding-bottom: clamp(56px, 8vw, 92px);
}

.legal-hero {
  padding: clamp(54px, 8vw, 92px) 0 clamp(32px, 5vw, 56px);
}

.legal-hero h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 5.1rem);
}

.legal-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.16rem;
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--teal);
  font-size: 0.95rem;
  font-weight: 700;
}

.legal-content {
  max-width: 860px;
  padding: clamp(34px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 42px rgba(4, 54, 47, 0.08);
}

.legal-content h2 {
  margin: 36px 0 14px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.2;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content h2::after {
  width: 42px;
  margin-top: 12px;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--muted);
}

.legal-content a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-notice {
  margin-bottom: 34px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: #fff5f2;
  color: #704235;
}

.todo {
  display: inline;
  color: #9a3e2f;
  font-weight: 700;
}

.admin-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #eff7f5 0, #fff 440px),
    var(--bg);
}

.admin-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) 0;
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 144px);
}

.admin-login h1,
.admin-topbar h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1;
}

.admin-login p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
}

.admin-kicker {
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-form {
  display: grid;
  gap: 22px;
}

.admin-card {
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(4, 54, 47, 0.08);
}

.admin-card h2 {
  margin-bottom: 22px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.admin-card h2::after {
  width: 44px;
  margin-top: 12px;
}

.admin-section-head,
.admin-repeat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-card label {
  display: grid;
  gap: 8px;
  color: var(--deep);
  font-size: 0.94rem;
  font-weight: 800;
}

.admin-card input,
.admin-card textarea,
.admin-card select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  padding: 10px 12px;
}

.admin-card textarea {
  min-height: 110px;
  resize: vertical;
}

.admin-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.admin-repeat-item {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.admin-repeat-item h3 {
  margin: 0;
}

.admin-message {
  min-height: 24px;
  margin: 10px 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.admin-message[data-type="success"] {
  color: var(--teal);
}

.admin-message[data-type="error"] {
  color: #9a3e2f;
}

:focus-visible {
  outline: 3px solid rgba(47, 131, 121, 0.35);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .header-inner {
    width: min(100% - 32px, var(--max));
    min-height: 82px;
  }

  .nav {
    gap: 18px;
    font-size: 0.92rem;
  }

  .section {
    width: min(100% - 32px, var(--max));
  }

  .hero,
  .approach,
  .contact,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-media {
    height: clamp(360px, 68vw, 560px);
    min-height: 0;
  }

  .service-grid,
  .contact-details {
    grid-template-columns: repeat(2, 1fr);
  }

  .private-practice,
  .about-section {
    grid-template-columns: 1fr;
  }

  .about-side {
    max-width: 520px;
  }

  .about-portrait {
    min-height: 360px;
  }

  .principles,
  .contact-details {
    border-left: 0;
  }

  .principle {
    padding-left: 0;
  }

  .contact-card {
    border: 1px solid var(--line);
    border-left: 0;
  }

  .contact-card:nth-child(odd) {
    border-left: 1px solid var(--line);
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-legal {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 18px 0;
  }

  .brand strong {
    font-size: 1.22rem;
  }

  .brand span span {
    font-size: 0.98rem;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4.2rem);
  }

  .button {
    width: 100%;
  }

  .hero-media {
    height: 360px;
  }

  .movement-lines {
    width: 100vw;
  }

  .services {
    padding-top: 58px;
  }

  .service-grid,
  .contact-details {
    grid-template-columns: 1fr;
  }

  .about-side {
    max-width: none;
  }

  .about-portrait {
    min-height: 0;
    max-height: 560px;
  }

  .service-item {
    text-align: left;
    display: grid;
    grid-template-columns: 76px 1fr;
    column-gap: 18px;
    align-items: start;
  }

  .service-item .icon-bubble {
    width: 64px;
    height: 64px;
    grid-row: span 2;
    margin: 0;
  }

  .service-item .icon-bubble svg {
    width: 30px;
    height: 30px;
  }

  .principle {
    grid-template-columns: 48px 1fr;
    gap: 18px;
  }

  .principle svg {
    width: 38px;
    height: 38px;
  }

  .contact-card,
  .contact-card:nth-child(odd) {
    border-left: 1px solid var(--line);
  }

  .practice-band {
    height: 420px;
  }

  .site-footer nav {
    width: 100%;
    justify-content: space-between;
  }

  .legal-content {
    width: min(100% - 32px, var(--max));
    padding: 28px 20px;
  }

  .admin-login,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-topbar,
  .admin-section-head,
  .admin-repeat-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-actions {
    justify-content: stretch;
  }

  .admin-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
