/*
Theme Name: Fabricio Rambaudi Theme
Theme URI: https://fabriciorambaudifotografo.com
Author: Antigravity
Description: Tema personalizado para Fabricio Rambaudi Fotógrafo.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fabricio-theme
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --yellow: #ffee00;
  --yellow-dark: #e6d700;
  --yellow-soft: #fff9c4;
  --gray: #878787;
  --gray-light: #b0b0b0;
  --gray-medium: #555555;
  --gray-dark: #2a2a2a;
  --dark: #1a1a1a;
  --darker: #111111;
  --white: #ffffff;
  --off-white: #f8f8f8;
  --cream: #fafafa;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', 'Segoe UI', sans-serif;
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
  --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);
}

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

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--gray-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== LOADER ===== */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--transition), visibility 0.6s;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo {
  height: 60px; animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.7; }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 1.2rem 2rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  transition: all 0.4s var(--transition);
}
.navbar.scrolled {
  padding: 0.7rem 2rem;
  box-shadow: 0 2px 30px rgba(0,0,0,0.08);
}
.nav-container {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 45px; transition: height 0.4s var(--transition); }
.navbar.scrolled .nav-logo img { height: 35px; }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gray-dark); position: relative;
  padding: 0.3rem 0; transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--gray);
  transition: width 0.4s var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--gray); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 6px;
  cursor: pointer; z-index: 1001; background: none; border: none; padding: 5px;
}
.hamburger span {
  display: block; width: 28px; height: 2px;
  background: var(--gray-dark); transition: all 0.4s var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ===== HERO ===== */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  filter: brightness(0.35);
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.15); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 800px; padding: 0 2rem;
}
.hero-content .hero-logo {
  height: 70px; margin: 0 auto 2rem;
  filter: brightness(0) invert(1);
  animation: fadeInDown 1s 0.3s both;
}
.hero-content h1 {
  font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400; letter-spacing: 3px; color: var(--white);
  margin-bottom: 1rem; animation: fadeInUp 1s 0.6s both;
}
.hero-content h1 span { color: var(--yellow); font-style: italic; }
.hero-content p {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--gray-light); letter-spacing: 4px; text-transform: uppercase;
  font-weight: 300; margin-bottom: 2.5rem;
  animation: fadeInUp 1s 0.9s both;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.8rem;
  background: var(--white); color: var(--gray-dark);
  padding: 1rem 2.5rem; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  border: none; cursor: pointer;
  transition: all 0.4s var(--transition);
  animation: fadeInUp 1s 1.2s both;
}
.hero-cta:hover {
  background: var(--yellow); color: var(--gray-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(255, 238, 0, 0.3);
}
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; animation: bounce 2s infinite;
}
.scroll-indicator span {
  display: block; width: 24px; height: 24px;
  border-right: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow);
  transform: rotate(45deg); margin: -8px 0;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-15px); }
  60% { transform: translateX(-50%) translateY(-8px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SECTIONS COMMON ===== */
.section { padding: 6rem 2rem; }
.section-white { background: var(--white); }
.section-light { background: var(--off-white); }

.section-header {
  text-align: center; margin-bottom: 4rem;
}
.section-header h2 {
  font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400; margin-bottom: 1rem; letter-spacing: 2px;
  color: var(--gray-dark);
}
.section-header h2 span { color: var(--gray); font-style: italic; }
.section-header .divider {
  width: 60px; height: 2px; background: var(--yellow);
  margin: 1rem auto; display: block;
}
.section-header p {
  color: var(--gray); max-width: 600px; margin: 0 auto;
  font-size: 0.95rem; line-height: 1.8;
}

/* ===== ABOUT ===== */
.about-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center;
}
.about-image { position: relative; }
.about-image img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.about-image::before {
  content: ''; position: absolute;
  top: -15px; left: -15px;
  width: 100%; height: 100%;
  border: 2px solid var(--yellow); z-index: -1;
  transition: all 0.4s var(--transition);
}
.about-image:hover::before { top: -10px; left: -10px; }

.about-text h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem; margin-bottom: 1.5rem; font-weight: 400;
  color: var(--gray-dark);
}
.about-text h3 span { color: var(--gray); }
.about-text p {
  color: var(--gray-medium); line-height: 1.9; margin-bottom: 1.2rem; font-size: 0.95rem;
}
.about-stats {
  display: flex; gap: 2rem; margin-top: 2rem; padding-top: 2rem;
  border-top: 1px solid rgba(135,135,135,0.2);
}
.stat { text-align: center; }
.stat-number {
  font-family: var(--font-heading); font-size: 2.5rem;
  color: var(--gray); display: block;
}
.stat-label {
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 2px; color: var(--gray-light);
}

