/* ═══════════════════════════════════════════════════════════════
   ClimaMon — style.css
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. CUSTOM PROPERTIES ─────────────────────────────────────── */
:root {
  /* Brand colours */
  --clr-navy:       #0B1F3A;
  --clr-navy-mid:   #0D2A4A;
  --clr-navy-deep:  #070F1F;
  --clr-ocean:      #1A6B9A;
  --clr-teal:       #00C2A8;
  --clr-teal-hover: #00D9BC;
  --clr-light-bg:   #F0F7FF;
  --clr-white:      #FFFFFF;

  /* Text */
  --clr-text-primary:   #0B1F3A;
  --clr-text-secondary: #4A6B8A;
  --clr-text-muted:     #94A8BE;
  --clr-text-on-dark:   #B0C8D8;

  /* UI */
  --clr-border:     #E2EBF6;
  --clr-dark-card:  #0D2440;
  --clr-dark-card2: #0A1A30;

  /* Typography — system stack, no CDN */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
          Arial, "Liberation Sans", sans-serif;

  /* Spacing */
  --section-py: clamp(4.5rem, 9vw, 7.5rem);
  --navbar-h:   68px;

  /* Radii */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;

  /* Transitions */
  --t-fast:   150ms ease;
  --t-normal: 250ms ease;
  --t-slow:   400ms ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px  rgba(11,31,58,0.08);
  --shadow-md: 0 4px 24px rgba(11,31,58,0.12);
  --shadow-lg: 0 12px 40px rgba(11,31,58,0.18);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.40);
}

/* ── 2. RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--clr-text-primary);
  background: var(--clr-white);
  line-height: 1.65;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

:focus-visible {
  outline: 2px solid var(--clr-teal);
  outline-offset: 3px;
}

code {
  font-family: "SF Mono", "Fira Code", Consolas, "Courier New", monospace;
  font-size: 0.85em;
  background: rgba(0,194,168,0.12);
  color: var(--clr-teal);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* ── 3. UTILITIES ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}

.section-dark { background: var(--clr-navy); }

/* Section headers */
.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-teal);
  margin-bottom: 0.6rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--clr-navy);
  margin-bottom: 0.9rem;
}

.section-dark .section-header h2 { color: var(--clr-white); }

.section-sub {
  font-size: 1rem;
  color: var(--clr-text-secondary);
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast),
              background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--clr-teal);
  color: var(--clr-navy);
  border-color: var(--clr-teal);
}
.btn-primary:hover {
  background: var(--clr-teal-hover);
  border-color: var(--clr-teal-hover);
  box-shadow: 0 4px 18px rgba(0,194,168,0.38);
}

.btn-outline {
  background: transparent;
  color: var(--clr-teal);
  border-color: var(--clr-teal);
}
.btn-outline:hover { background: rgba(0,194,168,0.1); }

.btn-lg { padding: 0.78rem 1.9rem; font-size: 1rem; }

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
.fade-in-delay { transition-delay: 0.18s; }


/* ── 4. NAVBAR ────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(11,31,58,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: padding var(--t-normal), box-shadow var(--t-normal);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 1rem;
  transition: padding-block var(--t-normal);
}

#navbar.scrolled .nav-inner { padding-block: 0.65rem; }
#navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.35); }

.nav-logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
.nav-logo img { display: inline-block; width: 32px; height: 32px; }
.logo-clima { color: var(--clr-white); }
.logo-mon   { color: var(--clr-teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--clr-white); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--clr-teal);
  border-radius: 2px;
  animation: expand-underline 0.25s ease forwards;
}
@keyframes expand-underline {
  to { left: 0.75rem; right: 0.75rem; }
}

.nav-cta { margin-left: 1rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ── 5. HERO ──────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  padding-top: var(--navbar-h);
  background:
    radial-gradient(ellipse at 72% 48%, rgba(26,107,154,0.28) 0%, transparent 55%),
    linear-gradient(160deg, var(--clr-navy) 0%, var(--clr-navy-mid) 60%, #0F3460 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(0,194,168,0.06) 0%, transparent 40%);
  pointer-events: none;
}

.hero-inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}

.hero-text .section-eyebrow { margin-bottom: 1rem; }

.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--clr-white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  color: var(--clr-text-on-dark);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hero-stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.72rem;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-stat-divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.hero-image { display: flex; justify-content: center; }

.hero-image-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform var(--t-slow);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-image-frame:hover { transform: perspective(1200px) rotateY(-1deg) rotateX(0.5deg); }
.hero-image-frame img { display: block; }

/* Scroll indicator */
.hero-scroll {
  display: flex;
  justify-content: center;
  padding-bottom: 2rem;
}
.hero-scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  animation: bounce-dot 2s ease-in-out infinite;
}
@keyframes bounce-dot {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50%       { transform: translateY(-8px); opacity: 0.8; }
}


