/* ============================================
   PEDRA FINA MÁRMORES - Main Stylesheet
   Identity: Black, Graphite, Dark Gray, White, Orange/Gold
   Typography: Cormorant Garamond (titles) + Montserrat (body)
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-black: #0a0a0a;
  --color-graphite: #1a1a1a;
  --color-dark-gray: #2a2a2a;
  --color-medium-gray: #3a3a3a;
  --color-light-gray: #f5f5f5;
  --color-white: #ffffff;
  --color-gold: #e4872e;
  --color-gold-light: #f09840;
  --color-gold-dark: #d07520;
  --color-text: #333333;
  --color-text-light: #777777;
  --color-border: #e0e0e0;

  --font-title: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.06);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1200px;
  --header-height: 80px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-black);
}
h1 { font-size: clamp(28px, 4vw, 36px); }
h2 { font-size: clamp(22px, 3vw, 24px); }
h3 { font-size: clamp(18px, 2.5vw, 20px); }

p { margin-bottom: 1em; }

/* --- Utility --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

.gold-text { color: var(--color-gold); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--color-gold);
}
.section-header p {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 24px auto 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  text-transform: uppercase;
}
.btn-gold {
  background: var(--color-gold);
  color: var(--color-white);
}
.btn-gold:hover {
  background: var(--color-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(200,148,62,0.3);
}
.btn-outline {
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
  background: transparent;
}
.btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-white);
}
.btn-whatsapp {
  background: #25d366;
  color: white;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  font-weight: 600;
  font-size: 13px;
}
.btn-whatsapp:hover {
  background: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}

/* --- Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled {
  background: #ffffff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.header-logo img {
  height: 50px;
  width: auto;
}

/* Desktop Nav */
.main-nav { display: flex; align-items: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-list > li {
  position: relative;
}
.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #222222;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li.active > a {
  color: var(--color-gold);
}
.nav-list > li > a .submenu-icon {
  font-size: 10px;
  transition: transform var(--transition);
}
.nav-list > li:hover > a .submenu-icon {
  transform: rotate(180deg);
}

/* Submenu */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100;
}
.nav-list > li:hover > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 400;
  color: #222222;
  transition: all var(--transition);
}
.submenu li a .menu-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 14px;
}
.submenu li a:hover {
  background: rgba(228,135,46,0.08);
  color: var(--color-gold);
  padding-left: 24px;
}
/* Nested submenu (for Silestone > Nano Glass) */
.submenu .has-submenu { position: relative; }
.submenu .has-submenu > .sub-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 180px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-md);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: all var(--transition);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.submenu .has-submenu:hover > .sub-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #222222;
  transition: all var(--transition);
  border-radius: 2px;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
