/* SwipeIT - Global Styles */

:root {
  --primary: #CC2222;
  --primary-dark: #A61C1C;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #555555;
  --heading: #111111;
  --border: #E5E5E5;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */

h1, h2, h3, h4 {
  color: var(--heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.25rem; letter-spacing: -0.025em; }
h2 { font-size: 1.625rem; letter-spacing: -0.015em; }
h3 { font-size: 1.125rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 150ms ease;
}

a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

.img-responsive {
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* Layout */

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

.section {
  padding: 6rem 0;
}

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

.text-center { text-align: center; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: var(--font);
  border-radius: 5px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
  text-decoration: none;
  line-height: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Header */

.header {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  padding: 0 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.logo svg {
  height: 36px;
  width: auto;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 150ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--heading);
}

.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: #fff;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text);
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin-right: -0.5rem;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Hero */

.hero {
  padding: 6rem 0;
  background: var(--surface);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.0625rem;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
}

/* Cards */

.card {
  background: var(--surface);
  border-radius: 6px;
  padding: 2rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p:last-child {
  margin-bottom: 0;
}

/* Grid layouts */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Stats bar */

.stats-bar {
  background: var(--heading);
  color: #fff;
  padding: 6rem 0;
}

.stats-bar .grid-3 {
  text-align: center;
}

.stats-bar h3 {
  color: #fff;
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.stats-bar p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* Service sections */

.service-section h2 {
  margin-bottom: 1rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.check-list li {
  margin-bottom: 0.5rem;
  display: flex;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.check-list li::before {
  content: '✓';
  color: var(--primary);
  margin-right: 0.625rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Forms */

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(204, 34, 34, 0.08);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer */

.footer {
  background: #111111;
  color: #9CA3AF;
  padding: 4rem 0 2rem;
}

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

.footer h4 {
  color: #fff;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 0;
  color: #9CA3AF;
}

.footer-brand .brand-name {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.footer-brand svg {
  height: 28px;
  margin-bottom: 1rem;
  display: block;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.625rem;
}

.footer-links a {
  color: #9CA3AF;
  font-size: 0.9375rem;
  transition: color 150ms ease;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #1F2937;
  padding-top: 2rem;
  font-size: 0.8125rem;
  color: #6B7280;
}

/* Cookie banner */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--surface);
  padding: 0.875rem 1.5rem;
  border-top: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  font-size: 0.8125rem;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Utility */

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Responsive */

@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }

  .hero { padding: 3rem 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .grid-3 { grid-template-columns: 1fr; gap: 1.25rem; }
  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .grid-2x2 { grid-template-columns: 1fr; gap: 1.25rem; }

  .section { padding: 3rem 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--surface);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }

  .header .container { flex-wrap: nowrap; }
  .mobile-menu-btn { display: flex; margin-left: auto; }
  .nav-links.show { display: flex; }

  .nav-links a {
    width: 100%;
    text-align: center;
  }

  .nav-links .btn {
    justify-content: center;
  }

  .stats-bar { padding: 3rem 0; }
  .stats-bar .grid-3 { gap: 1.5rem; }

  .form-control {
    min-height: 44px;
    font-size: 1rem;
  }

  .cookie-banner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}
