/* Brail Website Styles */
/* Brand: Warm minimalism, confident whitespace, geometric clarity */
/* v1.2 - Updated header and button styles */

/* ==========================================================================
   Fonts & Variables
   ========================================================================== */

@import url('https://api.fontshare.com/v2/css?f[]=switzer@400,500&display=swap');

:root {
  /* Brand Colors */
  --brail-peach: #FAE1D7;
  --brail-peach-dark: #FFEDE5;
  --brail-charcoal: #212121;
  --brail-white: #FFFFFF;
  --brail-grey: #F3F3F3;
  
  /* Typography */
  --font-family: 'Switzer', -apple-system, BlinkMacSystemFont, sans-serif;
  --letter-spacing: -0.05em;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  
  /* Layout */
  --container-max: 1200px;
  --container-narrow: 720px;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-pill: 100px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  letter-spacing: var(--letter-spacing);
  color: #000000;
  background: var(--brail-peach);
  line-height: 1.5;
}

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

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

/* ==========================================================================
   Typography
   ========================================================================== */

h1 {
  font-size: 50px;
  font-weight: 500;
  letter-spacing: var(--letter-spacing);
  line-height: 1.1;
}

h2 {
  font-size: 45px;
  font-weight: 500;
  letter-spacing: var(--letter-spacing);
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 500;
  letter-spacing: var(--letter-spacing);
  line-height: 1.3;
}

p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 400;
  line-height: 1.6;
}

.body-big {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.5;
}

.body-small {
  font-size: clamp(0.875rem, 1.25vw, 1rem);
  font-weight: 400;
  line-height: 1.6;
}

/* ==========================================================================
   Layout
   ========================================================================== */

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

.container-narrow {
  max-width: var(--container-narrow);
}

