/* ==========================================================================
   Gold Star Refrigeration — site stylesheet
   Fonts: Space Grotesk (headings), Inter (body), IBM Plex Mono (specs/labels)
   ========================================================================== */

:root {
  --navy:        #0b2540;
  --navy-deep:   #071a2e;
  --steel:       #4c6b8a;
  --ice:         #eef5fa;
  --ice-2:       #dceaf3;
  --white:       #ffffff;
  --text:        #1b2a38;
  --text-muted:  #56697c;
  --accent:      #ff6a35;
  --accent-dark: #e2531f;
  --border:      #d6e3ec;
  --success-bg:  #e6f6ec;
  --success-text:#1f7a44;

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 10px;
  --shadow: 0 4px 18px rgba(11, 37, 64, 0.08);
  --shadow-lg: 0 12px 32px rgba(11, 37, 64, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--text-muted); }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(255, 106, 53, 0.35);
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary {
  background: var(--navy);
  color: var(--white);
}
.btn-secondary:hover { background: var(--navy-deep); }

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-block { width: 100%; }

/* ---------------- Utility bar ---------------- */
.util-bar {
  background: var(--navy-deep);
  color: #cfe0ee;
  font-size: 0.82rem;
}
.util-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.util-bar a { color: #cfe0ee; }
.util-bar a:hover { color: var(--white); }
.util-bar .sep { margin: 0 8px; color: #4c6b8a; }

/* ---------------- Header / nav ---------------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  line-height: 1.2;
}
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}
.main-nav a:hover { color: var(--accent); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-phone {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--navy);
  white-space: nowrap;
}
.nav-phone span { font-weight: 600; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .main-nav a:last-child { border-bottom: none; }
  .nav-phone { display: none; }
  .nav-toggle { display: block; }
  .nav-row { position: relative; }
}

/* ---------------- Breadcrumb ---------------- */
.breadcrumb {
  background: var(--ice);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb .wrap { padding-top: 12px; padding-bottom: 12px; }
.breadcrumb a { color: var(--steel); font-weight: 500; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span:first-of-type { margin: 0 8px; }

/* ---------------- Page hero (Products / Contact) ---------------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 64px 0 52px;
}
.page-hero .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.page-hero h1 { color: var(--white); max-width: 760px; }
.page-hero .lede {
  color: #c9d9e6;
  max-width: 640px;
  font-size: 1.05rem;
}
.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ---------------- Product jump nav ---------------- */
.product-jump {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 73px;
  z-index: 40;
  overflow-x: auto;
}
.product-jump .wrap {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
  white-space: nowrap;
}
.product-jump a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--steel);
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ice);
}
.product-jump a:hover { background: var(--ice-2); color: var(--navy); }

/* ---------------- Product blocks ---------------- */
.product-block { padding: 64px 0; }
.product-block.alt { background: var(--ice); }

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.product-grid.reverse .product-media { order: 2; }
.product-grid.reverse .product-copy { order: 1; }

.product-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--ice-2);
}

.tag-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: #fff0ea;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 26px;
  display: grid;
  gap: 10px;
}
.spec-list li {
  font-size: 0.93rem;
  color: var(--text);
  padding-left: 22px;
  position: relative;
}
.spec-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.spec-list strong { color: var(--navy); font-weight: 600; }

@media (max-width: 800px) {
  .product-grid, .product-grid.reverse {
    grid-template-columns: 1fr;
  }
  .product-grid.reverse .product-media,
  .product-grid.reverse .product-copy { order: initial; }
  .product-block { padding: 44px 0; }
}

