/* ========================================
   CLINTECH — Design System
   Colors: #1A1A1A (bg), #C5A065 (gold), #FAFAFA (text)
   Fonts: Playfair Display + DM Sans
======================================== */

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

:root {
  --bg:        #1A1A1A;
  --bg-2:      #222222;
  --bg-3:      #2a2a2a;
  --gold:      #C5A065;
  --gold-light:#D4B483;
  --gold-dark: #A8854A;
  --text:      #FAFAFA;
  --text-muted:#A0A0A0;
  --border:    rgba(197, 160, 101, 0.15);
  --glass-bg:  rgba(255, 255, 255, 0.04);
  --glass-border: rgba(197, 160, 101, 0.2);
  --ff-title:  'Playfair Display', Georgia, serif;
  --ff-body:   'DM Sans', system-ui, sans-serif;
  --radius:    16px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --shadow-gold: 0 0 40px rgba(197, 160, 101, 0.15);
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
address { font-style: normal; }

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

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

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

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #1A1A1A;
  font-weight: 600;
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 160, 101, 0.35);
}

.btn-outline {
  color: var(--text);
  border-color: rgba(250, 250, 250, 0.3);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-gold-outline {
  color: var(--gold);
  border-color: var(--gold);
  background: transparent;
}
.btn-gold-outline:hover {
  background: var(--gold);
  color: #1A1A1A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 160, 101, 0.3);
}

/* ---- Section Base ---- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

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

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =====================================
   HEADER
===================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.4s ease;
}

.header.scrolled {
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img { height: 40px; width: auto; }

.logo-fallback {
  align-items: center;
  gap: 8px;
}

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

.logo-text {
  font-family: var(--ff-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}
.logo-text em { color: var(--gold); font-style: normal; }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: 50px;
  transition: all var(--transition);
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.06); }

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
  border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =====================================
   HERO
===================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(160deg, rgba(26,26,26,0.75) 0%, rgba(26,26,26,0.85) 60%, rgba(26,26,26,0.95) 100%),
    url('assets/hero-bg.jpg') center/cover no-repeat;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(197, 160, 101, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(197, 160, 101, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 24px 120px;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 20px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.hero-title {
  font-family: var(--ff-title);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text);
  animation: heroFadeUp 0.9s ease both;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(250,250,250,0.75);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 40px;
  animation: heroFadeUp 0.9s 0.15s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: heroFadeUp 0.9s 0.3s ease both;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  animation: heroFadeUp 0.9s 0.45s ease both;
}

.badge { display: flex; flex-direction: column; }
.badge-num {
  font-family: var(--ff-title);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.badge-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.badge-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-scroll-indicator span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease infinite;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollLine {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* =====================================
   SERVICES
===================================== */
.services {
  padding: 120px 0;
  position: relative;
}
.services::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

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

.service-card {
  position: relative;
  border-radius: var(--radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.4s ease;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(0,0,0,0.4), var(--shadow-gold); }
.service-card:hover::before { opacity: 1; }

.service-card.featured {
  border-color: rgba(197, 160, 101, 0.35);
  background: rgba(197, 160, 101, 0.06);
}
.service-card.featured::before { opacity: 1; }

.service-featured-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #1A1A1A;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}

.service-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(197, 160, 101, 0.1);
  border: 1px solid rgba(197, 160, 101, 0.2);
  border-radius: 14px;
  color: var(--gold);
  margin-bottom: 4px;
  transition: all var(--transition);
}
.service-card:hover .service-icon {
  background: rgba(197, 160, 101, 0.15);
  transform: scale(1.05);
}

.service-title {
  font-family: var(--ff-title);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0;
  flex: 1;
}
.service-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.service-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.55rem;
  top: 4px;
}

.service-btn { align-self: flex-start; margin-top: 8px; }

/* =====================================
   TESTIMONIALS
===================================== */
.testimonials {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
  overflow: hidden;
}

.testimonials-carousel { position: relative; overflow: hidden; }

.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-card {
  min-width: calc(100% / 1);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .testimonial-card { min-width: calc(50% - 12px); }
}
@media (min-width: 1024px) {
  .testimonial-card { min-width: calc(33.333% - 16px); }
}

.testimonial-stars {
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-style: italic;
  position: relative;
  flex: 1;
}
.testimonial-text::before {
  content: '"';
  font-family: var(--ff-title);
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.2;
  position: absolute;
  top: -20px; left: -10px;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #1A1A1A;
  font-size: 1rem;
  flex-shrink: 0;
}

.author-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  font-style: normal;
}
.author-role {
  display: block;
  font-size: 0.78rem;
  color: var(--gold);
  margin-top: 2px;
}

.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(197, 160, 101, 0.1);
}

.carousel-dots { display: flex; gap: 8px; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(250,250,250,0.2);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

/* =====================================
   BOOKING
===================================== */
.booking {
  padding: 120px 0;
}

.booking-container {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.booking-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.booking-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 48px 32px;
  color: var(--text-muted);
}
.booking-placeholder-inner svg { color: var(--gold); opacity: 0.5; }
.booking-placeholder-text {
  font-family: var(--ff-title);
  font-size: 1.5rem;
  color: var(--text);
}
.booking-placeholder-hint {
  font-size: 0.9rem;
  max-width: 400px;
  line-height: 1.6;
  margin-bottom: 8px;
}
.booking-placeholder-hint code {
  font-family: monospace;
  background: rgba(197,160,101,0.1);
  color: var(--gold);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* =====================================
   FOOTER
===================================== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  padding: 80px 24px 60px;
}

.footer-brand { max-width: 340px; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 20px;
}
.footer-logo-img { height: 48px; width: auto; }
.footer-logo-fallback {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
}
.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(197, 160, 101, 0.08);
  transform: translateY(-2px);
}

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

.footer-col-title {
  font-family: var(--ff-title);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }

.footer-contact { gap: 14px !important; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.footer-contact li svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }
.footer-contact a { color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  gap: 16px;
  flex-wrap: wrap;
}

/* =====================================
   WHATSAPP FLOAT
===================================== */
.whatsapp-float {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 200;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: all var(--transition);
  animation: waPulse 3s ease infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; transform: translateX(-108%); }

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  background: rgba(26,26,26,0.9);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 50px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-96%);
  transition: all var(--transition);
  pointer-events: none;
  border: 1px solid var(--border);
}

@keyframes waPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,0.6), 0 0 0 12px rgba(37,211,102,0.08); }
}

/* =====================================
   RESPONSIVE
===================================== */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-brand { max-width: 100%; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-menu {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 90vw);
    height: 100vh;
    background: rgba(26,26,26,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 100px 32px 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 4px;
    border-left: 1px solid var(--border);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-link { font-size: 1.1rem; padding: 12px 16px; }

  .hero-content { padding: 60px 24px 100px; }
  .hero-badges { gap: 16px; }
  .badge-divider { display: none; }

  .services-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { justify-content: center; text-align: center; }

  .testimonial-card { min-width: 100%; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-links { grid-template-columns: 1fr; }
  .whatsapp-float { bottom: 20px; right: 20px; width: 54px; height: 54px; }
}

/* ---- AOS-like Entrance Animations ---- */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-aos] { opacity: 1; transform: none; }
}
