/* ═══════════════════════════════════════════════════════
   EliteCaixilharia — Professional Stylesheet
   Theme: Light / Dark (toggle)
   ═══════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800;900&display=swap');

/* ── CSS Variables (Light Theme) ── */
:root {
  --bg: #f8f9fa;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f0f2f5;
  --border: #e2e8f0;
  --border-alt: #cbd5e1;
  --text: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-faint: #a0aec0;

  --primary: #1e3a5f;
  --primary-light: #2b4a72;
  --primary-dark: #152a47;
  --accent: #d4920c;
  --accent-light: #e6a817;
  --accent-dark: #b37a0a;
  --accent-soft: rgba(212, 146, 12, 0.12);

  --success: #22c55e;
  --success-soft: rgba(34, 197, 94, 0.12);
  --error: #ef4444;
  --error-soft: rgba(239, 68, 68, 0.12);
  --warning: #f59e0b;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.06);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --header-height: 72px;
  --container: 1200px;
  --container-narrow: 900px;
}

/* ── Dark Theme ── */
[data-theme="dark"] {
  --bg: #0b1121;
  --bg-alt: #111827;
  --surface: #151e2e;
  --surface-alt: #1a2436;
  --border: #1e2d42;
  --border-alt: #2a3a52;
  --text: #e2e8f0;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  --text-faint: #4a5568;

  --primary: #4a90d9;
  --primary-light: #5da3e8;
  --primary-dark: #3a7bc8;
  --accent: #f0b429;
  --accent-light: #f5c446;
  --accent-dark: #d49b14;
  --accent-soft: rgba(240, 180, 41, 0.12);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow: 0 4px 16px rgba(0,0,0,0.2);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.3);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.4);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-light); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; }

/* ── Utility ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-accent {
  background: var(--accent);
  color: #0b1121;
}
.btn-accent:hover {
  background: var(--accent-light);
  color: #0b1121;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border-alt);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 12px 16px;
}
.btn-ghost:hover {
  background: var(--accent-soft);
}
.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--radius); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; }

/* ── Header / Navbar ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  transition: background var(--transition), border var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  box-shadow: var(--shadow);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b1121;
  font-size: 1.1rem;
  font-weight: 900;
  font-family: var(--font-main);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-soft);
}
/* CTA só visível no menu móvel (escondido no ecrã grande) */
.nav-mobile-cta {
  display: none;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-toggle {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--text-secondary);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.theme-toggle:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.mobile-toggle:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.mobile-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.mobile-toggle:active {
  transform: scale(0.92);
}

/* ── Hero Section ── */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content h1 {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
}
.hero-content h1 span { color: var(--accent); }
.hero-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image-placeholder {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/3;
  background: var(--surface-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.hero-image-placeholder i {
  font-size: 3rem;
  color: var(--accent);
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.hero-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Section Styles ── */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Images ── */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.img-rounded {
  border-radius: var(--radius-lg);
}
.img-frame {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

/* ── Hero Image ── */
.hero-image-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
}
.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-image-frame:hover img { transform: scale(1.05); }
.hero-image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.35));
  pointer-events: none;
}
.hero-badge-float {
  position: absolute;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: float 4s ease-in-out infinite;
}
.hero-badge-float i {
  font-size: 1.4rem;
  color: var(--accent);
}
.hero-badge-float .badge-title {
  font-weight: 700;
  font-size: 0.9rem;
  display: block;
}
.hero-badge-float .badge-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}
.hero-badge-float.b1 { top: 24px; left: -20px; }
.hero-badge-float.b2 { bottom: 40px; right: -16px; animation-delay: 2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ── Gallery Grid ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  aspect-ratio: 4/3;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all var(--transition);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.75));
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}
.gallery-overlay small {
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
}

