/*
Theme Name: Rudih Modern
Theme URI: https://rudih.de/
Author: Rudih
Description: Eine moderne, ruhige Neuinterpretation der privaten Familienseite rudih.de.
Version: 1.8.1
Text Domain: rudih-modern
*/

:root {
  --ink: #18332f;
  --ink-soft: #49615d;
  --forest: #214e45;
  --forest-deep: #163b34;
  --sage: #9fb9aa;
  --sage-light: #dfe9e2;
  --cream: #f7f3ea;
  --paper: #fffdf8;
  --sun: #e6a93d;
  --line: rgba(24, 51, 47, 0.14);
  --shadow: 0 24px 70px rgba(36, 65, 57, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
  --container: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 4%, rgba(159, 185, 170, 0.28), transparent 26%),
    radial-gradient(circle at 92% 22%, rgba(230, 169, 61, 0.1), transparent 22%);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  padding: 22px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  color: var(--paper);
  background: var(--forest);
  box-shadow: 0 10px 28px rgba(33, 78, 69, 0.2);
  place-items: center;
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-note {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--paper);
  background: var(--forest);
  transform: translateY(-1px);
}

.mobile-nav {
  display: none;
}

.hero {
  padding: 28px 0 72px;
}

.hero-shell {
  position: relative;
  display: grid;
  min-height: 660px;
  overflow: hidden;
  border-radius: 42px;
  background: var(--forest-deep);
  box-shadow: var(--shadow);
  grid-template-columns: 1.06fr 0.94fr;
}

.hero-shell::before {
  position: absolute;
  top: -220px;
  right: 22%;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(46px, 7vw, 88px);
  color: var(--paper);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: #c9d8cf;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  content: "";
  background: var(--sun);
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 em {
  color: #b9d0c2;
  font-weight: 400;
}

.hero-intro {
  max-width: 560px;
  margin: 30px 0 0;
  color: rgba(255, 253, 248, 0.76);
  font-size: clamp(17px, 1.7vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: var(--forest-deep);
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
}

.hero-visual {
  position: relative;
  min-height: 590px;
  margin: 34px 34px 34px 0;
}

.photo-placeholder {
  position: relative;
  display: grid;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 28px;
  color: var(--forest-deep);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), transparent 42%),
    linear-gradient(165deg, #bfd0c5 0%, #92af9f 52%, #6f8f80 100%);
  place-items: center;
}

.photo-placeholder::before,
.photo-placeholder::after {
  position: absolute;
  bottom: -12%;
  width: 78%;
  height: 45%;
  border-radius: 58% 58% 0 0;
  content: "";
  background: rgba(33, 78, 69, 0.38);
  transform: rotate(7deg);
}

.photo-placeholder::before {
  right: -10%;
}

.photo-placeholder::after {
  bottom: -23%;
  left: -16%;
  background: rgba(247, 243, 234, 0.38);
  transform: rotate(-8deg);
}

.placeholder-sun {
  position: absolute;
  top: 12%;
  right: 13%;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(255, 243, 196, 0.75);
  box-shadow: 0 0 60px rgba(255, 243, 196, 0.35);
}

.placeholder-label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  color: var(--paper);
  background: rgba(22, 59, 52, 0.55);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.placeholder-label svg {
  width: 17px;
  height: 17px;
}

.hero-caption {
  position: absolute;
  z-index: 4;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 19px;
  color: var(--paper);
  background: rgba(22, 59, 52, 0.72);
  backdrop-filter: blur(14px);
}

.hero-caption strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.hero-caption span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.section {
  padding: 86px 0;
}

.section-muted {
  background: rgba(255, 253, 248, 0.72);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}

.section-kicker {
  margin: 0 0 10px;
  color: #6c837d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section h2,
.page-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.6vw, 60px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-head > p {
  max-width: 470px;
  margin: 0;
  color: var(--ink-soft);
}

.story-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(12, 1fr);
}

.story-card {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--paper);
  background: var(--forest);
  box-shadow: 0 18px 45px rgba(42, 65, 59, 0.08);
  text-decoration: none;
}

.story-card:nth-child(1),
.story-card:nth-child(4) {
  grid-column: span 7;
}

.story-card:nth-child(2),
.story-card:nth-child(3) {
  grid-column: span 5;
}

.story-card .photo-placeholder {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.story-card:hover .photo-placeholder,
.story-card:focus-visible .photo-placeholder {
  transform: scale(1.035);
}

.story-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(13, 43, 37, 0.9), rgba(13, 43, 37, 0.02) 68%);
}

.story-copy {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 25px;
  left: 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.story-copy span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.story-copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.06;
}

.arrow-chip {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  place-items: center;
  backdrop-filter: blur(8px);
}

.about-grid {
  display: grid;
  align-items: stretch;
  gap: 24px;
  grid-template-columns: 1.12fr 0.88fr;
}

.about-card,
.contact-card {
  padding: clamp(34px, 5vw, 60px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.about-card {
  color: var(--paper);
  background: var(--forest-deep);
}

.about-card .section-kicker {
  color: var(--sage);
}

.about-card h2 {
  max-width: 700px;
}

.about-card > p:not(.section-kicker) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.7);
}

.signature {
  margin-top: 38px;
  color: #d9a94e;
  font-family: "Snell Roundhand", "Segoe Script", cursive;
  font-size: 30px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper);
}

.contact-card h3 {
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
}

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

.contact-list li {
  display: grid;
  gap: 2px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.contact-list small {
  color: #73847f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-list a {
  font-weight: 700;
  text-decoration: none;
}

.legacy-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 24px;
  padding: 26px 30px;
  border: 1px solid rgba(230, 169, 61, 0.32);
  border-radius: var(--radius-md);
  background: #fbf1d9;
}

.legacy-note p {
  margin: 0;
  color: #5d533d;
}

