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

/* ====================================================================
   DESIGN TOKENS & SYSTEM VARIABLES
   ==================================================================== */
:root {
  /* Colors */
  --bg-obsidian: #08090c;
  --bg-card: rgba(20, 22, 31, 0.7);
  --bg-card-hover: rgba(28, 31, 44, 0.85);
  --border-gold: rgba(212, 175, 55, 0.2);
  --border-gold-hover: rgba(212, 175, 55, 0.5);
  
  --gold-primary: #d4af37;
  --gold-secondary: #b8860b;
  --gold-light: #f3e5ab;
  --gold-dark: #8c6d1d;
  
  --gold-gradient: linear-gradient(135deg, #f5e3a0 0%, #d4af37 50%, #8c6d1d 100%);
  --gold-text-gradient: linear-gradient(135deg, #fff3cd 0%, #d4af37 60%, #a28328 100%);
  --dark-gradient: linear-gradient(180deg, #0f1118 0%, #08090c 100%);
  
  --text-primary: #ffffff;
  --text-secondary: #a0a6b5;
  --text-muted: #646a78;
  
  /* Layout */
  --container-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  background-color: var(--bg-obsidian);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button, input, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

ul {
  list-style: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}
::-webkit-scrollbar-thumb {
  background: var(--border-gold);
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-obsidian);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* ====================================================================
   INTRO SCREEN / LOADING ANIMATION
   ==================================================================== */
#intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #06070a;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.intro-logo-container {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

/* SVG Line Drawing */
.logo-svg {
  width: 100%;
  height: 100%;
}

.logo-path {
  stroke: var(--gold-primary);
  stroke-width: 2.5;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  fill: none;
  animation: drawLogo 3s ease forwards;
}

.logo-fill {
  fill: url(#gold-grad);
  opacity: 0;
  animation: fillLogo 1.5s ease 1.8s forwards;
}

.intro-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  letter-spacing: 0.2em;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeUp 1s ease 1s forwards;
}

.intro-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  color: var(--gold-primary);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 1s ease 1.3s forwards;
}

.intro-loader {
  margin-top: 32px;
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.intro-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--gold-gradient);
  animation: loadProgress 2.8s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}

/* Keyframes Loading */
@keyframes drawLogo {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes fillLogo {
  to {
    opacity: 1;
  }
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes loadProgress {
  to {
    width: 100%;
  }
}

/* ====================================================================
   LAYOUT COMPONENTS & HELPER CLASSES
   ==================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-gold-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.08);
  background: var(--bg-card-hover);
}

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

/* Typography Gradient */
.gold-text {
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.section-header p::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: var(--gold-gradient);
  margin: 16px auto 0;
}

/* Buttons */
.btn-primary {
  background: var(--gold-gradient);
  color: #000;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
  background: linear-gradient(135deg, #fff 0%, #d4af37 100%);
}

.btn-secondary {
  border: 1px solid var(--gold-primary);
  color: var(--text-primary);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-normal);
  cursor: pointer;
  background: rgba(212, 175, 55, 0.03);
}

.btn-secondary:hover {
  background: var(--gold-gradient);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
  border-color: transparent;
}

/* ====================================================================
   NAVIGATION BAR
   ==================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(8, 9, 12, 0.95);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
}

.nav-brand svg {
  width: 40px;
  height: 40px;
}

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

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--gold-gradient);
  transition: var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

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

.nav-cta {
  display: flex;
}

/* Menu Toggle Mobile */
.mobile-menu-btn {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 101;
}

.mobile-menu-btn span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.mobile-menu-btn span:nth-child(1) { top: 0px; }
.mobile-menu-btn span:nth-child(2) { top: 9px; }
.mobile-menu-btn span:nth-child(3) { top: 18px; }

.mobile-menu-btn.open span:nth-child(1) {
  top: 9px;
  transform: rotate(135deg);
  background: var(--gold-primary);
}
.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
  left: -60px;
}
.mobile-menu-btn.open span:nth-child(3) {
  top: 9px;
  transform: rotate(-135deg);
  background: var(--gold-primary);
}

/* ====================================================================
   HERO SECTION
   ==================================================================== */
.hero-section {
  min-height: 100vh;
  padding: 160px 0 80px 0;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--bg-obsidian) 0%, rgba(8, 9, 12, 0.7) 40%, transparent 100%),
              linear-gradient(0deg, var(--bg-obsidian) 0%, transparent 15%, transparent 85%, var(--bg-obsidian) 100%);
  z-index: 2;
}

.hero-car-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: contrast(1.1) brightness(0.9);
  transition: opacity var(--transition-slow);
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 650px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 24px;
}

