/*
 * Almog Haike — release candidate visual layer · 2026-07-30
 * Loaded after architectural-v2.css. Preserves the existing theme contract.
 */

:root {
  --release-ink: #121210;
  --release-ink-soft: #23211e;
  --release-paper: #eee7dc;
  --release-paper-soft: #f8f5f0;
  --release-copper: #aa4a2a;
  --release-copper-light: #d59676;
  --release-line: rgba(18, 18, 16, 0.14);
  --release-shadow: 0 24px 70px rgba(38, 29, 20, 0.12);
}

body {
  background: var(--release-paper-soft);
}

/* Global shell */
nav.main {
  border-bottom-color: rgba(18, 18, 16, 0.1);
  background: rgba(238, 231, 220, 0.96);
  box-shadow: 0 10px 32px rgba(24, 19, 14, 0.05);
}

nav.main .nav-list a {
  font-weight: 600;
  letter-spacing: 0.01em;
}

nav.main .nav-cta .btn-dark {
  border-color: var(--release-copper);
  background: transparent;
  color: var(--release-copper);
}

nav.main .nav-cta .btn-dark:hover,
nav.main .nav-cta .btn-dark:focus-visible {
  background: var(--release-copper);
  color: #fffaf4;
}

.btn,
.wpcf7-submit {
  min-height: 54px;
  padding-inline: 26px;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.btn:hover,
.wpcf7-submit:hover {
  transform: translateY(-2px);
}

/* Hero — editorial architecture, not a generic contractor banner */
.home-page .hero {
  height: min(670px, calc(100svh - var(--header-height)));
  min-height: 590px;
  grid-template-columns: minmax(0, 58%) minmax(420px, 42%);
  background: var(--release-paper);
}

.home-page .hero .bg {
  height: 100%;
  background-position: center 52%;
}

.home-page .hero .bg::after {
  background:
    linear-gradient(90deg, rgba(18, 18, 16, 0.05), transparent 48%),
    linear-gradient(0deg, rgba(18, 18, 16, 0.13), transparent 42%);
}

.home-page .hero .plate {
  height: 100%;
  justify-content: center;
  padding: clamp(52px, 6vw, 96px) clamp(36px, 5.2vw, 82px);
  background-color: var(--release-paper);
}

.home-page .hero .plate::before {
  background-position: center;
  opacity: 0.32;
}

.home-page .hero .plate > * {
  transform: none;
}

.home-page .redesign-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--release-copper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.home-page .redesign-kicker::before {
  content: '';
  width: 38px;
  height: 1px;
  background: currentColor;
}

.home-page .hero h1 {
  max-width: 540px;
  margin-bottom: 22px;
  font-size: clamp(58px, 5vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.058em;
}

.home-page .hero h1 em {
  color: var(--release-copper);
}

.home-page .hero p.sub {
  max-width: 490px;
  margin-bottom: 30px;
  color: #514b44;
  font-size: 18px;
  line-height: 1.72;
}

.home-page .hero .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-page .hero .hero-proof {
  width: fit-content;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(18, 18, 16, 0.18);
  color: #575149;
}

.home-page .hero .hero-proof b {
  color: var(--release-ink);
  font-size: 22px;
}

/* Compact service index */
.service-rail {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--release-ink);
}

.service-rail__inner,
.service-rail__item {
  min-height: 64px;
}

.service-rail__item {
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* Signature showcase */
.home-showcase {
  background: var(--release-paper-soft);
}

.home-showcase__intro,
.home-showcase__project {
  min-height: 410px;
}

.home-showcase__intro {
  padding: 48px clamp(34px, 4vw, 64px);
}

.home-showcase__heading h2 {
  max-width: 390px;
  font-size: clamp(40px, 3.2vw, 54px);
}

.home-showcase__project {
  overflow: hidden;
}

.home-showcase__project img {
  height: 410px;
  transition: transform 700ms cubic-bezier(.2,.65,.2,1), filter 300ms ease;
}

.home-showcase__project::after {
  background: linear-gradient(180deg, transparent 46%, rgba(14, 13, 11, 0.7));
}

.home-showcase__project:hover img {
  transform: scale(1.025);
}

/* Services */
.home-page .services {
  padding-block: clamp(82px, 7vw, 118px);
  background: var(--release-paper-soft);
}

.home-page .services .section-head {
  align-items: end;
  margin-bottom: 52px;
}

.home-page .services .section-head .left h2 {
  max-width: 760px;
  font-size: clamp(46px, 4.4vw, 68px);
  line-height: 1.02;
}

.home-page .services .section-head .right {
  max-width: 540px;
  padding-bottom: 5px;
  color: #5e574f;
  line-height: 1.85;
}

.services .grid {
  gap: 16px;
}

.services .svc {
  min-height: 430px;
  overflow: hidden;
  background: var(--release-ink);
  box-shadow: none;
}

.services .svc .im {
  transition: transform 700ms cubic-bezier(.2,.65,.2,1), filter 250ms ease;
}

.services .svc::after {
  background: linear-gradient(180deg, rgba(12, 11, 10, 0.02) 20%, rgba(12, 11, 10, 0.86) 100%);
}

.services .svc:hover .im,
.services .svc:focus-within .im {
  transform: scale(1.035);
}

.services .svc .content {
  padding: 34px;
}

.services .svc h3 {
  font-size: clamp(27px, 2.2vw, 36px);
}

.services .svc p {
  max-width: 360px;
  font-size: 14px;
  line-height: 1.7;
}

/* Trust rail */
.promise {
  background: var(--release-paper);
}

.promise .item {
  min-height: 160px;
  padding: 30px clamp(22px, 2.4vw, 36px);
}

.promise .ic {
  border-color: rgba(170, 74, 42, 0.4);
  color: var(--release-copper);
}

/* Portfolio — six selected works on home; full archive stays on Projects */
.home-page .portfolio {
  padding-block: clamp(90px, 7vw, 124px);
  background: var(--release-ink);
}

.home-page .portfolio .section-head {
  align-items: end;
  margin-bottom: 36px;
}

.home-page .portfolio .section-head h2 {
  max-width: 760px;
  font-size: clamp(50px, 5.2vw, 76px);
  line-height: 1;
}

.home-page .pf-filters {
  margin-bottom: 28px;
  gap: 4px 24px;
}

.home-page .pf-filters button {
  min-height: 44px;
}

.home-page .pf-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 320px;
  gap: 12px;
}

.home-page .pf {
  grid-column: span 4;
  grid-row: span 1;
  min-height: 320px;
}

.home-page .pf:nth-child(1),
.home-page .pf:nth-child(5) {
  grid-column: span 6;
}

.home-page .pf:nth-child(2),
.home-page .pf:nth-child(6) {
  grid-column: span 6;
}

.home-page .pf .im {
  transition: transform 750ms cubic-bezier(.2,.65,.2,1), filter 250ms ease;
}

.home-page .pf:hover .im,
.home-page .pf:focus-within .im {
  transform: scale(1.035);
}

.home-page .pf .title {
  padding: 28px;
  background: linear-gradient(180deg, transparent, rgba(9, 9, 8, 0.82));
}

.home-page .pf h4 {
  font-size: clamp(24px, 2.1vw, 34px);
}

/* About */
.home-page .about {
  padding-block: clamp(92px, 7vw, 122px);
  background: var(--release-paper-soft);
}

.home-page .about .container {
  gap: clamp(56px, 7vw, 108px);
}

.home-page .about .photo {
  min-height: 570px;
}

.home-page .about .text h2 {
  max-width: 680px;
  font-size: clamp(48px, 4.8vw, 70px);
  line-height: 1.02;
}

.home-page .about .text .lead {
  font-size: 19px;
  line-height: 1.75;
}

.home-page .about .values {
  margin-top: 34px;
}

.home-page .about .v {
  min-height: 124px;
  padding: 20px 22px;
}

/* Contact conversion */
.home-page .cta-section {
  padding-block: clamp(86px, 7vw, 116px);
  background:
    radial-gradient(circle at 12% 10%, rgba(170, 74, 42, 0.16), transparent 32%),
    var(--release-ink);
}

.home-page .cta-top {
  margin-bottom: 50px;
}

.home-page .cta-section h2 {
  font-size: clamp(52px, 5.3vw, 76px);
  line-height: 1;
}

.home-page .cta-form-wrap {
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, .75fr);
  gap: 14px;
}

