/* =========================================
   GATOCÃO – DESIGN SYSTEM PREMIUM
   Versão 3.0 (10/10)
   ========================================= */

:root {
  /* Cores */
  --preto: #1a1a1a;
  --preto-suave: #2d2d2d;
  --off-white: #f7f3ee;
  --branco: #ffffff;
  --laranja: #e8a87c;
  --laranja-escuro: #d4875a;
  --verde: #6ab04c;
  --verde-claro: #a8d68e;
  --cinza-borda: #e3ddd6;

  /* Tipografia */
  --serif: "Playfair Display", "Garamond", "Times New Roman", serif;
  --sans: "Lato", "Helvetica Neue", sans-serif;

  /* Transições */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1);

  /* Durações */
  --dur-fast: 0.3s;
  --dur-med: 0.5s;
  --dur-slow: 0.8s;
  --dur-slower: 1.2s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--off-white);
  color: var(--preto);
  overflow-x: hidden;
}

/* ===== ACESSIBILIDADE ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== PRELOADER ===== */
.preloader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--off-white); z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.8s var(--ease-in-out);
}
.preloader-logo img { width: 120px; animation: logo-pulse 1.5s ease-in-out infinite; }
@keyframes logo-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.preloader-name { font-family: var(--serif); font-size: 24px; letter-spacing: 0.4em; margin-top: 20px; margin-bottom: 20px; }
.preloader-bar { width: 240px; height: 2px; background: rgba(0,0,0,0.1); overflow: hidden; position: relative; }
.preloader-bar::before {
  content: ""; position: absolute; width: 2400px; height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%, transparent 5.55%,
    var(--laranja) 11.11%, var(--laranja) 16.66%,
    transparent 22.22%, transparent 50%,
    transparent 55.55%, var(--verde) 61.11%, var(--verde) 66.66%,
    transparent 72.22%, transparent 100%
  );
  animation: preloader-slide 2s linear infinite;
}
@keyframes preloader-slide { 0% { transform: translateX(-1200px); } 100% { transform: translateX(0); } }
.preloader.isHidden { opacity: 0; pointer-events: none; }

/* ===== MENU MOBILE ===== */
.menu-trigger { position: fixed; top: 30px; right: 20px; width: 30px; height: 30px; z-index: 300; display: none; }
.menu-open span, .menu-close span { position: absolute; width: 100%; height: 2px; background: var(--preto); transition: transform 0.3s var(--ease-in-out), opacity 0.3s; }
.menu-open span:nth-child(1) { top: 3px; }
.menu-open span:nth-child(2) { top: 13px; }
.menu-open span:nth-child(3) { top: 23px; }
.menu-close { display: none; transform: rotate(45deg); }
.menu-close span:nth-child(1) { width: 100%; top: 13px; left: 0; }
.menu-close span:nth-child(2) { width: 100%; top: 13px; left: 0; transform: rotate(90deg); }

.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 70%; max-width: 320px; height: 100%;
  background: var(--preto); z-index: 250;
  display: flex; align-items: center; justify-content: center;
  transition: right 0.5s var(--ease-out-expo);
}
.mobile-menu.isOpen { right: 0; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 20px; text-align: center; }
.mobile-menu a { color: #fff; font-family: var(--serif); font-size: 24px; letter-spacing: 0.1em; text-decoration: none; padding: 10px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); transition: color 0.3s; }
.mobile-menu a:hover { color: var(--laranja); }
@media (max-width: 768px) { .menu-trigger { display: block; } }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; width: 100%; padding: 20px 40px;
  display: flex; justify-content: space-between; align-items: center; z-index: 100;
  transition: background 0.5s, padding 0.5s, box-shadow 0.5s;
}
.header.scrolled { background: rgba(247,243,238,0.95); backdrop-filter: blur(10px); padding: 15px 40px; box-shadow: 0 2px 20px rgba(0,0,0,0.05); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--preto); }
.logo-img { width: 50px; height: 50px; }
.logo-text { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: 0.1em; }
.nav a { text-decoration: none; color: var(--preto); margin-left: 30px; font-size: 14px; letter-spacing: 0.05em; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--laranja); transition: width 0.3s var(--ease-out-expo); }
.nav a:hover::after { width: 100%; }
@media (max-width: 768px) { .nav { display: none; } }

