/* ================================================
   PRODOM - Janelas e Caixilharia
   Shared Stylesheet
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --green: #1E9455;
  --green-dark: #166B3E;
  --green-light: #E8F5EE;
  --green-mid: #25A863;
  --dark: #111816;
  --dark-2: #1E2922;
  --gray: #6B7B73;
  --gray-light: #C8D4CC;
  --light: #F7FAF8;
  --white: #FFFFFF;
  --border: #E2EDE7;

  --nav-h: 130px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.14);

  --font: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { font-size: 1rem; color: var(--gray); line-height: 1.7; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-family: var(--font); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: all 0.2s ease; white-space: nowrap;
}
.btn-primary {
  background: var(--green); color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(30,148,85,0.35); }
.btn-outline {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-outline-dark {
  background: transparent; color: var(--dark);
  border-color: var(--border);
}
.btn-outline-dark:hover { border-color: var(--green); color: var(--green); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-label {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-intro { max-width: 560px; font-size: 1.1rem; margin-bottom: 48px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo .logo-mark {
  width: 44px; height: 44px; background: var(--dark);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
}
.nav-logo .logo-mark svg { width: 24px; height: 24px; }
.nav-logo .logo-text { line-height: 1; }
.nav-logo .logo-name { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; color: var(--dark); }
.nav-logo .logo-sub { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray); }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: 6px;
  font-size: 0.9rem; font-weight: 500; color: var(--dark);
  cursor: pointer; transition: all 0.15s;
}
.nav-link:hover, .nav-link.active { color: var(--green); background: var(--green-light); }
.nav-link svg { width: 14px; height: 14px; transition: transform 0.2s; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 220px; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all 0.2s;
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown-link {
  display: block; padding: 10px 14px; border-radius: 6px;
  font-size: 0.88rem; font-weight: 500; color: var(--dark);
  transition: all 0.15s;
}
.dropdown-link:hover { background: var(--green-light); color: var(--green); }

.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-phone { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 500; color: var(--dark); white-space: nowrap; }
.nav-phone svg { width: 16px; height: 16px; color: var(--green); }

/* Mobile nav */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: all 0.3s; }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: var(--nav-h);
  background: var(--dark);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1920&q=80');
  background-size: cover; background-position: center;
  opacity: 0.45;
}
.hero-content { position: relative; z-index: 1; padding: 80px 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(30,148,85,0.9); color: var(--white);
  padding: 6px 16px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; background: #6EE8A2; border-radius: 50%; }
.hero h1 { color: var(--white); margin-bottom: 24px; max-width: 680px; }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,0.75); max-width: 520px; margin-bottom: 40px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }
.hero-trust { display: flex; gap: 32px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.85); font-size: 0.88rem; font-weight: 500; }
.trust-item svg { width: 18px; height: 18px; color: var(--green-mid); flex-shrink: 0; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark) 100%);
  color: var(--white); text-align: center;
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto; font-size: 1.1rem; }

/* ── CARDS ── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.25s; position: relative;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.card-img { aspect-ratio: 4/3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 24px; }
.card-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); background: var(--green-light);
  padding: 4px 10px; border-radius: 4px; margin-bottom: 12px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.9rem; margin-bottom: 20px; }
.card-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.88rem; font-weight: 600; color: var(--green);
  transition: gap 0.2s;
}
.card:hover .card-arrow { gap: 10px; }

/* ── FEATURES ── */
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--green-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--green);
}
.feature-icon svg { width: 24px; height: 24px; }

/* ── STATS ── */
.stats-bar {
  background: var(--dark); color: var(--white); padding: 48px 0;
}
.stat-item { text-align: center; }
.stat-num { font-size: 2.8rem; font-weight: 800; color: var(--green-mid); line-height: 1; }
.stat-label { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin-top: 6px; }

