/* ===== Compart Compressor Technology — static rebuild ===== */

:root {
  --maroon-texture: #8e2e06;
  --maroon-texture-line: #6f2404;
  --maroon-dark: #2a1006;
  --shape-red: #6f0606;
  --light-bg: #e0dfdf;
  --contact-bg: rgba(224, 223, 223, 0.8);
  --text-dark: #4a4a4a;
  --text-black: #2b2b2b;
  --brand-red: #d9382c;
  --button-coral: #d9534f;
  --button-coral-hover: #c9302c;
  --accent-green: #8acb82;
  --accent-green-hover: #438b3a;
  --btn-green-bg: #3f8b38;
  --btn-green-bg-hover: #2f6b28;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dark);
  background: #fff;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 20px;
}

h2 {
  font-size: 28px;
  letter-spacing: 0.2px;
}

h3 {
  font-size: 19px;
}

@media (max-width: 600px) {
  h2 { font-size: 24px; }
}

.section-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 70px 20px;
  position: relative;
  z-index: 1;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ---------- Header ---------- */

#site-header {
  position: relative;
  background: #fff;
  overflow: hidden;
}

.shape-divider-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  line-height: 0;
  overflow: hidden;
  z-index: 0;
}

.shape-divider-top svg {
  width: 100%;
  height: 100%;
  display: block;
}

.header-inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.header-logo img {
  width: 180px;
  height: auto;
}

.header-title {
  font-size: 32px;
  color: #1a1a1a;
  margin: 0;
  font-weight: 500;
}

/* ---------- Maroon textured sections ---------- */

.section-maroon {
  position: relative;
  background-color: var(--maroon-texture);
  background-image:
    repeating-linear-gradient(115deg, transparent 0 120px, var(--maroon-texture-line) 120px 128px, transparent 128px 248px);
  color: #fff;
}

.section-maroon.section-deep {
  background-color: #4a1708;
}

.section-maroon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 50%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 75%);
  pointer-events: none;
}

.section-light {
  background: var(--light-bg);
  color: var(--text-black);
}

.section-maroon h2, .section-maroon h3 {
  color: #fff;
}

.section-light h2, .section-light h3 {
  color: #1a1a1a;
}

/* ---------- Icon lists ---------- */

.icon-list {
  list-style: none;
  margin: 0 0 25px;
  padding: 0;
  columns: 1;
}

.icon-list.two-col-list {
  columns: 2;
  column-gap: 40px;
}

@media (max-width: 600px) {
  .icon-list.two-col-list { columns: 1; }
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  break-inside: avoid;
}

.icon-list i {
  margin-top: 4px;
  font-size: 14px;
  flex-shrink: 0;
}

.section-maroon .icon-list i { color: rgba(255,255,255,0.55); }
.section-light .icon-list i { color: #8a8a8a; }

.icon-list.icon-check i { color: var(--text-black); }
.icon-list.icon-chart i { color: #6f0606; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-coral {
  background: var(--button-coral);
  color: #fff;
}
.btn-coral:hover { background: var(--button-coral-hover); }

.btn-green {
  background: var(--btn-green-bg);
  color: #fff;
  text-transform: uppercase;
}
.btn-green:hover { background: var(--btn-green-bg-hover); }

/* ---------- Thumbnail gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

.gallery-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  border: none;
  padding: 0;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.06);
}

.gallery-grid.wide-thumbs .gallery-thumb {
  aspect-ratio: 4 / 3;
}

.gallery-thumb.cover img {
  object-fit: cover;
}

/* ---------- About us ---------- */

#aboutus p { margin: 0 0 16px; }
#aboutus strong { color: #fff; }
#aboutus a.kbdelta-link { color: #ffd7cf; text-decoration: underline; }

/* ---------- Recalculation / read more ---------- */

.readmore-extra {
  display: none;
  margin-top: 10px;
}
.readmore-extra.open { display: block; }

.readmore-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--button-coral);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 14px;
  padding: 0;
  font-family: var(--font-body);
}

.download-link {
  color: var(--button-coral);
  font-weight: 700;
}

/* ---------- Contact ---------- */

#contactus {
  background: var(--contact-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.card-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-weight: 600; color: #555; font-size: 14px; }
.form-field label .req { color: #d9534f; }

.form-field input,
.form-field textarea {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  background: #fbfbfb;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-green);
  background: #fff;
}

.form-field textarea { resize: vertical; min-height: 140px; }

.contact-map {
  min-height: 260px;
  overflow: hidden;
}
.contact-map iframe { width: 100%; height: 100%; min-height: 260px; border: 0; display: block; }

.contact-submit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.contact-submit .btn { align-self: flex-start; }

.form-status {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  display: none;
}
.form-status.visible { display: block; }
.form-status.form-status-success {
  color: #2f6b28;
  background: #eaf6e8;
  border: 1px solid #bfe3ba;
  border-radius: 5px;
  padding: 12px 16px;
}
.form-status.form-status-error {
  color: #9b2c2c;
  background: #fdecec;
  border: 1px solid #f3bcbc;
  border-radius: 5px;
  padding: 12px 16px;
}

/* ---------- Footer ---------- */

#footer {
  background: #000;
  color: #fff;
  padding: 60px 0 20px;
}

.footer-grid {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: center;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-grid > * { justify-self: center; }
}

.footer-info p { margin: 0 0 22px; }
.footer-info p:last-child { margin-bottom: 0; }
.footer-info p br { content: ""; display: block; margin-top: 6px; }
.footer-info .company-name {
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 26px;
}

.footer-logo svg, .footer-logo img { width: 90px; }

.footer-photo img {
  width: 260px;
  border-radius: 2px;
}

#footer-bottom {
  background: #000;
  text-align: center;
  padding: 20px 0;
  font-size: 12px;
  color: #aaa;
  border-top: 1px solid #222;
}

/* ---------- Scroll to top ---------- */

#scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 500;
  font-size: 16px;
}
#scroll-top.visible { opacity: 1; pointer-events: auto; }

/* ---------- Lightbox ---------- */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox-overlay.open { display: flex; }

.lightbox-counter {
  position: absolute;
  top: 20px;
  left: 24px;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  letter-spacing: 0.5px;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
}
.lightbox-close:hover { color: #fff; }

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 34px;
  cursor: pointer;
  padding: 20px;
}
.lightbox-arrow:hover { color: #fff; }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

.lightbox-figure {
  max-width: 82vw;
  max-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 4px;
}

.lightbox-figure img {
  max-width: 82vw;
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 18px;
  color: #fff;
  font-size: 15px;
  text-align: center;
}

@media (max-width: 700px) {
  .lightbox-arrow { font-size: 24px; padding: 10px; }
  .lightbox-figure { max-width: 92vw; max-height: 68vh; }
  .lightbox-figure img { max-width: 92vw; max-height: 68vh; }
}
