/* ============================================
   Santino Auto Detailing — Premium Dark Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens --- */
:root {
  --bg-primary: #0e0e10;
  --bg-elevated: #17171a;
  --bg-card: #1c1c20;
  --bg-card-hover: #222226;
  --bg-highlight: linear-gradient(135deg, #1a1710 0%, #1c1c20 100%);

  --text-primary: #f0ece4;
  --text-secondary: #9a9590;
  --text-muted: #6b6560;

  --accent: #c9a84c;
  --accent-light: #dfc06a;
  --accent-dark: #a68a3a;
  --accent-glow: rgba(201, 168, 76, 0.12);

  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(201, 168, 76, 0.25);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;
}

/* --- Reset & Base --- */
*, *::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-weight: 400;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes subtlePulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201, 168, 76, 0.07) 0%, transparent 70%),
    linear-gradient(180deg, #0e0e10 0%, #131315 50%, #0e0e10 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 100px,
      rgba(255,255,255,0.015) 100px,
      rgba(255,255,255,0.015) 101px
    );
  pointer-events: none;
}

.overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-md);
  animation: fadeUp 1s ease-out;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  padding: 0.5em 1.5em;
  border-radius: 100px;
  margin-bottom: var(--space-md);
  animation: fadeUp 1s ease-out 0.2s both;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 0.3em;
  animation: fadeUp 1s ease-out 0.3s both;
}

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

.hero-content .hero-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.02em;
  animation: fadeUp 1s ease-out 0.5s both;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto var(--space-md);
  animation: fadeUp 1s ease-out 0.4s both;
}

/* --- CTA Buttons --- */
.cta {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 1s ease-out 0.6s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.9em 2em;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.btn:hover::after {
  opacity: 1;
}

.btn.call {
  background: var(--accent);
  color: #0e0e10;
  border: none;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.2);
}

.btn.call:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
}

.btn.sms {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

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

/* --- Sections --- */
.section {
  padding: var(--space-xl) var(--space-md);
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 0.4em;
  letter-spacing: 0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 1rem;
  margin-bottom: var(--space-lg);
}

.section-divider {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto var(--space-lg);
  border-radius: 2px;
}

/* --- Dark Section Variant --- */
.section.dark {
  max-width: 100%;
  padding: var(--space-xl) var(--space-md);
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(201, 168, 76, 0.04) 0%, transparent 70%),
    var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section.dark > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Card Grid --- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-md) var(--space-md);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

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

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

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

.card .card-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.card .card-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.card .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6em 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.card .price-row:last-child {
  border-bottom: none;
}

.card .price-row .label {
  color: var(--text-secondary);
  font-weight: 400;
}

.card .price-row .price {
  color: var(--text-primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.card .price-row.featured {
  margin-top: 0.4em;
  padding-top: 0.8em;
  border-top: 1px solid var(--border-accent);
  border-bottom: none;
}

.card .price-row.featured .label {
  color: var(--accent);
  font-weight: 600;
}

.card .price-row.featured .price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.15rem;
}

/* --- Highlight Cards (Premium) --- */
.card.highlight {
  background: var(--bg-highlight);
  border-color: var(--border-accent);
  text-align: center;
  padding: var(--space-md);
}

.card.highlight::before {
  opacity: 0.5;
}

.card.highlight h3 {
  font-size: 1.4rem;
  margin-bottom: 0.3em;
}

.card.highlight .premium-price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 0.2em;
}

.card.highlight .premium-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* --- Additional Services List --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.service-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1em 1.4em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  list-style: none;
}

.service-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.service-item .service-name {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
}

.service-item .service-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.8em;
  flex-shrink: 0;
}

.service-item .service-left {
  display: flex;
  align-items: center;
}

.service-item .service-price {
  color: var(--text-secondary);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Hide default list */
.list {
  display: none;
}

/* --- Contact Section --- */
.section.contact {
  text-align: center;
  padding-bottom: var(--space-2xl);
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.7em;
  color: var(--text-secondary);
  font-size: 1rem;
}

.contact-detail svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: var(--space-md);
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

footer p {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  font-weight: 400;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

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

  .section {
    padding: var(--space-lg) var(--space-sm);
  }

  .section.dark {
    padding: var(--space-lg) var(--space-sm);
  }

  .hero-content h1 {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .contact-info {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }

  .cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 90vh;
  }

  .card {
    padding: 1.2rem;
  }
}
