/*
Theme Name: Ice On Ice
Theme URI: https://iceonice.co.mz
Author: ICE ON ICE
Description: Tema institucional premium para a ICE ON ICE — produção e distribuição de gelo em Moçambique. Animações GSAP, scroll suave Lenis, secções full-screen.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: iceonice
Tags: business, one-page, custom-colors, custom-logo, custom-menu, featured-images
*/

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */
:root {
  --ice: #00b8ff;
  --deep: #0056b3;
  --white: #ffffff;
  --grey-light: #f5f8fc;
  --grey-text: #5e6a7d;
  --black: #111111;

  --bg: var(--white);
  --fg: var(--black);
  --muted: var(--grey-text);
  --border: #e2e9f2;
  --secondary: var(--grey-light);

  --gradient-ice: linear-gradient(135deg, #00b8ff 0%, #0056b3 100%);
  --shadow-soft: 0 18px 40px -20px rgba(0, 86, 179, 0.35);

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --max: 1400px;
  --pad: clamp(1.25rem, 4vw, 2rem);
}

/* =========================================================
   2. RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.03;
}
p { margin: 0; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* =========================================================
   3. LAYOUT HELPERS
   ========================================================= */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { position: relative; padding: clamp(4.5rem, 10vw, 9rem) 0; }
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ice);
}
.lead { color: var(--muted); max-width: 34rem; line-height: 1.75; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); }
.grid { display: grid; gap: 1rem; }
.noise {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}
.glass {
  background: color-mix(in oklab, #fff 30%, transparent);
  backdrop-filter: blur(14px) saturate(110%);
  -webkit-backdrop-filter: blur(14px) saturate(110%);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* =========================================================
   4. BUTTONS
   ========================================================= */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  font-size: 0.875rem; font-weight: 500;
  overflow: hidden;
  transition: color 0.4s, border-color 0.4s, transform 0.3s;
  will-change: transform;
}
.btn--solid { background-image: var(--gradient-ice); color: #fff; box-shadow: var(--shadow-soft); }
.btn--outline { border: 1px solid var(--border); color: var(--fg); }
.btn--outline:hover { border-color: var(--ice); color: var(--deep); }
.btn__line { display: block; width: 1.5rem; height: 1px; background: currentColor; transition: width 0.5s; }
.btn:hover .btn__line { width: 2.25rem; }
.btn__sheen {
  position: absolute; inset: 0; background: rgba(255, 255, 255, 0.25);
  filter: blur(10px); transform: translateX(-100%);
  transition: transform 0.7s ease-out;
}
.btn:hover .btn__sheen { transform: translateX(100%); }
.btn--light { border: 1px solid rgba(255,255,255,0.5); color: #fff; }

/* =========================================================
   5. HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.5s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -24px rgba(0, 0, 0, 0.45); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0.9rem 0;
}
.header__logo img { height: 34px; width: auto; object-fit: contain; }
.nav__list { display: none; align-items: center; gap: 2rem; }
.nav__list a {
  position: relative;
  font-size: 0.84rem; font-weight: 500; color: var(--deep);
  transition: color 0.3s;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  height: 2px; width: 0; border-radius: 2px; background: var(--ice);
  transition: width 0.45s;
}
.nav__list a:hover { color: var(--ice); }
.nav__list a:hover::after { width: 100%; }
.header__cta { display: none; }
.nav-toggle {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 999px;
  background: transparent; border: 1px solid rgba(0, 86, 179, 0.3); color: var(--deep);
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle span + span { margin-top: 4px; }
.mobile-nav {
  max-height: 0; overflow: hidden; opacity: 0;
  border-top: 1px solid transparent; background: var(--white);
  transition: max-height 0.5s, opacity 0.4s;
}
.mobile-nav.is-open { max-height: 30rem; opacity: 1; border-top-color: var(--border); }
.mobile-nav ul { padding: 1.25rem var(--pad); display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav a { display: block; padding: 0.5rem 0; font-family: var(--font-display); font-size: 1.5rem; color: var(--deep); }

@media (min-width: 1024px) {
  .nav__list { display: flex; }
  .nav-toggle { display: none; }
  .header__cta { display: block; }
}

/* =========================================================
   6. HERO
   ========================================================= */
.hero {
  position: relative; 
  display: flex; 
  align-items: center; 
  justify-content: flex-start; /* Força o conteúdo para a esquerda */
  min-height: 100svh; 
  padding: 8rem 2rem 5rem 5%; /* Reduz a margem da esquerda para 5% (ou até 4rem) */
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(17,24,39,0.85) 0%, rgba(17,24,39,0.6) 45%, rgba(17,24,39,0.15) 100%);
}

.hero__content { 
  max-width: 44rem; 
  color: #fff; 
  text-align: left;
  margin-left: 0; /* Remove qualquer centralização automática por margem */
}

.hero h1 { margin-top: 1.75rem; font-size: clamp(2.4rem, 6.4vw, 5.4rem); line-height: 0.95; text-align: left; }
.hero .eyebrow { color: rgba(255, 255, 255, 0.8); text-align: left; }
.hero__sub { margin-top: 2rem; max-width: 32rem; color: rgba(255, 255, 255, 0.82); font-size: 1.05rem; text-align: left; }
.hero__actions { margin-top: 2.75rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: flex-start; }
.hero__facts {
  margin-top: 4rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem;
  font-size: 0.78rem; color: rgba(255, 255, 255, 0.72);
  justify-content: flex-start;
}
.hero__facts li { display: flex; align-items: center; gap: 0.5rem; }
.hero__facts li::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: var(--ice); }
/* =========================================================
   7. ABOUT / STATS
   ========================================================= */
.about__grid { display: grid; gap: 3.5rem; }
.about__media { border-radius: 2rem; overflow: hidden; aspect-ratio: 4 / 5; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.stats { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.stat { border-top: 1px solid var(--border); padding-top: 1.25rem; }
.stat__value { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 600; line-height: 1; }
.stat__value span { color: var(--ice); }
.stat__label { margin-top: 0.75rem; font-size: 0.75rem; color: var(--muted); }
@media (min-width: 1024px) {
  .about__grid { grid-template-columns: 5fr 6fr; gap: 5rem; align-items: center; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   8. PRODUCTS
   ========================================================= */
.product {
  position: relative; display: grid; gap: 2.5rem; align-items: center;
  padding: clamp(3rem, 7vw, 6rem) 0;
  border-top: 1px solid var(--border);
}
.product__media { overflow: hidden; border-radius: 1.75rem; aspect-ratio: 16 / 11; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.product:hover .product__media img { transform: scale(1.06); }
.product h3 { margin-top: 1.25rem; font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.product ul { margin-top: 1.5rem; display: grid; gap: 0.6rem; }
.product ul li { display: flex; gap: 0.65rem; font-size: 0.9rem; color: var(--muted); }
.product ul li::before { content: "—"; color: var(--ice); }
@media (min-width: 900px) {
  .product { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .product--reverse .product__media { order: 2; }
}

/* =========================================================
   9. SERVICES / MARKETS
   ========================================================= */
.cards { display: grid; gap: 1rem; }
.card {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: 1.75rem;
  background: color-mix(in oklab, var(--grey-light) 70%, #fff);
  padding: 1.75rem;
  transition: transform 0.6s, box-shadow 0.6s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.card__num { font-family: var(--font-display); font-size: 0.75rem; color: var(--ice); }
.card h3 { margin-top: 1.25rem; font-size: 1.25rem; }
.card p { margin-top: 0.75rem; font-size: 0.9rem; color: var(--muted); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.markets { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
.market {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid var(--border); border-radius: 1.25rem; padding: 1.25rem;
  font-family: var(--font-display); font-size: 1rem;
  transition: background 0.4s, color 0.4s;
}
.market:hover { background-image: var(--gradient-ice); color: #fff; border-color: transparent; }
@media (min-width: 900px) { .markets { grid-template-columns: repeat(4, 1fr); } }

/* =========================================================
   10. WHY (cards mobile / horizontal desktop)
   ========================================================= */
.why { background: color-mix(in oklab, var(--grey-light) 80%, #fff); }
.why__track { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-top: 2.5rem; }
.why__item {
  position: relative; border: 1px solid var(--border); border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.7); padding: 1.25rem;
}
.why__item h3 { margin-top: 0.75rem; font-size: 1.3rem; }
.why__item p { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); }
@media (min-width: 640px) { .why__track { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .why__track { grid-template-columns: repeat(3, 1fr); } }

/* =========================================================
   11. PROCESS
   ========================================================= */
.process { position: relative; display: grid; gap: 2rem; margin-top: 3rem; }
.step { position: relative; padding-left: 2.5rem; }
.step::before {
  content: ""; position: absolute; left: 0; top: 0.4rem;
  width: 10px; height: 10px; border-radius: 999px; background: var(--ice);
}
.step::after {
  content: ""; position: absolute; left: 4px; top: 1.4rem; bottom: -2rem;
  width: 1px; background: var(--border);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 1.2rem; }
.step p { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); }

/* =========================================================
   12. GALLERY + LIGHTBOX
   ========================================================= */
.gallery { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); margin-top: 2.5rem; }
.gallery figure { margin: 0; overflow: hidden; border-radius: 1.25rem; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; transition: transform 1s; }
.gallery figure:hover img { transform: scale(1.06); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  place-items: center; padding: 2rem;
  background: rgba(17, 17, 17, 0.9); backdrop-filter: blur(6px);
}
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 85vh; width: auto; border-radius: 1rem; }
.lightbox__close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 42px; height: 42px; border-radius: 999px;
  background: rgba(255,255,255,0.15); border: 0; color: #fff; font-size: 1.25rem;
}

/* =========================================================
   13. TESTIMONIALS
   ========================================================= */
.quotes { margin-top: 3rem; display: grid; gap: 1rem; }
.quote { border: 1px solid var(--border); border-radius: 1.75rem; padding: 2rem; background: #fff; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.4; }
.quote footer { margin-top: 1.25rem; font-size: 0.8rem; color: var(--muted); }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }

/* =========================================================
   14. CTA
   ========================================================= */
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(5rem, 12vw, 11rem) 0; }
.cta__bg { position: absolute; inset: 0; z-index: -1; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(24px); transform: scale(1.1); }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.55); }
.cta h2 { margin: 2rem auto 0; max-width: 55rem; font-size: clamp(2.2rem, 7vw, 6rem); line-height: 0.95; }
.cta .lead { margin: 2rem auto 0; }
.cta__actions { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* =========================================================
   15. FOOTER
   ========================================================= */
.site-footer { border-top: 1px solid var(--border); padding: 5rem 0 2.5rem; background: var(--bg); }
.footer__grid { display: grid; gap: 3rem; }
.footer__brand img { height: 36px; width: auto; }
.footer__brand p { margin-top: 1.5rem; max-width: 20rem; font-size: 0.875rem; color: var(--muted); }
.newsletter {
  margin-top: 2rem; display: flex; align-items: center; gap: 0.5rem;
  max-width: 24rem; padding: 0.4rem; border: 1px solid var(--border); border-radius: 999px;
}
.newsletter input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 1rem; font-size: 0.875rem; outline: none; }
.newsletter button { border: 0; border-radius: 999px; background-image: var(--gradient-ice); color: #fff; padding: 0.65rem 1.25rem; font-size: 0.75rem; }
.footer__col h3 { font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ice); }
.footer__col ul { margin-top: 1.5rem; display: grid; gap: 0.75rem; }
.footer__col a { font-size: 0.875rem; color: var(--muted); transition: color 0.3s; }
.footer__col a:hover { color: var(--fg); }
.footer__map { margin-top: 1.5rem; border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; }
.footer__map iframe { height: 160px; width: 100%; border: 0; filter: grayscale(0.4); }
.footer__bottom {
  margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.75rem; justify-content: space-between;
  font-size: 0.75rem; color: var(--muted);
}
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr; gap: 2.5rem; }
  .footer__bottom { flex-direction: row; }
}

/* =========================================================
   16. ANIMAÇÕES (fallback sem JS)
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(24px); }
.no-js [data-reveal], .reveal-done { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  * { animation: none !important; transition-duration: 0.01ms !important; }
}

/* WordPress core classes */
.alignwide { max-width: 1100px; margin-inline: auto; }
.wp-caption, .gallery-caption, .bypostauthor, .sticky { display: block; }
.aligncenter { margin-inline: auto; }
.alignright { float: right; margin-left: 1.5rem; }
.alignleft { float: left; margin-right: 1.5rem; }
