/* ==========================================================================
   Vidraçaria Renovação - Main Stylesheet
   Site: https://vidracariarenovacao.com.br/
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --verde-militar: #1B3B2B;
  --terracota: #8B3A2B;
  --areia: #E6D7C3;
  --grafite: #252B2F;
  --cinza-claro: #F1F5F6;
  --salsavia: #C2C8B8;
  --branco: #FFFFFF;
  --preto: #111111;
  --overlay-hero: rgba(27, 59, 43, 0.55);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: .3s ease;
  --max-width: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--grafite);
  background: var(--branco);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ---------- Typography ---------- */
h1 { font-size: 38px; line-height: 1.2; font-weight: 700; color: var(--verde-militar); }
h2 { font-size: 28px; line-height: 1.3; font-weight: 700; color: var(--verde-militar); }
h3 { font-size: 22px; line-height: 1.4; font-weight: 600; color: var(--grafite); }
h4 { font-size: 18px; line-height: 1.4; font-weight: 600; color: var(--grafite); }
h5 { font-size: 16px; line-height: 1.5; font-weight: 600; }
h6 { font-size: 14px; line-height: 1.5; font-weight: 600; }
p { margin-bottom: 1em; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section--alt { background: var(--cinza-claro); }
.section--dark { background: var(--verde-militar); color: var(--branco); }
.section--dark h2, .section--dark h3 { color: var(--branco); }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link {
  position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
  background: var(--verde-militar); color: var(--branco); padding: 8px 16px;
  border-radius: var(--radius-sm); z-index: 10000; font-size: 14px;
}
.skip-link:focus { top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; letter-spacing: .02em;
  transition: all var(--transition); text-align: center;
}
.btn--primary { background: var(--terracota); color: var(--branco); }
.btn--primary:hover { background: #72301F; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--secondary { background: transparent; color: var(--branco); border: 2px solid var(--branco); }
.btn--secondary:hover { background: var(--branco); color: var(--verde-militar); }
.btn--outline { background: transparent; color: var(--verde-militar); border: 2px solid var(--verde-militar); }
.btn--outline:hover { background: var(--verde-militar); color: var(--branco); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
}
.header__logo img { height: 60px; width: auto; display: block; }
.header__logo-text {
  font-size: 20px; font-weight: 700; color: var(--verde-militar);
  letter-spacing: -.02em;
}
.header__logo-text span { color: var(--terracota); }
.header__nav { display: flex; align-items: center; gap: 32px; }
.header__nav a {
  font-size: 14px; font-weight: 500; color: var(--grafite);
  text-transform: uppercase; letter-spacing: .05em; position: relative;
}
.header__nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--terracota); transition: width var(--transition);
}
.header__nav a:hover::after, .header__nav a.active::after { width: 100%; }
.header__nav a:hover { color: var(--terracota); }
.header__cta { margin-left: 16px; }
.header__cta .btn { padding: 10px 24px; font-size: 13px; }

