/* ==========================================================================
   SAGANIAGA DESIGN SYSTEM - STYLE.CSS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Colors */
  --primary: #063097;
  --primary-hover: #05267a;
  --background: #FFFFFF;
  --surface: #FAFBFC;
  --highlight: #E7EEFF;
  --border: #EEF2F7;
  --text: #0F172A;
  --muted: #64748B;
  --white: #FFFFFF;

  /* Typography */
  --font-heading: 'Hanken Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Geometry & Effects */
  --radius: 24px;
  --radius-sm: 12px;
  --radius-pill: 99px;
  --shadow-card: 0 8px 32px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 12px 48px rgba(15, 23, 42, 0.08);
  --border-style: 1px solid var(--border);
  
  /* Layout */
  --container-width: 1280px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--muted);
}

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

ul {
  list-style: none;
}

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

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.grid {
  display: grid;
  gap: 32px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-12 { gap: 48px; }

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

/* ==========================================================================
   COMPONENTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-family: var(--font-body);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 16px;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 48, 151, 0.2);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--text);
  border: var(--border-style);
}

.btn-secondary:hover {
  background-color: var(--highlight);
  border-color: var(--highlight);
  color: var(--primary);
  transform: translateY(-2px);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background-color: var(--highlight);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.card {
  background-color: var(--white);
  border: var(--border-style);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card-surface {
  background-color: var(--surface);
  border: var(--border-style);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.card-surface:hover {
  background-color: var(--white);
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   SPECIFIC SECTIONS
   ========================================================================== */

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: var(--border-style);
  padding: 20px 0;
  transition: var(--transition);
}

.navbar .logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.navbar .logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
}

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

/* Hero Section */
.hero {
  padding-top: 200px;
  padding-bottom: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(231,238,255,1) 0%, rgba(255,255,255,0) 70%);
  z-index: -1;
  border-radius: 50%;
}

.hero-content h1 {
  font-size: 120px;
  margin-bottom: 24px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
  max-width: 1100px;
}

.hero-content p {
  font-size: 20px;
  margin: 0 auto 40px auto;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.hero-visual .card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 160px;
}

.hero-visual .card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.hero-visual .card p {
  font-size: 14px;
  margin: 0;
}

.icon-wrapper {
  width: 48px;
  height: 48px;
  background-color: var(--highlight);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* Problems & Solutions */
.problem-solution {
  background-color: var(--surface);
  border-top: var(--border-style);
  border-bottom: var(--border-style);
}

.ps-header {
  margin-bottom: 40px;
}

.ps-header h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.problem-card, .solution-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background-color: var(--white);
  border: var(--border-style);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-weight: 500;
  transition: var(--transition);
}

.problem-card:hover {
  border-color: #ffcdd2;
  box-shadow: 0 4px 12px rgba(255, 205, 210, 0.2);
}

.solution-card:hover {
  border-color: var(--highlight);
  box-shadow: 0 4px 12px rgba(231, 238, 255, 0.5);
}

.problem-icon {
  color: #ef4444;
}

.solution-icon {
  color: var(--primary);
}

/* Process Section */
.process-header {
  text-align: center;
  margin-bottom: 64px;
}

.process-header h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

.process-header p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.process-card {
  background: var(--white);
  border: var(--border-style);
  border-radius: var(--radius-sm);
  padding: 32px 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  text-align: left;
}

.process-step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
}

