/* ══════════════════════════════════════════════
   CAMILA MOREIRA — Premium Architect Site
   Design System: Dark Luxe + Gold Accents
   ══════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1a1a1a;
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted: #666;
  --accent: #c9a96e;
  --accent-light: #dfc08a;
  --accent-dark: #a68845;
  --border: rgba(201, 169, 110, 0.15);
  --border-light: rgba(255, 255, 255, 0.06);
  --glass: rgba(22, 22, 22, 0.85);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════ PRELOADER ══════════ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s, visibility 0.8s;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

.preloader-line {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 20px;
  animation: preloaderLine 1.5s ease-in-out infinite;
}

.preloader-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 8px;
  color: var(--accent);
}

@keyframes preloaderLine {
  0%, 100% { width: 20px; opacity: 0.3; }
  50% { width: 80px; opacity: 1; }
}

/* ══════════ NAVIGATION ══════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 3px;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  transition: var(--transition);
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.nav-logo:hover .logo-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(201, 169, 110, 0.4));
}

.logo-text { color: var(--text-primary); font-weight: 400; }
.logo-accent { color: var(--accent); font-weight: 700; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 24px !important;
  border: 1px solid var(--accent) !important;
  border-radius: 4px;
  color: var(--accent) !important;
}

.nav-cta:hover {
  background: var(--accent) !important;
  color: var(--bg-primary) !important;
}

.nav-cta::after { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

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

/* ══════════ HERO — Before/After Animado ══════════ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-primary);
}

/* Container das imagens before/after */
.hero-ba-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-ba-before,
.hero-ba-after {
  position: absolute;
  inset: 0;
}

.hero-ba-before img,
.hero-ba-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* After começa oculto e revela com clip-path animado */
.hero-ba-after {
  clip-path: inset(0 100% 0 0);
  animation: heroReveal 8s ease-in-out infinite;
}

/* Labels ANTES / DEPOIS */
.hero-ba-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 24px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 6px;
  font-size: 0.8rem;
  letter-spacing: 4px;
  font-weight: 600;
  color: #fff;
  z-index: 5;
  pointer-events: none;
}

.hero-ba-label-antes {
  left: 30px;
  animation: labelAntes 8s ease-in-out infinite;
}

.hero-ba-label-depois {
  right: 30px;
  animation: labelDepois 8s ease-in-out infinite;
}

/* Linha de wipe animada */
.hero-ba-wipe {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  z-index: 6;
  box-shadow: 0 0 20px rgba(201, 169, 110, 0.6), 0 0 40px rgba(201, 169, 110, 0.3);
  animation: wipeMove 8s ease-in-out infinite;
}

/* Keyframes: revela o "depois" com cortina, pausa, e volta */
@keyframes heroReveal {
  0%   { clip-path: inset(0 100% 0 0); }
  15%  { clip-path: inset(0 100% 0 0); }
  50%  { clip-path: inset(0 0% 0 0); }
  85%  { clip-path: inset(0 0% 0 0); }
  100% { clip-path: inset(0 100% 0 0); }
}

@keyframes wipeMove {
  0%   { left: 0%; opacity: 0; }
  10%  { opacity: 1; }
  15%  { left: 0%; }
  50%  { left: 100%; }
  55%  { opacity: 0; }
  85%  { left: 100%; opacity: 0; }
  90%  { opacity: 1; }
  100% { left: 0%; opacity: 0; }
}

@keyframes labelAntes {
  0%   { opacity: 1; }
  15%  { opacity: 1; }
  40%  { opacity: 0; }
  85%  { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes labelDepois {
  0%   { opacity: 0; }
  30%  { opacity: 0; }
  50%  { opacity: 1; }
  85%  { opacity: 1; }
  95%  { opacity: 0; }
  100% { opacity: 0; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.85) 0%,
    rgba(10, 10, 10, 0.6) 50%,
    rgba(10, 10, 10, 0.75) 100%
  );
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  20% { opacity: 0.6; }
  80% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-100px) scale(1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 32px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-line {
  display: block;
}

.hero-accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 600;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.3);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
}

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