.home-page .cta-form-box,
.home-page .contact-info-box {
  border-top: 3px solid var(--release-copper);
  background: var(--release-paper-soft);
  box-shadow: none;
}

.home-page .cta-form-box {
  padding: clamp(30px, 4vw, 52px);
}

.home-page .contact-info-box {
  padding: clamp(30px, 3vw, 44px);
}

.home-page .cta-form-box input,
.home-page .cta-form-box textarea,
.home-page .cta-form-box select {
  border-color: rgba(18, 18, 16, 0.18);
  background: #fffdf9;
}

.home-page .cta-form-box input:focus,
.home-page .cta-form-box textarea:focus,
.home-page .cta-form-box select:focus {
  border-color: var(--release-copper);
  box-shadow: 0 0 0 3px rgba(170, 74, 42, 0.12);
}

/* Footer */
footer {
  padding-top: 64px;
}

.footer-grid {
  gap: 42px;
}

footer .bottom {
  margin-top: 48px;
}

/* Cookie consent: useful, legible, never the visual protagonist */
.cookie-consent {
  right: auto;
  left: 22px;
  bottom: 22px;
  width: min(520px, calc(100vw - 44px));
}

.cookie-consent__shell {
  width: 100%;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(18, 18, 16, 0.16);
  background: rgba(248, 245, 240, 0.98);
  box-shadow: var(--release-shadow);
}