/* ===== HERO (com slideshow) ===== */
.hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s var(--ease-in-out);
}
.hero-bg.active { opacity: 1; }
.hero-bg.next { opacity: 0; }
#pawCanvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 0 20px; }
.hero-lines { position: relative; width: 100%; height: 40px; margin-bottom: 20px; }
.hero-lines::before, .hero-lines::after { content: ""; position: absolute; width: 1px; height: 30px; background: var(--laranja); transform: rotate(22deg); }
.hero-lines::before { left: calc(50% - 60px); top: 0; }
.hero-lines::after { right: calc(50% - 60px); top: 0; }
.hero-subtitle { display: block; font-size: 16px; letter-spacing: 0.6em; text-transform: uppercase; color: var(--laranja-escuro); margin-bottom: 10px; }
.hero-title { font-family: var(--serif); font-size: 72px; font-weight: 400; letter-spacing: 1.35em; line-height: 1.2; color: var(--preto); text-transform: uppercase; margin-bottom: 20px; }
.hero-title span { letter-spacing: 0; color: var(--laranja); }
.hero-desc { font-size: 18px; letter-spacing: 0.1em; color: var(--preto-suave); margin-bottom: 40px; }

/* Fallback para WebGL (caso Three.js não carregue) */
body.no-webgl .hero-bg.active { opacity: 1; }
body.no-webgl #pawCanvas { display: none; }

/* ===== BOTÕES ===== */
.btn-outline {
  display: inline-block; padding: 14px 40px; border: 1px solid var(--preto); color: var(--preto);
  text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  position: relative; overflow: hidden; transition: color 0.3s var(--ease-in-out), border-color 0.3s var(--ease-in-out);
}
.btn-outline::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--preto); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out-expo); z-index: -1; }
.btn-outline:hover { color: var(--branco); border-color: var(--preto); }
.btn-outline:hover::before { transform: scaleX(1); }
.btn-solid { display: inline-block; padding: 14px 40px; background: var(--laranja); border: none; color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.3s, transform 0.3s var(--ease-out-back); }
.btn-solid:hover { background: var(--laranja-escuro); transform: translateY(-2px); }

/* ===== SEÇÕES ===== */
.section { padding: 100px 40px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-family: var(--serif); font-size: 42px; letter-spacing: 0.1em; color: var(--preto); margin-bottom: 10px; }
.section-subtitle { font-size: 16px; letter-spacing: 0.05em; color: var(--preto-suave); }

/* ===== SERVIÇOS ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.service-card { position: relative; background: var(--branco); border: 1px solid var(--cinza-borda); padding: 40px; overflow: hidden; transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo); }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(232,168,124,0.15); }
.service-icon { font-size: 40px; color: var(--laranja); margin-bottom: 20px; transition: transform 0.5s var(--ease-out-back); }
.service-card:hover .service-icon { transform: scale(1.2) rotate(10deg); }
.service-card h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 10px; }
.service-card p { color: var(--preto-suave); line-height: 1.7; margin-bottom: 20px; }
.service-link { text-decoration: none; color: var(--laranja-escuro); font-size: 14px; font-weight: 700; letter-spacing: 0.05em; }
.service-link .arrow { display: inline-block; transition: transform 0.3s var(--ease-out-expo); }
.service-card:hover .service-link .arrow { transform: translateX(8px); }
.service-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(232,168,124,0.9), rgba(106,176,76,0.9)); opacity: 0; transform: translateY(100%); transition: transform 0.5s var(--ease-in-out), opacity 0.5s var(--ease-in-out); pointer-events: none; }
.service-card:hover .service-overlay { opacity: 0; transform: translateY(0); }

/* ===== PREÇOS ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; align-items: stretch; }
.pricing-card { background: var(--branco); border: 1px solid var(--cinza-borda); padding: 40px; text-align: center; transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo); display: flex; flex-direction: column; }
.pricing-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.pricing-card.featured { border: 2px solid var(--laranja); position: relative; overflow: hidden; transform: scale(1.03); box-shadow: 0 10px 30px rgba(232,168,124,0.2); }
.featured-badge { position: absolute; top: 20px; right: -40px; background: var(--laranja); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; padding: 5px 40px; transform: rotate(45deg); }
.pricing-icon { font-size: 40px; color: var(--laranja); margin-bottom: 15px; }
.pricing-card h3 { font-family: var(--serif); font-size: 28px; margin-bottom: 10px; }
.price { font-size: 36px; font-weight: 700; color: var(--preto); margin-bottom: 20px; }
.price span { font-size: 16px; font-weight: 400; color: var(--preto-suave); }
.pricing-features { list-style: none; margin-bottom: 30px; flex-grow: 1; }
.pricing-features li { padding: 8px 0; color: var(--preto-suave); border-bottom: 1px solid var(--cinza-borda); }
.pricing-features li i { color: var(--verde); margin-right: 8px; }
.pricing-card .btn-outline, .pricing-card .btn-solid { align-self: center; }

/* ===== GALERIA ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 20px; max-width: 1200px; margin: 0 auto; }
.gallery-item { position: relative; overflow: hidden; border-radius: 8px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out-expo); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.5s; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-text { color: #fff; font-family: var(--serif); font-size: 24px; letter-spacing: 0.1em; }
.item-1 { grid-column: span 2; grid-row: span 2; }
.item-2 { grid-column: span 1; grid-row: span 1; }
.item-3 { grid-column: span 1; grid-row: span 1; }
.item-4 { grid-column: span 1; grid-row: span 2; }
.item-5 { grid-column: span 2; grid-row: span 1; }
.item-6 { grid-column: span 1; grid-row: span 1; }
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .item-1 { grid-column: span 2; grid-row: span 2; }
  .item-4 { grid-column: span 2; grid-row: span 1; }
}

/* ===== SOBRE ===== */
.about-container { max-width: 800px; margin: 0 auto; text-align: center; }
.about-text { font-family: var(--serif); font-size: 24px; line-height: 1.7; color: var(--preto-suave); margin-bottom: 20px; }
.about-text.delay-1 { opacity: 0; transition: opacity 0.8s var(--ease-in-out) 0.2s; }

