/* V11 · Edge-to-edge layout, responsive pass and reference contact form */

:root {
  --v11-gutter: clamp(18px, 4vw, 64px);
  --v11-mobile-gutter: 16px;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  background: #fff;
}

main,
main > section,
.page-almazea .hero,
.page-nuku .nuku-wireframe,
.page-zealab .lab-wireframe,
.page-meetzea .meet-wireframe {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

/* Remove page-level frame treatments while preserving internal rhythm. */
.hero-frame,
.nuku-wireframe-card,
.lab-panel,
.meet-wireframe-card,
.legal-card,
.flow-shell {
  max-width: none;
  border-radius: 0;
  box-shadow: none;
}

/* Header remains full bleed; its content uses a safe responsive gutter. */
.header-inner {
  width: 100%;
  max-width: none;
  padding-inline: var(--v11-gutter);
}

/* ALMAZEA · one CTA, separated from the headline at every breakpoint. */
.page-almazea .hero-frame {
  width: 100%;
  max-width: none;
  margin: 0;
}

.page-almazea .hero-content {
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-almazea .hero h1 {
  left: clamp(34px, 14.6vw, 210px);
  bottom: 27%;
  width: min(62%, 860px);
}

.page-almazea .hero-button {
  left: 50%;
  top: auto;
  bottom: 8%;
  margin: 0;
  transform: translateX(-50%);
  pointer-events: auto;
}

.page-almazea .hero-button:hover,
.page-almazea .hero-button:focus-visible {
  transform: translateX(-50%) translateY(-2px);
}

/* NUKU · backgrounds and image bands now reach both viewport edges. */
.nuku-logo-stage,
.nuku-wireframe-card,
.nuku-values-static,
.nuku-manifest-centered,
.nuku-gallery,
.nuku-closing-panel {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.nuku-wireframe-card {
  padding-inline: var(--v11-gutter);
}

.nuku-wireframe-card .nuku-feature-image {
  padding: 0;
  background: transparent;
}

.nuku-manifest-centered {
  padding-inline: var(--v11-gutter);
}

/* ZEALAB · no boxed process grid; retain three-column distribution with separators. */
.lab-title-stage,
.lab-selector-band,
.insurer-marquee,
.lab-content-shell,
.lab-wireframe .lab-panel,
.lab-visible-contact {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.lab-wireframe .process-grid {
  width: 100%;
  max-width: none;
  padding-inline: var(--v11-gutter);
  gap: 0;
}

.lab-wireframe .process-card {
  border: 0;
  border-right: 1px solid rgba(24, 84, 48, .18);
  background: transparent;
  box-shadow: none;
}

.lab-wireframe .process-card:last-child {
  border-right: 0;
}

.lab-wireframe .lab-panel {
  padding-bottom: clamp(56px, 7vw, 90px);
}

.lab-visible-contact {
  margin-top: clamp(44px, 6vw, 70px);
}

/* Contact form based on the supplied reference. */
.reference-contact-form {
  position: relative;
  width: min(100%, 880px);
  min-height: 240px;
  margin: 0 auto;
  padding: 12px var(--v11-gutter) 18px clamp(118px, 18vw, 210px);
  display: block;
}

.reference-contact-decoration,
.lab-inline-decoration {
  position: absolute;
  left: clamp(-95px, -5vw, -34px);
  top: 50%;
  width: clamp(170px, 22vw, 270px);
  height: 78%;
  margin: 0;
  transform: translateY(-50%);
  background: url('../assets/mark-green.png') center / contain no-repeat;
  pointer-events: none;
}

.reference-contact-fields,
.lab-inline-fields {
  width: 100%;
  display: grid;
  gap: 8px;
}

.reference-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.reference-contact-form label {
  display: block;
  min-width: 0;
}

.reference-contact-form input,
.reference-contact-form textarea {
  width: 100%;
  height: 38px;
  min-height: 38px;
  padding: 3px 16px;
  border: 2px solid var(--green-dark);
  border-radius: 999px;
  background: transparent;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-style: italic;
  line-height: 1;
  text-align: right;
  resize: none;
  box-shadow: none;
}

.reference-contact-form input::placeholder,
.reference-contact-form textarea::placeholder {
  color: #8f8f8f;
  opacity: 1;
}

.reference-contact-form input:focus,
.reference-contact-form textarea:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(24, 84, 48, .10);
}

.reference-contact-form .form-status {
  min-height: 16px;
  margin: 2px 0 0;
  font-size: 10px;
  line-height: 1.25;
  text-align: right;
}

.lab-visible-contact {
  min-height: 330px;
  padding: clamp(28px, 4vw, 44px) 0 28px;
  background: #efefef;
  overflow: hidden;
}

.lab-visible-contact h2 {
  margin-bottom: 8px;
  font-size: clamp(38px, 4.4vw, 62px);
}

.lab-inline-form {
  grid-template-columns: none;
  gap: 0;
}

/* Contact modal adopts the same open, frameless visual language. */
.contact-modal .modal-backdrop {
  background: rgba(24, 84, 48, .70);
}

.contact-modal .modal-panel {
  width: min(100% - 28px, 900px);
  max-height: calc(100vh - 28px);
  margin: 14px auto;
  padding: clamp(28px, 4vw, 48px) 0 24px;
  border-radius: 0;
  background: #efefef;
  box-shadow: none;
  overflow-x: hidden;
}

.contact-modal .modal-panel h2 {
  margin: 0 0 8px;
  text-align: center;
  font-size: clamp(38px, 5vw, 62px);
}

.contact-modal .reference-contact-form {
  width: min(100%, 780px);
}

.contact-modal .modal-close {
  top: 12px;
  right: 12px;
}

/* MEET ZEA · full bleed section and stable mobile spacing. */
.meet-wireframe-card {
  width: 100%;
  max-width: none;
  padding-inline: var(--v11-gutter);
}

.meet-wireframe .meet-copy {
  max-width: 940px;
}

/* Legal URLs: remove the white card frame and use the full canvas. */
.legal-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(62px, 8vw, 100px) var(--v11-gutter);
}

.legal-card {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

/* FLOWNEWS · editorial blocks reach the viewport edges. */
.flownews-main,
.flownews-exact {
  width: 100%;
  max-width: none;
  margin: 0;
}

.flownews-exact .masthead-topbar,
.flownews-exact .masthead-hero,
.flownews-exact .masthead-subtitle-band,
.flownews-exact .masthead-topics,
.flownews-exact .cover,
.flownews-exact .section-rule,
.flownews-exact .grid-section,
.flownews-exact .feature-wide,
.flownews-exact .nuku-section,
.flownews-exact .footer-inner {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.flownews-exact .cover,
.flownews-exact .feature-wide,
.flownews-exact .nuku-section {
  padding-left: 0;
  padding-right: 0;
}

.flownews-exact .cover,
.flownews-exact .grid-2col,
.flownews-exact .grid-3col,
.flownews-exact .feature-wide-inner,
.flownews-exact .nuku-inner {
  border-left: 0;
  border-right: 0;
}

.flownews-exact .grid-section {
  padding-left: 0;
  padding-right: 0;
}

/* Tablet */
@media (max-width: 980px) {
  .header-inner {
    padding-inline: 18px;
  }

  .page-almazea .hero h1 {
    left: 9%;
    bottom: 29%;
    width: 78%;
  }

  .page-almazea .hero-button {
    bottom: 7%;
  }

  .nuku-wireframe-card {
    padding-inline: clamp(24px, 6vw, 58px);
  }

  .lab-wireframe .process-grid {
    padding-inline: clamp(24px, 5vw, 48px);
  }

  .lab-wireframe .process-card {
    border-right: 0;
    border-bottom: 1px solid rgba(24, 84, 48, .16);
  }

  .lab-wireframe .process-card:last-child {
    border-bottom: 0;
  }

  .reference-contact-form {
    padding-left: clamp(96px, 18vw, 150px);
  }

  .reference-contact-decoration,
  .lab-inline-decoration {
    left: -88px;
    width: 210px;
  }

  .meet-wireframe-card {
    padding-inline: 34px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --v11-gutter: var(--v11-mobile-gutter);
  }

  .site-header,
  .header-inner {
    width: 100%;
  }

  .header-inner {
    padding-inline: 12px;
  }

  .main-nav {
    width: 100%;
    max-width: 100%;
    overflow-y: auto;
  }

  .page-almazea .hero-frame {
    min-height: 540px;
    aspect-ratio: auto;
  }

  .page-almazea .hero-media img {
    object-position: 48% center;
  }

  .page-almazea .hero h1 {
    left: 7%;
    bottom: 28%;
    width: 86%;
    font-size: clamp(24px, 7.6vw, 34px);
    line-height: 1.04;
  }

  .page-almazea .hero-button {
    bottom: 7%;
    min-width: 150px;
    min-height: 44px;
    font-size: 15px;
  }

  .page-almazea .values-strip {
    width: 100%;
    padding-inline: 16px;
  }

  .nuku-logo-stage {
    min-height: 230px;
    padding: 34px 12px 26px;
  }

  .nuku-wireframe-card {
    padding: 30px 18px;
  }

  .nuku-wireframe-card .nuku-feature-copy {
    gap: 17px;
  }

  .nuku-wireframe-card .nuku-feature-image,
  .nuku-wireframe-card .nuku-feature-image img {
    width: 100%;
    min-height: 0;
  }

  .nuku-values-static {
    gap: 16px;
    padding: 24px 14px;
  }

  .nuku-manifest-centered {
    padding: 34px 18px;
  }

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

  .nuku-gallery img,
  .nuku-gallery img:last-child {
    grid-column: auto;
    width: 100%;
    aspect-ratio: 1 / 1.12;
  }

  .nuku-gallery img:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 2 / 1.1;
  }

  .lab-title-stage {
    min-height: 220px;
  }

  .lab-title-stage h1 {
    font-size: clamp(52px, 18vw, 78px);
  }

  .lab-selector-band {
    min-height: 200px;
    padding: 34px 14px;
  }

  .lab-selector-band .lab-tabs {
    gap: 12px;
  }

  .lab-selector-band .lab-tabs button {
    min-height: 62px;
    font-size: clamp(20px, 7vw, 27px);
  }

  .insurer-marquee {
    height: 48px;
  }

  .lab-wireframe .lab-panel {
    padding-bottom: 52px;
  }

  .lab-wireframe .lab-band {
    margin-bottom: 26px;
  }

  .lab-wireframe .lab-intro {
    width: 100%;
    padding-inline: 18px;
  }

  .lab-wireframe .process-grid {
    width: 100%;
    padding-inline: 16px;
  }

  .lab-wireframe .process-card {
    width: 100%;
    padding: 28px 10px;
  }

  .lab-wireframe .process-card h3 {
    margin-left: 0;
  }

  .lab-visible-contact {
    min-height: 300px;
    padding-top: 26px;
  }

  .lab-visible-contact h2,
  .contact-modal .modal-panel h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .reference-contact-form {
    min-height: 220px;
    padding: 10px 12px 16px 76px;
  }

  .reference-contact-decoration,
  .lab-inline-decoration {
    left: -74px;
    width: 150px;
    height: 74%;
  }

  .reference-contact-row {
    gap: 6px;
  }

  .reference-contact-fields,
  .lab-inline-fields {
    gap: 6px;
  }

  .reference-contact-form input,
  .reference-contact-form textarea {
    height: 34px;
    min-height: 34px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .contact-modal .modal-panel {
    width: 100%;
    min-height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding-top: 64px;
  }

  .contact-modal .reference-contact-form {
    width: 100%;
  }

  .meet-wireframe {
    min-height: 620px;
    padding: 24px 0 28px;
  }

  .meet-wireframe-card {
    width: 100%;
    padding: 26px 18px 10px;
  }

  .meet-wireframe-card h1 {
    font-size: clamp(40px, 12vw, 50px);
  }

  .meet-wireframe .meet-pill,
  .meet-wireframe .meet-contact {
    width: min(100%, 480px);
    min-height: 58px;
    font-size: clamp(22px, 7vw, 28px);
  }

  .meet-wireframe .meet-copy {
    width: 100%;
    margin-top: 62px;
    padding-inline: 4px;
    font-size: 14px;
  }

  .legal-page {
    padding: 48px 18px 72px;
  }

  .legal-nav {
    position: static;
    inset: auto;
    min-height: 0;
    display: flex;
    padding: 0;
    flex-direction: row;
    gap: 14px;
    overflow-x: auto;
    background: transparent;
  }

  .legal-nav a {
    flex: 0 0 auto;
    padding: 10px 0;
    font-size: 11px;
  }

  .flownews-exact .masthead-topbar,
  .flownews-exact .masthead-hero,
  .flownews-exact .masthead-subtitle-band,
  .flownews-exact .masthead-topics {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .flownews-exact .cover,
  .flownews-exact .grid-2col,
  .flownews-exact .grid-3col,
  .flownews-exact .feature-wide-inner,
  .flownews-exact .nuku-header,
  .flownews-exact .nuku-phases {
    grid-template-columns: 1fr !important;
  }

  .flownews-exact .cover {
    margin-top: 0;
  }

  .flownews-exact .section-rule {
    padding-inline: 18px;
  }

  .flownews-exact .article-cell,
  .flownews-exact .feature-wide-text,
  .flownews-exact .feature-wide-art,
  .flownews-exact .nuku-inner {
    padding: 28px 20px;
  }
}

@media (max-width: 420px) {
  .footer-wireframe-grid {
    width: 100%;
    padding: 28px 18px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "social"
      "legal"
      "support"
      "newsletter";
    gap: 24px;
  }

  .footer-branding-wireframe,
  .footer-social,
  .footer-legal,
  .footer-support,
  .footer-newsletter {
    width: 100%;
  }

  .newsletter-form {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .page-almazea .hero-frame {
    min-height: 560px;
  }

  .page-almazea .hero h1 {
    bottom: 29%;
  }

  .page-almazea .hero-button {
    bottom: 6%;
  }

  .reference-contact-form {
    padding-left: 66px;
    padding-right: 8px;
  }

  .reference-contact-decoration,
  .lab-inline-decoration {
    left: -78px;
    width: 142px;
  }
}

/* Legal pages use the same accessible mobile menu as the main URLs. */
@media (max-width: 640px) {
  .legal-nav {
    position: fixed;
    inset: 82px 0 auto 0;
    min-height: calc(100vh - 82px);
    display: none;
    padding: 30px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    overflow-y: auto;
    background: var(--green-dark);
  }

  body.nav-open .legal-nav {
    display: flex;
  }

  .legal-nav a {
    width: 100%;
    padding: 16px 0;
    font-size: 18px;
  }
}
