/**
 * Homepage CSS - ProjetoArq Theme
 * Layout premium para arquitetura
 */

/* ===================================
   HERO SECTION - Premium Design
   =================================== */
.hero-section {
  padding: 80px 0 100px;
  background: #d9d9d9;
  overflow: hidden;
  min-height: auto;
  display: block;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: center;
}

.hero-content {
  max-width: 640px;
}

.hero-badge {
  display: inline-block;
  background: var(--color-brown);
  color: var(--color-white);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-lg);
}

.hero-title {
  font-size: clamp(2rem, 3.5vw, 2.1rem);
  color: var(--color-brown);
  margin-bottom: var(--spacing-md);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
}

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

.hero-title .text-primary {
  color: #ff660e;
  font-style: normal;
  margin-top: 0;
}

.hero-subtitle {
  font-size: var(--font-size-md);
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.hero-description {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.03em;
  line-height: 1.55;
}

.hero-description strong {
  color: var(--color-brown);
  font-weight: 700;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  padding: 18px 36px;
  font-size: var(--font-size-base);
  font-weight: 700;
}

/* Hero Gallery - Larger & More Prominent */
.hero-gallery {
  position: relative;
}

/* .hero-gallery-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(2, 48, 71, 0.2), 0 20px 40px -10px rgba(2, 48, 71, 0.15);
    height: auto;
    border: 20px solid #d9d9d9;
    outline: 1px solid var(--color-border);
} */
.hero-gallery-main {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    height: auto;
    border:0;
}

.hero-gallery-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 70%, rgba(0,0,0,0.08) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-gallery-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: opacity 1.5s ease-in-out;
}

/* Internal Arrow Controls - Large & Minimal */
.hero-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-brown, #023047);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
}

.hero-gallery-main:hover .hero-gallery-arrow,
.hero-gallery:focus-within .hero-gallery-arrow {
  opacity: 1;
}

.hero-gallery-arrow:hover {
  background: var(--color-white);
  color: #ff660e;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.hero-gallery-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-gallery-arrow svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.5;
}

.hero-gallery-prev {
  left: 20px;
}

.hero-gallery-next {
  right: 20px;
}

