/* ========================================
   LUCAS ALMEIDA FOTOGRAFIA - CUSTOM STYLES
   ======================================== */

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --white: #FFFFFF;
  --beige: #F2EDE9;
  --gray: #7A7A7A;
  --black: #2B2B2B;
  --shadow-sm: 0 2px 8px rgba(43, 43, 43, 0.06);
  --shadow-md: 0 4px 20px rgba(43, 43, 43, 0.08);
  --shadow-lg: 0 8px 40px rgba(43, 43, 43, 0.12);
  --shadow-xl: 0 20px 60px rgba(43, 43, 43, 0.15);
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: var(--black);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.3;
}

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

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

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--beige);
}
::-webkit-scrollbar-thumb {
  background: var(--gray);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--black);
}

/* --- Selection --- */
::selection {
  background-color: var(--black);
  color: var(--white);
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-base);
  padding: 1.25rem 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}

.navbar .logo {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: var(--transition-base);
}

.navbar.scrolled .logo {
  color: var(--black);
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.25rem 0;
}

.navbar.scrolled .nav-link {
  color: var(--gray);
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width var(--transition-base);
}

.navbar .nav-link:hover::after {
  width: 100%;
}

.navbar .nav-link:hover {
  color: var(--white);
}

.navbar.scrolled .nav-link:hover {
  color: var(--black);
}

.nav-cta {
  background: var(--white) !important;
  color: var(--black) !important;
  padding: 0.5rem 1.5rem !important;
  border-radius: 50px !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  transition: all var(--transition-base) !important;
  border: 1.5px solid transparent !important;
}

.nav-cta:hover {
  transform: translateY(-1px) !important;
  box-shadow: var(--shadow-md) !important;
}

.navbar.scrolled .nav-cta {
  background: var(--black) !important;
  color: var(--white) !important;
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 5px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.navbar.scrolled .hamburger span {
  background: var(--black);
}

.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);
}

.hamburger.active span {
  background: var(--black);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: flex !important;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right var(--transition-slow);
    z-index: 999;
  }

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

  .nav-menu .nav-link {
    color: var(--black) !important;
    font-size: 1.25rem;
  }

  .nav-menu .nav-cta {
    background: var(--black) !important;
    color: var(--white) !important;
  }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero:hover .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 1.5rem;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-trust-item {
  text-align: center;
}

.hero-trust-item .trust-number {
  font-size: 1rem;
  font-weight: 500;
  display: block;
}

.hero-trust-item .trust-text {
  font-size: 0.75rem;
  opacity: 0.7;
  font-weight: 300;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--black);
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-base);
  letter-spacing: 0.01em;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--black);
  color: var(--white);
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  letter-spacing: 0.01em;
}

.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: #1a1a1a;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: var(--white);
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  letter-spacing: 0.01em;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  background: #20bd5a;
}

/* ========================================
   SECTION STYLING
   ======================================== */
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 500;
  color: var(--black);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray);
  font-weight: 300;
  max-width: 600px;
}

.section-divider {
  width: 50px;
  height: 2px;
  background: var(--black);
  margin: 1rem 0;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about-image-wrapper:hover img {
  transform: scale(1.03);
}

.about-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 3px solid var(--beige);
  border-radius: 12px;
  z-index: -1;
}

.about-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.about-stat-icon {
  width: 48px;
  height: 48px;
  background: var(--beige);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-stat-icon i {
  font-size: 1.25rem;
  color: var(--black);
}

/* ========================================
   PORTFOLIO / MASONRY GRID
   ======================================== */
.portfolio-filters {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--beige);
  background: transparent;
  color: var(--gray);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.masonry-grid {
  columns: 3;
  column-gap: 1.25rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.masonry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(43, 43, 43, 0.85) 100%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.masonry-item:hover .masonry-overlay {
  opacity: 1;
}

.masonry-overlay-content {
  color: var(--white);
}

.masonry-overlay-content h4 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.masonry-overlay-content span {
  font-size: 0.8rem;
  opacity: 0.8;
  font-weight: 300;
}

@media (max-width: 1024px) {
  .masonry-grid {
    columns: 2;
  }
}

@media (max-width: 640px) {
  .masonry-grid {
    columns: 1;
  }
}

/* ========================================
   SERVICE CARDS
   ======================================== */
.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--beige);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: all var(--transition-base);
}

.service-card:hover .service-icon {
  background: var(--black);
  color: var(--white);
}

.service-icon i {
  font-size: 1.5rem;
  color: var(--black);
  transition: color var(--transition-base);
}

.service-card:hover .service-icon i {
  color: var(--white);
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--gray);
  font-weight: 300;
  line-height: 1.6;
}

/* ========================================
   DIFFERENTIALS
   ======================================== */
.diff-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.diff-icon {
  width: 56px;
  height: 56px;
  background: var(--beige);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.diff-icon i {
  font-size: 1.25rem;
  color: var(--black);
}

.diff-card h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.diff-card p {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 300;
}

/* ========================================
   PROCESS / STEPS
   ======================================== */
.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 auto 1.25rem;
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 300;
  max-width: 240px;
  margin: 0 auto;
}

.step-connector {
  display: none;
}

@media (min-width: 768px) {
  .step-connector {
    display: block;
    position: absolute;
    top: 28px;
    right: -50%;
    width: 100%;
    height: 1px;
    background: var(--beige);
    z-index: -1;
  }
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonial-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: #F5A623;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.testimonial-card p {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 500;
  color: var(--black);
  flex-shrink: 0;
}

.testimonial-info h4 {
  font-size: 0.9rem;
  font-weight: 500;
}

.testimonial-info span {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 300;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(43, 43, 43, 0.5) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
}

/* ========================================
   BEHIND THE SCENES - SWIPER
   ======================================== */
.bts-swiper .swiper-slide img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
}

.bts-swiper .swiper-pagination-bullet {
  background: var(--gray);
  opacity: 0.4;
}

.bts-swiper .swiper-pagination-bullet-active {
  background: var(--black);
  opacity: 1;
}

/* ========================================
   FAQ ACCORDION
   ======================================== */
.faq-item {
  border-bottom: 1px solid var(--beige);
  padding: 1.25rem 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  width: 100%;
  background: none;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--black);
  text-align: left;
  padding: 0;
  transition: color var(--transition-base);
}

.faq-question:hover {
  color: var(--gray);
}

.faq-question i {
  transition: transform var(--transition-base);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-left: 1rem;
}

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

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

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-top: 0.75rem;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 300;
  line-height: 1.7;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition-base);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  background: var(--beige);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-icon i {
  font-size: 1.15rem;
  color: var(--black);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.6);
}

.footer a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-base);
}

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

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

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

/* ========================================
   FLOATING WHATSAPP BUTTON
   ======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-base);
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i {
  font-size: 1.75rem;
  color: var(--white);
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  transition: transform var(--transition-base);
  background: none;
  border: none;
  z-index: 2001;
}

.lightbox-close:hover {
  transform: rotate(90deg);
}

/* ========================================
   ANIMATIONS (AOS Overrides)
   ======================================== */
[data-aos] {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-gradient {
  background: linear-gradient(135deg, var(--black), var(--gray));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   RESPONSIVE FINE-TUNING
   ======================================== */
@media (max-width: 768px) {
  .hero-trust {
    gap: 1.5rem;
  }

  .hero-trust-item .trust-number {
    font-size: 0.9rem;
  }

  .hero-trust-item .trust-text {
    font-size: 0.7rem;
  }

  .bts-swiper .swiper-slide img {
    height: 250px;
  }
}

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

  .btn-primary, .btn-outline, .btn-dark, .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }
}
