/*
Theme Name: Walk In Cooler TX
Theme URI: https://walkincoolertx.com/
Author: WalkInCoolerTX.com
Description: A lead-generation block theme for Texas walk-in cooler and walk-in freezer projects.
Version: 1.1.1
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: walkincoolertx
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: block-patterns, full-site-editing, wide-blocks, custom-colors, blog
*/

:root {
  --tx-ink: #0b2431;
  --tx-navy: #103848;
  --tx-blue: #087f9c;
  --tx-ice: #58d5e7;
  --tx-sand: #f4efe6;
  --tx-copper: #bd6844;
  --tx-white: #fff;
  --tx-mist: #edf5f6;
  --tx-line: #d2e0e2;
  --tx-muted: #5c7079;
  --tx-radius: 22px;
  --tx-shadow: 0 28px 75px rgba(11, 36, 49, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }
img { height: auto; max-width: 100%; }
a { text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--tx-copper); outline-offset: 4px; }
.wp-site-blocks { overflow: hidden; }
.tx-wrap {
  margin-inline: auto;
  max-width: none !important;
  width: calc(100% - clamp(40px, 5vw, 96px));
}
.tx-section { padding: clamp(64px, 8vw, 120px) 0; }
.tx-section--compact { padding: clamp(40px, 5vw, 76px) 0; }
.tx-kicker {
  color: var(--tx-blue); font-size: .75rem; font-weight: 850; letter-spacing: .17em;
  margin: 0 0 14px; text-transform: uppercase;
}
.tx-lede { color: var(--tx-muted); font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.65; max-width: 720px; }
.tx-rule { border: 0; border-top: 1px solid var(--tx-line); margin: 0; }

/* Header */
.tx-site-header { background: rgba(255,255,255,.94); border-bottom: 1px solid var(--tx-line); position: relative; z-index: 20; }
.tx-topbar {
  background: var(--tx-ink);
  color: #d8edf1;
  font-size: .78rem;
  letter-spacing: .02em;
  margin-left: calc(50% - 50vw) !important;
  max-width: none !important;
  padding: 8px 20px;
  text-align: center;
  width: 100vw !important;
}
.tx-header-inner { align-items: center; display: grid; gap: 30px; grid-template-columns: auto 1fr auto; min-height: 84px; }
.tx-brand { color: var(--tx-ink); display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; }
.tx-brand__main { font-size: 1.18rem; font-weight: 900; letter-spacing: -.035em; text-transform: uppercase; }
.tx-brand__main em { color: var(--tx-copper); font-style: normal; }
.tx-brand__sub { color: var(--tx-muted); font-size: .58rem; font-weight: 800; letter-spacing: .18em; margin-top: 8px; text-transform: uppercase; }
.tx-site-header .wp-block-navigation { justify-self: end; }
.tx-site-header .wp-block-navigation-item__content { color: var(--tx-ink); font-size: .9rem; font-weight: 750; text-decoration: none; }
.tx-site-header .wp-block-navigation-item__content:hover { color: var(--tx-blue); }
.tx-header-cta .wp-block-button__link { padding: .9rem 1.2rem; }

/* Buttons */
.wp-block-button__link { border: 1px solid transparent; border-radius: 999px; font-weight: 850; padding: 1rem 1.4rem; transition: transform .18s ease, background .18s ease, color .18s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); }
.is-style-outline .wp-block-button__link { background: transparent; border-color: currentColor; }
.tx-button-copper .wp-block-button__link { background: var(--tx-copper); color: var(--tx-white); }