.hero-tag span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-primary);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-features-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 32px;
}

.hero-feature-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
}

.hero-feature-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-feature-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ====================================================================
   ABOUT SECTION
   ==================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.about-text {
  display: flex;
  flex-direction: column;
}

.about-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.about-heading {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 24px;
  line-height: 1.3;
}

.about-para {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.about-para-bold {
  color: var(--text-primary);
  font-weight: 500;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.stat-item {
  text-align: center;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about-visual {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(10%) contrast(1.05);
}

.about-overlay-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  padding: 20px;
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
}

.badge-icon {
  font-size: 2rem;
  color: var(--gold-primary);
}

.badge-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.badge-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

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

.service-card {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  margin-bottom: 24px;
  transition: transform var(--transition-normal);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--gold-gradient);
  color: #000;
  border-color: transparent;
}

.service-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
}

.service-feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.service-feat-item svg {
  color: var(--gold-primary);
  flex-shrink: 0;
}

.service-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.service-link svg {
  transition: transform var(--transition-fast);
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* ====================================================================
   INTERACTIVE ESTIMATOR SECTION
   ==================================================================== */
.estimator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.estimator-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 16px;
}

.estimator-info p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 28px;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.info-card-icon {
  font-size: 1.5rem;
  color: var(--gold-primary);
}

.info-card-text h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.info-card-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.estimator-form-container {
  padding: 40px;
}

.estimator-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper::after {
  content: '▼';
  font-size: 0.65rem;
  color: var(--gold-primary);
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.form-group select, .form-group input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(8, 9, 12, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-sm);
  color: #fff;
  transition: all var(--transition-fast);
  appearance: none;
}

.form-group select:focus, .form-group input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
  background: rgba(8, 9, 12, 0.8);
}

.form-group option {
  background: #0f1118;
  color: #fff;
}

/* Results Display */
.estimator-result {
  margin-top: 12px;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: rgba(212, 175, 55, 0.03);
  border: 1px dashed var(--border-gold);
  display: none;
  flex-direction: column;
  gap: 12px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  padding-bottom: 8px;
}

.result-header span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
}

.result-metrics {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.metric-box {
  display: flex;
  flex-direction: column;
}

.metric-box .label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.metric-box .val {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.estimator-submit {
  width: 100%;
  justify-content: center;
}

/* ====================================================================
   FLYER & GALLERY SECTION
   ==================================================================== */
.gallery-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.gallery-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 16px;
}

.gallery-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 28px;
  line-height: 1.7;
}

.features-grid-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.feature-mini-icon {
  font-size: 1.25rem;
  color: var(--gold-primary);
}

.feature-mini-text {
  font-size: 0.82rem;
  font-weight: 600;
}

/* Interactive Flyer Frame */
.flyer-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  background: rgba(0,0,0,0.4);
  padding: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.flyer-img-container {
  width: 100%;
  max-height: 500px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}

.flyer-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

.flyer-img-container:hover .flyer-img {
  transform: scale(1.05);
}

.flyer-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.75rem;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}

/* ====================================================================
   LIGHTBOX FOR FLYER ZOOM
   ==================================================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 9, 12, 0.95);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.lightbox.open {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  background: none;
}

.lightbox-close:hover {
  color: var(--gold-primary);
}

/* ====================================================================
   CTA SECTION
   ==================================================================== */
.cta-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
}

.cta-box {
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 10%, rgba(212, 175, 55, 0.05) 0%, transparent 30%);
  pointer-events: none;
}

.cta-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ====================================================================
   FOOTER
   ==================================================================== */
