/**
 * SolidBooked Website Styles
 * Design Philosophy: Clean, breathable, typography-driven
 * Light aesthetic with brand blue accents
 */

/* ============================================
   CSS VARIABLES & DESIGN TOKENS
   ============================================ */

:root {
  /* Color Palette - Clean Light Theme */
  --ink: #1a1a1a;
  --ink-light: #4a4a4a;
  --paper: #ffffff;              /* Pure white background */
  --paper-soft: #f8f9fa;         /* Soft gray for cards */
  --accent: #2563eb;             /* Brand blue */
  --accent-hover: #1d4ed8;       /* Darker blue on hover */
  --accent-soft: #3b82f6;        /* Softer blue for headings */
  --border: #e5e5e5;

  /* Typography - High-performance system stack */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-size-base: 18px;
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --line-height-base: 1.65;      /* Improved readability */
  --line-height-tight: 1.2;

  /* Spacing (8px base grid) - More generous */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 72px;             /* Increased from 64px */
  --space-3xl: 120px;            /* Increased from 96px */

  /* Layout - Optimized for readability */
  --content-max: 1120px;
  --text-max: 720px;             /* Optimal line length */
  --border-radius: 8px;          /* Slightly softer */

  /* Transitions */
  --transition-speed: 200ms;
  --transition-easing: ease-out;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-base);
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-md);
  color: var(--accent-soft);     /* Brand blue for headings */
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--space-md);
  max-width: var(--text-max);
}

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

strong {
  font-weight: var(--font-weight-semibold);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-speed) var(--transition-easing);
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.container {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

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

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

.text-max {
  max-width: var(--text-max);
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100;
}

.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: var(--space-sm) var(--space-md);
  background: var(--accent);
  color: white;
  text-decoration: none;
  overflow: visible;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
  transition: box-shadow var(--transition-speed) var(--transition-easing);
}

header.scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.logo {
  font-weight: var(--font-weight-semibold);
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

nav {
  display: flex;
  gap: var(--space-lg);
}

nav a {
  color: var(--ink-light);
  font-size: 0.95rem;
  transition: color var(--transition-speed) var(--transition-easing);
}

nav a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--ink);
  cursor: pointer;
  padding: var(--space-xs);
}

/* ============================================
   HERO SECTION - Typography-Driven Impact
   ============================================ */

.hero {
  padding-top: calc(var(--space-3xl) + var(--space-lg));
  padding-bottom: var(--space-3xl);
  background-color: var(--paper);
}

.hero h1 {
  margin-bottom: var(--space-lg);
  max-width: 900px;
  font-weight: var(--font-weight-bold);
}

.hero .subheadline {
  font-size: 1.25rem;
  color: var(--ink-light);
  margin-bottom: var(--space-xl);
  max-width: var(--text-max);
  line-height: 1.6;
}

.hero .supporting {
  font-size: 0.95rem;
  color: var(--ink-light);
  margin-top: var(--space-md);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: 18px 36px;
  background-color: var(--accent);
  color: white;
  font-weight: var(--font-weight-semibold);
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed) var(--transition-easing);
  text-decoration: none;
  font-size: 1.05rem;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
}

.btn:hover {
  background-color: var(--accent-hover);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}

.btn-secondary:hover {
  background-color: var(--accent);
  color: white;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
  font-size: 0.875rem;           /* Increased from 0.8rem for readability */
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  font-weight: var(--font-weight-semibold);
}

/* ============================================
   PROBLEM SECTION
   ============================================ */

.pain-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

.pain-point h3 {
  font-size: 1.35rem;            /* Increased from 1.125rem for better hierarchy */
  margin-bottom: var(--space-sm);
}

.pain-point p {
  color: var(--ink-light);
  font-size: 1rem;
  line-height: 1.7;
}

/* ============================================
   SOLUTION SECTION
   ============================================ */

