/* Focused repairs; existing Aasta theme tokens remain authoritative. */
#content { scroll-margin-top: 90px; }
main.e-con { --flex-wrap: nowrap; --gap: 0px; width: 100%; max-width: none; }
.plan-option { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.plan-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.plan-option-label { display: block; border: 1px solid var(--line); border-radius: 999px; padding: .65rem .85rem; color: var(--ink); background: var(--paper); }
.plan-option input:checked + .plan-option-label { background: var(--ink); color: var(--cream); }
.plan-option input:focus-visible + .plan-option-label { outline: 3px solid var(--sage); outline-offset: 3px; }
.floor-field { min-width: 0; }
.floor-row { flex-wrap: wrap; gap: .3rem 1rem; }
.field-error { display: block; color: var(--clay-deep); font-size: .9rem; margin: .25rem 0 .5rem; }
.field-error[hidden], [data-calculator-error][hidden] { display: none; }
input[aria-invalid="true"] { border-bottom: 2px solid var(--clay-deep); }
.estimator [aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.stepper button { width: 44px; height: 44px; }
.stepper button:disabled { opacity: .4; cursor: not-allowed; }
.estimator fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.estimator legend { font-weight: 750; margin-bottom: .5rem; }
.custom-rate input { width: 100%; max-width: 180px; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: .55rem .2rem; }
.project-gallery figure { margin: 0; }
.project-gallery figcaption, .visual-caption { margin: .55rem 0 1rem; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.hero-media { overflow: visible; border-radius: 0; box-shadow: none; }
.hero-media img { border-radius: 32px; box-shadow: var(--shadow); }
.hero-media figcaption { margin: .55rem .2rem 0; }
.project-evidence { border-left: 3px solid var(--sage); padding: .7rem 1rem; background: var(--sage-soft); font-size: .95rem; }
.service-summary-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem 2rem; margin-top: 1.2rem; }
.service-summary-grid article { padding: 1rem 0; border-top: 1px solid var(--line); }
.price-summary { display: flex; flex-wrap: wrap; gap: 1.2rem 3rem; margin: 1.5rem 0; }
.price-summary > div { flex: 1 1 180px; border-top: 1px solid var(--line); padding-top: 1rem; }
.price-summary p { margin-bottom: .4rem; }
.price-summary strong { display: block; font-family: var(--serif); font-size: 2rem; }
.home .section { padding: 3.5rem 0; }
.home .project-grid { grid-template-columns: 1.2fr .8fr; }
.home .project-card:first-child { grid-row: span 2; }
.home .project-card:first-child img { aspect-ratio: 4/5; }
.home .project-card:not(:first-child) img { aspect-ratio: 16/7; }
/* WhatsApp green (5.4:1 with white text) plus a paper ring so it stays visible on sage, clay and dark sections. */
.whatsapp { background: #1a7a43; color: #fff; border: 2px solid var(--paper); }
.whatsapp:hover { background: #146236; }
.whatsapp:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
#masthead .elementor-button { min-height: 44px; }
.section-sage :focus-visible { outline-color: var(--cream); }
.section-sage .text-link { color: var(--cream); }
.aasta-form .fine-print { font-weight: 400; }
@media(max-width:1024px) {
  #masthead .hfe-nav-menu__layout-horizontal:not(.menu-is-active) { display: none; }
}
@media(max-width:980px) {
  .home .project-grid, .service-summary-grid { grid-template-columns: 1fr; }
  .home .project-card:first-child { grid-row: auto; }
  .home .project-card:first-child img, .home .project-card:not(:first-child) img { aspect-ratio: 4/3; }
  .home .section { padding: 2.8rem 0; }
  .home .hero { margin-bottom: 0; }
  .whatsapp { font-size: .9rem; padding: .65rem .9rem; }
}
@media(max-width:360px) {
  .hero h1 { font-size: 2.25rem; }
  .estimator-form, .estimator-result { padding: 1.1rem; }
  .estimate-total { font-size: 2.1rem; overflow-wrap: anywhere; }
  .floor-row input { max-width: 100%; }
  .floor-head { flex-wrap: wrap; }
}

/* Full-width homepage hero with fixed copy and rotating project imagery. */
.home .hero-immersive {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  min-height: 620px;
  min-height: clamp(580px,78svh,760px);
  margin: 0;
  padding: 4.5rem 0 7rem;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.home .hero-immersive-inner { position: relative; z-index: 2; }
.home .hero-immersive .hero-copy { width: 60%; max-width: 650px; min-width: 0; padding: 0; }
.home .hero-immersive h1 { font-size: clamp(2.8rem,4.8vw,4.8rem); color: var(--paper); margin: .25em 0 .45em; }
.home .hero-immersive .eyebrow { color: #efd4c3; }
.home .hero-immersive .lede { max-width: 34rem; color: var(--paper); font-size: 1.2rem; line-height: 1.65; }
.home .hero-immersive .actions { gap: .85rem; margin-top: 1.75rem; }
.home .hero-immersive .btn { min-height: 48px; }
.home .hero-immersive .btn-ghost { color: var(--paper); border-color: rgba(255,251,246,.7); background: rgba(44,38,34,.25); }
.home .hero-immersive .btn-ghost:hover { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.home .hero-immersive a:focus-visible { outline: 3px solid var(--paper); outline-offset: 4px; }
.home .hero-immersive .hero-media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; width: 100%; height: 100%; min-height: 0; margin: 0; overflow: hidden; border-radius: 0; box-shadow: none; }
.home .hero-immersive .hero-media img { width: 100%; max-width: none; height: 100%; min-height: 0; object-fit: cover; object-position: center 46%; border-radius: 0; box-shadow: none; }
.home .hero-immersive .hero-slide { position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; transition: opacity .9s ease; }
.home .hero-immersive .hero-slide.is-active { opacity: 1; }
.home .hero-immersive .hero-media::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,rgba(33,27,22,.94) 0%,rgba(33,27,22,.87) 36%,rgba(33,27,22,.60) 67%,rgba(33,27,22,.20) 100%),linear-gradient(0deg,rgba(24,24,20,.5),transparent 40%);
}
.home .hero-immersive .hero-media figcaption { position: absolute; z-index: 2; right: max(1.2rem,calc((100% - 1120px)/2)); bottom: 1.5rem; max-width: calc(100% - 2.4rem); margin: 0; padding: .5rem .8rem; color: var(--paper); background: rgba(24,24,20,.78); border: 1px solid rgba(255,251,246,.2); border-radius: 4px; font-size: .8rem; line-height: 1.5; }
@media(min-width:981px) {
  .home .hero-immersive .hero-media img { transform: scale(1.16); }
}
@media(max-width:980px) {
  .home .hero-immersive .hero-copy { width: 78%; max-width: 620px; }
  .home .hero-immersive .hero-slide[data-hero-image="mohan-1.jpg"] { transform: scale(1.18); }
  .home .hero-immersive .hero-slide[data-hero-image="arte-1.jpg"] { transform: scale(1.08); }
  .home .hero-immersive .hero-media::after { background: linear-gradient(90deg,rgba(33,27,22,.94),rgba(33,27,22,.78) 65%,rgba(33,27,22,.48)),linear-gradient(0deg,rgba(24,24,20,.5),transparent 40%); }
}
@media(max-width:600px) {
  .home .hero-immersive { min-height: calc(100svh - 64px); padding: 3.5rem 0 8.5rem; }
  .home .hero-immersive .hero-copy { width: 100%; }
  .home .hero-immersive h1 { font-size: clamp(2.4rem,10vw,3.4rem); line-height: 1.1; }
  .home .hero-immersive .lede { font-size: 1.05rem; line-height: 1.6; }
  .home .hero-immersive .actions { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .home .hero-immersive .btn { min-width: 180px; }
  .home .hero-immersive .hero-media img { object-position: 54% center; }
  .home .hero-immersive .hero-media::after { background: linear-gradient(90deg,rgba(33,27,22,.88),rgba(33,27,22,.76)),linear-gradient(0deg,rgba(24,24,20,.6),transparent 55%); }
  .home .hero-immersive .hero-media figcaption { left: 1.2rem; right: auto; bottom: 5.5rem; max-width: calc(100% - 2.4rem); }
}
@media(prefers-reduced-motion:reduce) {
  .home .hero-immersive .hero-slide { transition: none; }
}