.btn-full { width: 100%; justify-content: center; }

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

.hero-scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ══════════ ANIMATIONS ══════════ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════ SECTION COMMON ══════════ */
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  position: relative;
  padding-left: 40px;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title em {
  color: var(--accent);
  font-style: italic;
}

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

.section-header .section-tag {
  padding-left: 0;
}

.section-header .section-tag::before {
  display: none;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

/* ══════════ STATS ══════════ */
#stats {
  padding: 60px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--accent);
  display: inline;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ══════════ ABOUT ══════════ */
#about {
  padding: 120px 0;
}

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

.about-img-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-img-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-img-border {
  position: absolute;
  inset: -8px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  opacity: 0.3;
  pointer-events: none;
}

.about-experience {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 24px;
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-image {
  position: relative;
}

.exp-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.exp-text {
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.about-text {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 300;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  color: var(--accent);
  font-size: 1.2rem;
  margin-top: 2px;
}

.about-feature strong {
  display: block;
  margin-bottom: 4px;
}

.about-feature p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 300;
}

/* ══════════ PORTFOLIO / BEFORE-AFTER ══════════ */
#portfolio {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.ba-project {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.ba-project:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.project-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 16px;
  font-weight: 300;
}

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
}

.ba-image {
  position: absolute;
  inset: 0;
}

.ba-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-after {
  clip-path: inset(0 0 0 50%);
}

.ba-label {
  position: absolute;
  bottom: 12px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 4px;
  font-size: 0.65rem;
  letter-spacing: 3px;
  font-weight: 600;
}

.ba-before .ba-label { left: 12px; }
.ba-after .ba-label { right: 12px; }

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.ba-handle-line {
  flex: 1;
  width: 2px;
  background: var(--accent);
}

.ba-handle-circle {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(201, 169, 110, 0.5);
}

/* ══════════ 360° TOUR ══════════ */
#tour360 {
  padding: 120px 0;
}

.tour-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
}

.tour-viewer {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: grab;
}

.tour-viewer:active { cursor: grabbing; }

.tour-sphere {
  width: 100%;
  height: 100%;
  transition: transform 0.1s ease-out;
}

.tour-sphere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity var(--transition);
}

.tour-viewer.dragging .tour-overlay { opacity: 0; }

.tour-drag-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.tour-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tour-hotspot {
  position: absolute;
  width: 30px;
  height: 30px;
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hotspot-dot {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid white;
  z-index: 2;
  position: relative;
}

.hotspot-pulse {
  position: absolute;
  width: 30px;
  height: 30px;
  background: rgba(201, 169, 110, 0.3);
  border-radius: 50%;
  animation: hotspotPulse 2s ease-in-out infinite;
}

@keyframes hotspotPulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.tour-hotspot:hover::after {
  content: attr(data-label);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.tour-rooms {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border-light);
}

.tour-room {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: var(--transition);
  border-right: 1px solid var(--border-light);
}

.tour-room:last-child { border-right: none; }

.tour-room:hover,
.tour-room.active {
  background: rgba(201, 169, 110, 0.1);
  color: var(--accent);
}

.room-icon { font-size: 1.2rem; }

/* ══════════ SERVICES ══════════ */
#services {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: var(--transition);
}

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

.service-card:hover::before { opacity: 1; }

.service-icon {
  color: var(--accent);
  margin-bottom: 24px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 500;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
}

/* ══════════ INSTAGRAM ══════════ */
#instagram {
  padding: 120px 0;
}

.instagram-handle {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 500;
  transition: var(--transition);
}