.footer {
  background-color: #040507;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

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

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--gold-gradient);
  color: #000;
  border-color: transparent;
  transform: translateY(-2px);
}

.footer-links-col h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--gold-primary);
  padding-left: 4px;
}

.footer-contact-col h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact-icon {
  color: var(--gold-primary);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-info h6 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.footer-contact-info p, .footer-contact-info a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-contact-info a:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

/* ====================================================================
   WHATSAPP FLOATING BUTTON
   ==================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all var(--transition-normal);
  animation: pulseWpp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
  background: #20ba5a;
}

@keyframes pulseWpp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ====================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ==================================================================== */

/* Large Desktops / Laptops */
@media (max-width: 1200px) {
  :root {
    --container-width: 960px;
  }
  .hero-title {
    font-size: 3.2rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets */
@media (max-width: 992px) {
  :root {
    --container-width: 720px;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  /* Navigation */
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 5, 7, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
  }
  
  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: rgba(10, 11, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-gold);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 28px;
    padding: 100px 40px 40px 40px;
    z-index: 100;
    transition: right var(--transition-slow);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  }
  
  .nav-links.open {
    right: 0;
  }

  /* Slide-in stagger animation for mobile menu items */
  .nav-links.open li {
    animation: slideInMenu 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    opacity: 0;
    transform: translateX(30px);
  }
  
  .nav-links.open li:nth-child(1) { animation-delay: 0.15s; }
  .nav-links.open li:nth-child(2) { animation-delay: 0.20s; }
  .nav-links.open li:nth-child(3) { animation-delay: 0.25s; }
  .nav-links.open li:nth-child(4) { animation-delay: 0.30s; }
  .nav-links.open li:nth-child(5) { animation-delay: 0.35s; }
  .nav-links.open li:nth-child(6) { animation-delay: 0.40s; }
  .nav-links.open li:nth-child(7) { animation-delay: 0.45s; }
  .nav-links.open li:nth-child(8) { animation-delay: 0.50s; }

  @keyframes slideInMenu {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .nav-link {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 8px;
  }
  
  .nav-link::after {
    display: none; /* remove underline indicator on mobile */
  }

  .mobile-menu-btn {
    display: block;
    z-index: 101;
  }
  
  .nav-cta {
    display: none;
  }
  
  .nav-links .nav-cta-mobile {
    display: flex;
    width: 100%;
    margin-top: 20px;
  }

  /* Grid de Exibição dos Cartões */
  .gallery-wrapper-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
  }

  @media (max-width: 576px) {
    .gallery-wrapper-grid {
      grid-template-columns: 1fr;
      gap: 16px;
    }
  }
  
  /* Hero */
  .hero-section {
    padding-top: 120px;
    min-height: auto;
  }
  
  .hero-background {
    width: 100%;
    height: 100%;
    opacity: 0.15;
  }
  
  .hero-background::before {
    background: linear-gradient(180deg, var(--bg-obsidian) 0%, rgba(8, 9, 12, 0.4) 50%, var(--bg-obsidian) 100%);
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  
  .hero-tag {
    margin: 0 auto 24px;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .hero-features-list {
    margin-top: 32px;
    padding-top: 24px;
  }
  
  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-visual {
    height: 380px;
    order: -1;
  }
  
  /* Estimator */
  .estimator-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* Gallery */
  .gallery-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Mobile Phones */
@media (max-width: 768px) {
  :root {
    --container-width: 540px;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.4rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-features-list {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    text-align: center;
  }
  
  .hero-feature-item {
    align-items: center;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .estimator-form-container {
    padding: 24px 16px;
  }
  
  .features-grid-mini {
    grid-template-columns: 1fr;
  }
  
  .cta-box h3 {
    font-size: 1.8rem;
  }
  
  .cta-box p {
    font-size: 1rem;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* Extra Small Phones */
@media (max-width: 480px) {
  :root {
    --container-width: 100%;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-btns {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-btns a {
    width: 100%;
    justify-content: center;
  }
  
  .cta-btns {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-btns a {
    width: 100%;
    justify-content: center;
  }
  
  .about-overlay-badge {
    position: static;
    margin-top: 16px;
    background: rgba(8, 9, 12, 1);
  }
}

/* ====================================================================
   ESTILOS DO SIMULADOR AVANÇADO (MAPAS, AUTOCOMPLETE & HISTÓRICO)
   ==================================================================== */
.suggestions-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  background: rgba(20, 22, 31, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.suggestion-item {
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: rgba(212, 175, 55, 0.1);
  color: #fff;
}

/* Hover e estados dos botões de trânsito */
.traffic-btn {
  font-family: inherit;
  transition: all var(--transition-fast) !important;
}
.traffic-btn:hover {
  border-color: var(--gold-primary) !important;
  color: #fff !important;
}
.traffic-btn.active {
  border-color: var(--gold-primary) !important;
  background: rgba(212, 175, 55, 0.15) !important;
  color: #fff !important;
}

/* Itens de Simulações Recentes */
.recent-sim-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  text-align: left;
}

.recent-sim-item:hover {
  background: rgba(212, 175, 55, 0.04);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateX(4px);
}

.recent-sim-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 80%;
}

.recent-sim-route {
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-sim-meta {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.recent-sim-price {
  font-weight: 700;
  color: var(--gold-primary);
  font-size: 0.85rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ====================================================================
   ASSISTENTE DE VIAGEM IA (CONCIERGE FLUTUANTE) STYLES
   ==================================================================== */
.ai-chat-toggle-btn {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #f5e3a0 0%, #d4af37 100%);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid #000;
  padding: 0;
}

.ai-chat-toggle-btn:hover {
  transform: scale(1.1);
}

.ai-chat-toggle-btn .clovis-fab-avatar img {
  width: 61px;
  height: 61px;
  border-radius: 50%;
  object-fit: cover;
}

.ai-chat-toggle-btn .clovis-fab-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #ff3b30;
  color: white;
  font-size: 11px;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #000;
}

/* Chat Window Container */
.ai-chat-drawer {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 350px;
  height: 500px;
  max-height: calc(100vh - 120px);
  max-width: calc(100vw - 48px);
  z-index: 10000;
  background: rgba(10, 11, 16, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-chat-drawer.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

/* Header */
.ai-chat-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(212, 175, 55, 0.02);
}

.ai-header-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.ai-header-title h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.ai-status {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #25d366;
  display: inline-block;
  box-shadow: 0 0 8px #25d366;
}

.ai-chat-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.ai-chat-close-btn:hover {
  color: var(--gold-primary);
}

/* Chat Body / Messages Area */
.ai-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.5;
  word-wrap: break-word;
}

/* System/Assistant Initial Message */
.ai-message.system {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border-top-left-radius: 4px;
}

.ai-message.system strong {
  color: var(--gold-primary);
}

.ai-message.user {
  align-self: flex-end;
  background: var(--gold-primary);
  color: #000;
  font-weight: 500;
  border-top-right-radius: 4px;
  box-shadow: 0 3px 12px rgba(212, 175, 55, 0.15);
}

.ai-message.assistant {
  align-self: flex-start;
  background: rgba(20, 22, 31, 0.85);
  border: 1px solid var(--border-gold);
  color: #fff;
  border-top-left-radius: 4px;
}

/* Suggestions Container */
.ai-chat-suggestions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.ai-suggest-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ai-suggest-btn:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: rgba(212, 175, 55, 0.25);
  color: #fff;
  transform: translateX(4px);
}

/* Input Area Footer */
.ai-chat-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(8, 9, 12, 0.98);
}

#ai-chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  padding: 12px 20px;
  font-size: 0.85rem;
  color: #fff;
  transition: all var(--transition-fast);
}

#ai-chat-input:focus {
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.ai-chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.ai-chat-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  align-items: center;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Export WhatsApp section */
.ai-chat-export-wpp {
  padding: 12px 20px;
  background: rgba(212, 175, 55, 0.02);
  border-top: 1px dashed rgba(212, 175, 55, 0.2);
}

/* Mobile Responsive */
@media (max-width: 576px) {
  .ai-chat-drawer {
    bottom: 80px;
    right: 12px;
    max-width: calc(100vw - 24px);
  }
}
