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

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

:root {
    /* Color palette - modern, professional, trustworthy */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary-color: #0f172a;
    --accent-color: #3b82f6;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    --bg-blue-light: #eff6ff;
    --bg-blue-subtle: #f0f9ff;
    --bg-slate: #e2e8f0; /* slightly darker slate so sections pop more */
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --error-color: #ef4444;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.16);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 200ms ease-in-out;
    --transition-slow: 300ms ease-in-out;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    position: relative;
    padding-bottom: 0.9rem;
}

/* accent underline under section headings */
h2::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 64px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0.85;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

ul, ol {
    margin-bottom: var(--spacing-md);
}

li {
    margin-bottom: var(--spacing-sm);
}

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

/* 
   SECTION COLOR SCHEME (for visual rhythm):
   - Hero: Light blue gradient
   - Problem: Soft light gray
   - Services: Slate gradient with white cards
   - Sprint: Light split gradient
   - Workflows: Blue subtle tint
   - Process: White with subtle top border
   - Results: Slate gradient with white cards
   - About: Light gray
   - FAQ: Blue subtle tint
   - Contact: Gradient slate to white
   - Footer: Dark navy
*/

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-3xl) 0;
    position: relative;
}

/* subtle divider between sections */
.section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.0), rgba(148, 163, 184, 0.75), rgba(148, 163, 184, 0.0));
    opacity: 0.6;
}

/* ==========================================
   NAVIGATION
   ========================================== */

/* Base nav bar (all screen sizes) */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem var(--spacing-lg);
}

/* Brand */
.logo {
  font-size: 1.05rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
}

.logo:hover {
  color: var(--primary-color);
}

/* Mobile toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  padding: 0;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  width: 1.4rem;
  height: 2px;
  background-color: #0f172a;
  transition: all var(--transition-base);
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -0.4rem;
}

.hamburger::after {
  top: 0.4rem;
}

/* X state when menu open */
.nav-toggle[aria-expanded="true"] .hamburger {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Mobile menu */
.nav-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  padding: 0.75rem var(--spacing-lg) var(--spacing-md);
  list-style: none;
  gap: 0.25rem;
}

.nav-menu.active {
  display: flex;
}

/* Links (shared) */
.nav-link {
  display: block;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-base);
}

/* CTA in nav (shared) */
.nav-cta {
  margin-top: 0.25rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background-color: var(--primary-color);
  color: #ffffff;
  font-weight: var(--font-weight-semibold);
  text-align: center;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background-color: var(--primary-dark);
  color: #ffffff;
}

/* ==========================================
   DESKTOP NAV
   ========================================== */