/* ===== SERVICES ===== */
.services-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.service-card {
  position: relative; overflow: hidden;
  aspect-ratio: 3/4; cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.4s;
}
.service-card:hover { box-shadow: var(--shadow-lg); }
.service-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--transition), filter 0.8s;
  filter: brightness(0.7);
}
.service-card:hover img {
  transform: scale(1.1); filter: brightness(0.4);
}
.service-card-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 2rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 60%);
}
.service-card-content h3 {
  font-family: var(--font-heading); font-size: 1.6rem;
  font-weight: 400; margin-bottom: 0.5rem; color: var(--white);
  transform: translateY(20px);
  transition: transform 0.5s var(--transition);
}
.service-card:hover .service-card-content h3 { transform: translateY(0); }
.service-card-content .line {
  width: 40px; height: 2px; background: var(--yellow);
  margin-bottom: 0.8rem; transition: width 0.5s var(--transition);
}
.service-card:hover .service-card-content .line { width: 80px; }
.service-card-content p {
  font-size: 0.85rem; color: var(--gray-light);
  opacity: 0; transform: translateY(15px);
  transition: all 0.5s var(--transition) 0.1s;
}
.service-card:hover .service-card-content p { opacity: 1; transform: translateY(0); }

/* ===== GALLERY SECTION ===== */
.gallery-section { padding: 6rem 2rem; }
.gallery-container { max-width: 1400px; margin: 0 auto; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  position: relative; overflow: hidden;
  aspect-ratio: 1; cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-item.wide { grid-column: span 2; aspect-ratio: auto; }

.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--transition);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.3);
  opacity: 0; transition: opacity 0.4s;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item .gallery-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  z-index: 2; opacity: 0;
  transition: all 0.4s var(--transition);
  font-size: 2rem; color: var(--yellow);
}
.gallery-item:hover .gallery-icon { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ===== TESTIMONIALS ===== */
.testimonials-section { background: var(--gray-dark); color: var(--white); }
.testimonials-section .section-header h2 { color: var(--white); }
.testimonials-section .section-header h2 span { color: var(--yellow); }
.testimonials-section .section-header p { color: var(--gray-light); }

.testimonials-wrapper {
  max-width: 1000px; margin: 0 auto;
  position: relative; overflow: hidden;
}
.testimonials-track {
  display: flex; transition: transform 0.6s var(--transition);
}
.testimonial-card {
  min-width: 100%; padding: 3rem;
  text-align: center;
}
.testimonial-stars {
  color: var(--yellow); font-size: 1.2rem;
  margin-bottom: 1.5rem; letter-spacing: 4px;
}
.testimonial-text {
  font-family: var(--font-heading); font-size: 1.3rem;
  font-style: italic; font-weight: 400;
  line-height: 1.8; margin-bottom: 2rem;
  color: var(--off-white);
}
.testimonial-author {
  font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 3px; color: var(--yellow); font-weight: 600;
}
.testimonial-role {
  font-size: 0.75rem; color: var(--gray);
  margin-top: 0.3rem; letter-spacing: 2px;
}
.testimonial-nav {
  display: flex; justify-content: center; gap: 1rem; margin-top: 2rem;
}
.testimonial-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gray); border: none; cursor: pointer;
  transition: all 0.3s;
}
.testimonial-dot.active { background: var(--yellow); transform: scale(1.3); }