section {
  padding: var(--space-2xl) 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  padding: var(--space-md) 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.header-left,
.header-right {
  flex: 1;
}

.header-left {
  display: flex;
  justify-content: flex-start;
}

.header-right {
  display: flex;
  justify-content: flex-end;
}

.header .logo {
  flex: 0 0 auto;
}

.logo img {
  height: 24px;
  width: auto;
}

/* ==========================================================================
   Buttons & Pills
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: var(--letter-spacing);
  border-radius: var(--border-radius-pill);
  cursor: pointer;
  transition: all 0.2s ease-out;
  border: none;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--brail-charcoal);
  color: var(--brail-charcoal);
}

.btn-outline:hover {
  background: var(--brail-charcoal);
  color: var(--brail-white);
}

.btn-white {
  background: var(--brail-white);
  color: #000000;
  border-radius: 5px;
  font-size: 18px;
  letter-spacing: -1px;
  box-shadow: 5px 5px 20px rgba(176, 159, 153, 0.25);
}

.btn-white:hover,
.btn-white:active {
  background: var(--brail-peach-dark);
}

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

.btn-dark:hover {
  opacity: 0.85;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: var(--letter-spacing);
  border-radius: var(--border-radius-pill);
  white-space: nowrap;
}

.pill-dark {
  background: var(--brail-charcoal);
  color: var(--brail-white);
  box-shadow: 5px 5px 10px rgba(176, 159, 153, 0.25);
}

a.pill-dark:hover {
  opacity: 0.85;
}

.pill-light {
  background: var(--brail-grey);
  color: var(--brail-charcoal);
  border: 1.5px solid #DADADA;
  border-radius: 5px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  text-align: center;
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.hero h1 {
  margin-bottom: 40px;
  color: #000000;
}

.hero-subtitle {
  font-size: 25px;
  color: #000000;
  opacity: 0.9;
  margin-bottom: var(--space-lg);
  line-height: 40px;
  letter-spacing: -1.5px;
}

.hero-pills {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ==========================================================================
   Social Proof / Use Cases
   ========================================================================== */

.social-proof {
  padding: var(--space-2xl) 0;
}

.social-proof h2 {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .use-case-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
}

.use-case-card {
  background: var(--brail-white);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
}

.use-case-card:nth-of-type(1) {
  box-shadow: 5px 5px 20px rgba(176, 159, 153, 0.25);
}

.use-case-card:nth-of-type(2) {
  box-shadow: 5px 5px 10px rgba(176, 159, 153, 0.25);
}

.use-case-card h3 {
  margin-bottom: var(--space-sm);
  line-height: 1.35;
  font-size: 30px;
}

.use-case-card .testimonial {
  font-size: 20px;
  color: #000000;
  letter-spacing: -1px;
  opacity: 0.75;
  flex-grow: 1;
  margin-bottom: var(--space-md);
}

.client-logo {
  margin-top: auto;
}

.logo-text {
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.logo-zurich {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.logo-ruter {
  font-weight: 500;
}

.logo-smor {
  font-weight: 700;
}

.logo-thefirm {
  font-weight: 700;
  background: var(--brail-charcoal);
  color: var(--brail-white);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  display: inline-block;
}

.logo-klingit {
  font-weight: 500;
}

.logo-arrow {
  font-size: 1.5rem;
  color: #2563eb;
}

/* ==========================================================================
   How It Works
   ========================================================================== */

.how-it-works {
  padding: var(--space-2xl) 0;
}

.how-it-works h2 {
  text-align: center;
  margin-bottom: var(--space-sm);
}

.how-it-works-subtitle {
  text-align: center;
  font-size: 25px;
  letter-spacing: -1px;
  opacity: 0.85;
  margin-bottom: var(--space-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 600px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  background: var(--brail-charcoal);
  color: var(--brail-white);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--border-radius);
}

.step-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 4px;
}

.step-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.step-item p {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 600px) {
  .step-item {
    padding: var(--space-sm) var(--space-md);
  }
}

/* ==========================================================================
   Future of Brands
   ========================================================================== */

.future-of-brands {
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.future-card {
  background: #FFEDE5;
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.future-card h2 {
  margin-bottom: var(--space-lg);
}

.future-card p {
  margin-bottom: var(--space-md);
  font-size: 25px;
  letter-spacing: -1.5px;
  line-height: 40px;
}

.future-card p:last-of-type {
  margin-bottom: var(--space-lg);
}

.future-placeholders {
  display: flex;
  gap: var(--space-sm);
}

.future-placeholder {
  flex: 1;
  height: 50px;
  background: var(--brail-peach);
  border-radius: var(--border-radius-sm);
}

@media (max-width: 600px) {
  .future-card {
    padding: var(--space-lg);
  }
  
  .future-placeholders {
    flex-direction: column;
  }
  
  .future-placeholder {
    height: 50px;
  }
}

/* ==========================================================================
   Subpage Styles (DAM, AI-Ready Brand Repository)
   ========================================================================== */

.subpage {
  padding: var(--space-lg) 0 var(--space-3xl);
}

.subpage h1 {
  margin-bottom: var(--space-lg);
}

.subpage-intro {
  margin-bottom: var(--space-md);
}

.subpage-intro p {
  margin-bottom: var(--space-md);
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: -1px;
}

.subpage-solution {
  margin-bottom: var(--space-2xl);
}

.subpage-solution p {
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: -1px;
  margin-bottom: var(--space-md);
}

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

.audience-section {
  margin-bottom: var(--space-md);
  padding: 0;
  padding-top: 20px;
}

.audience-section h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: var(--space-xs);
}

.audience-section > p {
  margin-bottom: var(--space-xs);
  opacity: 0.85;
  font-size: 20px;
  letter-spacing: -1px;
}

.audience-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

/* Legacy DAM page styles (for backwards compatibility) */
.dam-page {
  padding: var(--space-lg) 0 var(--space-3xl);
}

.dam-page h1 {
  margin-bottom: var(--space-lg);
}

.dam-intro {
  margin-bottom: var(--space-xl);
}

.dam-intro p {
  margin-bottom: var(--space-md);
}

.dam-solution {
  margin-bottom: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(33, 33, 33, 0.1);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: var(--space-xl) 0;
  text-align: center;
}

.footer .logo img {
  height: 20px;
  margin: 0 auto;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .use-case-card,
  .step-card,
  .btn,
  .pill {
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  }
  
  .use-case-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(33, 33, 33, 0.08);
  }
  
  .step-card:hover {
    transform: translateY(-2px);
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

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

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

/* ==========================================================================
   Mobile Overrides
   ========================================================================== */

@media (max-width: 600px) {
  /* Reduced spacing above sections and h1s */
  section {
    padding: var(--space-lg) 0;
  }
  
  .hero {
    padding: var(--space-lg) 0 var(--space-lg);
  }
  
  .social-proof,
  .how-it-works,
  .future-of-brands {
    padding: var(--space-lg) 0;
  }
  
  .subpage,
  .dam-page {
    padding: var(--space-sm) 0 var(--space-2xl);
  }
  
  /* Reduced font sizes - maintaining ratio */
  h1 {
    font-size: 32px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  h3 {
    font-size: 18px;
  }
  
  .hero-subtitle {
    font-size: 18px;
    line-height: 26px;
    letter-spacing: -0.5px;
  }
  
  .hero-subtitle br {
    display: none;
  }
  
  .how-it-works-subtitle {
    font-size: 18px;
    line-height: 26px;
    letter-spacing: -0.5px;
  }
  
  .how-it-works-subtitle br {
    display: none;
  }
  
  .use-case-card h3 {
    font-size: 20px;
  }
  
  .use-case-card .testimonial {
    font-size: 16px;
  }
  
  .future-card p {
    font-size: 18px;
    line-height: 26px;
    letter-spacing: -0.5px;
  }
  
  .subpage-intro p,
  .subpage-solution p {
    font-size: 16px;
  }
  
  .pill {
    font-size: 0.9375rem;
    padding: 0.4rem 0.875rem;
  }
  
  .step-item p {
    font-size: 16px;
  }
  
  /* Header stacked on mobile */
  .header-inner {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .header-left,
  .header-right {
    flex: none;
    justify-content: center;
  }
  
  .header-left {
    display: none;
  }
  
  .btn-white {
    font-size: 16px;
  }
  
  /* Small body text letter-spacing on mobile */
  .subpage-intro p,
  .subpage-solution p,
  .audience-section > p,
  .step-item p,
  .use-case-card .testimonial {
    letter-spacing: -0.5px;
  }
  
  .audience-section {
    padding-top: 0;
  }
  
  .audience-section > p {
    font-size: 16px;
  }
}
