/* ============================================
   CLÍNICA DENTAL FRESDENT — Design System & Styles
   ============================================ */

:root {
  /* Colors */
  --color-primary: #0B3D3D;
  --color-primary-light: #0F5252;
  --color-primary-dark: #072929;
  --color-accent: #C4A265;
  --color-accent-light: #D4B87A;
  --color-accent-glow: rgba(196, 162, 101, 0.3);
  --color-surface: #FAFAF8;
  --color-surface-alt: #F0EDE8;
  --color-white: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-muted: #6B6B6B;
  --color-text-light: #9A9A9A;
  --color-border: rgba(11, 61, 61, 0.08);
  --color-glass: rgba(255, 255, 255, 0.7);
  --color-glass-border: rgba(255, 255, 255, 0.3);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;

  /* Spacing */
  --section-padding: clamp(80px, 10vw, 140px);
  --container-width: 1280px;
  --container-padding: clamp(20px, 4vw, 40px);

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(11, 61, 61, 0.06);
  --shadow-md: 0 8px 32px rgba(11, 61, 61, 0.1);
  --shadow-lg: 0 20px 60px rgba(11, 61, 61, 0.15);
  --shadow-glow: 0 0 40px var(--color-accent-glow);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-surface);
  overflow-x: hidden;
}

body.loading {
  overflow: hidden;
}

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

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

ul { list-style: none; }

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

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

/* ============================================
   Custom Cursor
   ============================================ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s, border-color 0.3s;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--color-accent);
  opacity: 0.5;
}

.cursor-ring.hover {
  width: 56px;
  height: 56px;
  opacity: 0.3;
  border-color: var(--color-primary);
}

@media (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================
   Preloader
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

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

.preloader-logo {
  color: var(--color-accent);
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  animation: pulse-glow 2s ease-in-out infinite;
}

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

.preloader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto 16px;
}

.preloader-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  border-radius: 2px;
  animation: loading-bar 1.8s ease-in-out forwards;
}

.preloader-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@keyframes loading-bar {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 8px var(--color-accent-glow)); }
  50% { filter: drop-shadow(0 0 20px var(--color-accent-glow)); }
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(11, 61, 61, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(11, 61, 61, 0.4);
}

.btn-primary:hover::before { opacity: 1; }

.btn-primary span,
.btn-primary svg {
  position: relative;
  z-index: 1;
}

.btn-ghost {
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(196, 162, 101, 0.05);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

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

/* ============================================
   Header / Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-base);
}

.header.scrolled {
  padding: 12px 0;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-primary);
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  color: var(--color-accent);
}

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

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: 50px;
  transition: all var(--transition-fast);
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
}

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: all var(--transition-fast);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  padding: 120px var(--container-padding) 80px;
  max-width: var(--container-width);
  margin: 0 auto;
  gap: 60px;
  overflow: hidden;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(11, 61, 61, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(196, 162, 101, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-alt) 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle 8s ease-in-out infinite;
}

@keyframes float-particle {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0); }
  10% { opacity: 0.6; transform: scale(1); }
  90% { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-100vh) scale(0.5); }
}

.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: shape-drift 20s ease-in-out infinite;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: rgba(11, 61, 61, 0.04);
  top: 10%;
  right: 10%;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: rgba(196, 162, 101, 0.06);
  bottom: 20%;
  left: 5%;
  animation-delay: -7s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: rgba(11, 61, 61, 0.03);
  top: 50%;
  left: 40%;
  animation-delay: -14s;
}

@keyframes shape-drift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -20px); }
  66% { transform: translate(-20px, 30px); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--color-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-glass-border);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #4ADE80;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.title-line {
  display: block;
}

.title-accent {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-accent);
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero-image-glow {
  position: absolute;
  inset: -20px;
  background: linear-gradient(135deg, var(--color-accent-glow), rgba(11, 61, 61, 0.1));
  border-radius: var(--radius-xl);
  filter: blur(30px);
  z-index: -1;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

.hero-image {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  transition: transform 8s ease;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.05);
}

.hero-image-frame {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: calc(var(--radius-xl) - 8px);
  pointer-events: none;
}

.hero-floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--color-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  animation: float-card 6s ease-in-out infinite;
}

.hero-floating-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--color-primary);
  line-height: 1;
}

.hero-floating-card span {
  font-size: 12px;
  color: var(--color-text-muted);
}

.floating-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  border-radius: 12px;
  color: white;
  font-size: 16px;
}

.card-1 {
  top: 40px;
  left: -30px;
  animation-delay: 0s;
}

.card-2 {
  bottom: 60px;
  right: -20px;
  animation-delay: -3s;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-light);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 2px;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}

/* ============================================
   Section Shared Styles
   ============================================ */
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.section-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

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

.section-header.center {
  text-align: center;
}

.section-header.center .section-text {
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================
   Reveal Animations
   ============================================ */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translate(0);
}

/* ============================================
   About Section
   ============================================ */
.about {
  background: var(--color-white);
}

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

.about-image-stack {
  position: relative;
  height: 500px;
}

.about-img {
  position: absolute;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-slow);
}

.about-img-1 {
  width: 75%;
  height: 400px;
  top: 0;
  left: 0;
  z-index: 2;
}