.instagram-handle:hover {
  color: var(--accent-light);
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.insta-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.insta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(201, 169, 110, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.insta-item:hover img { transform: scale(1.1); }
.insta-item:hover .insta-overlay { opacity: 1; }

/* ══════════ TESTIMONIALS ══════════ */
#testimonials {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.testimonials-carousel {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  min-width: 100%;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-align: center;
}

.testimonial-stars {
  color: var(--accent);
  font-size: 1.2rem;
  letter-spacing: 4px;
  margin-bottom: 24px;
}

.testimonial-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.6;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.testimonial-author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.testimonial-author strong { display: block; }
.testimonial-author span {
  font-size: 0.85rem;
  color: var(--accent);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.testimonial-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.testimonial-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.testimonial-dots {
  display: flex;
  gap: 8px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
}

.testimonial-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* ══════════ CONTACT ══════════ */
#contact {
  padding: 120px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-text {
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-detail strong { display: block; margin-bottom: 2px; }
.contact-detail p { color: var(--text-secondary); font-size: 0.9rem; font-weight: 300; }

.contact-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

/* Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group { margin-bottom: 16px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

.contact-form select { appearance: none; cursor: pointer; }
.contact-form select option { background: var(--bg-primary); }
.contact-form textarea { resize: vertical; min-height: 100px; }

/* ══════════ FOOTER ══════════ */
#footer {
  padding: 80px 0 40px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-light);
}

.footer-brand p {
  color: var(--text-secondary);
  font-weight: 300;
  margin-top: 16px;
  font-size: 0.9rem;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 6px 0;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: 32px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ══════════ CHATBOT WIDGET ══════════ */
#chatWidget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.4);
  transition: var(--transition);
  position: relative;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(201, 169, 110, 0.5);
}

.chat-toggle-close { display: none; }
.chat-toggle.active .chat-toggle-icon { display: none; }
.chat-toggle.active .chat-toggle-close { display: block; }

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: #e74c3c;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.chat-toggle.active .chat-badge { display: none; }

.chat-window {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 380px;
  height: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition);
}

.chat-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: var(--bg-primary);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-header strong { font-size: 0.9rem; display: block; }

.chat-status {
  font-size: 0.75rem;
  opacity: 0.8;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-message {
  display: flex;
  flex-direction: column;
}

.chat-message.bot { align-items: flex-start; }
.chat-message.user { align-items: flex-end; }

.message-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.chat-message.bot .message-bubble {
  background: var(--bg-secondary);
  border-bottom-left-radius: 4px;
}

.chat-message.user .message-bubble {
  background: var(--accent);
  color: var(--bg-primary);
  border-bottom-right-radius: 4px;
}

.message-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  padding: 0 4px;
}

.chat-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.chat-option-btn {
  padding: 10px 16px;
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 0.82rem;
  text-align: left;
  transition: var(--transition);
  cursor: pointer;
}

.chat-option-btn:hover {
  background: rgba(201, 169, 110, 0.2);
  border-color: var(--accent);
}

.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
  background: var(--bg-secondary);
}

.chat-input {
  flex: 1;
  padding: 10px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}

.chat-input:focus { border-color: var(--accent); }

.chat-input::placeholder { color: var(--text-muted); }

.chat-send {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  transition: var(--transition);
  flex-shrink: 0;
}

.chat-send:hover {
  background: var(--accent-light);
  transform: scale(1.05);
}

/* ── Typing indicator (3 dots animation) ── */
.typing-dots {
  display: flex;
  gap: 5px;
  padding: 4px 8px;
  align-items: center;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.chat-input:disabled,
.chat-send:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-container { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

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

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 24px;
    transition: var(--transition);
    border-left: 1px solid var(--border-light);
  }

  .nav-links.open { right: 0; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .instagram-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .stats-container { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }

  .tour-rooms {
    flex-wrap: wrap;
  }
  .tour-room {
    flex: 1 1 45%;
    border-bottom: 1px solid var(--border-light);
  }

  .hero-title { font-size: clamp(2rem, 8vw, 3.5rem); }

  .chat-window {
    width: calc(100vw - 32px);
    right: -8px;
    height: 460px;
  }

  .testimonial-card { padding: 32px 20px; }
  .testimonial-text { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .stats-container { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stat-number { font-size: 2.2rem; }
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── CHAT SCROLLBAR ── */
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