/* ── Process Steps ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.process-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: all var(--transition);
}
.process-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.process-num {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  background: var(--accent);
  color: #0b1121;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}
.process-card i {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}
.process-card h4 { margin-bottom: 6px; font-size: 0.98rem; }
.process-card p { font-size: 0.82rem; color: var(--text-secondary); }
.process-arrow {
  position: absolute;
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 0.9rem;
  z-index: 2;
  display: none;
}
@media (min-width: 900px) {
  .process-arrow { display: block; }
}

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: all var(--transition);
}
.testimonial-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--accent-soft);
  line-height: 1;
}
.testimonial-stars {
  color: var(--accent);
  margin-bottom: 14px;
  font-size: 0.85rem;
}
.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}
.testimonial-author .author-name {
  font-weight: 700;
  font-size: 0.88rem;
}
.testimonial-author .author-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ── FAQ Accordion ── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border var(--transition-fast);
}
.faq-item.open {
  border-color: var(--accent);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: color var(--transition-fast);
}
.faq-question:hover { color: var(--accent); }
.faq-question .faq-icon {
  color: var(--accent);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
}
.faq-answer p {
  padding: 0 22px 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── Energy Simulator ── */
.simulator-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.simulator-controls {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.sim-control {
  margin-bottom: 24px;
}
.sim-control label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.sim-control .sim-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.sim-range {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}
.sim-value {
  font-weight: 700;
  color: var(--accent);
}
.sim-result {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.sim-result::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.sim-result h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin-bottom: 12px;
}
.sim-saving {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.sim-saving small {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-main);
}
.sim-result .sim-detail {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 20px;
}
.sim-bars {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}
.sim-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
}
.sim-bar-row .sim-bar-label {
  width: 90px;
  flex-shrink: 0;
  opacity: 0.85;
}
.sim-bar {
  flex: 1;
  height: 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 5px;
  overflow: hidden;
}
.sim-bar-fill {
  height: 100%;
  border-radius: 5px;
  background: var(--accent);
  transition: width 0.6s ease;
}
.sim-bar-fill.current {
  background: rgba(255,255,255,0.5);
}
.sim-result .btn { margin-top: 4px; }
@media (max-width: 900px) {
  .simulator-wrap { grid-template-columns: 1fr; }
}

/* ── Window Calculator ── */
.calc-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}
.calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.calc-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.calc-section {
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
}
.calc-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}
.calc-choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.calc-choice {
  position: relative;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
  background: var(--surface);
}
.calc-choice:hover {
  border-color: var(--accent);
}
.calc-choice.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.calc-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.calc-choice-visual {
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.calc-choice-visual svg {
  max-width: 100%;
  max-height: 100%;
}
.calc-choice .calc-choice-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.calc-window-preview {
  aspect-ratio: 4/3;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  margin-bottom: 18px;
}
.calc-window-preview svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.calc-dims {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.calc-dim-range {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
  margin-top: 8px;
}
.calc-dim-readout {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.calc-dim-readout strong {
  font-size: 1.05rem;
  color: var(--accent);
}
.calc-area-line {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
}
.calc-checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  cursor: pointer;
}
.calc-checkbox-line input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

/* Price panel */
.calc-price-panel {
  position: sticky;
  top: calc(var(--header-height) + 20px);
}
.calc-price-box {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #fff;
  margin-bottom: 20px;
}
.calc-price-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin-bottom: 6px;
}
.calc-price-current {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
}
.calc-price-current small {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-main);
}
.calc-price-meta {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 8px;
}
.calc-price-meta .sim-bar {
  margin-top: 10px;
  height: 6px;
  background: rgba(255,255,255,0.2);
}
.calc-price-meta .sim-bar-fill {
  background: var(--accent);
}
.calc-estimate-line {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}
.calc-estimate-line i {
  color: var(--accent);
  margin-top: 2px;
}
.calc-estimate-line strong {
  color: #fff;
}
.calc-add-btn {
  width: 100%;
  margin-top: 14px;
}