/* ── 6. PRODUCTS ──────────────────────────────────────────────── */
#products {
  padding: var(--section-py) 0;
  background: var(--clr-light-bg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  position: relative;
  background: var(--clr-white);
  border-radius: var(--r-lg);
  padding: 2rem;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform var(--t-normal), box-shadow var(--t-normal);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-active {
  border-left: 4px solid var(--clr-teal);
}
.product-active:hover { box-shadow: 0 16px 48px rgba(0,194,168,0.15); }

.product-coming {
  opacity: 0.72;
  border: 1.5px dashed #CBD5E1;
}

.product-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
}
.badge-available {
  background: rgba(0,194,168,0.15);
  color: #007A6A;
}
.badge-soon {
  background: #F1F5F9;
  color: #64748B;
}

.product-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(26,107,154,0.1), rgba(0,194,168,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  color: var(--clr-ocean);
}
.product-icon svg { width: 26px; height: 26px; }

.product-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-navy);
  margin-top: 0.25rem;
}
.product-tagline {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.product-desc {
  font-size: 0.9rem;
  color: var(--clr-text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.product-specs {
  list-style: none;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.product-specs li {
  font-size: 0.85rem;
  color: var(--clr-text-secondary);
  padding-left: 1.1rem;
  position: relative;
}
.product-specs li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--clr-teal);
  font-size: 0.7rem;
  top: 0.08em;
}

.product-card .btn { margin-top: auto; align-self: flex-start; }

.coming-soon-label {
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  font-style: italic;
  padding-top: 0.5rem;
}


/* ── 7. FEATURES ──────────────────────────────────────────────── */
#features {
  padding: var(--section-py) 0;
  background: var(--clr-light-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--clr-white);
  border-radius: var(--r-md);
  padding: 1.75rem;
  border: 1px solid var(--clr-border);
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,194,168,0.14);
  border-color: var(--clr-teal);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(26,107,154,0.1), rgba(0,194,168,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--clr-ocean);
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-navy);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--clr-text-secondary);
  line-height: 1.7;
}


/* ── 9. GALLERY ───────────────────────────────────────────────── */
#gallery {
  padding: var(--section-py) 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.gallery-wide {
  grid-column: 1 / -1;
}

.gallery-item {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(26,107,154,0.25);
  background: var(--clr-dark-card);
  transition: transform var(--t-normal), box-shadow var(--t-normal);
}
.gallery-item:hover { box-shadow: 0 16px 50px rgba(0,0,0,0.5); }

.gallery-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--clr-dark-card2);
}
.gallery-img-wrap img {
  width: 100%;
  transition: transform var(--t-slow);
}
.gallery-item:hover .gallery-img-wrap img { transform: scale(1.025); }

/* Missing image placeholder */
.gallery-img-wrap .img-placeholder {
  display: none;
}
.gallery-img-wrap.img-missing img { display: none; }
.gallery-img-wrap.img-missing .img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 4rem 2rem;
  color: var(--clr-text-muted);
  text-align: center;
}
.img-placeholder svg { width: 40px; height: 40px; opacity: 0.4; }
.img-placeholder span { font-size: 0.9rem; font-weight: 500; }
.img-placeholder small { font-size: 0.75rem; opacity: 0.65; }

.gallery-caption {
  padding: 1rem 1.25rem;
  background: var(--clr-dark-card);
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  line-height: 1.55;
}
.gallery-caption strong {
  color: #D8E8F4;
  font-weight: 600;
}


/* ── 10. FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--clr-navy-deep);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 260px;
}
.footer-brand .nav-logo { margin-bottom: 0.75rem; display: inline-flex; }
.footer-tagline {
  font-size: 0.85rem;
  color: #3A5A7A;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-text-muted);
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-col a {
  font-size: 0.875rem;
  color: #3A5A7A;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--clr-teal); }

.soon-tag {
  font-size: 0.62rem;
  font-weight: 700;
  background: #0F1E30;
  color: #3A5A7A;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 0.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-bottom {
  border-top: 1px solid #0D1E30;
  padding-block: 1.1rem;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: #2A3F55;
}


/* ── 12. RESPONSIVE ───────────────────────────────────────────── */

/* Tablet — ≤ 1024px */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
  }
  .product-active {
    grid-column: 1 / -1;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    position: fixed;
    top: var(--navbar-h);
    left: 0; right: 0;
    z-index: 999;
    background: rgba(7,15,31,0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    gap: 0.25rem;
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    transition: max-height 0.35s ease, padding 0.35s ease;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.nav-open {
    max-height: 400px;
    padding: 1.5rem;
  }
  .nav-links a { width: 100%; padding: 0.65rem 1rem; font-size: 1rem; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
}

/* Phone — ≤ 768px */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-sub { max-width: 100%; margin-inline: auto; }
  .hero-cta-group { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image-frame { transform: none; }

  .products-grid { grid-template-columns: 1fr; }
  .product-active { grid-column: auto; }
  .features-grid { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-wide { grid-column: auto; }

  .footer-inner { flex-direction: column; gap: 2rem; }
  .footer-brand { max-width: 100%; }
  .footer-links { gap: 2rem; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* Small phone — ≤ 400px */
@media (max-width: 400px) {
  .hero-stats { flex-direction: column; gap: 0.75rem; }
  .hero-stat-divider { width: 3rem; height: 1px; }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .hero-cta-group .btn { width: 100%; justify-content: center; }
}