@media (min-width: 900px) {
  .nav-container {
    padding-block: 0.9rem;
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .nav-link {
    padding: 0;
    position: relative;
    font-size: 0.95rem;
  }

  .nav-link:focus {
    outline: none; /* cancel the global :focus-visible outline for nav links */
    }

  .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background-color: var(--primary-color);
    transition: width var(--transition-base);
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    color: var(--text-primary);
  }

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

  /* prevent extra outline on nav links */
  .nav-link:focus-visible {
    outline: none;
  }

  .nav-cta {
    margin-top: 0;
    padding: 0.55rem 1.3rem;
    font-size: 0.9rem;
  }
}

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

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    text-align: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-primary);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    padding: var(--spacing-3xl) 0;
    background: radial-gradient(circle at 0% 0%, #e0f2fe 0%, #eff6ff 40%, #f8fafc 90%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -15%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 60%);
    pointer-events: none;
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.hero-subheading {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.hero-benefits {
    list-style: none;
    margin-bottom: var(--spacing-xl);
}

.hero-benefits li {
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.hero-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: var(--font-weight-bold);
    font-size: 1.25rem;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    border-radius: 1.25rem;
    box-shadow: var(--shadow-lg);
    background-color: #eff6ff;
}

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

.problem-section {
    background: radial-gradient(circle at top left, #f9fafb 0%, var(--bg-secondary) 60%, #e5e7eb 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.problem-content {
    max-width: 48rem;
    margin: 0 auto;
}

.problem-list {
    list-style: none;
    margin: var(--spacing-xl) 0;
}

.problem-list li {
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.problem-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
}

.problem-conclusion {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    margin-top: var(--spacing-xl);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */

.services-section {
    background: linear-gradient(180deg, var(--bg-slate) 0%, #f8fafc 100%);
}

.section-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 48rem;
    margin: 0 auto var(--spacing-2xl);
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.service-card {
    background-color: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(148, 163, 184, 0.25);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.3);
}

.service-card h3 {
    color: var(--primary-color);
}

/* ==========================================
   SPRINT SECTION
   ========================================== */

.sprint-section {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 40%, #edf2ff 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.sprint-intro {
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
}

.sprint-steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    margin: var(--spacing-2xl) 0;
}

.sprint-step {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 1rem;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.85);
}

.step-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #bfdbfe 0%, var(--primary-color) 100%);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    flex-shrink: 0;
}

.sprint-step h3 {
    color: var(--text-primary);
}

.sprint-pricing {
    background-color: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    margin-top: var(--spacing-2xl);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.sprint-pricing h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.sprint-pricing .btn {
    margin-top: var(--spacing-lg);
}

/* ==========================================
   WORKFLOWS SECTION
   ========================================== */

.workflows-section {
    background: radial-gradient(circle at top right, #e0f2fe 0%, var(--bg-blue-subtle) 60%, #e0f2fe 100%);
}

.workflow-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.workflow-card {
    background-color: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.workflow-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.workflow-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.workflow-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.workflow-diagram {
    background: #f5f7ff;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    text-align: left;
}

.workflow-diagram img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.workflow-caption {
    font-size: 0.85rem;
    color: #475569;
    margin: 0;
}

.workflow-diagram p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    font-family: monospace;
    line-height: 1.8;
}

/* ==========================================
   PROCESS SECTION
   ========================================== */

.process-section {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-lg);
    background-color: var(--bg-secondary);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

.step-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #bfdbfe 0%, var(--primary-color) 100%);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
}

.process-step h3 {
    color: var(--text-primary);
}

/* ==========================================
   RESULTS SECTION
   ========================================== */

.results-section {
    background: linear-gradient(180deg, var(--bg-slate) 0%, #f8fafc 100%);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.testimonial {
    background-color: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--accent-color);
}

.testimonial p {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.testimonial cite {
    display: block;
    font-style: normal;
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: var(--font-weight-medium);
}

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

.about-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.about-content {
    max-width: 48rem;
    margin: 0 auto;
}

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

.why-n8n {
    background-color: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: 1rem;
    margin-top: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.why-n8n h3 {
    color: var(--primary-color);
}

.why-n8n ul {
    list-style: none;
}

.why-n8n li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: var(--spacing-md);
}

.why-n8n li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
}

/* ==========================================
   FAQ SECTION
   ========================================== */

.faq-section {
    background: radial-gradient(circle at top left, #e0f2fe 0%, var(--bg-blue-subtle) 55%, #eff6ff 100%);
}

.faq-list {
    max-width: 48rem;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-lg);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item h3 {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.faq-item p {
    margin-bottom: 0;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */

.contact-section {
    background: linear-gradient(135deg, #e2e8f0 0%, var(--bg-primary) 55%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -5%;
    width: 280px;
    height: 280px;
    background-image: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.contact-section::after {
    content: '';
    position: absolute;
    bottom: -15%;
    right: -10%;
    width: 260px;
    height: 260px;
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-form {
    max-width: 40rem;
    margin: 0 auto;
    background-color: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.required {
    color: var(--error-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
    background-color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group textarea {
    resize: vertical;
}

.error-message {
    display: none;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

.error-message.active {
    display: block;
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--error-color);
    background-color: #fef2f2;
}

.contact-form .btn {
    width: 100%;
    margin-top: var(--spacing-md);
}

.calendly-link {
    text-align: center;
    margin-top: var(--spacing-lg);
    color: var(--text-secondary);
}

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

.footer {
    background: radial-gradient(circle at top, #020617 0%, #020617 40%, #020617 100%);
    color: var(--bg-secondary);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand h3 {
    color: var(--bg-primary);
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    color: var(--bg-secondary);
}

.footer-nav h4,
.footer-social h4 {
    color: var(--bg-primary);
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
}

.footer-nav ul {
    list-style: none;
    margin-bottom: 0;
}

.footer-nav li {
    margin-bottom: var(--spacing-sm);
}

.footer-nav a,
.footer-social a {
    color: var(--bg-secondary);
    transition: color var(--transition-base);
}

.footer-nav a:hover,
.footer-social a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    padding-top: var(--spacing-lg);
    text-align: center;
}

.footer-bottom p {
    color: var(--bg-secondary);
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* ==========================================
   RESPONSIVE - TABLET (768px and up)
   ========================================== */

@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        box-shadow: none;
        padding: 0;
        gap: var(--spacing-md);
    }
    
    .hero-container {
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-2xl);
    }
    
    .hero-content {
        flex: 1;
    }
    
    .hero-image {
        flex: 1;
    }
    
    .hero-ctas {
        flex-direction: row;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* ==========================================
   RESPONSIVE - DESKTOP (1024px and up)
   ========================================== */

@media (min-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    .section {
        padding: 5rem 0;
    }
    
    .hero {
        padding: 5rem 0;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .testimonial-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .sprint-step {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* ==========================================
   ACCESSIBILITY & UTILITY CLASSES
   ========================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

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

/* Smooth scrolling offset for fixed nav */
section[id] {
    scroll-margin-top: 5rem;
}



/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */

.toast-container {
    position: fixed;
    top: var(--spacing-lg);
    right: var(--spacing-md);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    min-width: 320px;
    max-width: 420px;
    padding: var(--spacing-md);
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18), 0 8px 20px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.3);
    pointer-events: auto;
    transform: translateX(calc(100% + var(--spacing-lg)));
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(calc(100% + var(--spacing-lg)));
    opacity: 0;
}

/* Toast icon */
.toast-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
}

.toast-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Success toast */
.toast.toast-success .toast-icon {
    background-color: #dcfce7;
}

.toast.toast-success .toast-icon svg {
    color: var(--success-color);
}

.toast.toast-success {
    border-left: 4px solid var(--success-color);
}

/* Error toast */
.toast.toast-error .toast-icon {
    background-color: #fee2e2;
}

.toast.toast-error .toast-icon svg {
    color: var(--error-color);
}

.toast.toast-error {
    border-left: 4px solid var(--error-color);
}

/* Toast content */
.toast-content {
    flex: 1;
    padding-top: 0.125rem;
}

.toast-title {
    font-weight: var(--font-weight-semibold);
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Toast close button */
.toast-close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    background-color: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-light);
    transition: background-color var(--transition-fast), color var(--transition-fast);
    margin-left: var(--spacing-xs);
}

.toast-close:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.toast-close svg {
    width: 1rem;
    height: 1rem;
}

/* Toast progress bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 4px;
    right: 0;
    height: 3px;
    background-color: var(--bg-tertiary);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    animation: toast-progress 5s linear forwards;
}

.toast.toast-success .toast-progress-bar {
    background-color: var(--success-color);
}

.toast.toast-error .toast-progress-bar {
    background-color: var(--error-color);
}

@keyframes toast-progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Mobile adjustments for toast */
@media (max-width: 480px) {
    .toast-container {
        left: var(--spacing-sm);
        right: var(--spacing-sm);
        top: var(--spacing-sm);
    }
    
    .toast {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}

/* ==========================================
   FORM BUTTON LOADING STATE
   ========================================== */

.btn .btn-loading {
    display: none;
}

.btn:disabled .btn-text {
    display: none;
}

.btn:disabled .btn-loading {
    display: inline;
}