/* --- Hero Banner --- */
.hero-banner {
  margin-top: var(--header-height);
  width: 100%;
  line-height: 0;
}
.hero-banner picture { display: block; width: 100%; }
.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}
/* --- Page Hero (Interior pages) --- */
.page-hero {
  margin-top: var(--header-height);
  background: var(--color-black);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, rgba(200,148,62,0.05) 0%, transparent 70%);
}
.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 12px;
  position: relative;
}
.page-hero h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  margin: 16px auto 0;
}
.page-hero .breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  position: relative;
}
.page-hero .breadcrumb a {
  color: var(--color-gold);
  transition: color var(--transition);
}
.page-hero .breadcrumb a:hover { color: var(--color-gold-light); }
.page-hero .breadcrumb span { margin: 0 8px; }
/* --- Cards --- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}
.card-image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-light-gray);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.card:hover .card-image img {
  transform: scale(1.05);
}
.card-body {
  padding: 20px;
}
.card-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.card-body p {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.feature-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(200,148,62,0.1), rgba(200,148,62,0.05));
  border-radius: 50%;
  color: var(--color-gold);
  font-size: 28px;
}
.feature-image {
  width: 100%;
  height: 200px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.feature-card:hover .feature-image img {
  transform: scale(1.05);
}
.feature-card h3 { margin-bottom: 12px; font-size: 18px; }
.feature-card p { font-size: 14px; color: var(--color-text-light); }

/* Product/Content Section (text + image side by side) */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}
.content-split .content-text h2 { margin-bottom: 20px; }
.content-split .content-text h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: var(--color-gold);
  margin-top: 12px;
}
.content-split .content-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text);
}
.content-split .content-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.content-split .content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Diferenciais Section */
.diferenciais-section {
  background: var(--color-graphite);
  color: var(--color-white);
}
.diferenciais-section .section-header h2 { color: var(--color-white); }
.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.diferencial-item {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid rgba(200,148,62,0.15);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.diferencial-item:hover {
  border-color: var(--color-gold);
  background: rgba(200,148,62,0.05);
  transform: translateY(-4px);
}
.diferencial-item .icon {
  font-size: 36px;
  color: var(--color-gold);
  margin-bottom: 16px;
}
.diferencial-item h3 {
  color: var(--color-white);
  font-size: 18px;
  margin-bottom: 8px;
}
.diferencial-item p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-black), var(--color-graphite));
  text-align: center;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(200,148,62,0.08), transparent 60%);
}
.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 16px;
  position: relative;
}
.cta-section p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  position: relative;
}
.cta-section .btn { position: relative; }
/* --- Gallery & Lightbox --- */
.gallery-section { padding: 60px 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}
.gallery-item:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }
.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.gallery-item .gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.lightbox.active { display: flex; opacity: 1; }
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}
.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 32px;
  cursor: pointer;
  padding: 8px;
  transition: color var(--transition);
}
.lightbox-close:hover { color: var(--color-gold); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  cursor: pointer;
  padding: 16px;
  transition: all var(--transition);
  user-select: none;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav:hover { color: var(--color-gold); background: rgba(0,0,0,0.7); }
.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }
.lightbox-caption {
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  margin-top: 16px;
}
.lightbox-counter {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  margin-top: 8px;
}
/* --- Testimonials --- */
.testimonials-section {
  background: var(--color-light-gray);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  position: relative;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-title);
  font-size: 60px;
  color: var(--color-gold);
  opacity: 0.3;
  position: absolute;
  top: 12px;
  left: 20px;
  line-height: 1;
}
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-gold);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.testimonial-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-black);
}
.testimonial-stars {
  color: var(--color-gold);
  font-size: 14px;
  margin-top: 2px;
}
.testimonial-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
  font-style: italic;
}
.testimonials-cta {
  text-align: center;
  margin-top: 40px;
}
/* --- Footer --- */
.site-footer {
  background: var(--color-black);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-gold);
}
.footer-col p { font-size: 14px; line-height: 1.8; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.footer-col ul li a:hover {
  color: var(--color-gold);
  padding-left: 4px;
}
.footer-logo img { height: 60px; margin-bottom: 16px; }
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--color-gold);
  color: #ffffff;
  transform: translateY(-2px);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-contact .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.footer-contact .contact-icon {
  flex-shrink: 0;
  color: var(--color-gold);
  margin-top: 2px;
}
.footer-contact .contact-text {
  flex: 1;
}
.footer-contact .contact-text strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 4px;
}
.footer-contact .contact-text p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  color: rgba(255,255,255,0.7);
}
.footer-contact .contact-text a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer-contact .contact-text a:hover {
  color: var(--color-gold);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: all var(--transition);
  animation: pulse-whatsapp 2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }
@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 24px rgba(37,211,102,0.6); }
}
/* --- Catalog --- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.catalog-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}
.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}
.catalog-card-image {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-light-gray);
  padding: 16px;
  overflow: hidden;
}
.catalog-card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}
.catalog-card:hover .catalog-card-image img {
  transform: scale(1.05);
}
.catalog-card-body {
  padding: 16px;
  text-align: center;
}
.catalog-card-body h3 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 14px;
  line-height: 1.4;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.catalog-card-body .btn-whatsapp {
  width: 100%;
  justify-content: center;
  font-size: 13px;
  padding: 10px 16px;
}

/* Ardósia Cards Section */
.ardosia-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.ardosia-type-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.ardosia-type-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.ardosia-type-card h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--color-gold);
}
.ardosia-type-card ul li {
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}
.ardosia-type-card ul li:last-child { border-bottom: none; }
/* --- Page-specific styles --- */