.about-img-2 {
  width: 55%;
  height: 280px;
  bottom: 0;
  right: 0;
  z-index: 3;
  border: 4px solid var(--color-white);
}

.about-image-stack:hover .about-img-1 { transform: translateY(-8px); }
.about-image-stack:hover .about-img-2 { transform: translateY(8px); }

.about-experience {
  position: absolute;
  bottom: 60px;
  left: 40px;
  z-index: 4;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 24px 28px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: float-card 5s ease-in-out infinite;
}

.experience-number {
  display: block;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.experience-text {
  font-size: 13px;
  line-height: 1.3;
  opacity: 0.8;
  margin-top: 4px;
}

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

.feature-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.feature-item:hover {
  background: var(--color-surface);
  transform: translateX(8px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(11, 61, 61, 0.08), rgba(196, 162, 101, 0.08));
  border-radius: 14px;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.feature-icon svg { width: 22px; height: 22px; }

.feature-item:hover .feature-icon {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.05);
}

.feature-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ============================================
   Services Section
   ============================================ */
.services {
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(196, 162, 101, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

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

.service-card {
  position: relative;
  padding: 36px 28px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: default;
}

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

.service-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 0;
}

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

.service-card:hover .service-icon,
.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-link {
  color: var(--color-white);
  position: relative;
  z-index: 1;
}

.service-card:hover .service-icon {
  background: rgba(255, 255, 255, 0.15);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(11, 61, 61, 0.06), rgba(196, 162, 101, 0.06));
  border-radius: 16px;
  color: var(--color-primary);
  margin-bottom: 24px;
  transition: all var(--transition-base);
}

.service-icon svg { width: 28px; height: 28px; }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
  transition: color var(--transition-base);
}

.service-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  transition: color var(--transition-base);
}

.service-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

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

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

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-primary) 100%);
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.cta-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 8px;
}

.cta-banner h2 em { color: var(--color-accent-light); }

.cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}

.cta-banner .btn-primary {
  background: var(--color-accent);
  box-shadow: 0 4px 20px rgba(196, 162, 101, 0.4);
  flex-shrink: 0;
}

.cta-banner .btn-primary:hover {
  background: var(--color-accent-light);
  box-shadow: var(--shadow-glow);
}

/* ============================================
   Team Section
   ============================================ */
.team { background: var(--color-white); }

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

.team-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  transition: all var(--transition-base);
}

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

.team-image {
  position: relative;
  overflow: hidden;
  height: 320px;
}

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

.team-card:hover .team-image img {
  transform: scale(1.08);
}

.team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 61, 61, 0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 24px;
}

.team-card:hover .team-overlay { opacity: 1; }

.team-social {
  display: flex;
  gap: 12px;
  transform: translateY(20px);
  transition: transform var(--transition-base);
}

.team-card:hover .team-social { transform: translateY(0); }

.team-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
}

.team-social a:hover {
  background: var(--color-accent);
  transform: scale(1.1);
}

.team-info {
  padding: 28px;
}

.team-info h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.team-role {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.team-info p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
  background: var(--color-surface);
  overflow: hidden;
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  min-width: 100%;
  padding: 48px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

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

.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--color-primary);
  margin-bottom: 32px;
}

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

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

.testimonial-author strong {
  display: block;
  font-size: 15px;
  color: var(--color-primary);
}

.testimonial-author span {
  font-size: 13px;
  color: var(--color-text-muted);
}

.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.testimonial-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  color: var(--color-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.testimonial-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

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

.testimonials-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

/* ============================================
   Contact Section
   ============================================ */
.contact { background: var(--color-white); }

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

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 36px;
}

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

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(11, 61, 61, 0.06), rgba(196, 162, 101, 0.06));
  border-radius: 14px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-icon svg { width: 20px; height: 20px; }

.contact-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.contact-form {
  background: var(--color-surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

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

.form-group textarea { resize: vertical; min-height: 100px; }

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

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .nav-logo {
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 20px;
}

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

.footer-links a {
  font-size: 14px;
  transition: all var(--transition-fast);
}

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

.footer-newsletter h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 12px;
}

.footer-newsletter p {
  font-size: 14px;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-size: 14px;
}

.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.4); }

.newsletter-form input:focus {
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.12);
}

.newsletter-form button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.newsletter-form button:hover {
  background: var(--color-accent-light);
  transform: scale(1.05);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 13px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

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

/* ============================================
   Toast Notification
   ============================================ */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transform: translateY(120%);
  opacity: 0;
  transition: all var(--transition-spring);
  z-index: 10000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}

.toast-message { font-size: 14px; font-weight: 500; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 140px;
    min-height: auto;
  }

  .hero-description { margin: 0 auto 36px; }

  .hero-actions { justify-content: center; }

  .hero-stats { justify-content: center; }

  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-image { height: 400px; }

  .hero-scroll { display: none; }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .cta-banner-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-base);
    z-index: 999;
  }

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

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
  }

  .nav-cta { display: none; }

  .nav-toggle { display: flex; }

  .services-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .hero-floating-card { display: none; }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .about-image-stack { height: 400px; }

  .testimonial-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 36px; }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .contact-form { padding: 24px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-up, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
  }
}
