@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --brand: #2C2D65;
  --brand-light: #3D3F8A;
  --brand-dark: #1A1B3D;
  --gold: #C9A962;
  --gold-light: #E8D5A3;
  --bg: #0A0A0A;
  --bg-alt: #111111;
  --bg-card: #1A1A1A;
  --text: #F5F5F5;
  --text-muted: #999999;
  --text-dim: #666666;
  --border: #2A2A2A;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;
  background: transparent;
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

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

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

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  transition: color 0.3s ease;
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--text);
}

.header-nav a:hover::after,
.header-nav a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s ease;
}

@media (max-width: 1024px) {
  .menu-toggle { display: flex; }
  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--bg-alt);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 24px;
    align-items: flex-start;
    transition: right 0.4s ease;
    border-left: 1px solid var(--border);
  }
  .header-nav.open { right: 0; }
  .header-nav a { font-size: 14px; }
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img,
.hero-bg .parallax-layer {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.8) 0%, rgba(10,10,10,0.3) 50%, rgba(10,10,10,0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-tag {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 16px 36px;
  border: 1px solid var(--text);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: all 0.4s ease;
}

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

.btn-gold {
  border-color: var(--gold);
  color: var(--gold);
}

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

.btn-brand {
  border-color: var(--brand);
  color: var(--brand);
}

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

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: float 2s ease-in-out infinite;
}

.scroll-indicator .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* Section common */
.section {
  padding: 120px 0;
}

.section-dark { background: var(--bg); }
.section-alt { background: var(--bg-alt); }

.section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 24px;
}

.section-text {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 640px;
}

/* Grid layout */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 968px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}

/* Image card */
.img-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.img-card:hover img {
  transform: scale(1.05);
}

.img-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.img-card:hover .img-card-overlay {
  opacity: 1;
}

.img-card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 4px;
}

.img-card-sub {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* Product card */
.product-card {
  position: relative;
  background: var(--bg-card);
  overflow: hidden;
  transition: all 0.4s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.product-info {
  padding: 20px;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 16px;
  margin-bottom: 4px;
}

.product-code {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.product-tag {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border: 1px solid var(--gold);
  color: var(--gold);
}

/* Parallax sections */
.parallax-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: -20%;
  z-index: 0;
}

.parallax-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  will-change: transform;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.3) 100%);
}

.parallax-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

/* Values section */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-top: 60px;
}

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

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

.value-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.value-title {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 12px;
}

.value-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Footer */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

@media (max-width: 968px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

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

.footer-brand img {
  height: 30px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 320px;
}

.footer h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 20px;
}

.footer a {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
}

@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  margin-bottom: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Page Header */
.page-header {
  padding: 180px 0 80px;
  background: var(--bg-alt);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header .section-title {
  max-width: 600px;
  margin: 0 auto 16px;
}

.page-header .section-text {
  margin: 0 auto;
}

/* Content section */
.content-section {
  padding: 80px 0;
}

.content-block {
  max-width: 780px;
  margin: 0 auto;
}

.content-block p {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 20px;
}

.content-block h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  margin: 48px 0 16px;
}

.content-block h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  margin: 32px 0 12px;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Full image section */
.full-image {
  width: 100%;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
}

.full-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Text column split */
.text-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

@media (max-width: 768px) {
  .text-row { grid-template-columns: 1fr; gap: 30px; }
}

.text-row .left-col {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.4;
}

.text-row .right-col {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Contact / dealer section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

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

.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Warranty specific */
.warranty-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.warranty-card:hover {
  border-color: var(--brand);
}

.warranty-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--gold);
}

.warranty-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Slow scroll reveal groups */
.reveal-group {
  display: grid;
  gap: 24px;
}

.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.reveal-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* About page specific */
.about-hero {
  position: relative;
  height: 60vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.about-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.about-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.4) 100%);
}

.about-hero .content {
  position: relative;
  z-index: 1;
}

/* Collection grid */
.collection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
}

.collection-grid > * {
  background: var(--bg);
}

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

.collection-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.collection-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.collection-item:hover img {
  transform: scale(1.05);
}

.collection-label {
  position: absolute;
  bottom: 32px;
  left: 32px;
  z-index: 2;
}

.collection-label h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin-bottom: 4px;
}

.collection-label span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* Launch tag */
.launch-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 12px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 600;
}

/* Revendedores */
.dealer-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

.dealer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px;
  transition: all 0.3s ease;
}

.dealer-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.dealer-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  margin-bottom: 8px;
}

.dealer-card .dealer-location {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 12px;
}

.dealer-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 4px;
}

/* Gallery for home */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.gallery-grid > :first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
  transition: transform 0.6s ease;
}

.gallery-grid > :first-child img {
  aspect-ratio: auto;
}

.gallery-grid img:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid > :first-child { grid-column: span 2; grid-row: span 1; }
}

/* Marquee */
.marquee {
  overflow: hidden;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-track span {
  font-family: var(--font-serif);
  font-size: 48px;
  font-style: italic;
  color: var(--text-dim);
  opacity: 0.3;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Spacer */
.spacer-40 { height: 40px; }
.spacer-80 { height: 80px; }
.spacer-120 { height: 120px; }

/* Center text */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Reveal text animation */
.reveal-text {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

.reveal-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
