:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --ice: #13a4d8;
  --ice-dark: #0d86b3;
  --ice-light: #e8f6fc;
  --white: #ffffff;
  --text: #1c2b3a;
  --muted: #5b6b7c;
  --border: #d6e6ef;
  --wa: #25d366;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  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 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ice); color: var(--white); }
.btn-primary:hover { background: var(--ice-dark); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: .6rem; color: var(--navy); font-size: 1.1rem; letter-spacing: .04em; }
.logo strong { color: var(--ice); font-weight: 700; }
.logo img { border-radius: 10px; }
.logo-light { color: var(--white); }
.logo-light img { background: var(--white); padding: 3px; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { font-weight: 500; color: var(--navy); position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--ice); transition: width .2s;
}
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  padding: calc(var(--header-h) + 80px) 0 100px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--ice-dark) 100%);
}
.hero-pattern {
  position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: url("../img/snowflake.svg");
  background-size: 140px;
}
.hero-inner { position: relative; display: grid; gap: 2.5rem; align-items: center; text-align: center; }
.hero-logo { margin: 0 auto; max-width: 280px; }
.hero-logo img {
  border-radius: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  border: 4px solid rgba(255,255,255,.15);
}
.hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.4rem); }
.hero h1 span { color: #7fd6f5; }
.hero-lead { font-size: 1.1rem; opacity: .9; max-width: 600px; margin: 0 auto 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero-badges {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; justify-content: center; font-size: .95rem; opacity: .9;
}
.hero-badges li::before { content: "❄"; margin-right: .4rem; color: #7fd6f5; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600;
  color: var(--ice); margin-bottom: .6rem;
}
.hero .eyebrow { color: #7fd6f5; }

/* Sections */
.section { padding: 88px 0; }
.section-ice { background: var(--ice-light); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.section-head p:last-child { color: var(--muted); }

/* Service cards */
.cards { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); margin: 0; }
.card-icon {
  width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ice-light); margin-bottom: 1.2rem;
}
.card-icon svg, .why-icon svg {
  width: 28px; height: 28px; fill: none; stroke: var(--ice); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.card-cta {
  background: linear-gradient(135deg, var(--ice) 0%, var(--ice-dark) 100%); border: 0;
  color: var(--white); display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.card-cta h3 { color: var(--white); }
.card-cta p { color: rgba(255,255,255,.9); margin-bottom: 1.4rem; }

/* Why */
.why { display: grid; gap: 3rem; align-items: center; }
.why-text h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.why-text p:last-child { color: var(--muted); }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.why-list li {
  display: flex; gap: 1rem; align-items: flex-start; background: var(--white);
  border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow);
}
.why-list h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.why-list p { margin: 0; color: var(--muted); font-size: .95rem; }
.why-icon {
  flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ice-light);
}
.why-icon svg { width: 24px; height: 24px; }

/* References */
.refs {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.ref {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.ref:hover { border-color: var(--ice); box-shadow: var(--shadow); }
.ref-initial {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--white); font-weight: 700; font-size: 1.2rem;
}
.ref strong { display: block; color: var(--navy); }
.ref small { color: var(--muted); }

/* Gallery */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.gallery-item {
  position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden;
  cursor: zoom-in; aspect-ratio: 3 / 4; background: var(--navy);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .8rem 1rem; text-align: left;
  font: inherit; font-weight: 600; color: var(--white);
  background: linear-gradient(transparent, rgba(11,37,69,.85));
}

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(5, 18, 35, .9);
  display: grid; place-items: center; padding: 16px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 85vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--white); color: var(--navy); font-size: 1.8rem; line-height: 1; cursor: pointer;
}

/* Contact */
.contact { display: grid; gap: 3rem; }
.contact-info h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.contact-info > p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.2rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; }
.contact-list a, .contact-list span { font-weight: 600; color: var(--navy); }
.contact-list a:hover { color: var(--ice); }

.form {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow); display: grid; gap: 1.1rem;
}
.field { display: grid; gap: .4rem; }
.field label { font-weight: 500; font-size: .9rem; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); padding: .75rem .9rem;
  border: 1px solid var(--border); border-radius: 10px; background: #fbfdfe;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ice); box-shadow: 0 0 0 3px rgba(19,164,216,.18);
}
.field .invalid { border-color: #d64545; }
.form-error { color: #d64545; font-size: .9rem; margin: 0; }

/* Footer */
.footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 56px 0 24px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer-slogan { margin: .8rem 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; }
.footer-links a:hover { color: var(--white); }
.copy {
  text-align: center; font-size: .85rem; margin: 2.5rem 0 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
}

/* WhatsApp float */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: var(--white); }

/* Responsive */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .hero-inner { grid-template-columns: 1.3fr 1fr; text-align: left; }
  .hero-lead { margin-left: 0; }
  .hero-actions, .hero-badges { justify-content: flex-start; }
  .hero-logo { max-width: 400px; }
}

@media (max-width: 899px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 16px 1.2rem;
    background: var(--white); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--border); }
  .nav a:not(.btn)::after { display: none; }
  .nav-call { margin-top: 1rem; }
  .hero { padding: calc(var(--header-h) + 56px) 0 72px; }
  .section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