/* Dropdown Menu */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 4px; cursor: pointer;
}
.nav-dropdown-toggle svg { transition: transform var(--transition); }
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 260px; background: var(--branco); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 12px 0; margin-top: 12px;
  opacity: 0; visibility: hidden; transition: all var(--transition);
  pointer-events: none;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto; margin-top: 8px;
}
.nav-dropdown-menu::before {
  content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  border-left: 8px solid transparent; border-right: 8px solid transparent;
  border-bottom: 8px solid var(--branco);
}
.nav-dropdown-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  color: var(--grafite); transition: all var(--transition);
}
.nav-dropdown-item:hover {
  background: var(--cinza-claro); color: var(--terracota);
}
.nav-dropdown-item::after { display: none; }
.nav-dropdown-item svg {
  flex-shrink: 0; color: var(--verde-militar);
  transition: color var(--transition);
}
.nav-dropdown-item:hover svg { color: var(--terracota); }
.nav-dropdown-item span { font-size: 14px; text-transform: none; letter-spacing: 0; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
  background: none; border: none; cursor: pointer; z-index: 1001;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px; background: var(--grafite);
  transition: all var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 90vh; display: flex; align-items: center;
  justify-content: center; overflow: hidden; margin-top: 80px;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__overlay {
  position: absolute; inset: 0; background: var(--overlay-hero); z-index: 1;
}
.hero__content {
  position: relative; z-index: 2; text-align: center;
  max-width: 800px; padding: 40px 20px; color: var(--branco);
}
.hero__content h1 { color: var(--branco); font-size: 48px; margin-bottom: 16px; }
.hero__content p { font-size: 18px; opacity: .9; margin-bottom: 32px; line-height: 1.7; }
.hero__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 16px 0; font-size: 13px; color: #777;
  border-bottom: 1px solid #eee; margin-top: 80px;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: '›'; color: #aaa; }
.breadcrumb a { color: var(--terracota); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- About / Quem Somos ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about__text p { color: #555; }
.about__image { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lg); }
.about__image img { width: 100%; height: 100%; object-fit: cover; }

/* Mission/Vision/Values */
.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.mvv__card {
  background: var(--branco); padding: 32px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); border-top: 3px solid var(--terracota);
  transition: transform var(--transition), box-shadow var(--transition);
}
.mvv__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mvv__card h3 { font-size: 20px; margin-bottom: 12px; color: var(--terracota); }
.mvv__card p { font-size: 14px; color: #666; margin: 0; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service-card {
  background: var(--branco); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card a { color: inherit; text-decoration: none; display: block; }
.service-card__img { height: 220px; overflow: hidden; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-card__img img { transform: scale(1.05); }
.service-card__body { padding: 24px; }
.service-card__body h3 { font-size: 18px; margin-bottom: 8px; }
.service-card__body p { font-size: 14px; color: #666; margin: 0; }

/* ---------- Process / Fluxo ---------- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.process-step {
  text-align: center; padding: 32px 24px; position: relative;
}
.process-step__number {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--terracota); color: var(--branco);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; margin: 0 auto 20px;
}
.process-step h3 { font-size: 16px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .03em; }
.process-step p { font-size: 14px; color: #666; margin: 0; }

/* ---------- Differentials ---------- */
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.diff-card {
  padding: 32px; border-radius: var(--radius-md);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  transition: background var(--transition);
}
.diff-card:hover { background: rgba(255,255,255,.14); }
.diff-card__icon {
  width: 48px; height: 48px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--terracota); border-radius: var(--radius-sm); color: var(--branco);
}
.diff-card h3 { font-size: 16px; margin-bottom: 8px; color: var(--branco); }
.diff-card p { font-size: 14px; color: rgba(255,255,255,.75); margin: 0; }

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.testimonial-card {
  background: var(--branco); padding: 32px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); position: relative;
}
.testimonial-card::before {
  content: '\201C'; position: absolute; top: 16px; left: 24px;
  font-size: 64px; color: var(--salsavia); line-height: 1; font-family: Georgia, serif;
}
.testimonial-card__text {
  font-size: 15px; font-style: italic; color: #555; margin-bottom: 20px;
  padding-top: 24px; line-height: 1.7;
}
.testimonial-card__author { font-weight: 600; font-size: 14px; color: var(--verde-militar); }
.testimonial-card__location { font-size: 13px; color: #888; }
.testimonial-card__stars { color: #E8A838; font-size: 14px; margin-bottom: 12px; }

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--terracota); color: var(--branco); text-align: center;
  padding: 64px 20px;
}
.cta-section h2 { color: var(--branco); margin-bottom: 16px; }
.cta-section p { opacity: .9; margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form__group { display: flex; flex-direction: column; gap: 6px; }
.contact-form label { font-size: 14px; font-weight: 500; color: var(--grafite); }
.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 12px 16px; border: 1px solid #ddd; border-radius: var(--radius-sm);
  font-size: 15px; transition: border-color var(--transition);
  background: var(--branco);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none; border-color: var(--verde-militar); box-shadow: 0 0 0 3px rgba(27,59,43,.1);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info__item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info__icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--cinza-claro); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--verde-militar);
}
.contact-info__text h4 { font-size: 15px; margin-bottom: 4px; }
.contact-info__text p { font-size: 14px; color: #666; margin: 0; }

/* ---------- Blog / Tips ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.blog-card {
  background: var(--branco); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card__img { height: 200px; overflow: hidden; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { padding: 24px; }
.blog-card__body h3 { font-size: 18px; margin-bottom: 8px; }
.blog-card__body p { font-size: 14px; color: #666; }
.blog-card__body a { color: var(--terracota); font-weight: 600; font-size: 14px; }
.blog-card__body a:hover { text-decoration: underline; }

/* Blog Article */
.article { max-width: 800px; margin: 0 auto; }
.article__header { margin-bottom: 32px; }
.article__header h1 { margin-bottom: 16px; }
.article__meta { font-size: 13px; color: #888; }
.article__content { font-size: 16px; line-height: 1.8; }
.article__content h2 { margin: 32px 0 16px; }
.article__content p { margin-bottom: 16px; color: #444; }
.article__content ul, .article__content ol { margin: 16px 0; padding-left: 24px; }
.article__content li { margin-bottom: 8px; color: #444; }
.article__content ul li { list-style: disc; }
.article__content ol li { list-style: decimal; }

/* ---------- Footer ---------- */
.footer {
  background: var(--grafite); color: rgba(255,255,255,.7); padding: 64px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer h4 { color: var(--branco); font-size: 16px; margin-bottom: 20px; }
.footer p { font-size: 14px; line-height: 1.7; }
.footer a { color: rgba(255,255,255,.7); font-size: 14px; }
.footer a:hover { color: var(--branco); }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px;
  padding: 24px 0; text-align: center; font-size: 13px;
}

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: var(--branco);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ---------- Cookie Banner (LGPD) ---------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; width: 100%; z-index: 9999;
  background: var(--grafite); color: var(--branco); padding: 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.2); display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner__inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cookie-banner__text { flex: 1; font-size: 14px; line-height: 1.6; }
.cookie-banner__text a { color: var(--areia); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-banner .btn { padding: 10px 24px; font-size: 13px; }

/* ---------- 404 Page ---------- */
.error-page {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 40px 20px; margin-top: 80px;
}
.error-page__code { font-size: 120px; font-weight: 700; color: var(--salsavia); line-height: 1; }
.error-page h1 { font-size: 32px; margin: 16px 0; }
.error-page p { color: #666; margin-bottom: 24px; }

/* ---------- Privacy / Cookies Pages ---------- */
.legal-page { max-width: 800px; margin: 0 auto; }
.legal-page h1 { margin-bottom: 24px; }
.legal-page h2 { margin: 32px 0 12px; font-size: 22px; }
.legal-page p, .legal-page li { font-size: 15px; color: #555; line-height: 1.8; }
.legal-page ul { padding-left: 24px; margin: 12px 0; }
.legal-page ul li { list-style: disc; margin-bottom: 8px; }

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .services-grid, .process-grid, .diff-grid, .testimonials-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .mvv { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .hero__content h1 { font-size: 36px; }
  .section { padding: 48px 0; }
  .header__nav { 
    position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px;
    height: 100vh; background: var(--branco); flex-direction: column;
    padding: 100px 32px 32px; gap: 24px; box-shadow: var(--shadow-lg);
    transition: right var(--transition); align-items: flex-start;
  }
  .header__nav.open { right: 0; }
  .header__nav a { font-size: 16px; }
  .header__cta { margin-left: 0; }
  .menu-toggle { display: flex; }
  .services-grid, .process-grid, .diff-grid, .testimonials-grid, .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
  .hero__content h1 { font-size: 30px; }
  .hero__content p { font-size: 16px; }
  
  /* Mobile Dropdown */
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 8px 0; }
  .nav-dropdown-menu {
    position: static; transform: none; min-width: 100%; box-shadow: none;
    margin-top: 8px; padding: 0 0 0 16px; border-left: 2px solid var(--salsavia);
    max-height: 0; overflow: hidden; transition: max-height .4s ease, opacity .3s ease, padding .3s ease, visibility .3s ease;
    opacity: 0; visibility: hidden; pointer-events: none;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown.mobile-open .nav-dropdown-menu {
    max-height: 500px; opacity: 1; visibility: visible; pointer-events: auto; padding: 12px 0 12px 16px;
  }
  .nav-dropdown-item { padding: 10px 0; }
}
@media (max-width: 480px) {
  .hero__buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .cookie-banner__inner { flex-direction: column; text-align: center; }
}
