/* Hero */
.hero{
  padding: 64px 0;
}

.hero-inner{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.hero-copy{
  display: grid;
  gap: 14px;
  max-width: 62ch;
}
.service-hero-copy{
  max-width: none;
}
.hero-copy .kicker,
.hero-copy h1,
.hero-copy p{
  margin: 0;
}
.hero-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(162, 141, 105, 0.35);
  background: rgba(255, 255, 255, 0.75);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 11px;
  text-transform: uppercase;
}

h1{
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.lead{
  color: var(--muted);
  max-width: 56ch;
}
.hero-copy .muted{
  color: #5f6572;
}

.hero-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 0;
}

/* Hero photo */
.hero-media{
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}
.hero-photo{
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: white;
  box-shadow: 0 18px 40px rgba(26, 43, 69, 0.18);
  min-height: 320px;
  width: 100%;
}
.hero-photo-img{
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

/* CTA */
.cta{ padding: 56px 0; }
.cta-inner{
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  box-shadow: 0 14px 32px rgba(26, 43, 69, 0.08);
}
.cta-copy{
  display: grid;
  gap: 6px;
}
.cta-copy p{ margin: 0; }
.cta-actions{ display: flex; gap: 10px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 980px){
  .hero{ padding: 50px 0; }
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-media{
    display: none;
    padding: 0;
  }
  .hero-media::before{ display: none; }
  .hero-photo-img{ height: 300px; }
  .about-section{ padding: 50px 0; }
}

/* ---------------------------
   Generic page layouts
---------------------------- */

.section-divider{
  height: 1px;
  background: var(--border);
  width: 100%;
}

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

.split{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: start;
}
.panel{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  padding: 16px;
  box-shadow: var(--shadow);
}

.panel-soft{
  background: var(--soft);
}

/* About */
.about-section{
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
}
.about-section .section-head{
  margin-bottom: 14px;
}
.about-lead{
  color: #5f6572;
}
.about-grid{
  display: grid;
  gap: 14px;
}
.about-body{
  display: grid;
  gap: 14px;
  line-height: 1.7;
}
.about-body .muted{
  font-size: 15px;
}
.about-emphasis{
  font-weight: 700;
  color: var(--primary);
}
.features-panel{
  padding: 0;
}
.features-list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0 24px;
}
.features-list li{
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  color: var(--muted);
  line-height: 1.5;
}
.features-list li + li{
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.features-list strong{
  color: var(--primary);
}
.feature-check{
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 999px;
  border: 1px solid rgba(26, 43, 69, 0.22);
  background: #fff;
  position: relative;
  display: inline-grid;
  place-items: center;
}
.feature-check::after{
  content: "";
  position: absolute;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
  margin-top: -1px;
}
@media (min-width: 768px){
  .features-list{
    grid-template-columns: 1fr 1fr;
  }
  .features-list li{
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }
}

/* How we work storyboard */
.workflow-steps{
  position: relative;
  min-height: 260px;
}
.workflow-path{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.workflow-path path{
  fill: none;
  stroke: var(--border);
  stroke-width: 3;
}
.workflow-step{
  position: absolute;
  width: clamp(180px, 22vw, 240px);
  text-align: center;
}
.workflow-icon{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  border: 1px solid rgba(26, 43, 69, 0.22);
  background: rgba(26, 43, 69, 0.04);
  color: var(--primary);
  margin: 0 auto 8px;
  box-shadow: none;
}
.workflow-icon svg{
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.workflow-step-num{
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--primary-2);
  font-weight: 700;
  margin-bottom: 6px;
}
.workflow-step h3{
  margin-bottom: 4px;
}
.workflow-step p{
  font-size: 14px;
}
.workflow-step.step-1{
  left: 0;
  top: 6px;
}
.workflow-step.step-2{
  left: 26%;
  bottom: 6px;
}
.workflow-step.step-3{
  left: 54%;
  top: 6px;
}
.workflow-step.step-4{
  right: 0;
  bottom: 6px;
}

/* Service cards */
.service-card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  padding: 14px;
  box-shadow: var(--shadow);
}

/* Reviews carousel */
.reviews-carousel{
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: stretch;
}
.reviews-track{
  --reviews-gap: 12px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--reviews-gap) * 2)) / 3);
  gap: var(--reviews-gap);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar{
  display: none;
}
.reviews-track .service-card{
  height: 100%;
  scroll-snap-align: start;
  box-shadow: none;
}
.reviews-nav{
  align-self: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}
