/* ClimaRack theme styles */

:root {
	--green: #143B36; --green-2: #0f2d29; --magenta: #D5006D; --ink: #143B36; --body: #2F4F4A;
	--muted: #5B6E6A; --line: #EEF0EF; --line-2: #E2E5E4; --grey: #F7F7F7; --mint: #CFE0DC; --mint-2: #8FBBB3;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; text-wrap: pretty; }
h2 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -.01em; }
h3 { font-weight: 700; }
[id] { scroll-margin-top: 16px; }

.wrap {
	max-width: 1440px; margin-left: auto; margin-right: auto;
	padding-left: clamp(20px, 5vw, 72px); padding-right: clamp(20px, 5vw, 72px);
}
.wp-block-image { margin: 0; }
.wp-block-image img, .wp-block-image a { display: block; }

/* Heading style "With marker": the short magenta bar above a heading */
.is-style-marker::before {
	content: ""; display: block; width: 32px; height: 5px; background: var(--magenta); margin-bottom: 24px;
}
.marker { width: 32px; height: 5px; background: var(--magenta); margin-bottom: 24px; }

.section { padding-top: clamp(72px, 10vw, 140px); }
.lead { font-size: 17px; line-height: 1.55; color: var(--body); }
.num { font-size: 13px; color: var(--muted); }
.rounded img { border-radius: 6px; object-fit: cover; width: 100%; }

/* Generic spacing for paragraphs editors add inside sections */
:where(.page-content) p + p { margin-top: 16px; }

/* ---------- Buttons ---------- */
.wp-block-button__link { font-family: inherit; text-align: center; }
.wp-block-button.is-style-light .wp-block-button__link { background: #fff; color: var(--green); }
.wp-block-button.is-style-light .wp-block-button__link:hover { background: var(--grey); color: var(--green); }
.wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; color: #fff; border: 1px solid #4A7F77; padding: 15px 27px; }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { border-color: #fff; color: #fff; }

/* ---------- Header / navigation ---------- */
.site-nav { background: var(--green); color: #fff; }
.site-nav .nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 24px; }
.nav-logo img { height: 40px; width: auto; }
.site-nav a, .site-nav a:hover { color: #fff; }
.site-nav .wp-block-navigation { font-size: 15px; font-weight: 500; }
.site-nav .wp-block-navigation__container { gap: 36px; }
.site-nav .wp-block-navigation-item__content:hover { color: var(--mint); }
.site-nav .wp-block-navigation__responsive-container-open,
.site-nav .wp-block-navigation__responsive-container-close { color: #fff; }
.site-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px clamp(20px, 5vw, 72px); }
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 20px; font-size: 20px; }

/* ---------- Hero ---------- */
.hero { background: var(--green); color: #fff; }
.hero .hero-grid {
	padding-top: clamp(48px, 6vw, 88px);
	display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: end;
}
.hero h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1.02; font-weight: 700; letter-spacing: -.02em; margin-bottom: 28px; }
.hero h1.is-style-marker::before { margin-bottom: 28px; }
.hero .sub { max-width: 640px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; color: var(--mint); }
.wp-block-buttons.hero-cta { display: grid; gap: 12px; padding-bottom: 10px; }
.hero-cta .wp-block-button, .hero-cta .wp-block-button__link { width: 100%; }
.hero-img { padding-top: clamp(40px, 4.5vw, 64px); }
.hero-img img {
	width: 100%; height: clamp(260px, 44vw, 640px); object-fit: cover; object-position: center 30%;
	border-radius: 6px 6px 0 0;
}

/* ---------- Benefits strip ---------- */
.usps { background: var(--grey); }
.usp-grid {
	display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px;
	background: var(--line-2); border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2);
}
.usp { background: var(--grey); padding: 36px 24px; }
.usp h3 { font-size: 17px; line-height: 1.25; margin: 12px 0 8px; }
.usp p:not(.num) { font-size: 14px; color: var(--body); }

/* ---------- Two columns (challenge) ---------- */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 7vw, 96px); align-items: start; }
.two h2 { margin-bottom: 24px; }
.two .lead + .lead { margin-top: 20px; }
.eyebrow { font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
ul.list { margin: 0; padding: 0; list-style: none; font-size: 17px; line-height: 1.55; color: var(--body); }
ul.list li { padding: 15px 0; border-top: 1px solid var(--line); margin: 0; }
ul.list li:last-child { border-bottom: 1px solid var(--line); }
.bridge { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--green); }
.bridge h3 { font-size: 22px; line-height: 1.25; margin-bottom: 10px; }
.bridge p { font-size: 17px; line-height: 1.55; color: var(--body); }

