/*
Theme Name: Frisomag
Theme URI: https://frisomag.lovable.app
Author: Frisomag
Author URI: https://frisomag.lovable.app
Description: Tema WordPress personalizado para Frisomag – Peças fora de série para carros vintage. Frisos de carroceria para Fusca, Brasília, Variant, TL, SP2 e Kombi.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: frisomag
Tags: one-page, custom-menu, responsive, automotive

Frisomag - Frisos para Carros Clássicos
*/

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-background: #ffffff;
  --color-foreground: #1a1a1a;
  --color-primary: #0066cc;
  --color-primary-foreground: #ffffff;
  --color-secondary: #262626;
  --color-secondary-foreground: #ffffff;
  --color-muted: #f5f5f5;
  --color-muted-foreground: #737373;
  --color-border: #e5e5e5;
  --color-card: #fafafa;
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #20BA5A;
  --radius: 0.5rem;
  --shadow-card: 0 2px 8px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  --font-sans: 'Poppins', system-ui, -apple-system, sans-serif;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  z-index: 50;
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.site-header nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-header nav a {
  font-weight: 500;
  transition: color 0.3s;
}

.site-header nav a:hover {
  color: var(--color-primary);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
}

.menu-toggle:hover {
  background: var(--color-muted);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-background);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    gap: 0;
  }
  .site-header nav.active {
    display: flex;
  }
  .site-header nav a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
  }
  .site-header nav a:hover {
    background: var(--color-muted);
  }
}

/* ===== HERO ===== */
.hero {
  padding: 8rem 0 5rem;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.125rem;
  color: var(--color-muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero .hero-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero .hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  line-height: 1.5;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  box-shadow: 0 4px 20px -2px rgba(0, 102, 204, 0.25);
}

.btn-primary:hover {
  background: rgba(0, 102, 204, 0.9);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-hover);
}

/* ===== CATALOG ===== */
.catalog {
  padding: 5rem 0;
  background: rgba(245, 245, 245, 0.3);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--color-muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card .card-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-muted);
}

.product-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .card-image img {
  transform: scale(1.1);
}

.product-card .card-body {
  padding: 1rem;
}

.product-card .card-code {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.product-card .card-title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .card-qty {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
}

.product-card .card-footer {
  padding: 0 1rem 1rem;
}

.product-card .btn-whatsapp {
  width: 100%;
}

/* ===== ABOUT ===== */
.about {
  padding: 5rem 0;
}

.about .content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about p.lead {
  font-size: 1.125rem;
  color: var(--color-muted-foreground);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-item {
  text-align: center;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 102, 204, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
}

.feature-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: var(--color-muted-foreground);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 5rem 0;
  background: rgba(245, 245, 245, 0.3);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
}

.testimonial-card .stars {
  color: #facc15;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--color-muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-card .author {
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

.testimonial-card .author-name {
  font-weight: 600;
}

.testimonial-card .author-car {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

/* ===== FAQ ===== */
.faq {
  padding: 5rem 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
  padding: 1.25rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.faq-item summary:hover {
  color: var(--color-primary);
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 0 1.25rem;
  color: var(--color-muted-foreground);
  line-height: 1.7;
}

/* ===== CONTACT ===== */
.contact {
  padding: 5rem 0;
  background: var(--color-secondary);
  color: var(--color-secondary-foreground);
}

.contact .content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
  text-align: left;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--radius);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
  opacity: 0.9;
}

.contact-item a:hover {
  opacity: 1;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.site-footer p {
  color: var(--color-muted-foreground);
  font-size: 0.875rem;
}

.site-footer .cnpj {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

/* ===== FLOATING WHATSAPP ===== */
.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 40;
  transition: transform 0.3s;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  background: var(--color-whatsapp-hover);
}

/* ===== GALLERY ===== */
.gallery {
  padding: 5rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s;
}

.gallery-item:hover {
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s, filter 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* ===== UTILITIES ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