/* Position Indicator - Bottom Right */
.hero-gallery-indicator {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.hero-gallery-separator {
  margin: 0 4px;
  opacity: 0.7;
}

/* HIDE old gallery elements (thumbnails, external nav) */
.hero-gallery-thumbnails,
.hero-gallery-thumb,
.hero-gallery-nav,
.hero-gallery-dots,
.hero-gallery-dot {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* ===================================
   FEATURED PROJECTS - Premium Cards
   =================================== */
.featured-projects-section {
  padding: 100px 0;
  background: var(--color-surface);
}

.featured-projects-section .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.featured-projects-section .section-header h2 {
  font-size: var(--font-size-3xl);
  color: var(--color-brown);
  font-weight: 700;
}

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

/* Project Card - Premium Style */
.project-card {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(2, 48, 71, 0.06);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: 0 30px 60px rgba(2, 48, 71, 0.15);
}

.project-card-link {
  display: block;
  text-decoration: none;
}

.project-card-image {
  position: relative;
  aspect-ratio: 16/11;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

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

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

/* Project Card Content - White Background */
.project-card-content {
  background: var(--color-white);
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 0 0 20px 20px;
}

/* Project Specs Row with Icons */
.project-card-specs {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 16px;
  padding: 18px 24px;
  background: transparent;
  border: none;
  width: 100%;
}

.project-spec {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  color: var(--color-brown, #023047);
  font-weight: 600;
}

.project-spec .spec-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: #ff660e;
  margin-bottom: 0;
}

.project-spec span {
  font-weight: 700;
  color: var(--color-brown, #023047);
}

/* Category Label */
.project-card-category {
  display: block;
  font-size: 12px;
  color: var(--color-brown, #023047);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  padding: 20px 24px 0;
  opacity: 0.6;
}

/* Title */
.project-card-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin: 15px 0 10px;
  padding: 0 24px;
  line-height: 1.35;
}

.project-card-title a {
  color: var(--color-brown, #023047);
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-card-title a:hover {
  color: #ff660e;
}

/* Footer with Price and Button */
.project-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  margin-top: auto;
}

.project-price {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: #ff660e;
}

.project-price del {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 400;
  display: block;
}

.project-btn {
  display: inline-block;
  padding: 14px 28px;
  background: #ff660e;
  color: var(--color-white);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.project-btn:hover {
  background: #e0621a;
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 112, 29, 0.3);
}

.view-all-projects {
  text-align: center;
  margin-top: 60px;
}

.view-all-projects .btn {
  background: var(--color-secondary);
  color: var(--color-white);
  padding: 18px 48px;
  font-size: var(--font-size-base);
  font-weight: 700;
}

.view-all-projects .btn:hover {
  background: #e0621a;
  color: var(--color-white);
}

/* ===================================
   WHY US SECTION - Orange Background
   =================================== */
.why-us-section {
  padding: var(--spacing-3xl) 0;
  background: #ff660e;
}

.why-us-section .section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.why-us-section .section-header h2 {
  color: var(--color-white);
  font-size: var(--font-size-2xl);
  font-weight: 700;
}

.why-us-section .section-header h2 strong {
  font-weight: 700;
}

.why-us-section .section-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-base);
  font-style: italic;
  max-width: 700px;
  margin: var(--spacing-sm) auto 0;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

.why-us-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl) var(--spacing-lg);
  text-align: center;
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
}

.why-us-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.why-us-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.why-us-card:hover .why-us-icon {
  transform: scale(1.08);
}

.why-us-icon svg {
  width: 60px;
  height: 60px;
  color: var(--color-white);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.why-us-card h3 {
  font-size: var(--font-size-md);
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
  line-height: 1.3;
}

.why-us-card p {
  font-size: var(--font-size-sm);
  color: var(--color-white);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ===================================
   PRODUCTS CARDS - "Nossos Produtos"
   =================================== */
.products-cards-section {
  padding: var(--spacing-3xl) 0;
  background: var(--color-white);
}

.products-cards-section .section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.products-cards-section .section-header h2 {
  font-size: var(--font-size-2xl);
}

.products-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

.product-info-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  text-align: left;
  transition: all var(--transition-normal);
}

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

/* Highlight do primeiro e terceiro card */
.product-info-card:first-child,
.product-info-card:nth-child(3) {
  border-top: 3px solid var(--color-primary);
}

.product-info-card-content h3 {
  font-size: var(--font-size-lg);
  color: var(--color-secondary);
  margin-bottom: var(--spacing-sm);
}

.product-info-card-content h3 .text-primary {
  color: var(--color-primary);
}

.product-info-card-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.product-info-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.product-info-card-link:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.product-info-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-md) 0;
}

.product-info-card-features li {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xs);
}

.product-info-card-features li svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ===================================
   TEAM SECTION - Fotos circulares
   =================================== */
.team-section {
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: var(--color-white);
}

.team-section .section-header {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.team-section .section-header h2 {
  color: var(--color-white);
  font-size: var(--font-size-2xl);
}

.team-section .section-header p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.team-member {
  text-align: center;
}

.team-member-photo {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--spacing-sm);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-primary);
}

.team-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member-name {
  font-size: var(--font-size-base);
  color: var(--color-white);
  margin-bottom: 2px;
}

.team-member-role {
  font-size: var(--font-size-xs);
  color: var(--color-primary);
  margin-bottom: 0;
}

.team-member-bio {
  display: none;
}

/* ===================================
   CTA CUSTOM - "Desenvolveremos o seu projeto"
   =================================== */
.cta-custom-section {
  padding: var(--spacing-xl) 0;
  background: var(--color-surface);
}

.cta-custom-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.cta-custom-image img {
  width: 100%;
  border-radius: var(--border-radius-md);
}

.cta-custom-content h2 {
  font-size: var(--font-size-xl);
  color: var(--color-secondary);
  margin-bottom: var(--spacing-sm);
}

.cta-custom-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
}

.cta-custom-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* ===================================
   NEW PROJECTS / MAIS COMPRADOS
   =================================== */
.new-projects-section,
.best-sellers-section {
  padding: var(--spacing-3xl) 0;
  background: var(--color-white);
}