/* Home hero */
.tx-hero { background: var(--tx-sand); min-height: 720px; position: relative; }
.tx-hero::before { background: linear-gradient(90deg, rgba(11,36,49,.08) 1px, transparent 1px), linear-gradient(rgba(11,36,49,.08) 1px, transparent 1px); background-size: 52px 52px; content: ""; inset: 0; mask-image: linear-gradient(90deg,#000,transparent 70%); opacity: .35; position: absolute; }
.tx-hero-grid { align-items: center; display: grid; gap: clamp(48px,7vw,110px); grid-template-columns: minmax(0,1.02fr) minmax(420px,.98fr); min-height: 720px; padding-block: 80px; position: relative; }
.tx-hero h1 { color: var(--tx-ink); font-size: clamp(3.6rem,7.3vw,7.8rem); letter-spacing: -.075em; line-height: .88; margin: 0; max-width: 900px; }
.tx-hero h1 span { color: var(--tx-blue); display: block; }
.tx-hero-copy > p:not(.tx-kicker) { color: var(--tx-muted); font-size: clamp(1.05rem,1.4vw,1.25rem); max-width: 670px; }
.tx-hero-actions { margin-top: 34px; }
.tx-hero-proof { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 32px; }
.tx-hero-proof span { align-items: center; color: var(--tx-ink); display: inline-flex; font-size: .82rem; font-weight: 750; gap: 8px; }
.tx-hero-proof span::before { background: var(--tx-ice); border-radius: 50%; content: ""; height: 8px; width: 8px; }
.tx-hero-visual { position: relative; }
.tx-hero-visual img { display: block; filter: drop-shadow(0 30px 40px rgba(11,36,49,.18)); width: 100%; }
.tx-temp-card { background: var(--tx-ink); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; bottom: 10%; color: #fff; padding: 20px 24px; position: absolute; right: 0; width: 210px; }
.tx-temp-card small { color: #a9c8cf; display: block; font-size: .67rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.tx-temp-card strong { display: block; font-size: 2.1rem; letter-spacing: -.05em; margin: 8px 0 2px; }

/* Systems */
.tx-section-heading { align-items: end; display: flex; gap: 30px; justify-content: space-between; margin-bottom: 42px; }
.tx-section-heading h2 { font-size: clamp(2.3rem,5vw,5rem); margin: 0; max-width: 850px; }
.tx-systems { background: var(--tx-white); }
.tx-system-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.tx-system-card { border: 1px solid var(--tx-line); border-radius: var(--tx-radius); display: grid; grid-template-columns: 1fr .76fr; min-height: 430px; overflow: hidden; position: relative; }
.tx-system-card__copy { display: flex; flex-direction: column; padding: clamp(30px,4vw,58px); position: relative; z-index: 2; }
.tx-system-card h3 { font-size: clamp(2rem,3.4vw,3.8rem); margin: 0 0 18px; }
.tx-system-card p { color: var(--tx-muted); }
.tx-system-card a.tx-arrow { color: var(--tx-ink); font-weight: 850; margin-top: auto; text-decoration: none; }
.tx-system-card a.tx-arrow::after { content: " →"; color: var(--tx-copper); }
.tx-system-card__visual { align-items: end; background: var(--tx-mist); display: flex; justify-content: center; min-width: 0; padding: 24px; }
.tx-system-card__visual svg { height: auto; width: 100%; }
.tx-system-card--freezer .tx-system-card__visual { background: var(--tx-ink); }

/* Planning/specification */
.tx-planning { background: var(--tx-ink); color: #fff; }
.tx-planning .tx-kicker { color: var(--tx-ice); }
.tx-planning h2 { color: #fff; font-size: clamp(2.6rem,5.2vw,5.6rem); max-width: 960px; }
.tx-planning .tx-lede { color: #b9cdd2; }
.tx-spec-grid { counter-reset: spec; display: grid; grid-template-columns: repeat(3,1fr); margin-top: 58px; }
.tx-spec { border-left: 1px solid rgba(255,255,255,.18); min-height: 210px; padding: 8px clamp(22px,3vw,42px) 20px; }
.tx-spec::before { color: var(--tx-ice); content: "0" counter(spec); counter-increment: spec; display: block; font-size: .7rem; font-weight: 850; letter-spacing: .16em; margin-bottom: 38px; }
.tx-spec h3 { color: #fff; font-size: 1.22rem; margin: 0 0 10px; }
.tx-spec p { color: #afc2c8; font-size: .94rem; margin: 0; }

/* Applications */
.tx-applications { background: var(--tx-sand); }
.tx-application-grid { display: grid; gap: 18px; grid-template-columns: repeat(4,1fr); }
.tx-application { background: #fff; border: 1px solid rgba(11,36,49,.1); border-radius: 18px; min-height: 270px; padding: 30px; }
.tx-application__icon { align-items: center; background: var(--tx-mist); border-radius: 50%; color: var(--tx-blue); display: flex; font-size: 1.2rem; font-weight: 900; height: 52px; justify-content: center; width: 52px; }
.tx-application h3 { font-size: 1.35rem; margin: 48px 0 10px; }
.tx-application p { color: var(--tx-muted); font-size: .94rem; }

/* Texas band */
.tx-texas { background: var(--tx-blue); color: #fff; }
.tx-texas-grid { align-items: center; display: grid; gap: clamp(50px,8vw,130px); grid-template-columns: .78fr 1.22fr; }
.tx-texas-map { color: rgba(255,255,255,.96); }
.tx-texas h2 { color: #fff; font-size: clamp(2.7rem,5vw,5.4rem); margin: 0 0 24px; }
.tx-texas p { color: #d9f3f7; font-size: 1.08rem; }
.tx-checks { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-top: 32px; }
.tx-checks span { border-top: 1px solid rgba(255,255,255,.3); font-size: .86rem; font-weight: 750; padding-top: 14px; }

/* Query/blog cards */
.tx-resources { background: #fff; }
.tx-resources .wp-block-post-template { display: grid; gap: 20px; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; }
.tx-resources .wp-block-post { border: 1px solid var(--tx-line); border-radius: 18px; overflow: hidden; }
.tx-resources .wp-block-post-featured-image { aspect-ratio: 16/9; background: var(--tx-mist); margin: 0; overflow: hidden; }
.tx-resources .wp-block-post-featured-image img { height: 100%; object-fit: cover; width: 100%; }
.tx-resource-copy { padding: 26px; }
.tx-resource-copy .wp-block-post-terms { color: var(--tx-blue); font-size: .7rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.tx-resource-copy .wp-block-post-title { font-size: 1.45rem; margin: 14px 0 12px; }
.tx-resource-copy .wp-block-post-title a { color: var(--tx-ink); text-decoration: none; }
.tx-resource-copy .wp-block-post-excerpt { color: var(--tx-muted); font-size: .93rem; }

/* CTA */
.tx-cta { background: var(--tx-copper); color: #fff; padding: clamp(64px,8vw,112px) 0; }
.tx-cta-grid { align-items: center; display: grid; gap: 50px; grid-template-columns: 1fr auto; }
.tx-cta h2 { color: #fff; font-size: clamp(2.6rem,5vw,5.6rem); margin: 0; max-width: 980px; }
.tx-cta p { color: #fff1eb; max-width: 730px; }
.tx-cta .wp-block-button__link { background: #fff; color: var(--tx-ink); }

/* Interior hero and page content */
.tx-page-hero { background: var(--tx-sand); padding: clamp(80px,10vw,150px) 0; position: relative; }
.tx-page-hero::after { background: var(--tx-copper); bottom: 0; content: ""; height: 8px; left: 0; width: 28%; }
.tx-page-hero h1 { font-size: clamp(3.6rem,7.4vw,7.8rem); letter-spacing: -.07em; line-height: .92; margin: 0; max-width: 1100px; }
.tx-page-hero .tx-lede { margin-top: 28px; }
.tx-breadcrumb { color: var(--tx-muted); font-size: .78rem; font-weight: 750; margin-bottom: 42px; }
.tx-breadcrumb a { color: var(--tx-blue); }
.tx-page-grid { display: grid; gap: clamp(50px,8vw,120px); grid-template-columns: minmax(0,1fr) 330px; }
.tx-entry { font-size: 1.08rem; max-width: 860px; }
.tx-entry > * + * { margin-top: 1.45em; }
.tx-entry h2 { font-size: clamp(2.1rem,3.8vw,3.8rem); margin-top: 1.7em; }
.tx-entry h3 { font-size: 1.55rem; margin-top: 1.8em; }
.tx-entry ul, .tx-entry ol { padding-left: 1.3em; }
.tx-entry li + li { margin-top: .55em; }
.tx-sidebar-card { background: var(--tx-ink); border-radius: 18px; color: #fff; padding: 30px; position: sticky; top: 24px; }
.tx-sidebar-card h3 { color: #fff; font-size: 1.45rem; }
.tx-sidebar-card p { color: #b9cdd2; font-size: .93rem; }
.tx-sidebar-card .wp-block-button__link { background: var(--tx-copper); width: 100%; }
.tx-feature-grid { display: grid; gap: 18px; grid-template-columns: repeat(3,1fr); }
.tx-feature { border: 1px solid var(--tx-line); border-radius: 16px; padding: 26px; }
.tx-feature strong { color: var(--tx-blue); display: block; font-size: .75rem; letter-spacing: .12em; margin-bottom: 16px; text-transform: uppercase; }
.tx-feature h3 { font-size: 1.2rem; margin: 0 0 8px; }
.tx-feature p { color: var(--tx-muted); font-size: .9rem; margin: 0; }
.tx-faq details { border-top: 1px solid var(--tx-line); padding: 20px 0; }
.tx-faq details:last-child { border-bottom: 1px solid var(--tx-line); }
.tx-faq summary { color: var(--tx-ink); cursor: pointer; font-size: 1.08rem; font-weight: 800; }
.tx-faq details p { color: var(--tx-muted); margin-bottom: 0; }

/* Blog/archive */
.tx-archive-hero { background: var(--tx-ink); color: #fff; padding: 84px 0 72px; }
.tx-archive-hero h1 { color: #fff; font-size: clamp(3rem,6vw,6.4rem); margin: 0; }
.tx-post-grid { display: grid; gap: 24px; grid-template-columns: repeat(3,minmax(0,1fr)); list-style: none; padding: 0; }
.tx-post-card { border: 1px solid var(--tx-line); border-radius: 18px; overflow: hidden; }
.tx-post-card .wp-block-post-featured-image { aspect-ratio: 16/9; background: var(--tx-mist); margin: 0; }
.tx-post-card .wp-block-post-featured-image img { height: 100%; object-fit: cover; width: 100%; }
.tx-post-card__body { padding: 26px; }
.tx-post-card .wp-block-post-title { font-size: 1.5rem; }
.tx-post-card .wp-block-post-title a { color: var(--tx-ink); text-decoration: none; }
.tx-post-card .wp-block-post-date, .tx-post-card .wp-block-post-excerpt { color: var(--tx-muted); font-size: .88rem; }
.tx-single-head { background: var(--tx-sand); padding: 88px 0 70px; text-align: center; }
.tx-single-head h1 { font-size: clamp(3rem,6.4vw,6.5rem); margin-inline: auto; max-width: 1180px; }
.tx-single-meta { color: var(--tx-muted); display: flex; font-size: .82rem; gap: 16px; justify-content: center; }
.tx-single-feature { margin: -1px auto 64px; max-height: 680px; overflow: hidden; width: min(calc(100% - 40px),1180px); }
.tx-single-feature img { height: min(54vw,680px); object-fit: cover; width: 100%; }
.tx-single-content { font-size: 1.1rem; margin-inline: auto; max-width: 820px; }
.tx-single-content h2 { font-size: clamp(2.1rem,4vw,3.5rem); margin-top: 1.8em; }
.tx-single-content h3 { font-size: 1.55rem; margin-top: 1.7em; }
.tx-pagination { margin-top: 52px; }
.tx-pagination .page-numbers { border: 1px solid var(--tx-line); border-radius: 50%; display: inline-grid; height: 42px; margin-right: 6px; place-items: center; text-decoration: none; width: 42px; }

/* Quote page */
.tx-quote-layout { display: grid; gap: 70px; grid-template-columns: .85fr 1.15fr; }
.tx-quote-panel { background: var(--tx-sand); border-radius: 20px; padding: clamp(28px,4vw,52px); }
.tx-quote-panel h2 { font-size: clamp(2rem,3.6vw,3.4rem); }
.tx-quote-list { list-style: none; padding: 0; }
.tx-quote-list li { border-top: 1px solid rgba(11,36,49,.15); padding: 14px 0; }
.tx-form-slot { border: 2px dashed var(--tx-line); border-radius: 20px; min-height: 380px; padding: clamp(30px,5vw,60px); }
.tx-form-slot > .wp-block-post-content:empty::before { color: var(--tx-muted); content: "Add your form block or shortcode to this page in WordPress."; }

/* Footer */
.tx-footer { background: var(--tx-ink); color: #b9cdd2; }
.tx-footer-main { display: grid; gap: 50px; grid-template-columns: 1.35fr repeat(3,1fr); padding-block: 74px; }
.tx-footer .tx-brand { color: #fff; }
.tx-footer h3 { color: #fff; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.tx-footer p { font-size: .9rem; max-width: 420px; }
.tx-footer ul { list-style: none; margin: 0; padding: 0; }
.tx-footer li + li { margin-top: 10px; }
.tx-footer a { color: #c9dde2; font-size: .9rem; text-decoration: none; }
.tx-footer a:hover { color: var(--tx-ice); }
.tx-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); display: flex; font-size: .75rem; justify-content: space-between; padding-block: 22px; }

@media (max-width: 1100px) {
  .tx-header-inner { grid-template-columns: auto 1fr; }
  .tx-header-cta { display: none; }
  .tx-hero-grid { grid-template-columns: 1fr; }
  .tx-hero-visual { margin-inline: auto; max-width: 720px; }
  .tx-system-card { grid-template-columns: 1fr; }
  .tx-application-grid { grid-template-columns: repeat(2,1fr); }
  .tx-footer-main { grid-template-columns: 1.4fr repeat(2,1fr); }
  .tx-footer-main > div:last-child { grid-column: 2; }
}

@media (max-width: 782px) {
  .tx-wrap { width: calc(100% - 28px); }
  .tx-header-inner { min-height: 72px; }
  .tx-site-header .wp-block-navigation { justify-self: end; }
  .tx-site-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--tx-ink); color: #fff; padding: 30px; }
  .tx-site-header .is-menu-open .wp-block-navigation-item__content { color: #fff; font-size: 1.5rem; }
  .tx-hero { min-height: 0; }
  .tx-hero-grid { min-height: 0; padding-block: 70px; }
  .tx-hero h1 { font-size: clamp(3.3rem,18vw,5.7rem); }
  .tx-temp-card { bottom: 2%; right: -4px; }
  .tx-section-heading { align-items: start; flex-direction: column; }
  .tx-system-grid, .tx-spec-grid, .tx-texas-grid, .tx-page-grid, .tx-quote-layout, .tx-cta-grid { grid-template-columns: 1fr; }
  .tx-spec { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); min-height: 0; padding: 28px 0; }
  .tx-spec::before { margin-bottom: 18px; }
  .tx-resources .wp-block-post-template, .tx-post-grid, .tx-feature-grid { grid-template-columns: 1fr; }
  .tx-texas-map { margin-inline: auto; max-width: 400px; }
  .tx-sidebar-card { position: static; }
  .tx-footer-main { grid-template-columns: 1fr 1fr; }
  .tx-footer-main > div:first-child { grid-column: 1/-1; }
  .tx-footer-main > div:last-child { grid-column: auto; }
}

@media (max-width: 520px) {
  .tx-brand__sub { display: none; }
  .tx-system-grid, .tx-application-grid, .tx-checks, .tx-footer-main { grid-template-columns: 1fr; }
  .tx-system-card { min-height: 0; }
  .tx-system-card__visual { min-height: 230px; }
  .tx-footer-main > div:last-child { grid-column: auto; }
  .tx-footer-bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .tx-site-header, .tx-footer, .tx-cta, .tx-sidebar-card { display: none !important; }
  body { color: #000; }
}