/* ---------- Green statement panel ---------- */
.discovery {
	background: var(--green); color: #fff; border-radius: 6px; padding: clamp(40px, 6vw, 80px);
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 96px); align-items: start;
}
.discovery h2 { margin-bottom: 20px; }
.discovery .lead { color: var(--mint); font-size: 18px; }
.discovery-copy { display: grid; gap: 20px; }
.discovery-copy p { font-size: 17px; color: var(--mint); line-height: 1.6; }
.discovery-copy p.tagline { color: #fff; font-size: 20px; font-weight: 700; line-height: 1.5; }

/* ---------- Platform ---------- */
.arch-intro { max-width: 850px; margin-bottom: 56px; }
.arch-intro h2 { margin-bottom: 20px; }
.arch-intro .lead + .lead { margin-top: 18px; }
.arch-intro p.arch-tagline { margin-top: 18px; }
.arch-tagline { margin-top: 18px; font-size: 17px; font-weight: 700; color: var(--ink); }
.arch-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.arch-grid > .wp-block-image { position: relative; min-height: 560px; }
.arch-side { display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.arch-side > .wp-block-image { position: relative; min-height: 220px; }
.arch-grid > .wp-block-image img, .arch-side > .wp-block-image img { position: absolute; inset: 0; width: 100%; height: 100%; }
.arch-card {
	background: var(--green); color: #fff; border-radius: 6px; padding: 28px;
	display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
}
.arch-list { display: grid; gap: 10px; font-size: 14.5px; line-height: 1.45; }
.arch-list p { color: var(--mint); }
.arch-list strong { color: #fff; }
.arch-note { font-size: 13px; color: var(--mint-2); }

/* ---------- Capacity ---------- */
.cap {
	background: var(--grey); border-radius: 6px; padding: clamp(32px, 4.5vw, 64px);
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center;
}
.cap h2 { font-size: clamp(28px, 2.6vw, 36px); margin-bottom: 20px; }
.cap p { font-size: 16px; color: var(--body); }
.cap p + p { margin-top: 16px; }
.capacity-visual { background: #fff; border: 1px solid var(--line-2); border-radius: 6px; padding: 28px; overflow: hidden; }
.capacity-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.capacity-head strong { font-size: 15px; }
.capacity-head span { font-size: 13px; color: var(--muted); }
.rack-wall { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-items: end; }
.rack-col { display: grid; gap: 6px; transform-origin: bottom; animation: cr-unit-in 12s ease-in-out infinite; }
.rack-col:nth-child(2) { animation-delay: .25s; }
.rack-col:nth-child(3) { animation-delay: .5s; }
.rack-col:nth-child(4) { animation-delay: .75s; }
.rack-col:nth-child(5) { animation-delay: 1s; }
.rack-cell { height: 44px; border: 1px solid #c9d1cf; border-radius: 3px; background: #e7eceb; position: relative; overflow: hidden; }
.rack-cell::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: #9fb0ac; }
.rack-cell.p1 { animation: cr-protocol-1 12s steps(1, end) infinite; }
.rack-cell.p2 { animation: cr-protocol-2 12s steps(1, end) infinite; }
.rack-cell.p3 { animation: cr-protocol-3 12s steps(1, end) infinite; }
.rack-cell.p4 { animation: cr-protocol-4 12s steps(1, end) infinite; }
.protocol-key { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: 12px; color: var(--muted); }
.protocol-key span { display: flex; align-items: center; gap: 7px; }
.protocol-key i { display: block; width: 9px; height: 9px; border-radius: 2px; }
.protocol-key .k-a { background: #143b36; }
.protocol-key .k-b { background: #bfd8d2; }
.protocol-key .k-c { background: #d5006d; }
@keyframes cr-unit-in { 0%, 8% { opacity: 0; transform: scaleY(.85); } 15%, 85% { opacity: 1; transform: scaleY(1); } 95%, 100% { opacity: 0; transform: scaleY(.85); } }
@keyframes cr-protocol-1 { 0%, 32% { background: #d8e7e3; } 33%, 65% { background: #bfd8d2; } 66%, 100% { background: #143b36; } }
@keyframes cr-protocol-2 { 0%, 32% { background: #143b36; } 33%, 65% { background: #d8e7e3; } 66%, 100% { background: #bfd8d2; } }
@keyframes cr-protocol-3 { 0%, 32% { background: #bfd8d2; } 33%, 65% { background: #143b36; } 66%, 100% { background: #d5006d; } }
@keyframes cr-protocol-4 { 0%, 32% { background: #d5006d; } 33%, 65% { background: #bfd8d2; } 66%, 100% { background: #d8e7e3; } }

/* ---------- Research questions ---------- */
.cases h2 { margin-bottom: 20px; }
.cases-intro { max-width: 760px; margin-bottom: 48px; }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 64px; }
.case { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding-top: 20px; border-top: 1px solid var(--green); }
.case .num { padding-top: 6px; }
.case h3 { font-size: 22px; margin-bottom: 8px; }
.case p:not(.num) { font-size: 16px; color: var(--body); }

/* ---------- Implementation ---------- */
.impl-img { margin-bottom: 64px; }
.impl-img img { height: clamp(220px, 33vw, 480px); object-position: center 40%; }
.impl-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.impl-grid h2 { margin-bottom: 20px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.step { padding-top: 16px; border-top: 2px solid var(--green); }
.step h3 { font-size: 17px; margin: 8px 0 6px; }
.step p:not(.num) { font-size: 14px; color: var(--body); }

/* ---------- Contact ---------- */
.contact {
	background: var(--green); color: #fff; border-radius: 6px;
	padding: clamp(40px, 5.5vw, 80px) clamp(24px, 5vw, 72px);
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 5.5vw, 80px); align-items: start;
}
.contact h2 { margin-bottom: 16px; }
.contact h2.is-style-marker::before { margin-bottom: 28px; }
.contact .lead { color: var(--mint); font-size: 18px; margin-bottom: 32px; }
.contact .tagline { font-size: 20px; font-weight: 700; margin-bottom: 28px; }
.contact .note { font-size: 15px; line-height: 1.6; color: var(--mint-2); }
.contact a { color: #fff; text-decoration: underline; }

.cr-form { background: #fff; color: var(--ink); border-radius: 6px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.cr-form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cr-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.cr-form .opt { font-weight: 400; color: var(--muted); }
.cr-form input, .cr-form textarea {
	font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1px solid #CFD6D4; border-radius: 4px;
	color: var(--ink); background: #fff; outline: none; width: 100%; box-sizing: border-box;
}
.cr-form input:focus, .cr-form textarea:focus { border-color: var(--green); }
.cr-form textarea { resize: vertical; min-height: 110px; }
.cr-form .cap-in { max-width: 160px; }
.cr-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cr-form .error { font-size: 14px; color: var(--magenta); font-weight: 600; display: none; }
.cr-form .form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; flex-wrap: wrap; }
.cr-form .form-foot small { font-size: 13px; color: var(--muted); }
.cr-form .btn-submit {
	display: inline-block; padding: 16px 28px; border-radius: 4px; font: inherit; font-size: 16px; font-weight: 700;
	border: 0; cursor: pointer; background: var(--green); color: #fff;
}
.cr-form .btn-submit:hover { background: var(--green-2); }
.cr-form .btn-submit:disabled { opacity: .7; cursor: default; }
.cr-form-wrap .thanks {
	display: none; background: #fff; color: var(--ink); border-radius: 6px; padding: 48px; min-height: 380px;
	flex-direction: column; justify-content: center;
}
.cr-form-wrap .thanks h3 { font-size: 28px; line-height: 1.15; margin-bottom: 12px; }
.cr-form-wrap .thanks p { font-size: 16px; color: var(--body); }
.cr-form-wrap.is-sent .cr-form { display: none; }
.cr-form-wrap.is-sent .thanks { display: flex; }

/* ---------- Footer ---------- */
.site-footer {
	padding-top: 48px; padding-bottom: 48px; display: flex; justify-content: space-between; align-items: center;
	gap: 16px; font-size: 14px; color: var(--muted); flex-wrap: wrap;
}
.site-footer .footer-logo img { height: 32px; width: auto; }
.site-main + .wp-block-template-part, footer.wp-block-template-part { margin-top: 0; }
.site-main > .page-content > :last-child { margin-bottom: 0; }

/* ---------- Other pages and posts ---------- */
.page-body { padding: clamp(48px, 6vw, 88px) clamp(20px, 5vw, 72px) 48px; }
.page-body > .prose > .alignfull { margin-left: calc(-1 * clamp(20px, 5vw, 72px)); margin-right: calc(-1 * clamp(20px, 5vw, 72px)); max-width: none; width: auto; }
.page-body > h1 { font-size: clamp(34px, 4vw, 56px); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 32px; }
.prose { font-size: 17px; line-height: 1.6; color: var(--body); }
.prose > * + * { margin-top: 1em; }
.prose > .alignfull, .prose > .alignfull + * { margin-top: 0; }
.prose > .alignfull { font-size: 1rem; line-height: 1.5; color: var(--ink); }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.6em; }
.prose a { text-decoration: underline; }
.post-meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.post-list > li { padding: 24px 0; border-top: 1px solid var(--line); }
.post-list h2 { font-size: 26px; margin-bottom: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.hero .hero-grid { grid-template-columns: 1fr; gap: 32px; }
	.wp-block-buttons.hero-cta { display: flex; flex-wrap: wrap; }
	.hero-cta .wp-block-button, .hero-cta .wp-block-button__link { width: auto; }
	.usp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.usp:last-child { grid-column: 1 / -1; }
	.arch-grid { grid-template-columns: 1fr; }
	.arch-grid > .wp-block-image { min-height: 0; height: clamp(240px, 50vw, 420px); }
	.arch-side { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cap { grid-template-columns: 1fr; gap: 40px; }
	.discovery { grid-template-columns: 1fr; }
	.impl-grid { grid-template-columns: 1fr; gap: 40px; }
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.contact { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
	.two, .case-grid, .arch-side, .usp-grid, .steps, .cr-form .row { grid-template-columns: 1fr; }
	.usp:last-child { grid-column: auto; }
	.capacity-visual { padding: 20px; }
	.rack-cell { height: 34px; }
	.rack-wall { gap: 5px; }
	.cr-form-wrap .thanks { padding: 32px; }
}
@media (prefers-reduced-motion: reduce) {
	.rack-col, .rack-cell { animation: none !important; }
	.rack-col { opacity: 1; transform: none; }
	html { scroll-behavior: auto; }
}