.cookie-consent h2 {
  margin-block: 3px 5px;
  font-size: 20px;
}

.cookie-consent p {
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 1.55;
}

.cookie-consent__actions {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 7px;
}

.cookie-consent__actions .btn {
  min-height: 42px;
  padding: 8px 12px;
  font-size: 12px;
}

.cookie-modal__dialog {
  width: min(680px, 100%);
  padding: 32px;
  box-shadow: var(--release-shadow);
}

/* Inner pages receive the same refined rhythm without changing their content. */
.inner-page .page-hero__content {
  background: var(--release-paper);
}

.inner-page .page-title {
  letter-spacing: -0.052em;
}

.page-card,
.page-gallery-item,
.contact-panel,
.page-section__text-shell,
.page-section__faq-shell {
  border-color: var(--release-line);
}

@media (max-width: 1180px) {
  .home-page .hero {
    grid-template-columns: minmax(0, 54%) minmax(390px, 46%);
  }

  .home-page .pf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .pf,
  .home-page .pf:nth-child(n) {
    grid-column: auto;
  }
}

@media (max-width: 960px) {
  .home-page .hero {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-areas: 'copy' 'image';
  }

  .home-page .hero .plate {
    height: auto;
    min-height: 500px;
  }

  .home-page .hero .bg {
    height: 50vw;
    min-height: 340px;
    max-height: 430px;
  }

  .home-page .cta-form-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  nav.main {
    background: rgba(238, 231, 220, 0.98);
  }

  .nav-panel {
    box-shadow: var(--release-shadow);
  }

  .home-page .hero .plate {
    min-height: 470px;
    padding: 42px 22px 38px;
  }

  .home-page .redesign-kicker {
    margin-bottom: 18px;
    font-size: 11px;
  }

  .home-page .hero h1 {
    font-size: clamp(46px, 12vw, 60px);
  }

  .home-page .hero .hero-proof {
    margin-top: 26px;
  }

  .service-rail__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-rail__item {
    min-height: 58px;
    padding: 10px 8px;
    border-top: 0 !important;
    font-size: 13px;
  }

  .service-rail__item + .service-rail__item {
    border-inline-start: 1px solid rgba(170, 74, 42, 0.65);
  }

  .home-showcase__intro {
    min-height: 330px;
  }

  .home-showcase__project,
  .home-showcase__project img {
    height: 340px;
    min-height: 340px;
  }

  .services .svc {
    min-height: 380px;
  }

  .home-page .pf-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
  }

  .home-page .pf,
  .home-page .pf:nth-child(n) {
    min-height: 300px;
  }

  .home-page .about .photo {
    min-height: 500px;
  }

  .home-page .about .text h2,
  .home-page .cta-section h2,
  .home-page .portfolio .section-head h2,
  .home-page .services .section-head .left h2 {
    font-size: clamp(39px, 10.5vw, 52px);
  }

  .cookie-consent {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
  }

  .cookie-consent__shell {
    padding: 18px;
  }
}

@media (max-width: 560px) {
  .home-page .hero .ctas {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-page .hero .ctas .btn {
    width: 100%;
  }

  .home-page .hero .hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 13px;
  }

  .home-page .hero .hero-proof__separator {
    display: none;
  }

  .service-rail__item {
    font-size: 12px;
  }

  .home-showcase__intro {
    grid-template-columns: 116px minmax(0, 1fr);
    min-height: 310px;
    padding: 32px 20px;
  }

  .home-showcase__portrait {
    width: 116px;
    height: 156px;
  }

  .home-showcase__copy {
    padding-top: 16px;
  }

  .home-showcase__signature {
    font-size: 34px;
  }

  .services .svc {
    min-height: 340px;
  }

  .promise .container {
    grid-template-columns: 1fr 1fr;
  }

  .promise .item,
  .promise .item:last-child {
    min-height: 152px;
    padding: 22px 16px;
    border-inline: 0;
  }

  .promise .item:nth-child(odd) {
    border-inline-end: 1px solid var(--release-line);
  }

  .promise .ic {
    display: none;
  }

  .home-page .about .photo {
    min-height: 430px;
  }

  .home-page .about .photo .stamp {
    width: 82px;
    min-height: 96px;
  }

  .home-page .about .values {
    grid-template-columns: 1fr;
  }

  .cookie-consent__actions {
    grid-template-columns: 1fr 1fr;
  }

  .cookie-consent__actions .btn:first-child {
    grid-column: 1 / -1;
  }

  .cookie-consent p {
    max-height: 3.2em;
    overflow: hidden;
  }

  footer {
    padding-top: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .wpcf7-submit,
  .home-showcase__project img,
  .services .svc .im,
  .home-page .pf .im {
    transition: none !important;
  }
}
