html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background-color: #ffffff;
  color: #2D2926;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: #E8E2D9;
}

.font-serif,
h1, h2, h3 {
  font-family: "DM Serif Display", serif;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }

a.bg-primary-800,
a.bg-primary-900,
button.bg-primary-800,
button.bg-primary-900,
a.bg-emerald-500,
a.bg-emerald-600,
button.bg-emerald-500,
button.bg-emerald-600 {
  color: #ffffff !important;
}

a.bg-primary-800 *,
a.bg-primary-900 *,
button.bg-primary-800 *,
button.bg-primary-900 *,
a.bg-emerald-500 *,
a.bg-emerald-600 *,
button.bg-emerald-500 *,
button.bg-emerald-600 * {
  color: #ffffff !important;
  stroke: #ffffff;
}

a.bg-white,
button.bg-white {
  color: #484833 !important;
}

a.bg-white *,
button.bg-white * {
  color: #484833 !important;
  stroke: #484833;
}

.single-post-cta a {
  color: #5A5A40 !important;
}

.single-post-cta a,
.single-post-cta a * {
  color: #5A5A40 !important;
  stroke: #5A5A40 !important;
}

.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;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.hero-float {
  position: relative;
  aspect-ratio: 980 / 1030;
  animation: drelham-float 6s ease-in-out infinite;
}

.hero-float img,
.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-float img {
  object-position: center 18%;
}

.about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
}

.about-photo img {
  object-position: center 18%;
}

@keyframes drelham-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

:root {
  --header-height: 72px;
  --header-bottom: 72px;
}

body.admin-bar {
  --header-bottom: 104px;
}
@media screen and (max-width: 782px) {
  body.admin-bar {
    --header-bottom: 118px;
  }
}

header[data-site-header] {
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  box-sizing: border-box !important;
}

body.admin-bar header[data-site-header] {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar header[data-site-header] {
    top: 46px !important;
  }
}

.subnav-sticky,
.sticky.subnav-sticky,
.sticky.top-20,
.sticky.top-\[72px\] {
  position: sticky !important;
  top: 72px !important;
  margin-top: 0 !important;
  z-index: 40 !important;
}

body.admin-bar .subnav-sticky,
body.admin-bar .sticky.subnav-sticky,
body.admin-bar .sticky.top-20,
body.admin-bar .sticky.top-\[72px\] {
  top: 104px !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar .subnav-sticky,
  body.admin-bar .sticky.subnav-sticky,
  body.admin-bar .sticky.top-20,
  body.admin-bar .sticky.top-\[72px\] {
    top: 118px !important;
  }
}

.page-container-offset {
  padding-top: 72px !important;
}
body.admin-bar .page-container-offset {
  padding-top: 104px !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar .page-container-offset {
    padding-top: 118px !important;
  }
}

.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* ==========================================================================
   Single Blog Post & Article Typography (H1, H2, H3, H4, P, Images, Lists, Quotes)
   ========================================================================== */
.single-post-content {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #3D3935;
}

/* --- Headings --- */
.single-post-content h2,
.single-post-content h2.wp-block-heading,
.single-post-content .wp-block-heading:is(h2) {
  font-family: "DM Serif Display", Georgia, serif !important;
  font-size: 1.875rem !important; /* 30px mobile */
  line-height: 1.28 !important;
  color: #1A1A18 !important;
  font-weight: 600 !important;
  margin-top: 3.5rem !important;
  margin-bottom: 1.25rem !important;
  padding-bottom: 0.625rem !important;
  border-bottom: 1.5px solid rgba(90, 90, 64, 0.18) !important;
  letter-spacing: -0.01em !important;
  display: block !important;
}

@media (min-width: 640px) {
  .single-post-content h2,
  .single-post-content h2.wp-block-heading,
  .single-post-content .wp-block-heading:is(h2) {
    font-size: 2.25rem !important; /* 36px desktop */
    margin-top: 4rem !important;
    margin-bottom: 1.5rem !important;
  }
}

.single-post-content h3,
.single-post-content h3.wp-block-heading,
.single-post-content .wp-block-heading:is(h3) {
  font-family: "DM Serif Display", Georgia, serif !important;
  font-size: 1.5rem !important; /* 24px */
  line-height: 1.35 !important;
  color: #242220 !important;
  font-weight: 600 !important;
  margin-top: 2.75rem !important;
  margin-bottom: 1rem !important;
  display: block !important;
}

@media (min-width: 640px) {
  .single-post-content h3,
  .single-post-content h3.wp-block-heading,
  .single-post-content .wp-block-heading:is(h3) {
    font-size: 1.65rem !important; /* 26.5px */
    margin-top: 3.25rem !important;
  }
}

.single-post-content h4,
.single-post-content h4.wp-block-heading,
.single-post-content .wp-block-heading:is(h4) {
  font-family: "Inter", system-ui, sans-serif !important;
  font-size: 1.25rem !important;
  line-height: 1.4 !important;
  color: #1A1A18 !important;
  font-weight: 700 !important;
  margin-top: 2.25rem !important;
  margin-bottom: 0.75rem !important;
  display: block !important;
}