/* Cart */
.calc-cart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.calc-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.calc-cart-header h3 {
  font-size: 1rem;
}
.calc-cart-count {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.calc-cart-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.calc-cart-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.calc-cart-item .ci-name {
  font-size: 0.85rem;
  font-weight: 600;
}
.calc-cart-item .ci-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.calc-cart-item .ci-price {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.calc-cart-item .ci-remove {
  background: none;
  border: none;
  color: var(--error);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
}
.calc-totals {
  border-top: 1px solid var(--border);
  margin-top: 14px;
  padding-top: 14px;
}
.calc-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 4px 0;
}
.calc-total-row.discount { color: var(--success); }
.calc-total-row.grand {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 10px;
}
.calc-estimate {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.calc-estimate i {
  color: var(--accent);
  margin-top: 2px;
}
.calc-estimate strong {
  color: var(--text);
}
.calc-form { margin-top: 20px; }
.calc-status {
  font-size: 0.82rem;
  margin-top: 12px;
  text-align: center;
}
.calc-status.success { color: var(--success); }
.calc-status.error { color: var(--error); }
@media (max-width: 1000px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-price-panel { position: static; }
}

/* ── Brands Strip ── */
.brands-section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.brands-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.brand-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-faint);
  opacity: 0.6;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.brand-logo:hover {
  opacity: 1;
  color: var(--accent);
}

/* ── About Images ── */
.about-image-wrap {
  position: relative;
}
.about-image-wrap img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-exp-badge {
  position: absolute;
  bottom: -20px;
  right: -10px;
  background: var(--accent);
  color: #0b1121;
  border-radius: var(--radius);
  padding: 18px 22px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.about-exp-badge .num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}
.about-exp-badge .txt {
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 4px;
}

/* ── Team Cards with Photos ── */
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  transition: all var(--transition);
}
.team-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.team-photo {
  aspect-ratio: 1/1;
  overflow: hidden;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.team-card:hover .team-photo img { transform: scale(1.06); }
.team-info {
  padding: 18px;
}
.team-info h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.team-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.team-social {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.team-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}
.team-social a:hover {
  background: var(--accent);
  color: #0b1121;
}

/* ── Reveal Animation ── */
.reveal,
.reveal-left,
.reveal-right,
.reveal-zoom {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal { transform: translateY(28px); }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-left { transform: translateX(-44px); }
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right { transform: translateX(44px); }
.reveal-right.revealed { opacity: 1; transform: translateX(0); }
.reveal-zoom { transform: scale(0.92); }
.reveal-zoom.revealed { opacity: 1; transform: scale(1); }

/* Stagger delays for card grids */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* ── CTA with Background Image ── */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  background: var(--primary);
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=60');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}
.cta-section .container {
  position: relative;
  z-index: 1;
}

/* ── CTA Section ── */
.cta-section {
  color: #fff;
  text-align: center;
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
}
.cta-section p {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .btn-accent {
  font-size: 1.05rem;
  padding: 16px 40px;
}

/* ── About Page ── */
.about-hero {
  padding: 140px 0 60px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.about-hero h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  margin-bottom: 16px;
}
.about-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-image-placeholder {
  aspect-ratio: 16/10;
  background: var(--surface-alt);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.about-image-placeholder i { font-size: 2.5rem; color: var(--accent); opacity: 0.5; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.value-card i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}
.value-card h4 { margin-bottom: 8px; font-size: 1rem; }
.value-card p { font-size: 0.88rem; color: var(--text-secondary); }
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 32px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px; top: 6px;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg);
}
.timeline-year {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.timeline-item h4 { margin-bottom: 4px; }
.timeline-item p { font-size: 0.88rem; color: var(--text-secondary); }

/* ── Contact Page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
  transition: all var(--transition);
}
.contact-info-card:hover {
  border-color: var(--accent);
}
.contact-info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
}
.contact-info-card h4 { margin-bottom: 4px; font-size: 0.95rem; }
.contact-info-card p { font-size: 0.88rem; color: var(--text-secondary); }
.contact-map {
  width: 100%;
  height: 240px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

/* ── Forms ── */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: border var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-control::placeholder { color: var(--text-faint); }
.form-control.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-soft);
}
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Color Picker (PVC profile) ── */
.color-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.color-swatch:hover { border-color: var(--accent); }
.color-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.color-swatch input:checked ~ .swatch {
  box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 1px var(--accent);
}
.color-swatch .swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-alt);
  display: block;
  transition: box-shadow var(--transition-fast);
}
.color-swatch .swatch-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Quote Form Specific ── */
.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.quote-step {
  display: none;
}
.quote-step.active {
  display: block;
}
.quote-steps-indicator {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}
.quote-step-dot {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  transition: background var(--transition);
}
.quote-step-dot.active {
  background: var(--accent);
}
.quote-step-dot.done {
  background: var(--success);
}
.product-option {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}
.product-option:hover {
  border-color: var(--accent);
}
.product-option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.product-option i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}
.product-option h4 { margin-bottom: 4px; }
.product-option p { font-size: 0.82rem; color: var(--text-muted); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.quote-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ── Legal Pages ── */
.legal-hero {
  padding: 140px 0 40px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.legal-hero h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin-bottom: 8px;
}
.legal-hero p {
  color: var(--text-muted);
  font-size: 0.92rem;
}
.legal-section {
  padding: 48px 0 80px;
}
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 860px;
  margin: 0 auto;
}
.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 32px;
}
.legal-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 40px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.legal-card h2:first-of-type {
  margin-top: 24px;
  padding-top: 0;
  border-top: none;
}
.legal-card h3 {
  font-size: 1.02rem;
  margin: 24px 0 10px;
  color: var(--accent);
}
.legal-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.8;
  margin-bottom: 14px;
}
.legal-card ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 14px;
}
.legal-card li {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 6px;
}
.legal-card .table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
}
.legal-card .table th,
.legal-card .table td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.88rem;
}
.legal-card .table th {
  background: var(--surface-alt);
  font-weight: 600;
}
.legal-card .table td {
  color: var(--text-secondary);
}
.legal-toc {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.legal-toc h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.legal-toc a {
  display: block;
  font-size: 0.88rem;
  padding: 4px 0;
  color: var(--text-secondary);
}
.legal-toc a:hover { color: var(--accent); }
@media (max-width: 768px) {
  .legal-card { padding: 28px 22px; }
}

/* ── Footer ── */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 300px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.88rem;
  padding: 4px 0;
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--accent); }