.reviews-nav:hover{
  transform: translateY(-1px);
  background: var(--soft);
  border-color: rgba(162, 141, 105, 0.6);
}
.reviews-nav:disabled{
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.reviews-footer-link{
  margin-top: 16px;
  display: flex;
  justify-content: flex-start;
}

.mini-list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.mini-list li{ margin: 6px 0; }

/* FAQ */
.faq{ display: grid; gap: 10px; }
.faq-item{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  padding: 12px 14px;
}
.faq-item summary{
  cursor: pointer;
  font-weight: 800;
}
.faq-item p{
  margin-top: 8px;
}

/* Forms */
.form{ margin-top: 14px; }
.field{
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
.field span{
  font-size: 13px;
  color: var(--muted);
}
input, textarea, select{
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: white;
  color: var(--muted);
}
input:not(:placeholder-shown), textarea:not(:placeholder-shown), select:valid{
  color: var(--text);
}
input::placeholder, textarea::placeholder{
  color: var(--muted);
  opacity: 1;
}
input:focus, textarea:focus, select:focus{
  outline: 2px solid rgba(15, 23, 42, 0.15);
  outline-offset: 1px;
}

.contact-list{
  margin-top: 10px;
  display: grid;
  gap: 12px;
}
.contact-label{
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-note-wrap{
  margin-top: 20px;
}
.note{
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: white;
}

.review-cta-wrap{
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
.review-open-btn{
  cursor: pointer;
}

.review-modal[hidden]{
  display: none;
}
.review-modal{
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
}
.review-modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  animation: reviewBackdropIn 180ms ease-out;
}
.review-modal-panel{
  position: relative;
  width: min(620px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  z-index: 1;
  animation: reviewModalIn 220ms ease-out;
}
.review-modal-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.review-modal-close:hover{
  background: var(--soft);
}
@keyframes reviewBackdropIn{
  from{ opacity: 0; }
  to{ opacity: 1; }
}
@keyframes reviewModalIn{
  from{
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive */
@media (max-width: 980px){
  .split{ grid-template-columns: 1fr; }
  .reviews-track{
    grid-auto-columns: calc((100% - var(--reviews-gap)) / 2);
  }
  .workflow-steps{
    display: grid;
    gap: 12px;
    min-height: 0;
  }
  .workflow-path{ display: none; }
  .workflow-step{
    position: static;
    width: 100%;
    text-align: left;
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 12px;
    row-gap: 4px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }
  .workflow-icon{
    margin: 0;
    width: 44px;
    height: 44px;
    grid-row: 1 / span 3;
    justify-self: center;
    align-self: center;
  }
  .workflow-step-num{
    grid-column: 2 / 3;
    margin: 0;
    font-size: 11px;
  }
  .workflow-step h3{
    grid-column: 2 / 3;
    margin: 0;
  }
  .workflow-step p{
    grid-column: 2 / 3;
    margin: 0;
  }
}

@media (max-width: 640px){
  .workflow-step{
    padding: 12px;
  }
  .workflow-step p{
    font-size: 13px;
  }
  .reviews-carousel{
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;
  }
  .reviews-track{
    grid-column: 1 / -1;
    grid-row: 1;
    grid-auto-columns: 100%;
  }
  .reviews-nav{
    width: 34px;
    height: 34px;
  }
  .reviews-nav-prev{
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }
  .reviews-nav-next{
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    margin-top: 0;
  }
  .review-cta-wrap{
    margin-top: 14px;
  }
}

/* Blog Page Layout */
.blog-featured {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.blog-featured h3 {
  font-size: 2rem;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.blog-featured p {
  font-size: 1.125rem;
  max-width: 65ch;
  margin: 0;
}
.blog-card-meta{
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.blog-post-hero{
  padding-bottom: 40px;
}

.blog-post-hero-inner{
  max-width: none;
}

.blog-post-hero .lead{
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.blog-post-excerpt{
  margin: 0;
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.7;
}

.blog-post-section{
  background: #ffffff;
}

.blog-post-article{
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.blog-post-prose{
  color: #5f6572;
  display: grid;
  gap: 14px;
  font-size: 15px;
  line-height: 1.7;
}

.blog-post-prose > *:first-child{
  margin-top: 0;
}

.blog-post-prose p{
  margin: 0;
}

.blog-post-prose h2,
.blog-post-prose h3{
  margin: 4px 0 -2px;
  line-height: 1.2;
  color: #161c24;
}

.blog-post-prose h2{
  font-size: 1.8rem;
}

.blog-post-prose h3{
  font-size: 1.28rem;
}

.blog-post-prose ul{
  margin: 0;
  padding-left: 24px;
}

.blog-post-prose li + li{
  margin-top: 8px;
}

.blog-post-prose strong{
  color: #161c24;
}

.blog-post-prose a{
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.blog-post-prose code{
  font-size: 0.95em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(162, 141, 105, 0.12);
}

.blog-post-back{
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(162, 141, 105, 0.18);
}

@media (max-width: 768px) {
  .page-hero{
    padding: 46px 0;
  }
  .cta-inner{
    padding: 18px;
  }
  .blog-featured {
    padding: 24px;
  }
  .blog-featured h3 {
    font-size: 1.5rem;
  }
  .blog-grid{
    grid-template-columns: 1fr;
  }
  .blog-post-article{
    padding: 0;
  }
  .blog-post-prose{
    font-size: 14px;
  }
  .blog-post-prose h2{
    font-size: 1.45rem;
  }
  .blog-post-prose h3{
    font-size: 1.14rem;
  }
}