/* About page */
.about-content { padding: 80px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 { margin-bottom: 20px; }
.about-text h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: var(--color-gold);
  margin-top: 12px;
}
.about-text p { margin-bottom: 16px; line-height: 1.8; }
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }

/* Contact page */
.contact-section { padding: 80px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-info-item .icon {
  width: 48px;
  height: 48px;
  background: rgba(200,148,62,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 20px;
  flex-shrink: 0;
}
.contact-info-item h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-info-item p { font-size: 14px; color: var(--color-text-light); }

/* Projetos page */
.projetos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.projeto-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.projeto-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.projeto-card:hover img { transform: scale(1.08); }
.projeto-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.8));
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}
.projeto-card:hover .overlay { opacity: 1; }
.projeto-card .overlay h3 { color: white; font-size: 18px; }

/* Seguro page */
.seguro-content {
  max-width: 800px;
  margin: 0 auto;
}
.seguro-content p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}
/* --- Responsive --- */

/* Tablet */
@media (max-width: 1024px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .content-split { grid-template-columns: 1fr; gap: 30px; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* Mobile */
@media (max-width: 991px) {
  :root { --header-height: 64px; }

  .menu-toggle { display: flex; }

  /* Overlay behind menu */
  .nav-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  .main-nav.open { transform: translateX(0); }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }
  .nav-list > li > a {
    padding: 14px 20px;
    min-height: 48px;
    font-size: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    color: #222222;
  }
  /* Arrow rotation on mobile */
  .nav-list > li > a .submenu-icon {
    transition: transform 0.3s ease;
  }
  .nav-list > li.open > a .submenu-icon {
    transform: rotate(180deg);
  }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: #f9f9f9;
    border: none;
    border-radius: 0;
    padding: 0;
    display: none;
    box-shadow: none;
  }
  .submenu.open { display: block; }
  .submenu li a {
    padding: 14px 20px 14px 40px;
    min-height: 48px;
    font-size: 15px;
    color: #222222;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  .submenu .has-submenu { position: relative; }
  .submenu .has-submenu > a .submenu-icon {
    transition: transform 0.3s ease;
  }
  .submenu .has-submenu.open > a .submenu-icon {
    transform: rotate(90deg);
  }
  .submenu .has-submenu > .sub-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: #f0f0f0;
    border: none;
    border-radius: 0;
    padding: 0;
    display: none;
    box-shadow: none;
  }
  .submenu .has-submenu > .sub-submenu.open { display: block; }
  .submenu .has-submenu > .sub-submenu li a {
    padding-left: 60px;
    font-size: 14px;
  }

  .section-padding { padding: 50px 0; }
  .catalog-grid { grid-template-columns: 1fr; gap: 16px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .ardosia-types-grid { grid-template-columns: 1fr; }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-nav { width: 44px; height: 44px; font-size: 28px; }
  .lightbox-content img { max-width: 95vw; max-height: 80vh; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
}
/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Curved decorative elements */
.curve-divider {
  position: relative;
  height: 60px;
  overflow: hidden;
}
.curve-divider::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 110%;
  height: 100%;
  background: var(--color-white);
  border-radius: 50% 50% 0 0;
}
.curve-divider.dark::before { background: var(--color-graphite); }
.curve-divider.light::before { background: var(--color-light-gray); }

/* Gold line decorations */
.gold-line {
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  margin: 16px 0;
}
.gold-line.center { margin: 16px auto; }

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 998;
  width: 44px;
  height: 44px;
  background: var(--color-graphite);
  border: 1px solid rgba(200,148,62,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  cursor: pointer;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--color-gold); color: white; }

/* Contatos grid - 2x2 */
.contatos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .contatos-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .localizacao-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.localizacao-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}


/* Hero H1 - visually present for SEO, styled to fit banner */
.hero-h1 {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  z-index: 2;
  max-width: 90%;
  line-height: 1.4;
  letter-spacing: 0.5px;
  opacity: 0.9;
  margin: 0;
  padding: 8px 16px;
  background: rgba(0,0,0,0.25);
  border-radius: 4px;
}

@media (max-width: 768px) {
  .hero-h1 {
    font-size: 11px;
    bottom: 10px;
  }
}

/* Visually hidden but accessible */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
