/* ==========================================================================
   Xanglass - Vidros Temperados em Sao Paulo
   Site estatico otimizado para SEO
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
#header {
  background: #223B75;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.wrapper-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-logo a { display: flex; align-items: center; }

.site-logo img {
  height: 50px;
  width: auto;
}

/* --- Navigation --- */
.primary-navigation ul {
  display: flex;
  gap: 8px;
}

.primary-navigation a {
  position: relative;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 4px;
  transition: color 0.3s, opacity 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.primary-navigation a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s;
}

.primary-navigation a:hover {
  opacity: 0.85;
}

.primary-navigation a.active {
  color: #fff;
}

.primary-navigation a.active::after {
  transform: scaleX(1);
}

/* Mobile menu toggle */
.mobile-menu {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.mobile-menu div {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu.active .line1 { transform: rotate(45deg) translate(5px, 6px); }
.mobile-menu.active .line2 { opacity: 0; }
.mobile-menu.active .line3 { transform: rotate(-45deg) translate(5px, -6px); }

/* --- Hero / Banner --- */
.banner-hero {
  position: relative;
  background: #fff;
  overflow: hidden;
  min-height: 0;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.banner-hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 1440px;
  padding: 56px 0 64px;
}

.banner-hero .hero-text {
  max-width: 100%;
  margin: 0 auto;
}

.banner-hero .hero-text .up-hero-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 18px;
  color: #223B75;
  text-transform: uppercase;
  padding: 0 20px;
}

.banner-hero .hero-media {
  width: 100%;
  height: clamp(340px, 42vw, 620px);
  margin: 0 0 28px;
  border-radius: 0;
  border: 1px solid rgba(34, 59, 117, 0.14);
  background:
    radial-gradient(circle at top left, rgba(34, 59, 117, 0.1), transparent 42%),
    linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  position: relative;
}

.banner-hero .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-hero .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.banner-hero .hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.12));
}

.banner-hero .hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.banner-hero .hero-media-placeholder {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  color: #223B75;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.banner-hero .hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.banner-hero .hero-slider-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.48);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

.banner-hero .hero-slider-dot:hover,
.banner-hero .hero-slider-dot:focus-visible {
  background: rgba(255,255,255,0.82);
  transform: scale(1.08);
  outline: none;
}

.banner-hero .hero-slider-dot.is-active {
  background: #fff;
  opacity: 1;
}

.banner-hero .hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: #223B75;
  padding: 0 20px;
}

.banner-hero .hero-subtitle {
  font-size: 1.15rem;
  max-width: 760px;
  margin: 0 auto 30px;
  color: #111;
  line-height: 1.7;
  padding: 0 20px;
}

.banner-hero .hero-cta {
  margin-left: 20px;
  margin-right: 20px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-cta:hover {
  background: #1fb855;
  transform: translateY(-2px);
}

.hero-cta svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* --- Section General --- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: #f5f7fa;
}

.section-dark {
  background: #223B75;
  color: #fff;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px;
  color: #223B75;
}

.section-dark .section-title {
  color: #fff;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-dark .section-subtitle {
  color: rgba(255,255,255,0.82);
}

/* --- Institutional / About --- */
.institutional {
  text-align: center;
}

.institutional h1 {
  font-size: 2rem;
  color: #223B75;
  margin-bottom: 20px;
  line-height: 1.3;
}

.institutional p {
  font-size: 1.1rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto 40px;
}

.partners-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.partners-logo img {
  height: 82px;
  width: auto;
  filter: grayscale(60%);
  opacity: 0.7;
  transition: filter 0.3s, opacity 0.3s;
}

.partners-logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* --- Products Grid --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-card-body {
  padding: 25px;
}

.product-card h2,
.product-card h3 {
  font-size: 1.25rem;
  color: #223B75;
  margin-bottom: 12px;
}

.product-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.product-card .btn-link {
  color: #223B75;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.3s;
}

.product-card .btn-link:hover {
  gap: 10px;
}

/* --- CTA WhatsApp bar --- */
.whatsapp-bar {
  background: transparent;
  padding: 40px 0;
  text-align: center;
  color: #223B75;
  border-top: 1px solid rgba(34, 59, 117, 0.12);
}

.whatsapp-bar h2 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.whatsapp-bar h3 {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: #111;
  opacity: 1;
}

.whatsapp-bar .hero-cta {
  background: #25d366;
  color: #fff;
}

.whatsapp-bar .hero-cta:hover {
  background: #1fb855;
}

/* --- Page Hero (internal pages) --- */
.page-hero {
  background: #fff;
  padding: 56px 0 40px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1fr);
  gap: 48px;
  align-items: center;
}