/* ── TESTIMONIALS ── */
.testimonial {
  background: var(--light); border-radius: var(--radius-lg);
  padding: 32px; border: 1px solid var(--border);
}
.testimonial-stars { color: #F5A623; font-size: 1rem; margin-bottom: 12px; }
.testimonial-text { font-size: 0.95rem; color: var(--dark); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gray-light); overflow: hidden; flex-shrink: 0;
}
.author-name { font-size: 0.9rem; font-weight: 600; }
.author-loc { font-size: 0.8rem; color: var(--gray); }

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white); text-align: center; padding: 96px 0;
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 40px; font-size: 1.1rem; }

/* ── CONTACT FORM ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--dark); }
.form-control {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font); font-size: 0.95rem; color: var(--dark);
  background: var(--white); transition: border-color 0.2s;
  outline: none;
}
.form-control:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(30,148,85,0.12); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; 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='%236B7B73' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* ── BLOG ── */
.blog-card { cursor: pointer; }
.blog-meta { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; color: var(--gray); margin-bottom: 8px; }
.blog-meta span { display: flex; align-items: center; gap: 4px; }

/* ── BREADCRUMB ── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 24px; }
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: var(--white); }

/* ── FOOTER ── */
footer {
  background: var(--dark); color: rgba(255,255,255,0.65);
  padding: 72px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand .logo-name { color: var(--white); }
.footer-brand .logo-sub { color: rgba(255,255,255,0.4); }
.footer-brand p { font-size: 0.88rem; margin-top: 16px; line-height: 1.7; }
.footer-col h5 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.88rem; color: rgba(255,255,255,0.65); margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: var(--white); }
.footer-contact { font-size: 0.88rem; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0; display: flex; align-items: center; justify-content: space-between;
  font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(17,24,22,0.97); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
  transform: translateY(100%); transition: transform 0.4s;
}
#cookie-banner.show { transform: none; }
.cookie-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-text { flex: 1; min-width: 280px; font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.cookie-text a { color: var(--green-mid); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-actions button {
  padding: 9px 20px; border-radius: 6px; font-family: var(--font);
  font-size: 0.85rem; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s;
}
.btn-accept { background: var(--green); color: var(--white); }
.btn-accept:hover { background: var(--green-dark); }
.btn-reject { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
.btn-reject:hover { background: rgba(255,255,255,0.15); }

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed; bottom: 80px; right: 24px; z-index: 998;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  cursor: pointer; transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ── PROCESS STEPS ── */
.step {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--white);
  transition: all 0.25s;
}
.step:hover { border-color: var(--green); box-shadow: 0 4px 24px rgba(30,148,85,0.1); }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; flex-shrink: 0;
}
.step-body h4 { margin-bottom: 6px; }
.step-body p { font-size: 0.88rem; }

/* ── PRODUCT SPECS TABLE ── */
.specs-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.specs-table th { text-align: left; padding: 12px 16px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); background: var(--light); border-bottom: 1px solid var(--border); }
.specs-table td { padding: 14px 16px; font-size: 0.92rem; border-bottom: 1px solid var(--border); }
.specs-table tr:last-child td { border-bottom: none; }
.specs-table tr:hover td { background: var(--light); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-menu, .nav-phone { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-trust { flex-direction: column; gap: 16px; }
  .stats-bar .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .section, .cta-section { padding: 64px 0; }

  /* Mobile nav overlay */
  .mobile-nav {
    display: none; position: fixed; inset: 0; z-index: 999;
    background: var(--white); padding: 80px 24px 32px;
    flex-direction: column; gap: 0;
    overflow-y: auto;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav-link {
    display: block; padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.1rem; font-weight: 600; color: var(--dark);
  }
  .mobile-nav-link:hover { color: var(--green); }
  .mobile-nav .btn { margin-top: 24px; width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .stats-bar .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 1.9rem; }
}

/* ── UTILS ── */
.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-green { color: var(--green); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-4 { gap: 16px; }
.gap-2 { gap: 8px; }
.bg-light { background: var(--light); }
.bg-dark { background: var(--dark); }
.divider { height: 1px; background: var(--border); margin: 48px 0; }

/* Fade-in animation */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: none; }
