/* ===== Chladgal — refrigeration & insulation panels ===== */

:root {
  /* Colors — pulled from CHLADGAL logo */
  --color-primary: #1B3D7A;        /* deep navy */
  --color-secondary: #3A8FE8;      /* bright cool blue */
  --color-accent: #5BB3F0;          /* light cyan-blue */
  --color-dark: #0B1E3D;            /* near-black navy */
  --color-light: #F4F8FC;           /* almost-white cool */
  --color-text: #1f2937;
  --color-text-light: #5b6b80;
  --color-text-on-dark: #e8f0fb;
  --color-bg: #ffffff;
  --color-bg-alt: #F0F5FB;
  --color-border: #dde6f1;

  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --max-width: 1200px;
  --section-padding: 90px 0;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --transition: 0.3s ease;
  --shadow-sm: 0 1px 3px rgba(11,30,61,0.06), 0 1px 2px rgba(11,30,61,0.04);
  --shadow-md: 0 8px 24px rgba(11,30,61,0.08);
  --shadow-lg: 0 24px 60px rgba(11,30,61,0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-secondary); }
ul { padding: 0; margin: 0; list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  margin: 0 0 0.6em;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { margin: 0 0 1em; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 14px;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { color: var(--color-text-light); font-size: 1.08rem; }

/* Skip link — visually hidden until focused */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: absolute;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  margin: 0;
  overflow: visible;
  clip: auto;
  background: var(--color-dark);
  color: #fff;
  border-radius: var(--border-radius-sm);
  z-index: 1000;
  text-decoration: none;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: var(--border-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 6px 14px rgba(27,61,122,0.22);
}
.btn-primary:hover {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

/* ===== Navigation ===== */
.navbar {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 100;
}
.navbar.scrolled {
  box-shadow: 0 4px 16px rgba(11,30,61,0.06);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
}
.logo {
  display: inline-flex;
  flex-shrink: 0;
  padding: 6px 14px;
  background: var(--color-bg-alt);
  border-radius: var(--border-radius-sm);
  transition: background var(--transition), transform var(--transition);
}
.logo:hover {
  background: #e6eef8;
  transform: translateY(-1px);
}
.logo img { height: 84px; width: auto; display: block; }
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.nav-links > li { position: relative; }
.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.98rem;
}
.nav-links a:hover { color: var(--color-primary); }
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.caret {
  display: inline-block;
  color: var(--color-text-light);
  transition: transform var(--transition), color var(--transition);
}
.has-dropdown:hover .dropdown-toggle .caret,
.has-dropdown:focus-within .dropdown-toggle .caret {
  transform: rotate(-180deg);
  color: var(--color-primary);
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  min-width: 240px;
  padding: 10px 0;
  border-radius: var(--border-radius);
  box-shadow: 0 14px 40px rgba(11,30,61,0.14);
  border: 1px solid var(--color-border);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  list-style: none;
  margin: 0;
  z-index: 110;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}
.has-dropdown::before {
  /* invisible bridge so hover doesn't drop when moving cursor to dropdown */
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
}
.dropdown li { display: block; }
.dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 0.95rem;
  color: var(--color-text);
  white-space: nowrap;
}
.dropdown a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--color-dark); color: #fff; }
.hamburger {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-dark);
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  min-height: 92vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 100px 24px 80px;
}
.hero-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero .eyebrow { color: var(--color-accent); }
.hero h1 {
  color: #fff;
  margin-bottom: 22px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,0.92);
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== About ===== */
.about { padding: var(--section-padding); background: var(--color-bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text h2 { margin-bottom: 22px; }
.about-text p { color: var(--color-text-light); font-size: 1.04rem; }
.check-list {
  margin-top: 24px;
}
.check-list li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 12px;
  color: var(--color-text);
  font-weight: 500;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-secondary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}
.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  aspect-ratio: 1 / 1;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Services ===== */
.services { padding: var(--section-padding); background: var(--color-bg-alt); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.service-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-img img { transform: scale(1.06); }
.service-body { padding: 26px 26px 30px; }
.service-body h3 { color: var(--color-dark); margin-bottom: 10px; }
.service-body p { color: var(--color-text-light); margin: 0; font-size: 0.96rem; }

/* ===== Process ===== */
.process { padding: var(--section-padding); background: var(--color-bg); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--color-bg-alt);
  border-radius: var(--border-radius);
  padding: 32px 26px;
  border: 1px solid var(--color-border);
  position: relative;
}
.step-num {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  margin-bottom: 14px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--color-text-light); margin: 0; font-size: 0.95rem; }

