/* ============================================
   Tint Pro's Tampa — Custom Styles
   Brand: Dark #161616, Red #D22F25, Archivo Black + Montserrat
   ============================================ */

/* --- CSS Variables (design tokens) --- */
:root {
  /* Colors */
  --color-bg: #161616;
  --color-surface: #1a1a1a;
  --color-deep: #111111;
  --color-red: #D22F25;
  --color-red-hover: #F54A43;
  --color-red-active: #FBD1D0;
  --color-text: #ffffff;
  --color-text-secondary: #f7f7f7;
  --color-muted: #a4a4a4;
  --color-muted-dark: #6b6b6b;
  --color-border: #2a2a2a;

  /* Typography */
  --font-heading: 'Archivo Black', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 600ms;
  --easing-default: cubic-bezier(0.4, 0, 0.2, 1);
  --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
  --mobile-cta-height: 42px;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* --- Links --- */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--easing-default);
}

a:hover {
  color: var(--color-red);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background-color: var(--color-red);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--easing-default),
              transform var(--duration-fast) var(--easing-spring);
  text-align: center;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--color-red-hover);
  color: var(--color-text);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background-color: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--easing-default),
              background-color var(--duration-fast) var(--easing-default);
  text-align: center;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--color-red);
  background-color: rgba(210, 47, 37, 0.1);
  color: var(--color-text);
}

/* --- Section spacing --- */
.section {
  padding: var(--space-16) var(--space-4);
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-20) var(--space-8);
  }
}

@media (min-width: 1024px) {
  .section {
    padding: var(--space-24) var(--space-8);
  }
}

.section-alt {
  background-color: var(--color-surface);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-8);
  }
}

/* --- Section headings --- */
.section-title {
  font-size: 1.875rem;
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 640px;
}

@media (min-width: 768px) {
  .section-subtitle {
    font-size: 1.125rem;
  }
}

/* --- Sticky mobile CTA --- */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(210, 47, 37, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: var(--mobile-cta-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  color: var(--color-text);
  box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(0);
  transition: transform 0.25s ease;
}

.mobile-cta.hidden-down {
  transform: translateY(100%);
}

@media (min-width: 1024px) {
  .mobile-cta {
    display: none;
  }
}

/* Add bottom padding to body on mobile to prevent CTA from covering content */
@media (max-width: 1023px) {
  body {
    padding-bottom: var(--mobile-cta-height);
  }
}

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

/* --- Phone link styling --- */
a[href^="tel:"],
a[href^="sms:"] {
  white-space: nowrap;
}

/* --- Scroll padding for anchor links (header offset) --- */
html {
  scroll-padding-top: var(--header-height);
}

/* --- Tint viewer slider --- */
.tint-slider {
  background: linear-gradient(to right, #111111 0%, #1a2a3a 30%, #4a6a8a 60%, #8ab4d8 100%);
  border: 1px solid var(--color-border);
}

.tint-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-red);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(210, 47, 37, 0.2), 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: box-shadow var(--duration-fast) var(--easing-default);
}

.tint-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 6px rgba(210, 47, 37, 0.3), 0 2px 12px rgba(0, 0, 0, 0.5);
}

.tint-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-red);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 0 4px rgba(210, 47, 37, 0.2), 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* --- Gallery thumbnail scrollbar --- */
.scrollbar-thin {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.scrollbar-thin::-webkit-scrollbar {
  height: 4px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background-color: var(--color-border);
  border-radius: 2px;
}