/* ── Newsletter (footer) ── */
.newsletter-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  padding: 22px 26px;
  margin-bottom: 34px;
}
.newsletter-text h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.newsletter-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 460px;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  max-width: 430px;
  position: relative;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 190px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
}
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}
.newsletter-msg {
  flex-basis: 100%;
  font-size: 0.8rem;
  margin: 2px 0 0;
  min-height: 0;
}
.newsletter-msg.ok { color: var(--success); }
.newsletter-msg.err { color: var(--error); }

/* Honeypot anti-bots (invisível a humanos, visível a bots) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Floating WhatsApp Button ── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 5000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
  text-decoration: none;
  animation: wa-pulse 2.5s infinite;
}
.whatsapp-float:hover {
  background: #1ebe5b;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-float .wa-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
}
.whatsapp-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ── Social Share Buttons ── */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.share-bar .share-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 4px;
}
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  transition: all var(--transition);
  text-decoration: none;
}
.share-btn:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.share-facebook  { background: #1877f2; }
.share-facebook:hover  { background: #0f6ae0; }
.share-twitter    { background: #000000; }
.share-twitter:hover   { background: #1a1a1a; }
.share-whatsapp   { background: #25d366; }
.share-whatsapp:hover  { background: #1ebe5b; }
.share-linkedin   { background: #0a66c2; }
.share-linkedin:hover  { background: #0857a6; }
.share-email      { background: var(--primary); }
.share-email:hover     { background: var(--primary-light); }
.share-copy {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.95rem;
}
.share-copy:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.share-copy.copied {
  background: var(--success-soft);
  color: var(--success);
  border-color: var(--success);
}

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--surface);
  border-top: 2px solid var(--accent);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
  padding: 18px 0;
  transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.show {
  transform: translateY(0);
}
.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner-content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 280px;
}
.cookie-banner-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.cookie-banner-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.cookie-banner-text p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.cookie-banner-text p a { color: var(--accent); text-decoration: underline; }
.cookie-banner-text p a:hover { color: var(--accent-light); }
.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ── Cookie Preferences Modal ── */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cookie-modal.open {
  opacity: 1;
  visibility: visible;
}
.cookie-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}
.cookie-modal-box {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px;
  transform: translateY(24px);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-modal.open .cookie-modal-box {
  transform: translateY(0);
}
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-modal-header h3 {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-modal-header h3 i { color: var(--accent); }
.cookie-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--text-secondary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.cookie-modal-close:hover {
  background: var(--error-soft);
  color: var(--error);
}
.cookie-modal-intro {
  font-size: 0.87rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}
.cookie-pref-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.cookie-pref-info strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.cookie-pref-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.cookie-pref-always {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--success);
  background: var(--success-soft);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Switch toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border-alt);
  border-radius: 26px;
  transition: background var(--transition-fast);
}
.switch-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}
.switch input:checked + .switch-slider {
  background: var(--accent);
}
.switch input:checked + .switch-slider::before {
  transform: translateX(22px);
}

/* ── Floating Cookie Settings Button ── */
.cookie-settings-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 5000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.cookie-settings-float:hover {
  transform: scale(1.08);
  color: #fff;
  background: var(--accent);
  box-shadow: var(--shadow-lg);
}
.cookie-float-tooltip {
  position: absolute;
  left: 58px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
}
.cookie-settings-float:hover .cookie-float-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ── Admin Page ── */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
}
.admin-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
}
.admin-sidebar h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 12px;
  margin-bottom: 12px;
  margin-top: 24px;
}
.admin-sidebar h3:first-child { margin-top: 0; }
.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.admin-sidebar a i { width: 20px; text-align: center; }
.admin-content {
  padding: 32px;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.admin-header h1 {
  font-size: 1.6rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.stat-card-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.stat-card-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
}
.stat-card-change {
  font-size: 0.78rem;
  margin-top: 4px;
}
.stat-card-change.up { color: var(--success); }
.stat-card-change.down { color: var(--error); }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.admin-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--surface-alt); }
.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--accent-soft); color: var(--accent); }
.badge-error { background: var(--error-soft); color: var(--error); }