/* ---------------- CTA banner ---------------- */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 56px 0;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: #c9d9e6; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ---------------- Contact page ---------------- */
.contact-section { padding: 60px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.req { color: var(--accent-dark); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--ice);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  background: var(--white);
}
.form-note {
  font-size: 0.82rem;
  text-align: center;
  margin-top: 14px;
  margin-bottom: 0;
}
.form-alert {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.form-alert-success {
  background: var(--success-bg);
  color: var(--success-text);
}

.contact-info-col { display: grid; gap: 16px; }
.info-card {
  background: var(--ice);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.info-card h3 { margin-bottom: 8px; }
.info-card p, .info-card address { margin: 0; font-style: normal; color: var(--text); }

.map-section iframe {
  display: block;
}

@media (max-width: 850px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy-deep);
  color: #b9cbdb;
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  width: 70px;
  border-radius: 6px;
  margin-bottom: 14px;
  background: var(--white);
  padding: 4px;
}
.footer-about p { color: #9db3c6; font-size: 0.9rem; }
.footer-social { display: flex; gap: 12px; margin-top: 10px; }
.footer-social a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.footer-social a:hover { background: var(--accent); }

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a, .footer-col address, .footer-col p {
  color: #9db3c6;
  font-size: 0.9rem;
  font-style: normal;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom { padding: 18px 0; }
.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: #7690a7;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Blog + About additions
   ========================================================================== */
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.eyebrow-dark { display:inline-block; font-family:var(--font-mono); font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; color:var(--accent-dark); margin-bottom:10px; }
a.tag-pill:hover { background:#ffe2d6; }

/* Blog search */
.blog-search { display:flex; gap:10px; max-width:560px; margin-top:26px; }
.blog-search input { flex:1; padding:13px 18px; border-radius:999px; border:none; font:inherit; font-size:.95rem; }
.blog-search input:focus { outline:2px solid var(--accent); }

.blog-main { padding-top: 36px; }
.chip-row { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:28px; }
.chip { padding:8px 16px; border-radius:999px; background:var(--ice); font-size:.86rem; font-weight:600; color:var(--steel); }
.chip small { opacity:.7; margin-left:4px; }
.chip:hover { background:var(--ice-2); }
.chip.is-active { background:var(--navy); color:var(--white); }
.result-note { margin-bottom:24px; }
.result-note a { color:var(--accent-dark); font-weight:600; }

/* Featured post */
.blog-featured { display:grid; grid-template-columns:1.2fr 1fr; gap:36px; align-items:center; background:var(--ice); border-radius:14px; overflow:hidden; margin-bottom:40px; }
.blog-featured-media img { width:100%; height:100%; aspect-ratio:16/10; object-fit:cover; background:var(--ice-2); }
.blog-featured-body { padding:32px 32px 32px 0; }
.blog-featured-body h2 a:hover, .blog-card h3 a:hover { color:var(--accent-dark); }

/* Cards */
.blog-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.blog-card { background:var(--white); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; display:flex; flex-direction:column; transition:transform .2s, box-shadow .2s; }
.blog-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.blog-card-media img { width:100%; aspect-ratio:16/10; object-fit:cover; background:var(--ice-2); }
.blog-card-body { padding:20px 22px 24px; display:flex; flex-direction:column; flex:1; }
.blog-card-body h3 { font-size:1.1rem; margin:6px 0 8px; }
.blog-card-body p { font-size:.9rem; flex:1; }
.blog-meta { display:flex; gap:8px; flex-wrap:wrap; font-size:.8rem; color:var(--text-muted); margin:6px 0 16px; }
.blog-card .blog-meta { margin-bottom:0; }

/* Pagination / empty */
.pagination { display:flex; justify-content:center; gap:6px; flex-wrap:wrap; margin:44px 0 20px; }
.page-link { min-width:40px; padding:9px 14px; text-align:center; border-radius:8px; background:var(--ice); font-weight:600; font-size:.9rem; color:var(--navy); }
.page-link:hover { background:var(--ice-2); }
.page-link.is-active { background:var(--navy); color:var(--white); }
.empty-state { text-align:center; padding:64px 0; }
.empty-state a:not(.btn) { color:var(--accent-dark); font-weight:600; }
.latest-list { list-style:none; padding:0; margin:24px 0 0; display:grid; gap:8px; }
.latest-list a { color:var(--navy); font-weight:600; }
.blog-main .cta-banner { margin-top:56px; }

/* Single post */
.read-progress { position:fixed; top:0; left:0; right:0; height:3px; z-index:100; background:transparent; }
.read-progress span { display:block; height:100%; width:0; background:var(--accent); }
.post-hero { padding:44px 0 0; }
.post-hero h1 { margin:12px 0 20px; font-size:clamp(1.9rem,3.6vw,2.7rem); }
.post-meta { display:flex; align-items:center; gap:12px; font-size:.88rem; color:var(--text-muted); }
.post-meta strong { display:block; color:var(--navy); }
.avatar { width:42px; height:42px; border-radius:50%; background:var(--navy); color:var(--white); display:inline-flex; align-items:center; justify-content:center; font-family:var(--font-head); font-weight:700; flex-shrink:0; }
.avatar-lg { width:58px; height:58px; font-size:1.3rem; }
.post-cover { margin-top:32px; }
.post-cover img { width:100%; max-height:520px; object-fit:cover; border-radius:14px; box-shadow:var(--shadow); background:var(--ice-2); }

.post-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:56px; padding-top:44px; padding-bottom:56px; align-items:start; }
.prose { font-size:1.06rem; line-height:1.8; color:var(--text); max-width:720px; }
.prose p { color:var(--text); margin-bottom:1.3em; }
.prose h2 { margin:2em 0 .6em; scroll-margin-top:100px; }
.prose h3 { margin:1.6em 0 .5em; scroll-margin-top:100px; font-size:1.3rem; }
.prose a { color:var(--accent-dark); text-decoration:underline; text-underline-offset:3px; }
.prose ul, .prose ol { padding-left:1.4em; margin-bottom:1.3em; }
.prose li { margin-bottom:.5em; }
.prose img { border-radius:10px; margin:1.6em auto; }
.prose blockquote { margin:1.6em 0; padding:14px 22px; border-left:4px solid var(--accent); background:var(--ice); border-radius:0 8px 8px 0; font-style:italic; }
.prose table { width:100%; border-collapse:collapse; margin:1.6em 0; font-size:.95rem; display:block; overflow-x:auto; }
.prose th, .prose td { border:1px solid var(--border); padding:10px 14px; text-align:left; }
.prose th { background:var(--ice); color:var(--navy); }

.post-tags { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:32px; font-size:.88rem; }
.post-tags a { background:var(--ice); padding:5px 12px; border-radius:999px; color:var(--steel); font-weight:600; }
.post-tags a:hover { background:var(--ice-2); }
.share-row { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:28px 0; padding:18px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); font-size:.88rem; font-weight:600; color:var(--navy); }
.share-row a { padding:7px 14px; border-radius:999px; border:1px solid var(--border); color:var(--steel); }
.share-row a:hover { background:var(--navy); color:var(--white); border-color:var(--navy); }
.author-box { display:flex; gap:18px; background:var(--ice); border-radius:var(--radius); padding:22px; }
.author-box h3 { margin-bottom:4px; }
.author-box p { margin:0; font-size:.9rem; }

.post-aside { position:sticky; top:96px; display:grid; gap:20px; }
.toc { background:var(--ice); border-radius:var(--radius); padding:20px 22px; }
.toc h4 { margin-bottom:10px; font-size:.95rem; }
.toc ul { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.toc a { font-size:.88rem; color:var(--text-muted); }
.toc a:hover { color:var(--accent-dark); }
.toc .lvl-3 { padding-left:14px; }
.aside-cta { background:var(--navy); color:var(--white); border-radius:var(--radius); padding:24px; text-align:center; }
.aside-cta h4 { color:var(--white); }
.aside-cta p { color:#c9d9e6; font-size:.9rem; }
.aside-phone { display:block; margin-top:12px; font-size:.85rem; color:#c9d9e6; font-family:var(--font-mono); }
.related { background:var(--ice); padding:56px 0; }
.related h2 { margin-bottom:28px; }

/* About */
.about-story { padding:72px 0; }
.about-grid { display:grid; grid-template-columns:1.1fr 1fr; gap:56px; align-items:center; }
.about-media img { width:100%; border-radius:14px; box-shadow:var(--shadow-lg); aspect-ratio:5/4; object-fit:cover; background:var(--ice-2); }
.stats-strip { background:var(--ice); border-bottom:1px solid var(--border); }
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; padding-top:30px; padding-bottom:30px; text-align:center; }
.stats-grid strong { display:block; font-family:var(--font-head); font-size:1.6rem; color:var(--navy); }
.stats-grid span { font-size:.82rem; color:var(--text-muted); }
.section-head { max-width:620px; margin-bottom:36px; }
.about-values { background:var(--ice); padding:68px 0; }
.value-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.value-card { background:var(--white); border-radius:var(--radius); padding:26px; box-shadow:var(--shadow); }
.value-num { font-family:var(--font-mono); color:var(--accent); font-weight:600; font-size:.9rem; }
.value-card h3 { margin:10px 0 8px; }
.value-card p { margin:0; font-size:.9rem; }
.about-process { padding:68px 0; }
.process-steps { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(5,1fr); gap:18px; counter-reset:step; }
.process-steps li { counter-increment:step; position:relative; padding:22px 18px; border:1px solid var(--border); border-radius:var(--radius); }
.process-steps li::before { content:counter(step); display:flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:50%; background:var(--accent); color:var(--white); font-weight:700; margin-bottom:12px; }
.process-steps h3 { margin-bottom:6px; }
.process-steps p { margin:0; font-size:.88rem; }
.about-industries { padding:0 0 68px; }
.industry-pills { list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:12px; }
.industry-pills li { padding:10px 20px; border-radius:999px; background:var(--ice); font-weight:600; font-size:.9rem; color:var(--navy); }
.cta-banner a:not(.btn) { color:var(--white); }

/* Responsive */
@media (max-width:1000px) {
  .blog-grid { grid-template-columns:repeat(2,1fr); }
  .value-grid { grid-template-columns:repeat(2,1fr); }
  .process-steps { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:900px) {
  .post-layout { grid-template-columns:1fr; gap:32px; }
  .post-aside { position:static; order:-1; }
  .toc { display:none; }
  .about-grid, .blog-featured { grid-template-columns:1fr; }
  .blog-featured-body { padding:0 24px 28px; }
  .stats-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:600px) {
  .blog-grid, .value-grid, .process-steps { grid-template-columns:1fr; }
  .blog-search { flex-direction:column; }
  .author-box { flex-direction:column; }
}