/* ========================================
   Art Festas Cubatão - Main Stylesheet
   Colors: #9f6f2f (gold), #28211b (dark), #f4f3f1 (cream), bg: #f5f4f2
   ======================================== */

/* CSS Variables */
:root {
  --gold: #9f6f2f;
  --gold-light: #c49a6c;
  --gold-dark: #7a5420;
  --dark: #28211b;
  --dark-light: #3d3329;
  --cream: #f4f3f1;
  --bg: #f5f4f2;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --shadow: rgba(40, 33, 27, 0.12);
  --shadow-lg: rgba(40, 33, 27, 0.2);
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
  --font-script: 'Great Vibes', 'Brush Script MT', cursive;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--dark);
  font-weight: 600;
  line-height: 1.2;
}

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

.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--dark);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title .gold-line {
  width: 80px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 1rem;
  border-radius: 2px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--dark);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px var(--shadow-lg);
}

.header-top {
  background: var(--gold-dark);
  padding: 0.3rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--cream);
}

.header-top a {
  color: var(--cream);
  font-weight: 600;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 100px;
  width: auto;
  transition: height var(--transition);
}

.site-header.scrolled .logo img {
  height: 80px;
}

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

.nav-menu a {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 0.3rem 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

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

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--gold-light);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger span {
  width: 28px;
  height: 2px;
  background: var(--cream);
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO / BANNER
   ======================================== */
.hero {
  margin-top: 160px;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-desktop {
  display: block;
  width: 100%;
}

.hero-desktop img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-mobile {
  display: none;
}

.hero-mobile img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .hero-desktop {
    display: none;
  }
  .hero-mobile {
    display: block;
  }
}

/* ========================================
   SECTIONS
   ======================================== */
section {
  padding: 4rem 1.5rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Services Section */
.services-section {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.service-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(159, 111, 47, 0.1);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.service-icon svg {
  width: 48px;
  height: 48px;
  fill: var(--gold);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* About Section */
.about-section {
  background: var(--bg);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-image img {
  border-radius: 12px;
  box-shadow: 0 8px 30px var(--shadow);
  width: 100%;
  height: auto;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* Differentials */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.diff-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(159, 111, 47, 0.15);
  transition: transform var(--transition), box-shadow var(--transition);
}

.diff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow);
}

.diff-card .diff-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.diff-card h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.diff-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Gallery */
.gallery-section {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery-grid a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
}

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

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

/* Reviews */
.reviews-section {
  background: var(--dark);
  color: var(--cream);
}

.reviews-section .section-title h2 {
  color: var(--cream);
}

.reviews-section .section-title p {
  color: rgba(244, 243, 241, 0.7);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.review-card {
  background: var(--dark-light);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(159, 111, 47, 0.2);
  transition: transform var(--transition);
}

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

.review-stars {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  letter-spacing: 3px;
}

.review-text {
  color: rgba(244, 243, 241, 0.85);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.review-author {
  font-weight: 700;
  color: var(--gold-light);
  font-size: 1rem;
}

.review-location {
  font-size: 0.85rem;
  color: rgba(244, 243, 241, 0.5);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  padding: 4rem 1.5rem;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
  font-family: var(--font-display);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: var(--white);
  color: var(--gold-dark);
}

.btn-gold:hover {
  background: var(--dark);
  color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

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

.btn-dark {
  background: var(--dark);
  color: var(--gold-light);
}

.btn-dark:hover {
  background: var(--dark-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-lg);
}

/* Contact Info */
.contact-section {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(159, 111, 47, 0.1);
}

.contact-card .contact-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-card h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
  color: var(--dark);
}

.contact-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

.contact-card a {
  color: var(--gold);
  font-weight: 600;
}

.contact-card a:hover {
  color: var(--gold-dark);
}

/* Map */
.map-container {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
  display: block;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: var(--cream);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col p,
.footer-col a {
  color: rgba(244, 243, 241, 0.7);
  font-size: 0.9rem;
  line-height: 1.8;
  display: block;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(159, 111, 47, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: var(--cream);
}

.footer-bottom {
  border-top: 1px solid rgba(159, 111, 47, 0.2);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(244, 243, 241, 0.5);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  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 var(--transition);
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

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

@keyframes whatsapp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 2001;
}

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

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

/* Page Header (sub-pages) */
.page-header {
  background: var(--dark);
  padding: 6rem 1.5rem 3rem;
  text-align: center;
  position: relative;
}

.page-header h1 {
  color: var(--cream);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.page-header .gold-line {
  width: 80px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 1rem;
  border-radius: 2px;
}

.page-header p {
  color: rgba(244, 243, 241, 0.7);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--gold);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Content sections for sub-pages */
.content-section {
  background: var(--white);
  padding: 3rem 1.5rem;
}

.content-section .container {
  max-width: var(--max-width);
}

.content-block {
  margin-bottom: 3rem;
}

.content-block h2 {
  font-size: 1.8rem;
  color: var(--gold-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.content-block h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 0.8rem;
}

.content-block p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.content-block ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-block ul li {
  color: var(--text-light);
  line-height: 1.8;
}

/* Review page specific */
.review-full {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(159, 111, 47, 0.15);
  box-shadow: 0 2px 10px var(--shadow);
}

.review-full .review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.review-full .review-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 700;
  flex-shrink: 0;
}

.review-full .review-meta h4 {
  font-size: 1.1rem;
  color: var(--dark);
}

.review-full .review-meta span {
  font-size: 0.85rem;
  color: var(--text-light);
}

.review-full .review-body {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 1rem;
  padding-left: 4.5rem;
}

/* Director card */
.director-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  max-width: var(--max-width);
  margin: 0 auto 3rem;
  border: 1px solid rgba(159, 111, 47, 0.15);
}

.director-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  flex-shrink: 0;
}

.director-card .director-info h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.director-card .director-info p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    transition: right var(--transition);
    box-shadow: -4px 0 20px var(--shadow-lg);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu a {
    font-size: 1.1rem;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active {
    position: relative;
    z-index: 1001;
  }

  section {
    padding: 3rem 1rem;
  }

  .hero {
    margin-top: 120px;
  }

  .diff-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

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

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .director-card {
    flex-direction: column;
    text-align: center;
  }

  .review-full .review-body {
    padding-left: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

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

/* ========================================
   PRINT
   ======================================== */
@media print {
  .site-header, .whatsapp-float, .lightbox { display: none; }
  .hero { margin-top: 0; }
  body { background: white; }
}