/* ===== CONTACT ===== */
.contact-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
}
.contact-info h3 {
  font-family: var(--font-heading); font-size: 1.6rem;
  margin-bottom: 1.5rem; font-weight: 400;
  color: var(--gray-dark);
}
.contact-item {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 50px; height: 50px; min-width: 50px;
  border: 1px solid var(--gray);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray); font-size: 1.2rem;
  transition: all 0.3s;
}
.contact-item:hover .contact-icon {
  background: var(--gray-dark); color: var(--white);
  border-color: var(--gray-dark);
}
.contact-item-text h4 {
  font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 0.3rem; font-weight: 600;
  color: var(--gray-dark);
}
.contact-item-text p { color: var(--gray); font-size: 0.9rem; }
.contact-item-text a { color: var(--gray-dark); font-weight: 500; transition: color 0.3s; }
.contact-item-text a:hover { color: var(--gray); }

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { position: relative; }
.form-group input, .form-group textarea {
  width: 100%; padding: 1rem 1.2rem;
  background: var(--off-white);
  border: 1px solid rgba(135,135,135,0.2);
  color: var(--gray-dark); font-family: var(--font-body);
  font-size: 0.9rem; transition: border-color 0.3s;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--gray);
}
.form-group textarea { min-height: 150px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder {
  color: var(--gray-light); text-transform: uppercase;
  font-size: 0.75rem; letter-spacing: 2px;
}
.btn-submit {
  background: var(--gray-dark); color: var(--white);
  padding: 1rem 2.5rem; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 0.8rem;
  font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  transition: all 0.4s var(--transition); align-self: flex-start;
}
.btn-submit:hover {
  background: var(--gray);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== SOCIAL LINKS ROW ===== */
.social-links-row {
  display: flex; gap: 1rem; margin-top: 1.5rem;
}
.social-link {
  width: 45px; height: 45px;
  border: 1px solid var(--gray);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray); transition: all 0.3s;
}
.social-link:hover {
  background: var(--gray-dark); color: var(--white);
  border-color: var(--gray-dark);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-dark); padding: 3rem 2rem;
  color: var(--white);
}
.footer-content {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-logo img { height: 35px; filter: brightness(0) invert(1); }
.footer-text {
  font-size: 0.75rem; color: var(--gray-light);
  letter-spacing: 2px; text-transform: uppercase;
}
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 0.9rem;
  transition: all 0.3s;
}
.footer-social a:hover {
  background: var(--yellow); color: var(--gray-dark);
  border-color: var(--yellow);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all 0.3s; text-decoration: none;
  animation: whatsappPulse 2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.6);
}
@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7), 0 0 0 10px rgba(37,211,102,0.1); }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.4s;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute; top: 2rem; right: 2rem;
  background: none; border: none; color: var(--white);
  font-size: 2rem; cursor: pointer;
  transition: color 0.3s;
}
.lightbox-close:hover { color: var(--yellow); }

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0; transform: translateX(-40px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0; transform: translateX(40px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}
.reveal-right.active { opacity: 1; transform: translateX(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image { max-width: 500px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; inset: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.5s var(--transition);
  }
  .nav-links.active { transform: translateX(0); }
  .nav-links a { font-size: 1rem; letter-spacing: 4px; }
  .hamburger { display: flex; }

  .hero-content .hero-logo { height: 50px; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.tall, .gallery-item.wide {
    grid-row: auto; grid-column: auto;
  }
  .about-stats { flex-direction: column; gap: 1.5rem; }
  .section { padding: 4rem 1.5rem; }
  .testimonial-text { font-size: 1.1rem; }
  .footer-content { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.8rem; }
  .navbar { padding: 1rem; }
}
