/* WordPress integration and accessibility adjustments. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body { opacity: 1; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  z-index: 100000; top: 12px; left: 12px; width: auto; height: auto;
  padding: 12px 18px; clip: auto; color: #49372F; background: #FFFFFF;
  border: 2px solid #72B4C6; border-radius: 6px;
}
.admin-bar .work-side-nav { top: 120px; }
.work-simple-layout-no-nav {
  grid-template-columns: minmax(0, 1fr);
}
.toggle-close, .menu-dots { border: 0; }
.toggle-close:focus-visible, .menu-dots:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #F4A261;
  outline-offset: 4px;
}
.portfolio-caption h2 { margin: 0; color: #49372F; }
.wp-post-image { max-width: 100%; height: auto; }
.contact-status { margin-top: 18px; font-weight: 700; }
.contact-status.success { color: #2F7562; }
.contact-status.error { color: #A9473E; }
.contact-honeypot { position: absolute; left: -9999px; }
.contact-form .button {
  display: flex;
  margin-right: auto;
  margin-left: auto;
  border: 0;
}
.pagination-wrap { margin-top: 44px; }
.pagination-wrap .page-numbers { margin: 0 5px; color: #49372F; }
.pagination-wrap .current { color: #F4A261; font-weight: 700; }
.entry-content > *:last-child { margin-bottom: 0; }
.thanks-page {
  display: flex;
  min-height: calc(100vh - 112px);
  flex-direction: column;
}

.thanks-card {
  display: flex;
  max-width: 760px;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(64px, 10vw, 124px) 24px clamp(80px, 12vw, 150px);
  text-align: center;
}

.thanks-eyebrow {
  margin-bottom: 14px;
  color: #72B4C6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.thanks-card h1 {
  margin: 0;
  color: #49372F;
  font-size: 32px;
}

.thanks-divider {
  width: 52px;
  margin: 24px 0 34px;
  border-top: 2px solid #F4A261;
}

.thanks-lead {
  margin: 0;
  color: #49372F;
  font-size: 18px;
  font-weight: 600;
}

.thanks-message {
  margin: 14px 0 0;
  color: #49372F;
  line-height: 1.9;
}

.thanks-home-button {
  margin-top: 42px;
}

.thanks-footer {
  padding: 24px 12px 30px;
}

.thanks-accent-band {
  width: 100%;
  height: 18px;
  flex: 0 0 18px;
  background: #F6D77A;
}

@media (max-width: 575.98px) {
  .thanks-page {
    min-height: calc(100vh - 88px);
  }

  .thanks-card {
    padding: 56px 24px 80px;
  }

  .thanks-card h1 {
    font-size: 28px;
  }

  .thanks-lead {
    font-size: 16px;
  }

  .thanks-message br {
    display: none;
  }
}

/* Top page color adjustments. */
#portfolio-title,
#services-title,
#pricing-title,
#blog-title,
#contact-title,
#services .services-title h3 {
  color: #49372F;
}

/* Use one orange treatment for every primary CTA across the site. */
body .button:not(.button-outline),
body .wp-element-button,
body .wp-block-button__link {
  background: #F4A261 !important;
  border-color: #F4A261 !important;
  box-shadow: 0 8px 22px rgba(244, 162, 97, 0.24);
  color: #FFFFFF;
}

body .button:not(.button-outline):hover,
body .button:not(.button-outline):focus-visible,
body .wp-element-button:hover,
body .wp-element-button:focus-visible,
body .wp-block-button__link:hover,
body .wp-block-button__link:focus-visible {
  background: #E78B45 !important;
  border-color: #E78B45 !important;
  color: #FFFFFF;
}

/* Keep the top-page About Me skill badges visually static on hover. */
#about .skill-logo-circle {
  transition: none;
}

#about .about-skill-badges li:hover .skill-logo-circle {
  border-color: #AFAFAF;
  color: #F4A261;
  transform: none;
}

#about .about-role {
  color: #49372F;
  font-family: "Roboto Mono", monospace;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

#about .about-name {
  color: #49372F;
  font-size: 28px;
  line-height: 1.4;
}

/* Match subpage section headings to the top-page heading system. */
.services-page .title-heading {
  color: #F4A261;
  font-family: "Roboto Mono", monospace;
  font-size: 0.9em;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.about-detail-page .section-box .title-heading + h1,
.about-detail-page .section-box .title-heading + h2,
.services-page-intro .title-heading + h1,
.service-flow-intro .title-heading + h2,
.service-card-grid .service-detail-heading h2 {
  color: #49372F;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.about-detail-page .section-box .title-heading + h2 {
  font-size: 24px;
}

.about-detail-page .career-item h3 {
  color: #49372F;
  font-size: 20px;
}

.toggle-menu .toggle-section-list li + li {
  margin-top: 18px;
}

.site-name-link,
.site-name-link:hover,
.site-name-link:focus {
  color: #49372F;
  text-decoration: none;
}

.site-global-header .menu-dots {
  margin-left: 0;
  width: 40px;
  height: 40px;
}

.site-global-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 993;
  width: 100%;
}