/* ── Toast / Notification ── */
.toast-container {
  position: fixed;
  top: 90px; right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 300px;
  animation: slideInRight 0.3s ease;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--error); }
.toast.info { border-left: 4px solid var(--primary); }
.toast-icon { font-size: 1.2rem; }
.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--error); }
.toast.info .toast-icon { color: var(--primary); }
.toast-message { flex: 1; font-size: 0.88rem; }
.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 96px;
  z-index: 5000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent);
  color: #0b1121;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ── Gallery Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-figure {
  max-width: min(1100px, 90vw);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0 70px;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 72vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
}
.lightbox-caption {
  text-align: center;
  color: #fff;
}
.lightbox-caption span {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
}
.lightbox-caption small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--transition-fast);
  z-index: 2;
}
.lightbox-close:hover { background: var(--error); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--transition-fast);
  z-index: 2;
}
.lightbox-nav:hover { background: var(--accent); color: #0b1121; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
@media (max-width: 640px) {
  .lightbox-figure { margin: 0 20px; }
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content p { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-image { display: none; }
  .hero-stats { justify-content: center; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-badge-float.b1 { left: 8px; }
  .hero-badge-float.b2 { right: 8px; }
}
@media (max-width: 768px) {
  :root { --header-height: 64px; }
  .hero { padding: 110px 0 60px; }
  .hero-content h1 { font-size: 2.2rem; }
  .section { padding: 60px 0; }
  .section-header h2 { font-size: 1.7rem; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(var(--header-height) + 8px);
    left: 16px;
    right: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 26px 60px -18px rgba(0, 0, 0, 0.4);
    padding: 10px;
    gap: 2px;
    z-index: 999;
    animation: mobileNavIn 0.2s ease;
  }
  .nav-links.open a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
  }
  .nav-links.open a:hover,
  .nav-links.open a.active {
    color: var(--accent);
    background: var(--accent-soft);
  }
  .nav-links.open .nav-mobile-cta {
    display: flex;
    margin-top: 10px;
    padding: 14px 16px;
    border-top: 1px dashed var(--border);
    border-radius: 0;
    justify-content: center;
    font-weight: 800;
    color: #0b1121;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
  }
  .nav-links.open .nav-mobile-cta:hover {
    color: #0b1121;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    filter: brightness(1.04);
  }
  @keyframes mobileNavIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
  }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .cookie-banner .container { flex-direction: column; text-align: center; }
  .cookie-banner-content { justify-content: center; text-align: left; }
  .cookie-actions { justify-content: center; }
  .values-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .cta-section h2 { font-size: 1.8rem; }
}
@media (max-width: 768px) {
  .nav-actions .btn { display: none; } /* CTA passa a viver dentro do menu móvel */
}

/* ═══════════════════════════════════════════════════════
   Motion & Polish — dynamic, modern, professional
   ═══════════════════════════════════════════════════════ */

/* ── Scroll Progress Bar ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--primary));
  z-index: 1200;
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 10px var(--accent-soft);
  transition: width 0.08s linear;
}

/* ── Page Fade-in ── */
main { animation: pageFade 0.55s ease both; }
@keyframes pageFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Hero Entrance (staggered, pure CSS) ── */
.hero-entrance {
  animation: heroUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-entrance.d1 { animation-delay: 0.05s; }
.hero-entrance.d2 { animation-delay: 0.18s; }
.hero-entrance.d3 { animation-delay: 0.32s; }
.hero-entrance.d4 { animation-delay: 0.46s; }
.hero-entrance.d5 { animation-delay: 0.62s; }
@keyframes heroUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero image gentle zoom on load */
.hero.entered .hero-image-frame {
  animation: heroImg 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}
@keyframes heroImg {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

/* ── Hero Glowing Blobs (visíveis em tema claro e escuro) ── */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}
.hero-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  filter: blur(80px);
}
.hero-glow.g1 {
  width: 520px; height: 520px;
  top: -180px; left: -150px;
  opacity: 1;
  animation:
    glowDrift 16s ease-in-out infinite,
    glowStrength 12s ease-in-out 0.7s infinite;
}
.hero-glow.g1::after {
  background: radial-gradient(circle at 32% 30%, rgba(244, 180, 41, 0.5) 0%, rgba(244, 180, 41, 0.16) 48%, transparent 72%);
}
/* Deriva lentamente (só posição) — a opacidade é controlada pela glowStrength */
@keyframes glowDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(46px, 34px) scale(1.18); }
}
/* Acompanha o ciclo das folhas: fraco com a janela fechada, forte quando abre */
@keyframes glowStrength {
  0%        { opacity: 0.28; }
  16%, 63%  { opacity: 1; }
  80%, 100% { opacity: 0.28; }
}