.new-projects-section .section-header,
.best-sellers-section .section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.new-projects-grid,
.best-sellers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

/* ===================================
   FAQ SECTION - Fundo cinza claro
   =================================== */
.faq-section {
  padding: var(--spacing-3xl) 0;
  background: var(--color-surface);
}

.faq-section .section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.faq-section .section-header h2 {
  color: var(--color-secondary);
}

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

.faq-item {
  background: var(--color-white);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  background: none;
  border: none;
  color: var(--color-secondary);
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: opacity var(--transition-fast);
}

.faq-question:hover {
  opacity: 0.85;
}

.faq-question svg {
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
  max-height: 2000px;
}

.faq-answer-content {
  padding: 0 var(--spacing-lg) var(--spacing-md);
  color: var(--color-text-muted);
}

.faq-cta {
  text-align: center;
  margin-top: var(--spacing-xl);
}

/* ===================================
   TESTIMONIALS / DEPOIMENTOS
   =================================== */
.testimonials-section {
  padding: var(--spacing-3xl) 0;
  background: var(--color-secondary);
  color: var(--color-white);
  text-align: center;
}

.testimonials-section .section-header h2 {
  color: var(--color-white);
}

.testimonial-content {
  max-width: 700px;
  margin: 0 auto;
}

.testimonial-text {
  font-size: var(--font-size-lg);
  font-style: italic;
  margin-bottom: var(--spacing-md);
  color: rgba(255, 255, 255, 0.9);
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-primary);
}

.testimonial-nav {
  margin-top: var(--spacing-lg);
}

.testimonial-nav .btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-white);
  padding: var(--spacing-xs) var(--spacing-md);
}

/* ===================================
   RESPONSIVE - Mobile
   =================================== */
@media (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .hero-gallery {
    order: -1;
  }

  /* Arrow controls - smaller on tablet */
  .hero-gallery-arrow {
    width: 48px;
    height: 48px;
    opacity: 1;
  }

  .hero-gallery-arrow svg {
    width: 24px;
    height: 24px;
  }

  .hero-gallery-prev {
    left: 16px;
  }

  .hero-gallery-next {
    right: 16px;
  }

  .hero-gallery-indicator {
    bottom: 16px;
    right: 16px;
    padding: 6px 12px;
    font-size: 13px;
  }

  .featured-projects-grid,
  .new-projects-grid,
  .best-sellers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us-card {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .why-us-card h3 {
    font-size: var(--font-size-base);
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .featured-projects-grid,
  .new-projects-grid,
  .best-sellers-grid {
    grid-template-columns: 1fr;
  }

  .products-cards-grid {
    grid-template-columns: 1fr;
  }

  .why-us-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .why-us-card {
    padding: var(--spacing-lg);
  }

  .why-us-card h3 {
    font-size: var(--font-size-lg);
  }

  .why-us-card p {
    font-size: var(--font-size-base);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-custom-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-custom-image {
    order: -1;
  }

  .cta-custom-buttons {
    justify-content: center;
  }

  .project-card-footer {
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: stretch;
  }

  .project-btn {
    text-align: center;
  }

  /* Arrow controls - mobile */
  .hero-gallery-arrow {
    width: 44px;
    height: 44px;
    opacity: 1;
  }

  .hero-gallery-arrow svg {
    width: 22px;
    height: 22px;
  }

  .hero-gallery-prev {
    left: 12px;
  }

  .hero-gallery-next {
    right: 12px;
  }

  .hero-gallery-indicator {
    bottom: 12px;
    right: 12px;
    padding: 5px 10px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .why-us-icon {
    width: 100px;
    height: 100px;
  }

  .why-us-icon svg {
    width: 54px;
    height: 54px;
  }

  .why-us-section {
    padding: var(--spacing-xl) 0;
  }

  .why-us-section .section-header h2 {
    font-size: var(--font-size-lg);
  }

  .why-us-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .why-us-card {
    padding: var(--spacing-md);
  }

  .why-us-icon {
    width: 90px;
    height: 90px;
  }

  .why-us-icon svg {
    width: 48px;
    height: 48px;
  }

  .why-us-card h3 {
    font-size: var(--font-size-base);
  }

  .why-us-card p {
    font-size: var(--font-size-sm);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
