/* BrewMint Digital Styles - Professional Blue & Dark Theme */

/* CSS Custom Properties */
:root {
  /* Colors - Blue Scheme & Dark Mode Default */
  --primary: #3b82f6; /* Blue 500 */
  --primary-soft: #60a5fa; /* Blue 400 */
  --accent: #2563eb; /* Blue 600 */
  --accent-soft: #1e40af; /* Blue 800 (for subtle backgrounds) */
  
  /* Text Colors */
  --ink: #f1f5f9; /* Slate 100 (White-ish) */
  --ink-secondary: #cbd5e1; /* Slate 300 (Light Grey) */
  
  /* Backgrounds */
  --white: #0f172a; /* Slate 900 (Dark Navy Background) */
  --surface-alt: #1e293b; /* Slate 800 (Cards/Sections) */
  
  /* Typography */
  --font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-size-base: 16px;

  /* Spacing */
  --container-max-width: 1280px;
  --section-padding-y: 4rem;
  --grid-gap: 1.5rem;

  /* Border radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--white);
}

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

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

button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Section */
.section {
  padding: var(--section-padding-y) 0;
}

@media (min-width: 640px) {
  .section {
    padding: 5rem 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 6rem 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  min-height: 44px;
  min-width: 44px;
}

.btn:focus-visible {
  outline: none;
  ring: 2px;
  ring-offset: 2px;
}

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

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

.btn-primary:focus-visible {
  ring-color: var(--primary);
}

.btn-secondary {
  background-color: transparent;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--ink);
}

.btn-dark {
  background-color: var(--ink);
  color: var(--white);
}

.btn-dark:hover {
  background-color: #ffffff;
  color: #000000;
}

.btn-link {
  color: var(--primary-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 0.5rem 0;
}

.btn-link:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Cards */
.card {
  border-radius: var(--radius-xl);
  background-color: var(--surface-alt);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(15, 23, 42, 0.85); /* Dark Navy with opacity */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-weight: 500;
  color: var(--ink-secondary);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--primary-soft);
}

.cta-btn {
  display: none;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .cta-btn {
    display: inline-flex;
  }

  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Navigation */
@media (max-width: 767px) {
  .nav-open {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--surface-alt);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
}

/* Hero Section */
.hero {
  /* Dark Blue Gradient */
  background: radial-gradient(circle at 20% 10%, rgba(37, 99, 235, 0.15) 0%, transparent 35%),
              radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 30%);
  padding: 6rem 0 4rem;
}

.hero-content {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.hero-headline {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero-headline {
    font-size: 4rem;
  }
}

.hero-subheadline {
  font-size: 1.125rem;
  color: var(--ink-secondary);
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }
}

.hero-visual {
  max-width: 80rem;
  margin: 0 auto;
}

.hero-mock {
  background-color: var(--surface-alt);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.mock-browser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mock-dots {
  display: flex;
  gap: 0.5rem;
}

.mock-dots span {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
}

.mock-dots span:first-child {
  background-color: #ef4444; /* Red */
}

.mock-dots span:nth-child(2) {
  background-color: #f59e0b; /* Amber */
}

.mock-dots span:last-child {
  background-color: #22c55e; /* Green */
}

.mock-url {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
}

.mock-content {
  padding: 2rem;
}

.mock-header {
  height: 3rem;
  background: linear-gradient(90deg, var(--accent-soft) 0%, var(--primary-soft) 100%);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.mock-hero {
  height: 8rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  opacity: 0.4;
}

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

.mock-section {
  height: 4rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
}

/* Trust Bar */
.trust-bar {
  background-color: var(--surface-alt);
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-title {
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-secondary);
  margin-bottom: 2rem;
  opacity: 0.6;
}

.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-logo {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-secondary);
  opacity: 0.5;
  letter-spacing: 0.1em;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-kicker {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
}

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

.section-intro {
  font-size: 1.125rem;
  color: var(--ink-secondary);
  max-width: 36rem;
  margin: 0 auto;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background-color: rgba(59, 130, 246, 0.1); /* Blue tint */
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  color: var(--primary-soft);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1rem;
}

.service-copy {
  color: var(--ink-secondary);
  margin-bottom: 1.5rem;
}

.service-bullets {
  text-align: left;
  color: var(--ink-secondary);
  opacity: 0.8;
}

.service-bullets li {
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.service-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Work Grid */
.work-grid {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.work-card {
  padding: 0;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.work-card:hover {
  transform: translateY(-4px);
}

.work-image {
  aspect-ratio: 16 / 9;
  background-color: rgba(255, 255, 255, 0.05);
  position: relative;
}

.work-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--ink-secondary);
  opacity: 0.5;
}

.work-content {
  padding: 1.5rem;
}

.work-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.work-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.work-result {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  font-weight: 500;
}

/* Process */
.process-steps {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step {
  text-align: center;
  padding: 2rem 1rem;
}

.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.process-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.process-copy {
  color: var(--ink-secondary);
  font-size: 0.875rem;
}

/* Testimonials */
.testimonials .section-header {
  margin-bottom: 2rem;
}

.testimonial-card {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  background-color: var(--surface-alt);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.testimonial-quote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 2rem;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .testimonial-quote {
    font-size: 1.5rem;
  }
}

.testimonial-author {
  display: block;
  font-style: normal;
}

.testimonial-author strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.testimonial-author span {
  color: var(--ink-secondary);
  font-size: 0.875rem;
}

/* CTA Band */
.cta-band .container {
  max-width: 48rem;
}

.cta-content {
  text-align: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(30, 64, 175, 0.2) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 3rem 2rem;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.2;
}

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

.cta-sub {
  font-size: 1.125rem;
  color: var(--ink-secondary);
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .cta-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* Footer */
.footer {
  background-color: #020617; /* Very Dark Slate */
  color: var(--ink);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
  }
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

@media (min-width: 768px) {
  .footer-cols {
    gap: 4rem;
  }
}

.footer-col-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-soft);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--ink-secondary);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white); /* Wait, white var is dark now. Hardcode white here. */
  color: #ffffff;
}

.footer-legal {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-legal p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}

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

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Smooth scroll behavior */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Print styles - ensure high contrast for paper */
@media print {
  .header,
  .footer,
  .cta-band {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  .card, .hero, .section {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
}