/* ============================================================
   Tefnut Car Care — Sample 1 Stylesheet
   Theme: Carbon Matrix Dark & Cyber Flame Performance Automotive
   ============================================================ */

:root {
  --bg-primary: #080a0f;
  --bg-secondary: #0f131d;
  --bg-surface: #141a28;
  --bg-surface-elevated: #1b2336;
  --bg-glass: rgba(20, 26, 40, 0.75);

  --accent-orange: #ff6b00;
  --accent-orange-glow: rgba(255, 107, 0, 0.35);
  --accent-amber: #ffa114;
  --accent-cyan: #00e5ff;
  --accent-green: #10b981;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(255, 107, 0, 0.3);

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px rgba(255, 107, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(255, 107, 0, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(0, 229, 255, 0.05) 0%, transparent 45%),
    linear-gradient(to bottom, #080a0f, #0c1017 50%, #080a0f);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, select, input {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Typography Helpers --- */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, #ff8800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.orange-text {
  color: var(--accent-orange);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge--orange {
  background: rgba(255, 107, 0, 0.12);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 107, 0, 0.25);
}

.badge--green {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn--primary {
  background: linear-gradient(135deg, #ff6b00 0%, #e65100 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--accent-orange-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 0, 0.55);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-color: var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn--whatsapp {
  background: #25D366;
  color: #0b2210;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn--whatsapp:hover {
  background: #22bf5b;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* --- Announcement Banner --- */
.announcement-banner {
  background: linear-gradient(90deg, #ff6b00, #ff8800);
  color: #ffffff;
  text-align: center;
  padding: 8px 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: none;
}

/* --- Header & Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 10, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo svg {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 8px var(--accent-orange));
}

.brand-logo-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-logo-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-orange);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width 0.3s;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 6px;
}

/* --- Mobile Drawer --- */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  background: #10141f;
  border-left: 1px solid var(--border-accent);
  z-index: 1002;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* --- Hero Section --- */
.hero-section {
  padding: 5rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-tag {
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-orange);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Hero Graphic --- */
.hero-visual {
  position: relative;
}

.hero-card-frame {
  background: linear-gradient(145deg, rgba(20, 26, 40, 0.8), rgba(12, 16, 25, 0.95));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.hero-car-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(255, 107, 0, 0.25));
}

.hero-floating-pill {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(8, 10, 15, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* --- 3D Tilt Card Base & Shine --- */
.tilt-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
}

.tilt-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.tilt-card__shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 30%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  border-radius: inherit;
  z-index: 2;
}

.tilt-card.is-tilting .tilt-card__shine {
  opacity: 1;
}

/* --- Services Grid --- */
.services-section {
  padding: 5rem 0;
}

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

.service-icon-wrap {
  width: 56px;
  height: 56px;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent-orange);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.service-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.service-points {
  list-style: none;
  font-size: 0.825rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.service-points li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-points li span {
  color: var(--accent-orange);
}

/* --- Interactive Before / After Slider Section --- */
.before-after-section {
  padding: 5rem 0;
  background: rgba(15, 19, 29, 0.6);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.ba-slider-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-card);
  user-select: none;
  cursor: ew-resize;
}

.ba-image-wrapper {
  position: relative;
  width: 100%;
  height: 440px;
  background: #000;
}

.ba-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ba-layer svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-after {
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--accent-orange);
  box-shadow: 0 0 15px var(--accent-orange);
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 10;
}

.ba-handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #ff6b00;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.ba-label {
  position: absolute;
  bottom: 1rem;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
}

.ba-label--before {
  right: 1rem;
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.ba-label--after {
  left: 1rem;
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* --- Estimator Calculator Section --- */
.estimator-section {
  padding: 5rem 0;
}

.estimator-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  max-width: 980px;
  margin: 0 auto;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

.calc-group-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.select-custom {
  width: 100%;
  padding: 12px 16px;
  background: #0d111a;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 1rem;
  outline: none;
  cursor: pointer;
  margin-bottom: 1.5rem;
}

.select-custom:focus {
  border-color: var(--accent-orange);
}

.calc-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(13, 17, 26, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.calc-item-row:hover {
  border-color: rgba(255, 107, 0, 0.4);
  background: rgba(255, 107, 0, 0.05);
}

.calc-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.925rem;
  font-weight: 600;
}

.calc-item-left input[type="checkbox"] {
  accent-color: var(--accent-orange);
  width: 18px;
  height: 18px;
}

.calc-price-tag {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-orange);
}

.calc-summary-panel {
  background: #0d111a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-summary-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
}

.calc-discount-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 6px;
}

.calc-total-display {
  margin: 1.5rem 0;
}

.calc-total-amount {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.calc-orig-amount {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 8px;
}

/* --- Reviews Section --- */
.reviews-section {
  padding: 5rem 0;
  background: rgba(15, 19, 29, 0.5);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.review-quote {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ff6b00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
}

.reviewer-name {
  font-weight: 700;
  font-size: 0.925rem;
}

.reviewer-source {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- Location & Map Section --- */
.location-section {
  padding: 5rem 0;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.location-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
  list-style: none;
}

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

.contact-info-icon {
  color: var(--accent-orange);
  font-size: 1.25rem;
  margin-top: 2px;
}

.contact-info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.contact-info-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.map-embed-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  min-height: 320px;
  background: #000;
}

.map-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: none;
}

/* --- Footer --- */
.site-footer {
  background: #05070a;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* --- Scroll Reveal Animations --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Breakpoints --- */
@media (max-width: 1024px) {
  .hero-grid,
  .estimator-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu,
  .nav-actions .btn--secondary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
  .ba-image-wrapper {
    height: 300px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