.site-global-header:not(.site-global-header-compact) {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  background-color: #FFF9F0;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(20% - 1px), rgba(246, 215, 122, 0.55) calc(20% - 1px), rgba(246, 215, 122, 0.55) 20%);
  box-shadow: none;
}

.site-global-header-home-inner,
.site-global-header-home-inner > .row {
  min-height: 160px;
}

.site-global-header-home-inner .py-4 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.site-global-header-home-inner .site-name-heading {
  font-size: clamp(64px, 5vw, 80px);
  line-height: 1;
  white-space: nowrap;
}

.site-global-header-home-inner > .row > .col-auto {
  align-self: flex-start;
}

.site-global-header:not(.site-global-header-compact) .menu-dots {
  width: 60px;
  height: 60px;
}

.site-global-header:not(.site-global-header-compact) + #main-content {
  margin-top: 0;
}

.home .section-box {
  scroll-margin-top: 24px;
}

.admin-bar .site-global-header {
  top: 32px;
}

.admin-bar .site-global-header:not(.site-global-header-compact) {
  top: auto;
}

@media (min-width: 992px) {
  .work-side-nav {
    top: 88px;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-global-header {
    top: 46px;
  }
}

.site-global-header-compact {
  display: block;
  width: 100%;
  min-height: 60px;
  background: #72B4C6;
}

.site-global-header-compact.has-return-link {
  display: block;
}

.site-global-header-compact-inner {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
}

.site-global-header-compact .subpage-return-link {
  min-height: 40px;
  padding: 8px 12px;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.site-global-header-compact .subpage-return-link:hover,
.site-global-header-compact .subpage-return-link:focus {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
  border-color: #FFFFFF;
}

.site-global-header-compact .menu-dots {
  margin-left: 24px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 0;
  box-shadow: none;
}

.site-global-header-compact .menu-dots:hover,
.site-global-header-compact .menu-dots:focus {
  border-color: #FFFFFF;
}

@media (max-width: 575.98px) {
  .site-global-header-home-inner,
  .site-global-header-home-inner > .row {
    min-height: 88px;
  }

  .site-global-header:not(.site-global-header-compact) + #main-content {
    margin-top: 88px;
  }

  .site-global-header-compact,
  .site-global-header-compact-inner {
    min-height: 60px;
  }

  .site-global-header-compact .subpage-return-link {
    padding: 8px 10px;
    font-size: 13px;
  }

  .site-global-header-home-inner .site-name-heading {
    font-size: 36px;
  }

  .site-global-header:not(.site-global-header-compact) .menu-dots {
    width: 44px;
    height: 44px;
  }
}

.site-global-header-compact + #main-content {
  margin-top: 60px;
  padding-top: 40px;
}

@media (max-width: 575.98px) {
  .site-global-header-compact + #main-content {
    margin-top: 60px;
  }
}

.site-global-header-compact + #main-content > :first-child {
  margin-top: 0 !important;
}

.site-global-header-compact + #main-content > .services-page-intro {
  padding-top: 0;
}

.subpage-return-bar {
  padding-top: 18px;
}

.subpage-return-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #49372F;
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.subpage-return-link:hover,
.subpage-return-link:focus {
  color: #F4A261;
}

.services-list .service-inline-price,
.service-card-grid .service-inline-price {
  margin: 8px 0 0;
  color: #F4A261;
  font-family: "Roboto Mono", monospace;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

/* Unified typography hierarchy across the portfolio. */
body {
  font-size: 16px;
}

#portfolio-title,
#services-title,
#pricing-title,
#blog-title,
#contact-title,
.about-detail-page .section-box .title-heading + h2,
.services-page-intro .title-heading + h1,
.service-flow-intro .title-heading + h2,
.section-box > h1,
.work-simple-card h1 {
  font-size: 32px;
}

.services-list .services-title h3,
.service-card-grid .service-detail-heading h2,
.service-flow-item h3,
.pricing-card h4,
.about-detail-page .career-item h3,
.blog-post-caption h3,
.blog-list-card-body h2,
.portfolio-caption h2,
.work-simple-overview h2,
.section-box.text-center > h2,
.entry-content h2,
.entry-content h3,
.blog-article-body h2,
.blog-article-body h3 {
  font-size: 24px;
}

.services-list .services-title h3,
.service-card-grid .service-detail-heading h2 {
  font-size: 20px;
}

.service-card-grid .service-detail-heading h2,
.service-card-grid .service-detail-heading .service-inline-price {
  text-align: center;
}

.service-card-grid .service-inline-price {
  color: #49372F;
  font-weight: 500;
}

.services-list .service-inline-price {
  font-weight: 400;
}

.services-list .service-title-copy {
  text-align: left;
}

@media (min-width: 1200px) {
  .works-list-section .portfolio-item {
    flex: 0 0 auto;
    width: 33.333333%;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .works-list-section .portfolio-item {
    flex: 0 0 auto;
    width: 50%;
  }
}

.home .nav-wrapper {
  position: sticky;
  top: 24px;
  z-index: 992;
}

.admin-bar.home .nav-wrapper {
  top: 56px;
}

@media (max-width: 991.98px) {
  .site-global-header:not(.site-global-header-compact) {
    background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(246, 215, 122, 0.55) calc(25% - 1px), rgba(246, 215, 122, 0.55) 25%);
  }

  .site-global-header-home-inner,
  .site-global-header-home-inner > .row {
    min-height: 112px;
  }

  .site-global-header:not(.site-global-header-compact) + #main-content {
    margin-top: 0;
  }

  .site-global-header-home-inner .site-name-heading {
    font-size: 48px;
  }

  .site-global-header:not(.site-global-header-compact) .menu-dots {
    width: 50px;
    height: 50px;
  }

  .home .section-box {
    scroll-margin-top: 120px;
  }
}