.legacy-note strong {
  color: var(--ink);
}

.legacy-note a {
  flex: 0 0 auto;
  color: var(--forest-deep);
  font-weight: 800;
}

.page-hero {
  padding: 52px 0 64px;
}

.page-hero-grid {
  display: grid;
  align-items: stretch;
  gap: 28px;
  grid-template-columns: 0.82fr 1.18fr;
}

.page-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 10px 36px 0;
}

.page-hero-copy p:last-child {
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 19px;
}

.page-hero .photo-placeholder {
  min-height: 440px;
}

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

.gallery-item {
  margin: 0;
}

.gallery-item .photo-placeholder {
  min-height: 320px;
  border-color: rgba(24, 51, 47, 0.12);
}

.gallery-item:nth-child(2) .photo-placeholder,
.gallery-item:nth-child(5) .photo-placeholder {
  background: linear-gradient(155deg, #d7c7a5, #a69376 56%, #6e745e);
}

.gallery-item:nth-child(3) .photo-placeholder,
.gallery-item:nth-child(6) .photo-placeholder {
  background: linear-gradient(155deg, #b8cad5, #899fa8 56%, #5f7875);
}

.gallery-item figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.gallery-item figcaption strong {
  color: var(--ink);
  font-size: 15px;
}

.entry-content {
  max-width: 760px;
  margin: 0 auto;
}

.entry-content > * {
  max-width: 100%;
}

.site-footer {
  padding: 36px 0 30px;
  color: #d9e3dc;
  background: var(--forest-deep);
}

.footer-top {
  display: grid;
  align-items: start;
  gap: 50px;
  padding: 52px 0 65px;
  grid-template-columns: 1fr auto;
}

.footer-top h2 {
  max-width: 640px;
  margin: 0;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.footer-nav {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--paper);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: white;
  background: var(--forest-deep);
  transform: translateY(-160%);
}

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

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .mobile-nav {
    position: relative;
    display: block;
  }

  .mobile-nav summary {
    display: grid;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    list-style: none;
    background: var(--paper);
    place-items: center;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav summary span,
  .mobile-nav summary::before,
  .mobile-nav summary::after {
    width: 18px;
    height: 2px;
    content: "";
    background: var(--ink);
  }

  .mobile-nav summary {
    align-content: center;
    gap: 4px;
  }

  .mobile-nav ul {
    position: absolute;
    top: 56px;
    right: 0;
    width: min(310px, calc(100vw - 40px));
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    list-style: none;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .mobile-nav a {
    display: block;
    padding: 11px 13px;
    border-radius: 10px;
    text-decoration: none;
  }

  .hero-shell,
  .about-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    min-height: auto;
  }

  .hero-copy {
    padding-bottom: 30px;
  }

  .hero-visual {
    min-height: 500px;
    margin: 0 28px 28px;
  }

  .page-hero-copy {
    padding-bottom: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100% - 28px, 1180px);
  }

  .site-header {
    padding: 15px 0;
  }

  .brand-note {
    display: none;
  }

  .hero {
    padding-top: 12px;
    padding-bottom: 52px;
  }

  .hero-shell {
    border-radius: 27px;
  }

  .hero-copy {
    padding: 42px 28px 24px;
  }

  .hero h1 {
    font-size: clamp(43px, 14vw, 64px);
  }

  .hero-visual {
    min-height: 410px;
    margin: 0 14px 14px;
  }

  .photo-placeholder {
    border-radius: 20px;
  }

  .hero-caption {
    right: 11px;
    bottom: 11px;
    left: 11px;
  }

  .section {
    padding: 62px 0;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .story-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .story-card:nth-child(n) {
    min-height: 360px;
    grid-column: auto;
  }

  .about-card,
  .contact-card {
    padding: 32px 25px;
    border-radius: 25px;
  }

  .legacy-note {
    align-items: start;
    flex-direction: column;
  }

  .page-hero {
    padding: 25px 0 44px;
  }

  .page-hero .photo-placeholder {
    min-height: 330px;
  }

  .gallery-item .photo-placeholder {
    min-height: 340px;
  }

  .footer-top,
  .footer-bottom {
    display: grid;
  }
}

/* Legacy-inspired sidebar layout ------------------------------------------ */

body {
  padding: 24px;
}

.wp-site-blocks {
  display: grid;
  max-width: 1460px;
  margin-inline: auto;
  gap: 24px;
  grid-template-columns: 280px minmax(0, 1fr);
}

.site-header.wp-block-group {
  position: sticky;
  top: 24px;
  z-index: 20;
  height: calc(100vh - 48px);
  min-height: 620px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  color: var(--paper);
  background:
    radial-gradient(circle at 15% 12%, rgba(159, 185, 170, 0.22), transparent 29%),
    var(--forest-deep);
  box-shadow: 0 24px 70px rgba(23, 53, 46, 0.16);
  grid-column: 1;
  grid-row: 1 / span 3;
}

.site-header .header-inner {
  display: flex;
  width: 100%;
  max-width: none !important;
  height: 100%;
  margin: 0;
  padding: 30px 26px 28px;
  align-items: stretch;
  flex-direction: column;
}

.sidebar-top {
  width: 100%;
}

.site-header .brand {
  width: 100%;
}

.site-header .brand-mark {
  flex: 0 0 48px;
  color: var(--forest-deep);
  background: var(--sun);
  box-shadow: none;
}

.site-header .brand-name {
  color: var(--paper);
}

.site-header .brand-note {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  line-height: 1.35;
}

.sidebar-welcome {
  margin: 46px 0 18px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.55;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header .site-nav.wp-block-navigation {
  width: 100%;
  margin-top: 0;
}

.site-header .site-nav .wp-block-navigation__container {
  width: 100%;
  gap: 2px;
  align-items: stretch;
}

.site-header .site-nav .wp-block-navigation-item {
  width: 100%;
}

.site-header .site-nav .wp-block-navigation-item__content {
  position: relative;
  display: flex;
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
}

.site-header .site-nav .wp-block-navigation-item__content::after {
  margin-left: auto;
  content: "↗";
  opacity: 0;
  transform: translate(-6px, 4px);
  transition: opacity 180ms ease, transform 220ms ease;
}

.site-header .site-nav .wp-block-navigation-item__content:hover,
.site-header .site-nav .wp-block-navigation-item__content:focus-visible,
.site-header .site-nav .current-menu-item > .wp-block-navigation-item__content {
  padding-left: 10px;
  color: var(--paper);
  background: transparent;
  transform: none;
}

.site-header .site-nav .wp-block-navigation-item__content:hover::after,
.site-header .site-nav .wp-block-navigation-item__content:focus-visible::after,
.site-header .site-nav .current-menu-item > .wp-block-navigation-item__content::after {
  opacity: 1;
  transform: translate(0, 0);
}

.sidebar-signature {
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-signature p {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-signature p:first-child {
  margin-bottom: 3px;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
}

.site-main,
.editable-page {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(24, 51, 47, 0.08);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: 0 22px 65px rgba(36, 65, 57, 0.1);
  grid-column: 2;
}

.site-footer {
  overflow: hidden;
  border-radius: 30px;
  grid-column: 2;
}

.home-panel.wp-block-group {
  padding: 24px;
}

.home-panel > .alignwide,
.old-home-content.wp-block-columns,
.company-card.wp-block-group {
  width: 100%;
  max-width: none !important;
}

.home-photo.wp-block-cover {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(29, 59, 52, 0.14);
}

.home-photo .wp-block-cover__image-background {
  object-position: center 44%;
}

.home-photo::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 36%, rgba(15, 43, 37, 0.84) 100%);
}

.home-photo .wp-block-cover__inner-container {
  z-index: 2;
}

.home-photo-caption {
  max-width: 720px;
  margin: 0 !important;
  padding: 48px;
}

.home-photo-caption .eyebrow {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 12px rgba(9, 27, 23, 0.5);
}

.home-photo-caption h1 {
  max-width: 680px;
  margin: 10px 0 18px;
  color: var(--paper);
  font-size: clamp(48px, 6.5vw, 88px) !important;
  text-shadow: 0 2px 24px rgba(9, 27, 23, 0.32);
}

.home-photo-caption h1 em {
  color: #e8d7a4;
}

.home-photo-caption .hero-intro {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 19px;
  text-shadow: 0 1px 14px rgba(9, 27, 23, 0.46);
}

.old-home-content.wp-block-columns {
  display: grid;
  gap: 18px;
  margin: 18px 0 0;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
}

.home-intro-card,
.home-contact-card {
  padding: clamp(30px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.home-intro-card {
  background: #fbf7ee;
}

.home-intro-card h2 {
  max-width: 560px;
  margin: 12px 0 22px;
  font-size: clamp(38px, 4.5vw, 62px);
}

.home-intro-card .has-large-font-size {
  max-width: 650px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 20px !important;
  line-height: 1.55;
}

.home-intro-card > p:not(.section-kicker, .signature) {
  max-width: 620px;
}

.home-buttons {
  margin-top: 30px;
}

.home-buttons .wp-block-button__link {
  transition: transform 220ms ease, color 180ms ease, background-color 180ms ease;
}

.home-buttons .wp-block-button__link:hover,
.home-buttons .wp-block-button__link:focus-visible {
  transform: translateY(-3px);
}

.home-contact-card {
  color: var(--paper);
  background: var(--forest-deep);
}

.home-contact-card .section-kicker {
  color: #e8d7a4;
}

.home-contact-card h3 {
  margin: 12px 0 32px;
  color: var(--paper);
  font-size: clamp(30px, 3vw, 42px);
}

.home-contact-card .contact-list {
  gap: 0;
}

.home-contact-card .contact-list p {
  padding: 16px 0;
  border-top-color: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.82);
}

.home-contact-card .contact-list small {
  color: rgba(255, 255, 255, 0.48);
}

.home-contact-card .contact-list a {
  color: var(--paper);
}

.company-card.wp-block-group {
  gap: 36px;
  margin: 18px 0 0;
  padding: 28px clamp(28px, 4vw, 50px);
  border: 1px solid rgba(230, 169, 61, 0.28);
  border-radius: 24px;
  background: #fff7df;
}

.company-logo {
  flex: 0 0 240px;
  margin: 0;
  overflow: visible;
}

.company-logo img {
  width: 100% !important;
  height: auto;
  padding: 8px 10px 8px 14px;
  object-fit: contain;
}

.company-copy {
  max-width: 570px;
  margin: 0 !important;
}

.company-copy p {
  margin: 0;
}

.company-copy p + p {
  margin-top: 7px;
}

.company-copy a {
  font-weight: 750;
}

.page-title-band {
  padding: 56px clamp(28px, 6vw, 72px) 34px;
  background: var(--paper);
}

.page-title-band > .alignwide {
  width: 100%;
}

.page-title-band .wp-block-post-title {
  max-width: 850px;
  font-size: clamp(48px, 7vw, 88px);
}

.editable-page .wp-block-post-content {
  background: var(--paper);
}

.editable-page .page-intro-grid.wp-block-group {
  width: calc(100% - 48px);
  max-width: none !important;
  margin-inline: auto;
  padding-top: 0;
}

.editable-page .page-feature.wp-block-cover {
  overflow: hidden;
  border-radius: 24px;
}

.editable-page .page-gallery-section {
  background: #fbf7ee;
}

@media (max-width: 1100px) {
  .wp-site-blocks {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .site-header .header-inner {
    padding-inline: 22px;
  }

  .old-home-content.wp-block-columns {
    grid-template-columns: 1fr;
  }

  .home-photo-caption {
    padding: 38px;
  }
}

@media (max-width: 980px) {
  body {
    padding: 0;
  }

  .wp-site-blocks {
    display: block;
    max-width: none;
  }

  .site-header.wp-block-group {
    position: relative;
    top: auto;
    min-height: 0;
    height: auto;
    padding: 14px 0;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    background: rgba(247, 243, 234, 0.96);
    box-shadow: none;
  }

  .site-header .header-inner {
    width: var(--container);
    height: auto;
    margin-inline: auto;
    padding: 0;
    flex-direction: row;
  }

  .sidebar-top {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
  }

  .site-header .brand {
    width: auto;
  }

  .site-header .brand-mark {
    color: var(--paper);
    background: var(--forest);
  }

  .site-header .brand-name {
    color: var(--ink);
  }

  .site-header .brand-note {
    color: var(--ink-soft);
  }

  .sidebar-welcome,
  .sidebar-signature {
    display: none;
  }

  .site-header .site-nav.wp-block-navigation {
    width: auto;
  }

  .site-header .site-nav .wp-block-navigation__container {
    width: auto;
  }

  .site-header .site-nav .wp-block-navigation__responsive-container.is-menu-open {
    color: var(--paper);
  }

  .site-header .site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    width: 100%;
    align-items: stretch;
  }

  .site-header .site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    padding: 12px 0;
    color: var(--paper);
  }

  .site-main,
  .editable-page,
  .site-footer {
    border-radius: 0;
  }

  .home-panel.wp-block-group {
    padding: 16px;
  }
}

@media (max-width: 720px) {
  .home-photo.wp-block-cover {
    min-height: 500px !important;
  }

  .home-photo-caption {
    padding: 28px 22px;
  }

  .home-photo-caption .eyebrow {
    display: block;
    font-size: 9px;
    line-height: 1.5;
    letter-spacing: 0.13em;
  }

  .home-photo-caption .eyebrow::before {
    display: block;
    margin-bottom: 12px;
  }

  .home-photo-caption h1 {
    font-size: 44px !important;
    letter-spacing: -0.045em;
  }

  .home-photo-caption .hero-intro {
    font-size: 16px;
  }

  .home-intro-card,
  .home-contact-card {
    padding: 30px 24px;
  }

  .home-intro-card h2 {
    font-size: 39px;
  }

  .company-card.wp-block-group {
    align-items: flex-start;
    flex-direction: column;
  }

  .company-logo {
    flex-basis: auto;
  }

  .page-title-band {
    padding-inline: 24px;
  }

  .editable-page .page-intro-grid.wp-block-group {
    width: calc(100% - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Homepage legibility and contact-card polish ---------------------------- */

.home-photo .wp-block-cover__background {
  background-color: #102f29 !important;
  opacity: 0.34 !important;
}

.home-photo::after {
  background:
    linear-gradient(90deg, rgba(8, 31, 26, 0.7) 0%, rgba(8, 31, 26, 0.4) 50%, rgba(8, 31, 26, 0.12) 100%),
    linear-gradient(0deg, rgba(8, 31, 26, 0.9) 0%, rgba(8, 31, 26, 0.24) 74%, transparent 100%);
}

.home-photo-caption {
  max-width: 790px;
}

.home-photo-caption .eyebrow {
  width: fit-content;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff !important;
  background: rgba(9, 39, 32, 0.38);
  box-shadow: 0 8px 24px rgba(6, 24, 20, 0.14);
  text-shadow: 0 2px 12px rgba(4, 20, 17, 0.76);
  backdrop-filter: blur(7px);
}

.home-photo-caption h1 {
  max-width: 760px;
  color: #fff !important;
  font-size: clamp(48px, 5.4vw, 78px) !important;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 30px rgba(3, 20, 16, 0.82), 0 1px 3px rgba(3, 20, 16, 0.9);
}

.home-photo-caption h1 em {
  color: #ffe2a0 !important;
  font-weight: 500;
  text-shadow: 0 4px 28px rgba(3, 20, 16, 0.9), 0 1px 3px rgba(3, 20, 16, 0.9);
}

.home-photo-caption .hero-intro {
  color: #fff !important;
  font-size: clamp(17px, 1.55vw, 20px);
  font-weight: 560;
  line-height: 1.5;
  text-shadow: 0 2px 16px rgba(3, 20, 16, 0.95);
}

.home-contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 100% 0%, rgba(230, 169, 61, 0.17), transparent 36%),
    linear-gradient(155deg, #1b4940 0%, #12352f 100%);
  box-shadow: 0 20px 46px rgba(19, 53, 46, 0.16);
}

.home-contact-card::after {
  position: absolute;
  z-index: -1;
  width: 150px;
  height: 150px;
  right: -68px;
  bottom: -76px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.home-contact-card h3 {
  margin-bottom: 24px;
  line-height: 1.08;
}

.home-contact-card .contact-list.wp-block-group {
  display: grid;
  gap: 10px;
}

.home-contact-card .contact-list p {
  min-width: 0;
  margin: 0;
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.055);
  line-height: 1.5;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.home-contact-card .contact-list p:hover {
  border-color: rgba(230, 169, 61, 0.45);
  background: rgba(255, 255, 255, 0.085);
  transform: translateY(-2px);
}

.home-contact-card .contact-list small {
  display: block;
  margin-bottom: 7px;
  color: #e9c982;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.home-contact-card .contact-list a {
  display: inline-block;
  max-width: 100%;
  color: #fff !important;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-decoration: none;
  text-decoration-color: rgba(230, 169, 61, 0.7);
  text-underline-offset: 4px;
}

.home-contact-card .contact-list a:hover,
.home-contact-card .contact-list a:focus-visible {
  color: #ffe2a0 !important;
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .home-contact-card .contact-list.wp-block-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-contact-card .contact-list p:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .home-photo .wp-block-cover__background {
    opacity: 0.4 !important;
  }

  .home-photo::after {
    background: linear-gradient(0deg, rgba(7, 30, 25, 0.94) 0%, rgba(7, 30, 25, 0.5) 64%, rgba(7, 30, 25, 0.12) 100%);
  }

  .home-photo-caption {
    padding: 28px 20px;
  }

  .home-photo-caption .eyebrow {
    padding: 6px 9px;
    font-size: 10px;
    line-height: 1.35;
  }

  .home-photo-caption h1 {
    margin-block: 14px 16px;
    font-size: clamp(38px, 11vw, 48px) !important;
    line-height: 1.02;
    letter-spacing: -0.035em;
  }

  .home-photo-caption .hero-intro {
    font-size: 15px;
    line-height: 1.5;
  }

  .home-contact-card .contact-list.wp-block-group {
    grid-template-columns: 1fr;
  }

  .home-contact-card .contact-list p:first-child {
    grid-column: auto;
  }

  .home-contact-card h3 {
    margin-bottom: 20px;
    font-size: clamp(31px, 9vw, 38px);
  }
}

/* Block theme integration -------------------------------------------------- */

.wp-site-blocks,
.wp-site-blocks > * {
  margin-block-start: 0;
}

.site-header.wp-block-group,
.site-footer.wp-block-group,
.hero.wp-block-group,
.section.wp-block-group {
  margin-block-start: 0;
}

.site-header .header-inner,
.site-footer > .wp-block-group,
.hero > .hero-shell,
.section > .alignwide,
.page-title-band > .alignwide,
.editable-page .wp-block-post-content > .alignwide,
.editable-page .wp-block-post-content > .alignfull > .alignwide {
  width: var(--container);
  max-width: 1180px !important;
  margin-inline: auto;
}

.brand.wp-block-group {
  gap: 13px;
  margin: 0;
}

.brand-mark.wp-block-paragraph {
  margin: 0;
  padding: 0;
}

.brand-mark a {
  display: grid;
  width: 100%;
  height: 100%;
  color: inherit;
  font-size: 25px;
  line-height: 1;
  text-decoration: none;
  place-items: center;
}

.brand-name.wp-block-site-title,
.brand-note.wp-block-site-tagline {
  margin: 0;
}

.brand-name a {
  color: inherit;
  text-decoration: none;
}

.site-nav.wp-block-navigation {
  margin: 0;
}

.site-nav .wp-block-navigation__container {
  gap: 6px;
}

.site-nav .wp-block-navigation-item__content {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-nav .wp-block-navigation-item__content:hover,
.site-nav .wp-block-navigation-item__content:focus-visible,
.site-nav .current-menu-item > .wp-block-navigation-item__content {
  color: var(--paper);
  background: var(--forest);
  transform: translateY(-1px);
}

.hero-shell.wp-block-columns,
.about-grid.wp-block-columns {
  display: grid;
  gap: 0;
}

.hero-shell.wp-block-columns {
  grid-template-columns: 1.06fr 0.94fr;
}

.hero-shell > .wp-block-column,
.about-grid > .wp-block-column {
  margin: 0;
}

.hero-copy.wp-block-column > * {
  margin-block-end: 0;
}

.hero-actions.wp-block-buttons {
  gap: 12px;
}

.hero-actions .wp-block-button__link {
  display: inline-flex;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.hero-actions .wp-block-button__link:hover,
.hero-actions .wp-block-button__link:focus-visible {
  transform: translateY(-2px);
}

.hero-actions .wp-block-button.button-primary,
.hero-actions .wp-block-button.button-secondary {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-actions .button-primary .wp-block-button__link {
  color: var(--forest-deep);
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.hero-actions .button-secondary .wp-block-button__link {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
}

.photo-placeholder.wp-block-cover {
  display: grid;
  align-items: stretch;
  justify-content: stretch;
  grid-template-columns: minmax(0, 1fr);
  color: var(--paper);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), transparent 42%),
    linear-gradient(165deg, #bfd0c5 0%, #92af9f 52%, #6f8f80 100%);
}

.photo-placeholder.wp-block-cover .wp-block-cover__background {
  opacity: 0 !important;
}

.photo-placeholder.wp-block-cover > .wp-block-cover__inner-container {
  z-index: 3;
  display: grid;
  width: 100% !important;
  height: 100%;
  min-height: inherit;
  place-items: center;
}

.photo-placeholder.wp-block-cover > .wp-block-cover__inner-container::before {
  position: absolute;
  z-index: -1;
  top: 12%;
  right: 13%;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  content: "";
  background: rgba(255, 243, 196, 0.75);
  box-shadow: 0 0 60px rgba(255, 243, 196, 0.35);
}

.photo-placeholder .placeholder-label {
  width: fit-content;
  margin: auto;
}

.photo-placeholder:has(.wp-block-cover__image-background) > .wp-block-cover__inner-container > .placeholder-label,
.photo-placeholder:has(.wp-block-cover__image-background) > .wp-block-cover__inner-container::before,
.photo-placeholder:has(.wp-block-cover__image-background)::before,
.photo-placeholder:has(.wp-block-cover__image-background)::after {
  display: none;
}

.hero-visual.wp-block-cover {
  display: grid;
  min-height: 590px;
  margin: 34px 34px 34px 0;
  padding: 0;
}

.hero-visual .hero-caption.wp-block-group {
  position: absolute;
  z-index: 4;
  right: auto;
  left: 20px;
  width: calc(100% - 40px) !important;
  max-width: none !important;
  justify-self: stretch !important;
}

.hero-caption h3,
.hero-caption p {
  margin: 0;
}

.hero-caption h3 {
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.hero-caption p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.story-card.wp-block-cover {
  display: block;
  padding: 0;
}

.story-card.wp-block-cover > .wp-block-cover__inner-container {
  width: 100%;
  height: 100%;
}

.story-card.wp-block-cover::after {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(13, 43, 37, 0.9), rgba(13, 43, 37, 0.02) 68%);
  transform: none;
}

.story-card .story-copy.wp-block-group {
  position: absolute;
  z-index: 4;
}

.story-copy > div > p:first-child {
  display: block;
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.story-copy h3 a {
  color: var(--paper);
  text-decoration: none;
}

.story-copy .arrow-chip {
  margin: 0;
}

.about-grid.wp-block-columns {
  gap: 24px;
  grid-template-columns: 1.12fr 0.88fr;
}

.about-card.wp-block-column,
.contact-card.wp-block-column {
  flex-basis: auto;
}

.about-card > *,
.contact-card > * {
  margin-block-end: 0;
}

.contact-list.wp-block-group {
  margin: 0;
}

.contact-list p {
  margin: 0;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.contact-list small {
  color: #73847f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-top.wp-block-group {
  grid-template-columns: 1fr auto;
}

.footer-nav.wp-block-navigation,
.footer-nav .wp-block-navigation__container {
  align-items: flex-start;
}

.footer-bottom p {
  margin: 0;
}

.page-title-band {
  padding: 54px 0 26px;
}

.page-title-band .wp-block-post-title {
  margin-block: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
}

.editable-page .wp-block-post-content {
  width: 100%;
  max-width: none !important;
  margin-block-start: 0;
}

.editable-page .wp-block-post-content > .alignfull {
  width: 100%;
  max-width: none !important;
}

.page-intro-grid.wp-block-group {
  display: grid;
  align-items: stretch;
  gap: 28px;
  padding: 26px 0 72px;
  grid-template-columns: 0.82fr 1.18fr;
}

.page-intro-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 24px 34px 0;
}

.page-intro-copy p {
  margin-block-end: 0;
}

.page-intro-copy .has-large-font-size {
  font-size: 20px !important;
  line-height: 1.55;
}

.page-feature.wp-block-cover,
.gallery-placeholder.wp-block-cover {
  padding: 0;
}

.page-gallery-section {
  background: rgba(255, 253, 248, 0.72);
}

.editable-gallery.wp-block-group {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-placeholder.wp-block-cover > .wp-block-cover__inner-container {
  width: 100%;
  height: 100%;
}

.gallery-placeholder:nth-child(2),
.gallery-placeholder:nth-child(5) {
  background: linear-gradient(155deg, #d7c7a5, #a69376 56%, #6e745e);
}

.gallery-placeholder:nth-child(3),
.gallery-placeholder:nth-child(6) {
  background: linear-gradient(155deg, #b8cad5, #899fa8 56%, #5f7875);
}

.gallery-caption.wp-block-group {
  position: absolute;
  z-index: 4;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  color: var(--paper);
  background: rgba(22, 59, 52, 0.68);
  backdrop-filter: blur(10px);
}

.gallery-caption p {
  margin: 0;
  color: inherit;
  font-size: 12px;
}

.gallery-caption strong {
  font-size: 14px;
}

.post-card {
  height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

/* Minimal motion ---------------------------------------------------------- */

@keyframes rudih-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header {
  animation: rudih-fade-up 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy > *,
.hero-visual {
  animation: rudih-fade-up 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 70ms;
}

.hero-copy > :nth-child(3) {
  animation-delay: 130ms;
}

.hero-copy > :nth-child(4),
.hero-visual {
  animation-delay: 190ms;
}

.brand-mark,
.site-nav .wp-block-navigation-item__content,
.hero-actions .wp-block-button__link,
.story-card,
.gallery-placeholder,
.page-feature,
.about-card,
.contact-card,
.legacy-note,
.post-card,
.arrow-chip,
.placeholder-label,
.wp-block-cover__image-background {
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    color 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 260ms ease,
    opacity 220ms ease;
}

.brand-mark:hover {
  transform: translateY(-2px) rotate(-4deg);
  box-shadow: 0 14px 34px rgba(33, 78, 69, 0.26);
}

.hero-actions .wp-block-button__link:hover,
.hero-actions .wp-block-button__link:focus-visible {
  transform: translateY(-3px) scale(1.01);
}

.story-card:hover,
.story-card:focus-within,
.gallery-placeholder:hover,
.gallery-placeholder:focus-within,
.post-card:hover,
.post-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(29, 59, 52, 0.16);
}

.story-card:hover .arrow-chip,
.story-card:focus-within .arrow-chip {
  transform: translate(3px, -3px) rotate(4deg);
  background: rgba(255, 255, 255, 0.2);
}

.story-card:hover .placeholder-label,
.gallery-placeholder:hover .placeholder-label,
.page-feature:hover .placeholder-label,
.hero-visual:hover .placeholder-label {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(22, 59, 52, 0.72);
}

.photo-placeholder:hover > .wp-block-cover__inner-container::before {
  transform: scale(1.06) translate(-2px, 2px);
}

.photo-placeholder > .wp-block-cover__inner-container::before {
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-placeholder:hover .wp-block-cover__image-background {
  transform: scale(1.025);
}

.about-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(29, 59, 52, 0.11);
}

.legacy-note:hover {
  border-color: rgba(230, 169, 61, 0.55);
  transform: translateY(-2px);
}

.contact-list a,
.legacy-note a {
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.contact-list a:hover,
.legacy-note a:hover {
  color: #a66d14;
  text-decoration-color: currentColor;
}

.site-nav a:focus-visible,
.hero-actions a:focus-visible,
.story-card a:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 4px;
}

.footer-top.wp-block-group {
  grid-template-columns: minmax(0, 720px);
}

@media (max-width: 980px) {
  .site-nav.wp-block-navigation {
    display: flex;
  }

  .site-nav .wp-block-navigation__responsive-container-open {
    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
  }

  .site-nav .wp-block-navigation__responsive-container.is-menu-open {
    padding: 32px;
    color: var(--paper) !important;
    background: var(--forest-deep) !important;
  }

  .site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    color: var(--paper);
    font-size: 21px;
  }

  .hero-shell.wp-block-columns,
  .about-grid.wp-block-columns,
  .page-intro-grid.wp-block-group {
    grid-template-columns: 1fr;
  }

  .editable-gallery.wp-block-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual.wp-block-cover {
    min-height: 500px;
    margin: 0 28px 28px;
  }
}

@media (max-width: 720px) {
  .header-inner.wp-block-group {
    flex-wrap: nowrap !important;
  }

  .brand-text {
    min-width: 0;
  }

  .hero-shell.wp-block-columns {
    gap: 0;
  }

  .hero-visual.wp-block-cover {
    min-height: 410px;
    margin: 0 14px 14px;
  }

  .page-title-band {
    padding-top: 32px;
  }

  .page-intro-grid.wp-block-group {
    padding: 10px 0 52px;
  }

  .page-intro-copy {
    padding: 18px 4px 0;
  }

  .editable-gallery.wp-block-group {
    grid-template-columns: 1fr;
  }

  .gallery-placeholder.wp-block-cover {
    min-height: 340px !important;
  }

  .footer-top.wp-block-group {
    grid-template-columns: 1fr;
  }
}

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

/* Keep the sidebar layout authoritative after the shared block styles. */

.site-header .header-inner {
  width: 100%;
  max-width: none !important;
  margin: 0;
}

.page-title-band {
  padding: 56px clamp(28px, 6vw, 72px) 34px;
  background: var(--paper);
}

@media (max-width: 980px) {
  .site-header .header-inner {
    width: var(--container);
    margin-inline: auto;
    padding: 0;
    flex-direction: row;
  }

  .page-title-band {
    padding-inline: 28px;
  }
}

@media (max-width: 720px) {
  .page-title-band {
    padding: 32px 24px 24px;
  }
}

/* Responsive system: editor, tablet and frontend share the same breakpoints. */

.home-contact-card h3,
.home-intro-card h2,
.page-title-band .wp-block-post-title,
.footer-top h2 {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
}

.home-contact-card h3 {
  font-size: clamp(28px, 2.3vw, 38px);
}

.site-footer,
.site-footer > .wp-block-group,
.footer-top,
.footer-bottom {
  min-width: 0;
  max-width: 100%;
}

.footer-top.wp-block-group {
  grid-template-columns: minmax(0, 1fr);
}

.footer-top h2 {
  font-size: clamp(32px, 4.4vw, 54px);
  hyphens: auto;
}

@media (min-width: 1320px) {
  .wp-site-blocks > footer.wp-block-template-part {
    min-width: 0;
    grid-column: 1 / -1;
  }

  .wp-site-blocks > footer.wp-block-template-part .site-footer {
    width: 100%;
  }

  body {
    padding: 24px;
  }

  .wp-site-blocks {
    display: grid;
    max-width: 1460px;
    margin-inline: auto;
    gap: 24px;
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .wp-site-blocks > .site-header.wp-block-group {
    position: sticky;
    top: 24px;
    height: calc(100vh - 48px);
    min-height: 620px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: var(--paper);
    background:
      radial-gradient(circle at 15% 12%, rgba(159, 185, 170, 0.22), transparent 29%),
      var(--forest-deep);
    box-shadow: 0 24px 70px rgba(23, 53, 46, 0.16);
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  .wp-site-blocks > .site-header .header-inner {
    display: flex;
    width: 100%;
    max-width: none !important;
    height: 100%;
    margin: 0;
    padding: 30px 26px 28px;
    align-items: stretch;
    flex-direction: column;
  }

  .wp-site-blocks > .site-header .sidebar-top {
    display: block;
    width: 100%;
  }

  .wp-site-blocks > .site-header .brand {
    width: 100%;
  }

  .wp-site-blocks > .site-header .brand-mark {
    color: var(--forest-deep);
    background: var(--sun);
  }

  .wp-site-blocks > .site-header .brand-name {
    color: var(--paper);
  }

  .wp-site-blocks > .site-header .brand-note {
    color: rgba(255, 255, 255, 0.58);
  }

  .wp-site-blocks > .site-header .sidebar-welcome,
  .wp-site-blocks > .site-header .sidebar-signature {
    display: block;
  }

  .wp-site-blocks > .site-header .site-nav.wp-block-navigation {
    width: 100%;
  }

  .wp-site-blocks > .site-header .site-nav .wp-block-navigation__responsive-container-open {
    display: none !important;
  }

  .wp-site-blocks > .site-header .site-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
    position: static;
    display: block !important;
    width: 100%;
    height: auto;
    background: transparent;
  }

  .wp-site-blocks > .site-header .site-nav .wp-block-navigation__container {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .site-main,
  .editable-page,
  .site-footer {
    grid-column: 2;
  }
}

@media (max-width: 1319px) {
  body {
    padding: 16px;
  }

  .wp-site-blocks {
    display: block;
    max-width: none;
  }

  .site-header.wp-block-group {
    position: relative;
    top: auto;
    z-index: 30;
    min-height: 0;
    height: auto;
    padding: 14px 0;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 22px;
    color: var(--ink);
    background: rgba(247, 243, 234, 0.97);
    box-shadow: 0 12px 38px rgba(36, 65, 57, 0.08);
    animation: none;
    transform: none;
  }

  .site-header .header-inner {
    display: flex;
    width: min(1180px, calc(100% - 32px));
    max-width: none !important;
    height: auto;
    margin-inline: auto;
    padding: 0;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .site-header .sidebar-top {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
  }

  .site-header .sidebar-top > .brand,
  .site-header .sidebar-top > .site-nav {
    max-width: none !important;
    margin-inline: 0 !important;
  }

  .site-header .brand {
    width: auto;
  }

  .site-header .brand-mark {
    color: var(--paper);
    background: var(--forest);
  }

  .site-header .brand-name {
    color: var(--ink);
  }

  .site-header .brand-note {
    color: var(--ink-soft);
  }

  .site-header .sidebar-welcome,
  .site-header .sidebar-signature {
    display: none;
  }

  .site-header .site-nav.wp-block-navigation {
    width: auto;
  }

  .site-header .site-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }

  .site-header .site-nav .wp-block-navigation__responsive-container-open {
    display: flex !important;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: var(--paper);
  }

  .site-header .site-nav .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed;
    z-index: 100000;
    inset: 0;
    padding: clamp(28px, 7vw, 64px);
    color: var(--paper) !important;
    background: var(--forest-deep) !important;
  }

  .site-header .site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    width: 100%;
    gap: 0;
    align-items: stretch;
  }

  .site-header .site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    width: 100%;
  }

  .site-header .site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--paper);
    font-size: clamp(19px, 3vw, 26px);
  }

  .site-main,
  .editable-page,
  .site-footer {
    width: 100%;
    margin-top: 16px;
    border-radius: 24px;
  }

  .old-home-content.wp-block-columns {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  }
}

@media (max-width: 1100px) {
  .old-home-content.wp-block-columns {
    grid-template-columns: 1fr;
  }

  .home-contact-card h3 {
    font-size: clamp(30px, 5vw, 42px);
  }

  .editable-page .page-intro-grid.wp-block-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    padding: 0;
  }

  .site-header.wp-block-group {
    padding: 12px 0;
    border-width: 0 0 1px;
    border-radius: 0;
    box-shadow: none;
  }

  .site-header .header-inner {
    width: calc(100% - 28px);
  }

  .site-header .brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .site-header .brand-name {
    font-size: 24px;
  }

  .site-header .brand-note {
    display: none;
  }

  .site-header .site-nav .wp-block-navigation__responsive-container-open {
    width: 44px;
    height: 44px;
  }

  .site-main,
  .editable-page,
  .site-footer {
    margin-top: 0;
    border-inline: 0;
    border-radius: 0;
  }

  .home-panel.wp-block-group {
    padding: 14px;
  }

  .home-photo.wp-block-cover {
    min-height: 480px !important;
  }

  .home-photo-caption {
    padding: 26px 20px;
  }

  .home-photo-caption h1 {
    max-width: 100%;
    font-size: clamp(38px, 11vw, 46px) !important;
    overflow-wrap: break-word;
  }

  .home-photo-caption .hero-intro {
    font-size: 15px;
    line-height: 1.5;
  }

  .home-intro-card,
  .home-contact-card {
    padding: 28px 22px;
  }

  .home-intro-card h2,
  .home-contact-card h3 {
    font-size: clamp(34px, 10vw, 42px);
  }

  .company-card.wp-block-group {
    padding: 26px 22px;
  }

  .company-logo {
    width: min(100%, 300px);
    max-width: 300px;
  }

  .page-title-band .wp-block-post-title {
    font-size: clamp(42px, 13vw, 60px);
  }

  .footer-top {
    padding: 42px 0 48px;
  }

  .footer-top h2 {
    font-size: clamp(31px, 9.5vw, 42px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

/* Final homepage stacking and narrow-card safeguards. */

.home-photo .wp-block-cover__inner-container {
  position: relative;
  z-index: 3 !important;
}

.home-contact-card {
  padding: clamp(30px, 3vw, 42px);
}

.home-contact-card .contact-list a[href^="tel:"] {
  font-size: 15.5px;
  white-space: nowrap;
}

.home-contact-card .contact-list p {
  width: 100%;
}

@media (min-width: 721px) and (max-width: 1100px) {
  .home-contact-card .contact-list.wp-block-group {
    grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .home-contact-card .contact-list p,
  .home-contact-card .contact-list p:first-child {
    width: 100%;
    height: 100%;
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .home-contact-card {
    padding: 28px 22px;
  }
}

/* Compact, aligned site branding in the upper-left corner. */

.site-header .brand.wp-block-group {
  display: flex;
  max-width: 100%;
  align-items: center;
  gap: 13px;
}

.site-header .brand-mark.wp-block-paragraph {
  flex: 0 0 auto;
}

.site-header .brand-mark svg {
  display: block;
  width: 24px;
  height: 24px;
}

.site-header .brand-text.wp-block-group {
  display: flex;
  min-width: 0;
  margin: 0 !important;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  line-height: 1;
}

.site-header .brand-name.wp-block-site-title,
.site-header .brand-note.wp-block-site-tagline {
  width: auto;
  max-width: 100%;
  margin: 0;
  text-align: left;
}

.site-header .brand-name.wp-block-site-title {
  line-height: 1;
}

.site-header .brand-note.wp-block-site-tagline {
  color: currentColor;
  font-size: 8.5px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: 0.13em;
  opacity: 0.62;
}

@media (max-width: 720px) {
  .site-header .brand.wp-block-group {
    gap: 10px;
  }

  .site-header .brand-mark svg {
    width: 22px;
    height: 22px;
  }

  .site-header .brand-name.wp-block-site-title {
    font-size: 23px;
  }

  .site-header .brand-note.wp-block-site-tagline {
    display: block;
    max-width: 190px;
    font-size: clamp(7px, 2vw, 8.5px);
    line-height: 1.25;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 350px) {
  .site-header .brand-note.wp-block-site-tagline {
    max-width: 150px;
    white-space: normal;
  }
}