.badge-sm {
  background: #D1FAE5;
  color: #059669;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.process-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.process-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

@media (min-width: 1024px) {
  .process-card:not(:last-child)::after {
    content: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23cbd5e1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg>');
    position: absolute;
    top: 50%;
    right: -12px;
    transform: translate(50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }
}

/* Discovery Sprint Section */
.discovery-sprint {
  background-color: var(--surface);
}

.ds-header {
  text-align: center;
  margin-bottom: 64px;
}

.ds-header h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

.ds-header p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.ds-deliverables {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.deliverable-item {
  display: flex;
  gap: 16px;
}

.deliverable-item .icon-wrapper {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-bottom: 0;
}

.deliverable-item h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.deliverable-item p {
  font-size: 14px;
}

.pricing-note {
  font-size: 13px;
  color: var(--muted);
}

/* Portfolio Section */
.portfolio-header {
  margin-bottom: 64px;
}

.portfolio-header h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

.portfolio-header p {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.portfolio-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.portfolio-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 24px;
  padding-bottom: 24px; /* Space for shadow */
  -ms-overflow-style: none;
  scrollbar-width: none;
  width: 100%;
}

.portfolio-slider::-webkit-scrollbar {
  display: none;
}

.slider-btn {
  position: absolute;
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: var(--border-style);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.slider-btn:hover {
  background: var(--surface);
  transform: scale(1.05);
}

.slider-btn.prev-btn {
  left: -24px;
}

.slider-btn.next-btn {
  right: -24px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dots .dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

.portfolio-card {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: grid;
  grid-template-columns: 2fr 3fr;
  background: var(--white);
  border: var(--border-style);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease;
}

.portfolio-card:hover {
  box-shadow: var(--shadow-hover);
}

.portfolio-visual {
  background: linear-gradient(135deg, #E0E7FF 0%, #EFF6FF 100%);
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 400px;
  border-right: var(--border-style);
}

.portfolio-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: var(--white);
  color: #059669;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.portfolio-illustration {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
}

.portfolio-illustration svg {
  width: 100%;
  max-width: 400px;
  height: auto;
  filter: drop-shadow(0 12px 32px rgba(6, 48, 151, 0.08));
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.portfolio-card:hover .portfolio-illustration svg {
  transform: translateY(-8px) scale(1.02);
}

.portfolio-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
}

.portfolio-content h3 {
  font-size: 32px;
  margin-bottom: 16px;
}

.portfolio-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.portfolio-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.feat-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.feat-item svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.feat-item span {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}

.portfolio-impact {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: var(--border-style);
}

.impact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.impact-item strong {
  color: #059669;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.impact-item span {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

.portfolio-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.stack-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.stack-tag {
  font-size: 12px;
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: var(--border-style);
}

/* Final CTA */
.final-cta {
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}

.final-cta h2 {
  color: var(--white);
  font-size: 48px;
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta p {
  color: var(--highlight);
  font-size: 20px;
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

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

.btn-white:hover {
  background-color: var(--surface);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  color: var(--primary);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline-white:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background-color: var(--white);
  padding: 80px 0 40px;
  border-top: var(--border-style);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand .logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  display: inline-block;
}

.footer-brand .logo img {
  height: 48px;
  width: auto;
}

.footer-brand p {
  margin-bottom: 8px;
}

.footer h4 {
  font-size: 16px;
  margin-bottom: 24px;
  color: var(--text);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 32px;
  border-top: var(--border-style);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 14px;
}

/* ==========================================================================
   RESPONSIVE (TABLET)
   ========================================================================== */
@media (max-width: 1279px) {
  .container {
    padding: 0 32px;
  }
  
  .hero-content h1 {
    font-size: 48px;
  }
  
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ds-deliverables {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-card {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-content {
    padding: 32px;
  }
}

/* ==========================================================================
   RESPONSIVE (MOBILE)
   ========================================================================== */
@media (max-width: 767px) {
  .container {
    padding: 0 24px;
  }
  
  .section {
    padding: 64px 0;
  }
  
  .grid-2, .grid-3, .grid-4, .process-grid, .ds-deliverables {
    grid-template-columns: 1fr;
  }
  
  .nav-links, .nav-cta {
    display: none;
  }
  
  .hero {
    padding-top: 140px;
    padding-bottom: 64px;
  }
  
  .hero-content h1 {
    font-size: 40px;
  }
  
  .hero-content p {
    font-size: 16px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }

  .ps-header h2, .process-header h2, .ds-header h2, .portfolio-header h2, .final-cta h2 {
    font-size: 28px;
  }
  
  .card {
    padding: 24px;
  }

  .portfolio-card {
    grid-template-columns: 1fr;
  }

  .portfolio-slider-wrapper .slider-btn {
    display: none; /* Hide arrows on mobile to favor swiping */
  }

  .portfolio-visual {
    min-height: 240px;
    border-right: none;
    border-bottom: var(--border-style);
    padding: 32px 24px;
  }

  .portfolio-content {
    padding: 32px 24px;
  }

  .portfolio-content h3 {
    font-size: 24px;
  }

  .portfolio-features {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 12px 16px;
    font-size: 14px;
    white-space: nowrap;
  }
  
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
