/* ============================================================
   Tefnut Car Care — Sample 2 Stylesheet
   Theme: 21st.dev Bento Grid & Ultra-Precision Dark Cyan Studio
   ============================================================ */

:root {
  --bg-core: #04060a;
  --bg-secondary: #080c14;
  --bg-bento: rgba(12, 17, 28, 0.85);
  --bg-bento-hover: rgba(18, 26, 42, 0.95);
  --bg-glass: rgba(12, 17, 28, 0.7);

  --cyan-primary: #00f2fe;
  --cyan-glow: rgba(0, 242, 254, 0.35);
  --blue-sky: #4facfe;
  --laser-blue: #38bdf8;
  --emerald: #10b981;
  --amber: #f59e0b;

  --text-main: #f8fafc;
  --text-dim: #94a3b8;
  --text-dark: #64748b;

  --border-bento: rgba(0, 242, 254, 0.16);
  --border-bento-hover: rgba(0, 242, 254, 0.45);
  --border-subtle: rgba(255, 255, 255, 0.07);

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --shadow-bento: 0 15px 35px rgba(0, 0, 0, 0.55);
  --shadow-neon: 0 0 30px rgba(0, 242, 254, 0.25);
}

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

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

body {
  background-color: var(--bg-core);
  color: var(--text-main);
  font-family: var(--font-ui);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 80% 10%, rgba(0, 242, 254, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 10% 60%, rgba(79, 172, 254, 0.06) 0%, transparent 50%),
    linear-gradient(to bottom, #04060a, #070b12 50%, #04060a);
  background-attachment: fixed;
}

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

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

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

/* --- Gradient & Badge Utilities --- */
.cyan-gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.s2-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.s2-badge--cyan {
  background: rgba(0, 242, 254, 0.12);
  color: var(--cyan-primary);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

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

/* --- Buttons --- */
.s2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  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;
}

.s2-btn--primary {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #04060a;
  box-shadow: 0 4px 20px var(--cyan-glow);
}

.s2-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.6);
}

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

.s2-btn--glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-bento);
  transform: translateY(-2px);
}

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

.s2-btn--whatsapp:hover {
  background: #20b857;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* --- Header --- */
.s2-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.s2-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

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

.s2-brand svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 8px var(--cyan-primary));
}

.s2-brand-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.s2-brand-tag {
  display: block;
  font-size: 0.65rem;
  color: var(--cyan-primary);
  letter-spacing: 1.5px;
  font-weight: 700;
}

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

.s2-menu a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.2s;
}

.s2-menu a:hover {
  color: var(--cyan-primary);
}

/* --- Bento Hero Grid --- */
.bento-hero {
  padding: 3.5rem 0;
}

.bento-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

.bento-card {
  background: var(--bg-bento);
  border: 1px solid var(--border-bento);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-bento);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.bento-card:hover {
  border-color: var(--border-bento-hover);
  box-shadow: var(--shadow-neon);
}

/* Tilt & Shine */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-card__shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 242, 254, 0.15) 0%,
    rgba(255, 255, 255, 0.04) 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;
}

/* Cell 1: Main Title Cell */
.bento-cell-main {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.8px;
  margin: 1rem 0;
}

.bento-lead {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.bento-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Cell 2: Vector Blueprint Graphic */
.bento-cell-visual {
  grid-column: 2 / 4;
  grid-row: 1 / 2;
  background: linear-gradient(135deg, rgba(8, 14, 25, 0.95), rgba(4, 8, 15, 0.9));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 260px;
}

/* Cells 3, 4: Quick Stat Bento Cells */
.bento-cell-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-stat-val {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--cyan-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.bento-stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
}

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

.s2-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0.8rem 0;
}

.s2-section-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* --- Feature Grid --- */
.s2-features-section {
  padding: 4.5rem 0;
}

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

.s2-feat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
  margin-bottom: 1.25rem;
}

.s2-feat-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.s2-feat-text {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.s2-feat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.s2-tag {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
}

/* --- Ceramic Coating Tier Matrix --- */
.coating-matrix-section {
  padding: 4.5rem 0;
  background: rgba(8, 12, 20, 0.6);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.tier-selector-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tier-select-btn {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.tier-select-btn.is-active,
.tier-select-btn:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--cyan-primary);
  color: #ffffff;
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.coating-tier-card {
  background: var(--bg-bento);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s;
}

.coating-tier-card.is-highlighted {
  border-color: var(--cyan-primary);
  box-shadow: var(--shadow-neon);
  transform: translateY(-4px);
}

.tier-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.tier-warranty {
  font-size: 0.8rem;
  color: var(--cyan-primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.tier-price-row {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.tier-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.tier-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tier-features li span {
  color: var(--cyan-primary);
}

/* --- Diagnostic Problem Solver --- */
.diagnostic-section {
  padding: 4.5rem 0;
}

.diagnostic-box {
  background: var(--bg-bento);
  border: 1px solid var(--border-bento);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.symptom-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2rem;
}

.symptom-pill {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.symptom-pill.is-active,
.symptom-pill:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
}

.diag-result-card {
  background: #080d16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: center;
}

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

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

.s2-map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--border-subtle);
}

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

/* --- Footer --- */
.s2-footer {
  background: #020306;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem;
  font-size: 0.875rem;
}

.s2-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.s2-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-dark);
}

/* --- Scroll Reveal --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Mobile Drawer --- */
.s2-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;
}

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

.s2-mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 290px;
  background: #090e17;
  border-left: 1px solid var(--border-bento);
  z-index: 1002;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.s2-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .bento-hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-cell-main {
    grid-column: 1 / 3;
    grid-row: auto;
  }
  .bento-cell-visual {
    grid-column: 1 / 3;
  }
  .tiers-grid {
    grid-template-columns: 1fr 1fr;
  }
  .s2-location-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .s2-menu {
    display: none;
  }
  .s2-menu-btn {
    display: block;
  }
  .bento-hero-grid,
  .tiers-grid,
  .diag-result-card {
    grid-template-columns: 1fr;
  }
  .s2-footer-row,
  .s2-footer-bottom {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }
}