/* ── Hero: duas folhas de vidro fosco que abrem e fecham em loop ──
   Sem moldura nem cenário — só o vidro dá vida à janela. */
.hero-window {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  --hw-glass1: rgba(255, 255, 255, 0.34);
  --hw-glass2: rgba(240, 245, 251, 0.12);
  --hw-edge: rgba(255, 255, 255, 0.55);
  --hw-seam: rgba(9, 16, 28, 0.22);
}
[data-theme="dark"] .hero-window {
  --hw-glass1: rgba(205, 221, 240, 0.14);
  --hw-glass2: rgba(205, 221, 240, 0.05);
  --hw-edge: rgba(220, 232, 247, 0.4);
  --hw-seam: rgba(0, 0, 0, 0.5);
}
/* Vidro fosco: sem riscos, apenas reflexos suaves */
.hw-sash {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  z-index: 0;
  background:
    radial-gradient(130% 100% at 28% 0%, rgba(255, 255, 255, 0.14), transparent 46%),
    radial-gradient(140% 120% at 85% 100%, rgba(140, 165, 195, 0.1), transparent 55%),
    linear-gradient(180deg, var(--hw-glass1) 0%, var(--hw-glass2) 100%);
  box-shadow: inset 0 0 70px rgba(9, 16, 28, 0.08);
  will-change: transform;
}
/* Rebordo fino na aresta interior (a folha esquerda encosta exatamente na direita) */
.hw-sash::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--hw-edge), transparent);
}
.hw-sash.hw-left { left: 0; }
/* Sombra subtil do encosto: cada aresta projeta para o centro quando as folhas fecham */
.hw-sash.hw-left::before {
  right: 1.5px;
  box-shadow: 5px 0 12px -2px var(--hw-seam);
}
.hw-sash.hw-right { right: 0; }
.hw-sash.hw-right::before {
  left: 1.5px;
  box-shadow: -5px 0 12px -2px var(--hw-seam);
}
/* Ciclo contínuo: aberto ~2s → aberto 5,5s → fecha 2s → pausa 2,5s → repete */
.hw-sash.hw-left { animation: hoCycleL 12s ease-in-out 0.7s infinite; }
.hw-sash.hw-right { animation: hoCycleR 12s ease-in-out 0.7s infinite; }
@keyframes hoCycleL {
  0%, 100% { transform: translateX(0); }
  16%, 63% { transform: translateX(-101%); }
  80%      { transform: translateX(0); }
}
@keyframes hoCycleR {
  0%, 100% { transform: translateX(0); }
  16%, 63% { transform: translateX(101%); }
  80%      { transform: translateX(0); }
}
.hw-handle {
  position: absolute;
  top: 50%;
  margin-top: -30px;
  width: 14px; height: 60px;
  border-radius: 8px;
  background: linear-gradient(180deg, #e7bc46, #b8891a);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18), 0 4px 12px rgba(0, 0, 0, 0.25);
}
.hw-sash.hw-left .hw-handle { right: 18px; left: auto; }
.hw-sash.hw-right .hw-handle { left: 18px; }
/* Pausa o ciclo quando o hero sai do ecrã (poupa recursos ao fazer scroll) */
.hero-window.hw-paused .hw-sash {
  animation-play-state: paused;
}
/* ── Shimmering hero accent word ── */
.hero-content h1 span {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 25%, #ffd166 50%, var(--accent-light) 75%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer {
  to { background-position: 200% center; }
}

/* ── Brands Marquee ── */
.brands-section { overflow: hidden; }
.brands-mask { position: relative; }
.brands-mask::before,
.brands-mask::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.brands-mask::before { left: 0;  background: linear-gradient(90deg,  var(--surface), transparent); }
.brands-mask::after  { right: 0; background: linear-gradient(270deg, var(--surface), transparent); }
.brands-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.brands-section:hover .brands-track { animation-play-state: paused; }
.brands-track .brands-row {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 56px;
  padding-right: 56px;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Service card shine + icon pop ── */
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: -85%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  transition: left 0.7s ease;
}
.service-card:hover::after { left: 135%; }
.service-card:hover .service-card-icon {
  animation: iconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes iconPop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.18) rotate(-6deg); }
  100% { transform: scale(1); }
}