/* ===== Gallery ===== */
.gallery { padding: var(--section-padding); background: var(--color-bg-alt); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,30,61,0) 50%, rgba(11,30,61,0.55) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover::after { opacity: 1; }

/* ===== CTA Band ===== */
.cta-band {
  padding: 80px 0;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 560px; margin: 0 auto 30px; }
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Contact ===== */
.contact { padding: var(--section-padding); background: var(--color-bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact-info p { color: var(--color-text-light); font-size: 1.04rem; }
.contact-list {
  margin-top: 30px;
  border-top: 1px solid var(--color-border);
}
.contact-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-light);
}
.contact-list a, .contact-list span {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-dark);
}

.contact-form {
  background: var(--color-bg-alt);
  padding: 36px;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
}
.form-group { margin-bottom: 18px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(58,143,232,0.18);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-consent {
  display: flex;
  margin-bottom: 22px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}
.form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.form-consent input { margin-top: 4px; flex-shrink: 0; }
.form-consent a { text-decoration: underline; }
.contact-form button[type="submit"] { width: 100%; padding: 16px; }

/* ===== Map section ===== */
.map-section { background: var(--color-bg); padding-top: 0; }
.map-head {
  text-align: center;
  padding: 70px 24px 32px;
}
.map-head h2 { margin-bottom: 10px; }
.map-head p { color: var(--color-text-light); margin: 0; }
.map-wrap {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.map-wrap iframe {
  display: block;
  width: 100%;
  filter: grayscale(0.15);
}

/* ===== Footer ===== */
.footer {
  background: var(--color-dark);
  color: var(--color-text-on-dark);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-brand img {
  margin-bottom: 16px;
  height: 110px;
  width: auto;
  background: #fff;
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  display: block;
}
.footer-brand p { color: rgba(232,240,251,0.7); font-size: 0.95rem; max-width: 280px; }
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(232,240,251,0.7);
  font-size: 0.95rem;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  font-size: 0.88rem;
  color: rgba(232,240,251,0.55);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(232,240,251,0.7); }
.footer-bottom a:hover { color: #fff; }
.footer-credit { color: rgba(232,240,251,0.55); }
.footer-credit a { color: rgba(232,240,251,0.85); text-decoration: none; }
.footer-credit a:hover { color: #fff; text-decoration: underline; }

/* ===== Scroll-top ===== */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: 0;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: bold;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  z-index: 90;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover { background: var(--color-dark); }

/* ===== Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade-up { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ===== Focus styles (accessibility) ===== */
:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { max-width: 540px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  :root { --section-padding: 64px 0; }
  .logo img { height: 64px; }
  .nav-cta { display: none; }
  .hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 8px 0; }
  /* dropdown on mobile becomes inline list */
  .has-dropdown::before { display: none; }
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 6px 14px;
    margin-top: 6px;
    border-left: 2px solid var(--color-border);
    transition: none;
  }
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown { transform: none; }
  .dropdown a { padding: 6px 0; font-size: 0.92rem; }
  .caret { display: none; }
  .hero { min-height: 80vh; padding-top: 80px; }
  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 36px; }
  .footer-brand img { height: 64px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .footer-bottom .container { justify-content: center; text-align: center; }
}