.single-post-content h5,
.single-post-content h6 {
  font-family: "Inter", system-ui, sans-serif !important;
  font-size: 1.0625rem !important;
  line-height: 1.4 !important;
  color: #2D2926 !important;
  font-weight: 700 !important;
  margin-top: 1.75rem !important;
  margin-bottom: 0.5rem !important;
  display: block !important;
}

/* --- Paragraphs & Text Elements --- */
.single-post-content p,
.single-post-content .wp-block-paragraph {
  margin-top: 0 !important;
  margin-bottom: 1.625rem !important;
  color: #4A453E !important;
  font-size: 1.0625rem !important;
  line-height: 1.85 !important;
}

.single-post-content p strong,
.single-post-content p b,
.single-post-content strong,
.single-post-content b {
  color: #1A1A18 !important;
  font-weight: 700 !important;
}

.single-post-content a:not([class]) {
  color: #5A5A40 !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  transition: color 0.2s ease !important;
}

.single-post-content a:not([class]):hover {
  color: #484833 !important;
}

/* --- Images, Figures & Galleries (Generous Spacing & Polish) --- */
.single-post-content figure,
.single-post-content .wp-block-image,
.single-post-content .wp-block-gallery,
.single-post-content .wp-block-embed {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
  clear: both !important;
  display: block !important;
}

.single-post-content figure img,
.single-post-content .wp-block-image img,
.single-post-content .wp-block-gallery img,
.single-post-content > img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 1.25rem !important;
  display: block !important;
  margin: 0 auto !important;
  box-shadow: 0 8px 30px -6px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(90, 90, 64, 0.12) !important;
  object-fit: cover !important;
}

.single-post-content figure figcaption,
.single-post-content .wp-block-image figcaption {
  text-align: center !important;
  font-size: 0.875rem !important;
  color: #7C746A !important;
  margin-top: 0.75rem !important;
  font-style: italic !important;
}

/* --- Lists --- */
.single-post-content ul,
.single-post-content .wp-block-list:not(ol) {
  list-style-type: disc !important;
  margin-top: 1rem !important;
  margin-bottom: 1.75rem !important;
  padding-left: 1.75rem !important;
}

.single-post-content ol,
.single-post-content ol.wp-block-list {
  list-style-type: decimal !important;
  margin-top: 1rem !important;
  margin-bottom: 1.75rem !important;
  padding-left: 1.75rem !important;
}

.single-post-content li {
  margin-bottom: 0.625rem !important;
  line-height: 1.8 !important;
  color: #4A453E !important;
}

.single-post-content li::marker {
  color: #5A5A40 !important;
}

/* --- Blockquotes --- */
.single-post-content blockquote,
.single-post-content .wp-block-quote {
  border-left: 4px solid #5A5A40 !important;
  background-color: #FAF8F5 !important;
  padding: 1.5rem 1.75rem !important;
  margin: 2.75rem 0 !important;
  border-radius: 0 1rem 1rem 0 !important;
  font-family: "DM Serif Display", Georgia, serif !important;
  font-size: 1.1875rem !important;
  font-style: italic !important;
  color: #2D2926 !important;
  line-height: 1.65 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03) !important;
}

.single-post-content blockquote p,
.single-post-content .wp-block-quote p {
  margin-bottom: 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
}

/* --- Divider & Tables --- */
.single-post-content hr,
.single-post-content .wp-block-separator {
  border: none !important;
  border-top: 1.5px solid rgba(90, 90, 64, 0.15) !important;
  margin: 3.5rem 0 !important;
}

.single-post-content table,
.single-post-content .wp-block-table table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 2.5rem 0 !important;
  font-size: 0.9375rem !important;
  border-radius: 0.75rem !important;
  overflow: hidden !important;
}

.single-post-content th {
  background-color: #F5F2ED !important;
  color: #1A1A18 !important;
  font-weight: 700 !important;
  text-align: left !important;
  padding: 0.875rem 1.125rem !important;
  border: 1px solid #E8E2D9 !important;
}

.single-post-content td {
  padding: 0.875rem 1.125rem !important;
  border: 1px solid #E8E2D9 !important;
  color: #4A453E !important;
}

/* --- Services Infinite Loop / Marquee --- */
@keyframes services-marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.services-loop-wrapper {
  position: relative;
  width: 100%;
  overflow-x: clip;
  overflow-y: visible;
  padding: 2.5rem 0;
}

.services-loop-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
}

.services-loop-card {
  width: 300px;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .services-loop-card {
    width: 340px;
  }
}

@media (min-width: 1024px) {
  .services-loop-card {
    width: 370px;
  }
}

.services-loop-card {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease, filter 0.5s ease, opacity 0.5s ease;
}

.services-loop-card {
  border-radius: 1.5rem;
}

.services-loop-card.is-center {
  transform: scale(1.18);
  z-index: 2;
  box-shadow: 0 16px 56px rgba(0,0,0,0.25);
}

.services-loop-card.is-center article > a > div:first-of-type {
  background-color: rgba(0,0,0,0.15) !important;
}

.services-loop-card:not(.is-center) {
  filter: brightness(0.78);
  opacity: 0.7;
}