/* ── Process number micro-interaction ── */
.process-num { transition: transform var(--transition); }
.process-card:hover .process-num {
  transform: scale(1.12) rotate(-6deg);
}

/* ── Button shine sweep ── */
.btn-accent {
  position: relative;
  overflow: hidden;
}
.btn-accent::after {
  content: '';
  position: absolute;
  top: 0; left: -85%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  transition: left 0.55s ease;
}
.btn-accent:hover::after { left: 135%; }

/* ── Gallery zoom icon ── */
.gallery-zoom-icon {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(11, 17, 33, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 0;
  transform: scale(0.55) rotate(-14deg);
  transition: all var(--transition);
  z-index: 2;
  pointer-events: none;
}
.gallery-item:hover .gallery-zoom-icon {
  opacity: 1;
  transform: scale(1) rotate(0);
}

/* ── Animated section header underline ── */
.section-header h2 {
  position: relative;
  padding-bottom: 14px;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 60px; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.section-header h2.animated::after {
  transform: translateX(-50%) scaleX(1);
}

/* ── CTA slow Ken Burns pan ── */
.cta-section::before {
  animation: ctaPan 24s ease-in-out infinite alternate;
}
@keyframes ctaPan {
  from { transform: scale(1); }
  to   { transform: scale(1.14); }
}

/* ── Reduced motion: keep it professional & accessible ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-entrance,
  .hero-content h1 span,
  .hero-glow,
  .brands-track,
  .cta-section::before,
  main {
    animation: none !important;
  }
  /* Folhas decorativas do hero: sem efeito (hero normal) */
  .hero-window { display: none; }
  .hero-entrance { opacity: 1; }
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-zoom {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .service-card::after,
  .btn-accent::after { display: none; }
  .service-card:hover .service-card-icon,
  .process-card:hover .process-num { animation: none; transform: none; }
}