/* ===== DEPOIMENTOS ===== */
.testimonials { background: var(--verde-claro); position: relative; overflow: hidden; }
.testimonials::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><path d="M20 10C15 10 12 14 12 18C12 22 15 24 20 24C25 24 28 22 28 18C28 14 25 10 20 10Z" fill="%23ffffff" opacity="0.1"/></svg>'); pointer-events: none; }
.testimonial-slider { position: relative; max-width: 800px; margin: 0 auto; overflow: hidden; min-height: 200px; z-index: 1; }
.testimonial-track { display: flex; transition: transform 0.8s var(--ease-in-out); }
.testimonial { min-width: 100%; text-align: center; padding: 20px; }
.testimonial p { font-family: var(--serif); font-size: 28px; line-height: 1.5; color: var(--preto); margin-bottom: 20px; }
.testimonial-author { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--laranja-escuro); }
.slider-prev, .slider-next { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 24px; color: var(--preto); cursor: pointer; transition: color 0.3s; z-index: 2; }
.slider-prev:hover, .slider-next:hover { color: var(--laranja); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }
.slider-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: 14px; letter-spacing: 0.2em; color: var(--preto-suave); z-index: 2; }
.slider-count span { margin: 0 10px; }
.count-prev { color: var(--laranja); }

/* ===== CONTATO ===== */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; max-width: 1000px; margin: 0 auto; }
.contact-info h2 { margin-bottom: 20px; }
.contact-info ul { list-style: none; margin-top: 20px; }
.contact-info li { padding: 10px 0; color: var(--preto-suave); }
.contact-info li i { color: var(--laranja); margin-right: 10px; }
.contact-form { display: flex; flex-direction: column; }
.contact-form input, .contact-form textarea { padding: 15px; margin-bottom: 20px; border: none; border-bottom: 1px solid var(--cinza-borda); background: transparent; font-family: var(--sans); font-size: 16px; transition: border-color 0.3s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--laranja); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-message { margin-top: 10px; font-size: 14px; color: var(--verde); text-align: center; min-height: 20px; }

/* ===== FOOTER ===== */
.footer { background: var(--preto); color: var(--branco); padding: 60px 40px; text-align: center; }
.footer-logo img { width: 120px; }
.footer-social a { color: var(--branco); font-size: 24px; margin: 0 15px; transition: color 0.3s; }
.footer-social a:hover { color: var(--laranja); }
.footer p { font-size: 14px; margin-top: 20px; opacity: 0.7; }

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
  .header { padding: 15px 20px; }
  .hero-title { font-size: 40px; letter-spacing: 0.5em; }
  .section { padding: 60px 20px; }
  .contact-container { grid-template-columns: 1fr; }
  .slider-prev { left: 10px; }
  .slider-next { right: 10px; }
  .about-text { font-size: 18px; }
}