/* =========================================================
   AM EXPERT CLIMA — stylesheet
   Screen sizes (same as the old Framer breakpoints):
     Phone   : up to 809px
     Tablet  : 810px – 1439px
     Desktop : 1440px – 1879px
     Large   : 1880px and up
   ========================================================= */

/* ---------- Fonts (self-hosted Inter) ---------- */
@font-face { font-family: "Inter Display"; font-weight: 500; font-display: swap; src: url("../fonts/inter-display-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Display"; font-weight: 500; font-display: swap; src: url("../fonts/inter-display-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Display"; font-weight: 500; font-display: swap; src: url("../fonts/inter-display-500-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Inter Display"; font-weight: 600; font-display: swap; src: url("../fonts/inter-display-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Display"; font-weight: 600; font-display: swap; src: url("../fonts/inter-display-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Display"; font-weight: 600; font-display: swap; src: url("../fonts/inter-display-600-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Colours ---------- */
:root {
  --navy: rgb(3, 30, 69);        /* PMS 282 — background */
  --cyan: rgb(117, 211, 242);    /* PMS 2197 — headings, accents */
  --cyan-light: rgb(153, 238, 255);
  --white: #fff;
  --orange: rgb(255, 79, 0);

  /* spacing — overridden per screen size below */
  --px: 20px;      /* page side margin */
  --sec: 20px;     /* section top/bottom padding */
  --gap: 20px;     /* space between blocks inside a section */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: "Inter Display", "Inter", system-ui, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; font-weight: inherit; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[id] { scroll-margin-top: 70px; }

/* ---------- Text styles ---------- */
.t-hero    { font-size: 72px; line-height: 1;   font-weight: 600; color: var(--cyan); }
.t-label   { font-size: 24px; line-height: 1;   text-transform: uppercase; }
.t-h2      { font-size: 46px; line-height: 1.1; font-weight: 600; color: var(--cyan); }
.t-h3      { font-size: 25px; line-height: 30px; font-weight: 600; color: var(--cyan); }
.t-body    { font-size: 20px; line-height: 1.4; }
.t-medium  { font-size: 24px; line-height: 1.2; }
.t-num     { font-size: 60px; line-height: 1.1; font-weight: 600; letter-spacing: -2px; color: var(--cyan); }
.t-small   { font-size: 15px; line-height: 1.3; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--navy);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .25);
}
.nav-bar {
  height: 70px; padding: 0 var(--px);
  display: flex; align-items: center;
}
.nav-logo { flex: 0 0 auto; }
.nav-logo img { width: 101px; height: 43px; }
.nav-links { display: flex; gap: 20px; margin-left: calc(33% - 101px); }
.nav-links a { font-size: 15px; line-height: 19.5px; transition: color .2s; }
.nav-links a:hover { color: var(--cyan); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.lang {
  display: flex; gap: 10px; padding: 3px 9px 3px 10px;
  border: 1px solid var(--cyan); border-radius: 7px;
  font-size: 20px; line-height: 28px; color: var(--cyan);
}
.lang a { opacity: .5; transition: opacity .2s; }
.lang a.active, .lang a:hover { opacity: 1; }
.nav-info { font-size: 15px; line-height: 19.5px; color: var(--cyan); }
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 19px; line-height: 20.9px; color: var(--white);
}
.nav-menu { display: none; }

/* ---------- Sections ---------- */
.section { padding: var(--sec) var(--px); }
.rule { height: 1px; background: var(--white); margin-bottom: var(--gap); }
.rule.light { background: var(--cyan-light); }
.cols { display: grid; grid-template-columns: 33% 67%; }
.stack { display: flex; flex-direction: column; gap: var(--gap); }

/* hero */
.hero { padding-top: 40px; }
.hero h1 { max-width: 69%; }
.hero-intro { margin: 60px 0 0 33%; }
.hero-intro .t-medium { margin-bottom: 37px; }
.btn {
  display: inline-block; padding: 7px 14px;
  border: 1px solid var(--cyan); border-radius: 8px;
  font-size: 15px; line-height: 19.5px; color: var(--cyan);
  box-shadow: 0 .7px .7px -.6px rgba(0,0,0,.15), 0 1.8px 1.8px -1.25px rgba(0,0,0,.14), 0 3.6px 3.6px -1.9px rgba(0,0,0,.14), 0 6.9px 6.9px -2.5px rgba(0,0,0,.13), 0 13.6px 13.6px -3.1px rgba(0,0,0,.1), 0 30px 30px -3.75px rgba(0,0,0,.05);
  transition: background-color .2s, color .2s;
}
.btn:hover { background: var(--cyan); color: var(--navy); }
.hero-bottom { display: grid; grid-template-columns: .46fr 1fr; gap: 26px; margin-top: 60px; }
.hero-stats { border-top: 1px solid var(--cyan-light); padding-top: 19px; display: flex; flex-direction: column; gap: 19px; }
.stat { display: flex; align-items: center; gap: 10px; }
.stat .icon { width: 66px; height: 66px; flex: none; }
.hero-img { width: 100%; height: 500px; object-fit: cover; }

/* partners */
.partners { display: flex; flex-direction: column; gap: 10px; }
.partners-row { display: flex; justify-content: space-between; align-items: center; }
.partners-row img { height: auto; }

/* advantages */
.adv { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.adv-num { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.adv-num .n { font-family: "Inter", sans-serif; font-size: 86px; line-height: 1.1; font-weight: 600; letter-spacing: -8px; color: var(--cyan); }
.adv-num .l { font-size: 36px; line-height: 1; font-weight: 600; letter-spacing: -1px; color: var(--cyan); margin-top: 12px; }
.checks li { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--cyan); padding: 10px 0; font-size: 24px; line-height: 1.1; }
.checks li::before { content: ""; flex: none; width: 30px; height: 30px; background: url("../img/icons/check.svg") center / contain no-repeat; }
.checks.compact li { padding: 5px 0 12px; line-height: 1.2; }
.checks.compact li::before { width: 24px; height: 23px; }
.br-desk { display: inline; }

/* clients */
.two-lists { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.two-lists p { font-size: 24px; line-height: 1.2; }

/* climatisation / ventilation */
.feature-title { display: flex; align-items: center; gap: 10px; align-self: start; }
.feature-title .icon { width: 80px; height: 80px; flex: none; }
.feature-body { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.feature-body img { width: 100%; height: 100%; object-fit: cover; }

/* carousels */
.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; gap: var(--c-gap, 0px); transition: transform .6s cubic-bezier(.22, .8, .3, 1); will-change: transform; touch-action: pan-y; cursor: grab; }
.carousel-track.dragging { transition: none; cursor: grabbing; }
.carousel-item { flex: 0 0 calc((100% - (var(--c-per) - 1) * var(--c-gap, 0px)) / var(--c-per)); user-select: none; -webkit-user-drag: none; }
.carousel-item img { pointer-events: none; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  background: var(--cyan) url("../img/icons/arrow-left.svg") center / 100% no-repeat;
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; background-image: url("../img/icons/arrow-right.svg"); }

.products { background: var(--white); height: 300px; padding: 20px 0 10px; --c-per: 3; --c-gap: 40px; }
.products .carousel-track, .products .carousel-item { height: 100%; }
.products .carousel-item { display: flex; flex-direction: column; gap: 10px; }
.products .carousel-item img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.products .carousel-item p { font-size: 24px; line-height: 1.2; color: var(--navy); text-align: center; }

.projects { --c-per: 1; }
.projects .carousel-item img { width: 100%; height: 551px; object-fit: cover; }
.projects .carousel-item p { font-size: 24px; line-height: 1.2; margin-top: 10px; }

/* contact */
.contact-list p { border-top: 1px solid var(--cyan); padding: 10px 0; }
.contact-list { margin-top: calc(10px - var(--gap)); }

/* footer */
.footer { padding: 19px 30px 40px; }
.footer .rule { margin-bottom: 10px; }
.footer-row { display: grid; grid-template-columns: 33% 1fr; }
.footer-row p, .footer-row a { font-size: 15px; line-height: 19.5px; }
.credit { display: flex; align-items: center; gap: 5px; }
.credit::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.credit:hover { color: var(--cyan); }

/* =========================================================
   LARGE (1880px and up)
   ========================================================= */
@media (min-width: 1880px) {
  .hero h1 { max-width: 69%; }
  .hero-img { height: 600px; }
  .checks:not(.compact) li { font-size: 30px; }
  .feature-body { gap: 31px; }
  .projects .carousel-item img { height: 751px; }
}

/* =========================================================
   TABLET (810px – 1439px)
   ========================================================= */
@media (max-width: 1439.98px) {
  :root { --gap: 10px; --sec: 10px; }
  .nav { position: fixed; left: 0; right: 0; }
  .nav-bar { height: 71px; }
  .nav-links, .nav-info { display: none; }
  .nav-right { margin-left: calc(33% - 101px); }
  .lang { font-size: 19px; line-height: 20.9px; padding: 2px 9px 2px 9px; gap: 23px; }
  .nav-toggle { display: block; }
  /* menu slides open (height animates from 0 to its content) */
  .nav-menu { display: grid; grid-template-rows: 0fr; padding: 0 var(--px); transition: grid-template-rows .45s cubic-bezier(.2, .9, .3, 1); }
  .nav.open .nav-menu { grid-template-rows: 1fr; }
  .nav-menu-inner { overflow: hidden; min-height: 0; opacity: 0; transition: opacity .3s ease; }
  .nav.open .nav-menu-inner { opacity: 1; }
  .nav-menu-inner > :first-child { margin-top: 3px; }
  .nav-menu-inner > :last-child { margin-bottom: 25px; }
  .nav-menu a.m { display: block; border-top: 1px solid var(--cyan); padding: 18px 0 21px; font-size: 19px; line-height: 23px; }
  .nav-menu .nav-info { display: block; margin-top: 7px; }
  .nav-menu .nav-info + .nav-info { margin-top: 13px; }

  .t-hero  { font-size: 58px; }
  .t-label { font-size: 19px; line-height: 1.2; }
  .t-h2    { font-size: 37px; }
  .t-body  { font-size: 16px; }
  .t-medium{ font-size: 19px; }

  .hero { padding-top: 100px; }
  .hero h1 { max-width: none; }
  .hero-intro { margin-top: 20px; }
  .hero-bottom { display: block; margin-top: 20px; }
  .hero-img { height: 300px; }
  .hero-stats { margin: 14px 0 0 33%; padding-top: 19px; }
  .stat .icon { width: 50px; height: 50px; }

  .adv { display: block; }
  .adv-num { margin-bottom: 0; align-items: center; }
  .adv-num .n { font-family: inherit; font-size: 60px; letter-spacing: -2px; }
  .adv-num .l { font-size: 25px; line-height: 30px; letter-spacing: 0; margin-top: 0; }
  .adv .adv-num:nth-of-type(2) { margin-bottom: 10px; }
  .checks li { font-size: 19px; padding: 11px 0 12px; }
  .checks li::before { width: 24px; height: 24px; }
  .checks.compact li { padding: 9px 0 7px; line-height: 1.1; }
  .br-desk { display: none; }

  .two-lists { column-gap: 10px; }
  .two-lists p { font-size: 19px; line-height: 1.1; }
  .feature .cols > :first-child { display: none; }
  .feature-title .icon { width: 48px; height: 48px; }
  .feature-body { display: flex; flex-direction: column; gap: 15px; }
  .feature-body img { height: 300px; }

  .products { --c-per: 2; }
  .products .carousel-item p { font-size: 19px; }
  .carousel-btn { width: 36px; height: 36px; }
  .projects .carousel-item img { height: 307px; }
  .projects .carousel-item p { font-size: 19px; }

  .contact-list p { font-size: 19px; line-height: 1.1; padding: 6px 0; }
  .contact-list { margin-top: -4px; }
}

/* =========================================================
   PHONE (up to 809px)
   ========================================================= */
@media (max-width: 809.98px) {
  :root { --px: 10px; }
  .nav-bar { height: 63px; }
  .nav-logo img { width: 101px; height: 43px; }
  .nav-right { margin-left: calc(50% - 10px - 101px - var(--px)); }

  .t-hero  { font-size: 33px; line-height: 1.1; letter-spacing: -2px; }
  .t-label { font-size: 15px; line-height: 1; }
  .t-h2    { font-size: 29px; }
  .t-medium{ font-size: 15px; }

  .hero { padding-top: 90px; }
  .hero-stats { margin-left: 0; margin-top: 26px; }
  .cols { display: flex; flex-direction: column; gap: var(--gap); }

  .feature .cols > :first-child { display: none; }
  .feature-body img { height: 200px; }
  .feature-body { gap: 14px; }

  .two-lists { display: block; }
  .products { height: 200px; --c-per: 1; }
  .products .carousel-item p { font-size: 15px; }
  .carousel-btn { width: 30px; height: 30px; }
  .projects .carousel-item img { height: 262px; }
  .projects .carousel-item p { font-size: 15px; }

  .footer { padding: 19px 10px 40px; }
  .footer-row { display: flex; flex-direction: column; gap: 12px; }
}

/* title shown inside the content column on tablet/phone */
.mobile-only { display: none; }
@media (max-width: 1439.98px) {
  .feature .mobile-only { display: flex; }
}

/* fine-tuning to match the original spacing */
.checks:not(.compact) li:last-child { padding-bottom: 3px; }
.contact-list p:last-child { padding-bottom: 0; }
#projects { padding-bottom: 9px; }
.products-intro { max-width: 90%; }
@media (max-width: 1439.98px) { .products-intro { max-width: 87%; } }
@media (max-width: 809.98px) { .products-intro { max-width: none; } }
@media (max-width: 1439.98px) {
  .hero-bottom { display: flex; flex-direction: column; }
  .hero-img { order: -1; }
  .feature .stack { grid-column: 2; }
  .adv.types { display: grid; column-gap: 20px; }
}
@media (max-width: 809.98px) {
  .hero-bottom { margin-top: 15px; }
  .adv.types { display: block; }
}
@media (max-width: 1439.98px) {
  .hero { padding-bottom: 20px; }
  .hero-bottom { gap: 14px; }
  .hero-stats { margin-top: 0; }
}
@media (max-width: 809.98px) {
  .hero { padding-bottom: 10px; }
  .hero-bottom { gap: 26px; }
  .hero-stats { margin-top: 0; }
}
@media (max-width: 1439.98px) {
  .partners { gap: 14px; }
  .adv .checks:first-of-type li:last-child { padding-bottom: 12px; }
}
@media (max-width: 1439.98px) {
  .checks.compact li:last-child { padding-bottom: 0; }
}
.phone-logos { display: none; }
@media (max-width: 1439.98px) { .partners { gap: 10px; } }
@media (max-width: 809.98px) {
  .desktop-logos { display: none; }
  .phone-logos { display: flex; gap: 8px; margin-top: 10px; }
  .hero-intro { margin: 15px 0 0; }
}
@media (max-width: 809.98px) {
  .checks li { padding: 9px 0 8px; }
  .adv .checks:first-of-type li:last-child { padding-bottom: 8px; }
  .adv .checks:last-of-type li:last-child { padding-bottom: 0; }
  .checks.compact li, .checks.compact li:last-child { padding: 6px 0; }
  .footer { padding: 39px 10px 30px; }
}
@media (max-width: 1439.98px) { #projects { padding-bottom: 20px; } }
@media (max-width: 809.98px) { .adv .checks:last-of-type li:last-child { padding-bottom: 6px; } }
@media (min-width: 1880px) { .hero { padding-top: 60px; } }
@media (min-width: 810px) and (max-width: 1439.98px) {
  .checks.compact li { padding: 8px 0 6px; }
  .checks.compact li:last-child { padding-bottom: 0; }
}
@media (min-width: 1880px) { .partners { gap: 7px; } }
@media (min-width: 810px) and (max-width: 1439.98px) {
  .partners { gap: 14px; }
  .products-intro { gap: 20px; }
}
@media (min-width: 810px) and (max-width: 1439.98px) {
  .products { margin-left: 6px; padding-left: 15px; padding-right: 15px; }
}
@media (max-width: 809.98px) {
  .t-hero { letter-spacing: -1px; }
  .products-intro { max-width: 90%; }
}
@media (min-width: 810px) and (max-width: 1439.98px) {
  .products-intro { max-width: 92%; }
  .products-intro p { max-width: 95%; }
}

/* =========================================================
   ANIMATIONS (same as the Framer version)
   ========================================================= */
@keyframes fade-in   { from { opacity: 0; } }
@keyframes rise-in   { from { opacity: 0; transform: translateY(100px); } }
@keyframes image-in  { from { opacity: .3; } }
@keyframes blink     { 0%, 37.5% { opacity: 1; } 50%, 87.5% { opacity: 0; } 100% { opacity: 1; } }

.nav       { animation: fade-in .35s ease-out both; }
.hero h1   { animation: rise-in 1.2s cubic-bezier(.22, 1, .36, 1) both; }
.hero-img  { animation: image-in .5s cubic-bezier(.44, 0, .56, 1) both; }
.credit::before { animation: blink .8s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .nav, .hero h1, .hero-img, .credit::before { animation: none; }
  .nav-menu, .nav-menu-inner, .carousel-track { transition: none; }
}