.page-hero-media {
  height: clamp(320px, 30vw, 420px);
  border-radius: 0;
  border: 1px solid rgba(34, 59, 117, 0.14);
  background:
    radial-gradient(circle at top left, rgba(34, 59, 117, 0.1), transparent 42%),
    linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-placeholder {
  width: 100%;
  height: 100%;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  color: #223B75;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.page-hero-copy {
  text-align: left;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: #223B75;
  line-height: 1.1;
}

.page-hero p {
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0;
  color: #111;
  opacity: 1;
  line-height: 1.8;
}

/* --- Breadcrumb --- */
.breadcrumb {
  background: transparent;
  padding: 12px 0;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: #223B75;
}

.breadcrumb span {
  color: #888;
  margin: 0 8px;
}

/* --- Content (internal pages) --- */
.page-content {
  padding: 32px 0 60px;
}

.page-content > .container > :first-child {
  margin-top: 0;
}

.page-content h2 {
  font-size: 1.6rem;
  color: #223B75;
  margin: 40px 0 15px;
}

.page-content h3 {
  font-size: 1.3rem;
  color: #223B75;
  margin: 30px 0 12px;
}

.page-content p {
  color: #444;
  margin-bottom: 15px;
  line-height: 1.8;
}

.page-content ul {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-content ul li {
  margin-bottom: 8px;
  color: #444;
  line-height: 1.7;
}

/* --- Specs Table --- */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
}

.specs-table th,
.specs-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.specs-table th {
  background: #223B75;
  color: #fff;
  font-weight: 600;
}

.specs-table tr:nth-child(even) {
  background: #f8f9fa;
}

.specs-table tr:hover {
  background: rgba(34, 59, 117, 0.08);
}

/* --- FAQ --- */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #223B75;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: inherit;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 15px;
}

.faq-item.active .faq-question::after {
  content: '-';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding-bottom: 20px;
  color: #555;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* --- Features row --- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-item {
  text-align: center;
  padding: 30px 20px;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

.feature-item h3 {
  font-size: 1.1rem;
  color: #223B75;
  margin-bottom: 10px;
}

.feature-item p {
  color: #666;
  font-size: 0.95rem;
}

.page-content .temperado-features .feature-item,
.page-content .xanglass-feature-cards .feature-item {
  background: #223B75;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 10px 28px rgba(34, 59, 117, 0.18);
}

.page-content .temperado-features .feature-item h3,
.page-content .temperado-features .feature-item p,
.page-content .xanglass-feature-cards .feature-item h3,
.page-content .xanglass-feature-cards .feature-item p {
  color: #fff;
}

.page-content .temperado-features .feature-item h3,
.page-content .xanglass-feature-cards .feature-item h3 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 14px;
  text-transform: uppercase;
}

/* --- Footer --- */
#footer {
  background: #223B75;
  color: #fff;
  padding: 60px 0 0;
}

.wrapper-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#footer-brand {
  height: 45px;
  width: auto;
  margin-bottom: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  color: #fff;
}

.footer-col p,
.footer-col a {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  display: block;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-col a.footer-contact-item {
  display: inline-flex;
  align-items: center;
}

.footer-contact-item p {
  margin: 0;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  flex-shrink: 0;
}

.social-media {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-media a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.3s;
}

.social-media a:hover {
  background: rgba(255,255,255,0.18);
}

.social-media img,
.social-media svg {
  width: 20px;
  height: 20px;
}

.wrapper-copy-footer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px;
  text-align: center;
}

.wrapper-copy-footer p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.68);
}

.wrapper-copy-footer a {
  color: #fff;
}

/* --- WhatsApp float button --- */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  z-index: 999;
  transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .banner-hero .hero-text h1 { font-size: 2.2rem; }
  .page-hero h1 { font-size: 2rem; }
  .page-hero-grid { gap: 32px; }
  .page-hero-media { height: clamp(280px, 34vw, 360px); }
  .page-hero-placeholder { min-height: 300px; }
}

@media (max-width: 768px) {
  .wrapper-header { height: 65px; }
  .site-logo img { height: 40px; }

  .mobile-menu { display: flex; }

  .primary-navigation ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    background: #223B75;
    padding: 15px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  }

  .primary-navigation ul.show { display: flex; }

  .primary-navigation a {
    padding: 12px 15px;
    font-size: 1rem;
  }

  .banner-hero .container { padding: 40px 0 48px; }
  .banner-hero .hero-text h1 { font-size: 1.8rem; }
  .banner-hero .hero-text .up-hero-text { font-size: 1rem; }
  .banner-hero .hero-media {
    margin-bottom: 22px;
    border-radius: 0;
  }

  .section { padding: 50px 0; }
  .section-title { font-size: 1.6rem; }
  .page-hero { padding: 40px 0 28px; }
  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .page-hero-media { height: 260px; }
  .page-hero-placeholder { min-height: 240px; }
  .page-hero h1 { font-size: 1.6rem; }
  .page-content { padding: 24px 0 50px; }

  .partners-logo { gap: 25px; }
  .partners-logo img { height: 62px; }
}

@media (max-width: 480px) {
  .banner-hero .hero-text h1 { font-size: 1.5rem; }
  .banner-hero .hero-text .up-hero-text {
    font-size: 0.82rem;
    letter-spacing: 2.4px;
  }
  .hero-cta { padding: 14px 28px; font-size: 1rem; }
  .products-grid { grid-template-columns: 1fr; }
}