.solution-content p {
  max-width: var(--text-max);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ============================================
   SERVICES SECTION - Clean Card Design
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.service-card {
  background-color: var(--paper-soft);
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  transition: all var(--transition-speed) var(--transition-easing);
}

.service-card:hover {
  background-color: #f1f3f5;
  border-color: var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.service-card .card-label {
  font-size: 0.85rem;
  color: var(--ink-light);
  font-style: italic;
  margin-bottom: var(--space-md);
}

.service-card h3 {
  margin-bottom: var(--space-md);
  font-size: 1.5rem;             /* Reduced from 1.75rem for better proportion */
  color: var(--ink);
}

.service-card .description {
  color: var(--ink-light);
  margin-bottom: var(--space-md);
  font-size: 1rem;
  line-height: 1.7;
}

.service-card .price {
  font-size: 2rem;               /* Reduced from 2.25rem - still prominent but balanced */
  font-weight: var(--font-weight-bold);
  color: var(--accent);
  margin: var(--space-lg) 0;
  display: block;
}

.service-card .includes {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.service-card .includes h4 {
  font-size: 0.875rem;           /* Increased from 0.8rem for readability */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: var(--space-sm);
  font-weight: var(--font-weight-semibold);
}

.service-card ul {
  list-style: none;
  padding: 0;
}

.service-card ul li {
  padding-left: var(--space-md);
  position: relative;
  margin-bottom: var(--space-sm);
  color: var(--ink-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-card ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  font-weight: bold;
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
}

.service-card .btn {
  width: 100%;
  margin-top: var(--space-lg);
  text-align: center;
}

/* ============================================
   WHO THIS IS FOR SECTION
   ============================================ */

.who-content {
  max-width: var(--text-max);
}

.industries {
  text-align: center;
  color: var(--ink-light);
  font-size: 1rem;
  margin: var(--space-xl) 0;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  line-height: 1.8;
}

.qualifying {
  margin-top: var(--space-xl);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-content {
  max-width: var(--text-max);
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.75;
}

.trust-signals {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--ink-light);
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-content {
  max-width: var(--text-max);
  margin-bottom: var(--space-xl);
}

.cta-content p {
  font-size: 1.05rem;
  line-height: 1.75;
}

.cta-actions {
  margin-top: var(--space-lg);
}

.cta-actions .btn {
  margin-bottom: var(--space-md);
}

.cta-actions .alternative {
  color: var(--ink-light);
  font-size: 0.95rem;
}

.cta-actions .alternative a {
  color: var(--accent);
  text-decoration: underline;
}

/* ============================================
   FORM CONTAINER
   ============================================ */

.form-container {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-container iframe {
  display: block;
  border: none;
  width: 100%;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background-color: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-2xl) 0;
  font-size: 0.9rem;
}

footer .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

footer span {
  opacity: 0.5;
}

/* ============================================
   DESKTOP OPTIMIZATIONS (1024px+)
   ============================================ */

@media (min-width: 1024px) {
  :root {
    --font-size-base: 18px;
    --line-height-base: 1.65;
  }

  /* Hero enlarged on desktop for impact but proportionate */
  .hero h1 {
    font-size: 3.5rem;           /* Reduced from 4.5rem - impactful but balanced */
    line-height: 1.15;           /* Slightly more breathing room */
    letter-spacing: -0.025em;
  }

  .hero .subheadline {
    font-size: 1.3rem;           /* Slightly reduced to match h1 adjustment */
  }

  /* Section spacing more generous on desktop */
  .section {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet (641px - 1023px) */
@media (max-width: 1023px) {
  :root {
    --font-size-base: 17px;
    --space-3xl: 80px;
  }

  h1 {
    font-size: 2.5rem;           /* Reduced from 2.75rem */
  }

  h2 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2.75rem;          /* Reduced from 3rem */
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .pain-points {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .service-card .price {
    font-size: 1.85rem;          /* Reduced from 2rem for tablet */
  }
}

/* Mobile (up to 640px) */
@media (max-width: 640px) {
  :root {
    --font-size-base: 16px;
    --space-2xl: 48px;
    --space-3xl: 64px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }

  /* Mobile Navigation */
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    gap: 0;
    padding: var(--space-3xl) var(--space-lg);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    transition: right 300ms var(--transition-easing);
    z-index: 60;
  }

  nav.active {
    right: 0;
  }

  nav a {
    padding: var(--space-md) 0;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle {
    display: block;
  }

  /* Mobile overlay */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms var(--transition-easing);
    z-index: 40;
  }

  .nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    padding-top: var(--space-2xl);
  }

  .hero .subheadline {
    font-size: 1.125rem;
  }

  .service-card .price {
    font-size: 1.75rem;
  }

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

  .btn {
    width: 100%;
    text-align: center;
  }

  .pain-points {
    gap: var(--space-lg);
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  header,
  footer,
  .nav-toggle,
  .btn {
    display: none;
  }

  body {
    background-color: white;
    color: black;
  }

  .section {
    page-break-inside: avoid;
  }

  h1, h2, h3, h4, h5, h6 {
    color: black;
  }
}