@media (max-width: 991.98px) {
  body:not(.home) .section-nav,
  body:not(.home) .nav-wrapper,
  body:not(.home) .work-side-nav {
    display: none !important;
  }

  .home #main-content {
    padding-top: 16px;
  }

  .home .nav-wrapper {
    position: static;
    top: auto;
    z-index: auto;
    width: 100%;
    height: auto;
    padding-right: 0;
    padding-left: 0;
    flex: 0 0 100%;
    align-self: flex-start;
  }

  .admin-bar.home .home-nav-column {
    top: 40px;
  }

  .home .home-nav-column {
    position: sticky;
    top: 8px;
    z-index: 992;
    display: block;
    align-self: flex-start;
  }

  .home .section-nav {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    padding: 14px 20px;
    border-radius: 10px;
  }

  .home .section-nav.fixed {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
  }

  .home .section-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0 22px;
  }

  .home .section-nav ul li .nav-link-desktop {
    display: inline;
  }

  .home .section-nav ul li .nav-link-mobile {
    display: none;
  }

  .home .section-nav ul li a,
  .home .section-nav ul li button {
    display: inline-flex;
    width: auto;
    min-height: 38px;
    height: auto;
    align-items: center;
    gap: 9px;
    padding: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.05em;
  }

  .home .section-nav ul li a::before,
  .home .section-nav ul li button::before {
    display: none;
  }

  .home .section-nav ul li .nav-circle {
    position: relative;
    display: inline-block;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
  }

  .home .section-nav ul li .nav-circle::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    margin: 0;
    background: #F6D77A;
    border: 0;
    border-radius: 50%;
    opacity: 1;
    content: "";
    transform: translate(-50%, -50%);
  }

  .home .section-nav ul li a.active .nav-circle::before,
  .home .section-nav ul li button.active .nav-circle::before {
    width: 17px;
    height: 17px;
    background: transparent;
    border: 1px dashed #FFFFFF;
    animation: translateRotate 10s linear infinite;
  }
}

body .contact-form .button:not(.button-outline) {
  display: flex;
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 782px) {
  .admin-bar.home .home-nav-column {
    top: 54px;
  }
}

@media (max-width: 575.98px) {
  .site-global-header-home-inner,
  .site-global-header-home-inner > .row {
    min-height: 88px;
  }

  .site-global-header:not(.site-global-header-compact) + #main-content {
    margin-top: 0;
  }

  .site-global-header-home-inner .site-name-heading {
    font-size: 36px;
  }

  .site-global-header:not(.site-global-header-compact) .menu-dots {
    width: 44px;
    height: 44px;
  }

  .home .home-nav-column {
    top: 8px;
  }

  .admin-bar.home .home-nav-column {
    top: 54px;
  }

  .home .section-box {
    scroll-margin-top: 160px;
  }

  .home .section-nav {
    padding: 12px 16px;
    border-radius: 10px;
  }

  .home .section-nav ul {
    gap: 0 16px;
  }

  .home .section-nav ul li a,
  .home .section-nav ul li button {
    min-height: 34px;
    gap: 9px;
    font-size: 0.72rem;
  }

  .home .section-nav ul li .nav-circle {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }

  .home .section-nav ul li a.active .nav-circle::before,
  .home .section-nav ul li button.active .nav-circle::before {
    width: 17px;
    height: 17px;
  }
}

.about-copy p,
.career-item p,
.services-list p,
.service-detail-copy,
.service-flow-item p,
.pricing-card p:not(.pricing-price),
.blog-post-caption p,
.blog-list-card-body p,
.blog-article-body p,
.work-simple-overview > p:last-child,
.thanks-card > p,
.thanks-note p,
.entry-content p {
  font-size: 16px;
}

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

/* Keep mobile CTA buttons consistent with the services CTA. */
@media (max-width: 991.98px) {
  body .button:not(.button-outline) {
    display: inline-flex;
    width: 280px;
    min-width: 0;
    max-width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
  }
}
