/* ============================================
   SBI · Starbenindeed — Design System
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body  { font-family: 'Inter', system-ui, -apple-system, sans-serif; background: #f8fafd; color: #0f1729; line-height: 1.6; }
img   { max-width: 100%; height: auto; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }

/* --- Custom Properties --- */
:root {
  --color-bg:           #f8fafd;
  --color-foreground:   #0f1729;
  --color-card:         #ffffff;
  --color-border:       #e2e8f0;

  --color-primary:       #0f1b3d;
  --color-primary-light: #1a2d5a;
  --color-primary-foreground: #f8fafd;

  --color-secondary:     #38bdf8;
  --color-secondary-deep:#0e9fd8;

  --color-accent:        #34d399;
  --color-accent-deep:   #10b981;
  --color-accent-foreground: #0f1729;

  --color-muted:         #94a3b8;
  --color-muted-foreground: #64748b;

  --gradient-hero:  linear-gradient(135deg, #38bdf8 0%, #0e9fd8 50%, #0f1b3d 100%);
  --gradient-navy:  linear-gradient(160deg, #0f1b3d 0%, #09122a 100%);
  --gradient-accent:linear-gradient(135deg, #34d399 0%, #3b82f6 100%);

  --shadow-soft: 0 10px 30px -10px rgba(15, 27, 61, 0.15);
  --shadow-glow: 0 20px 60px -20px rgba(14, 159, 216, 0.35);

  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

/* --- Container --- */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1.5rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600; line-height: 1;
  border: 2px solid transparent; cursor: pointer;
  transition: all 0.25s ease; white-space: nowrap;
}
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-primary {
  background: var(--color-primary); color: var(--color-primary-foreground);
}
.btn-primary:hover { background: var(--color-primary-light); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn-accent {
  background: var(--color-accent); color: var(--color-accent-foreground);
}
.btn-accent:hover { background: var(--color-accent-deep); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn-outline {
  background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3);
  color: var(--color-primary-foreground);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-block { width: 100%; justify-content: center; }
.ml-2 { margin-left: 0.5rem; }

/* --- Section --- */
.section { padding: 5rem 0; }
.section-label {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--color-secondary-deep); margin-bottom: 0.75rem;
}
.section-label--light { color: var(--color-accent); }
.section-title {
  font-size: 1.875rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--color-primary); line-height: 1.1;
}
.section-title--light { color: var(--color-primary-foreground); }
.section-desc {
  margin-top: 1rem; font-size: 1.125rem;
  color: var(--color-muted-foreground); max-width: 36rem;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 253, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
}
.nav-logo-img { width: 2.75rem; height: 2.75rem; object-fit: contain; }
.nav-logo-text { line-height: 1.2; }
.nav-logo-abbr { display: block; font-weight: 800; letter-spacing: -0.02em; color: var(--color-primary); font-size: 1rem; }
.nav-logo-full { display: block; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-muted); }
.nav-links { display: none; gap: 2rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-link {
  font-size: 0.875rem; font-weight: 500; color: rgba(15, 23, 41, 0.7);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--color-primary); }
.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border: none; background: none;
  font-size: 1.25rem; color: var(--color-primary); cursor: pointer;
}
@media (min-width: 768px) { .nav-toggle { display: none; } }

/* Mobile nav open state */
.nav-links.open {
  display: flex; flex-direction: column; position: absolute; top: 4rem;
  left: 0; right: 0; background: var(--color-card); border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.5rem; gap: 1rem; box-shadow: var(--shadow-soft);
  animation: slideDown 0.2s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: var(--gradient-hero);
}
.hero-pattern {
  position: absolute; inset: 0; z-index: -1;
  opacity: 0.25;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-grid {
  display: grid; gap: 3rem; align-items: center;
  padding-top: 5rem; padding-bottom: 6rem;
}
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 1fr; padding-top: 7rem; padding-bottom: 8rem; }
}
.hero-content { color: var(--color-primary-foreground); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.75rem; border-radius: 9999px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.03em;
}
.hero-badge-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--color-accent);
}
.hero-headline {
  margin-top: 1.25rem; font-size: 2.25rem; font-weight: 800;
  line-height: 1.05; letter-spacing: -0.02em;
}
@media (min-width: 768px) { .hero-headline { font-size: 3.75rem; } }
.text-accent { color: var(--color-accent); }
.hero-subtext {
  margin-top: 1.5rem; font-size: 1.125rem;
  color: rgba(248, 250, 253, 0.8); max-width: 36rem;
}
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-stats {
  margin-top: 2.5rem; display: flex; align-items: center; gap: 1.5rem;
  font-size: 0.875rem; color: rgba(248, 250, 253, 0.7);
}
.hero-stat-value {
  display: block; font-size: 1.5rem; font-weight: 700;
  color: var(--color-primary-foreground);
}
.hero-stat-label { display: block; margin-top: 0.125rem; }
.hero-stat-divider {
  width: 1px; height: 2.5rem; background: rgba(255,255,255,0.2);
}
/* --- Hero Slideshow (right side) --- */
.hero-image-wrapper { position: relative; }
.hero-image-glow {
  position: absolute; inset: -1rem; border-radius: var(--radius-xl);
  background: rgba(52, 211, 153, 0.2); filter: blur(32px);
  z-index: 0;
}
.hero-slideshow-small {
  position: relative; border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-glow);
  border: 1px solid rgba(255,255,255,0.2);
  aspect-ratio: 3 / 2; background: var(--color-primary-light);
}
.hero-slideshow-small .hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.8s ease; z-index: 1;
}
.hero-slideshow-small .hero-slide.active {
  opacity: 1; z-index: 2;
}
.hero-slideshow-small .hero-slide-img,
.hero-slideshow-small .hero-image {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-slideshow-small .hero-slide-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
}

/* --- Full-width hero background slideshow --- */
.hero-slideshow {
  position: absolute; inset: 0; z-index: -3; overflow: hidden;
}
.hero-slideshow .hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.2s ease, transform 1.2s ease;
  transform: scale(1.05); z-index: 1;
}
.hero-slideshow .hero-slide.active {
  opacity: 1; transform: scale(1); z-index: 2;
}
.hero-slideshow .hero-slide-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-slideshow .hero-slide-overlay {
  position: absolute; inset: 0; z-index: 2;
}

/* Slideshow arrows */
.hero-slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: white; font-size: 0.875rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s ease; opacity: 0;
}
.hero-slideshow:hover .hero-slide-arrow { opacity: 1; }
.hero-slide-arrow:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
}
.hero-slide-arrow--prev { left: 1.5rem; }
.hero-slide-arrow--next { right: 1.5rem; }

/* Slideshow dots */
.hero-slide-dots {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; gap: 0.5rem;
}
.hero-slide-dot {
  width: 0.625rem; height: 0.625rem; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.35);
  cursor: pointer; transition: all 0.3s ease; padding: 0;
}
.hero-slide-dot.active {
  background: white; width: 1.5rem; border-radius: 0.25rem;
}
.hero-slide-dot:hover { background: rgba(255,255,255,0.7); }

/* Slide counter */
.hero-slide-counter {
  position: absolute; bottom: 1.5rem; right: 1.5rem;
  z-index: 10; font-size: 0.75rem; font-weight: 600;
  color: rgba(255,255,255,0.6); letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

/* --- Slide content overlay area (left text that changes) --- */
.hero-slide-content {
  position: relative; z-index: 1;
}
.hero-headline, .hero-subtext, .hero-badge {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.hero-headline.fade-out, .hero-subtext.fade-out, .hero-badge.fade-out {
  opacity: 0; transform: translateY(8px);
}

.hero-image {
  position: relative; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glow); border: 1px solid rgba(255,255,255,0.2);
  width: 100%; height: auto;
}

@media (max-width: 767px) {
  .hero-slide-arrow { display: none; }
  .hero-slide-dots { bottom: 0.75rem; }
  .hero-slide-dot { width: 0.5rem; height: 0.5rem; }
  .hero-slide-dot.active { width: 1.25rem; }
  .hero-slide-counter { display: none; }
}

/* ============================================
   SERVICES
   ============================================ */
.services .section-header { max-width: 36rem; }
.services-grid {
  margin-top: 3.5rem; display: grid;
  grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  border-radius: var(--radius);
  border: 1px solid var(--color-border); background: var(--color-card);
  overflow: hidden; transition: all 0.3s ease;
}
.service-card:hover {
  border-color: var(--color-secondary); transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

/* Service card image */
.service-card-img {
  position: relative; width: 100%; height: 12rem;
  overflow: hidden;
}
@media (min-width: 640px) { .service-card-img { height: 10rem; } }
@media (min-width: 1024px) { .service-card-img { height: 11rem; } }
.service-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-img img {
  transform: scale(1.06);
}

.service-card-body {
  position: relative; padding: 0 1.25rem 1.5rem;
}
.service-card-icon {
  position: relative; margin-top: -1.375rem; margin-bottom: 0.75rem;
  width: 2.75rem; height: 2.75rem; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--color-card); color: var(--color-primary);
  font-size: 1.125rem; box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: all 0.3s ease; border: 1px solid var(--color-border);
}
.service-card:hover .service-card-icon {
  background: var(--gradient-accent); color: var(--color-primary-foreground);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2); border-color: transparent;
}
.service-card-title {
  font-size: 1.125rem; font-weight: 700;
  color: var(--color-primary);
}
.service-card-desc {
  margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.6;
  color: var(--color-muted-foreground);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: var(--gradient-navy); color: var(--color-primary-foreground);
}
.about-grid {
  display: grid; gap: 3.5rem; align-items: center;
}
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-body {
  margin-top: 1.25rem; font-size: 1.125rem;
  color: rgba(248, 250, 253, 0.8); line-height: 1.7;
}
.about-body strong { color: var(--color-primary-foreground); }
.about-highlights { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.about-highlight-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  color: rgba(248, 250, 253, 0.9);
}
.about-check {
  color: var(--color-accent); margin-top: 0.25rem; flex-shrink: 0;
  font-size: 1rem;
}
.about-card-wrapper { position: relative; }
.about-card {
  background: rgba(255,255,255,0.06); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 2rem;
}
.about-ceo {
  display: flex; align-items: center; gap: 1rem;
}
.about-ceo-avatar {
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--gradient-accent); display: flex; align-items: center;
  justify-content: center; font-size: 1.25rem; font-weight: 700; flex-shrink: 0;
}
.about-ceo-name { font-weight: 700; font-size: 1.125rem; }
.about-ceo-title { color: rgba(248, 250, 253, 0.7); font-size: 0.875rem; }
.about-quote {
  margin-top: 1.5rem; font-size: 1.125rem; font-style: italic;
  line-height: 1.7; color: rgba(248, 250, 253, 0.9);
  border-left: 3px solid var(--color-accent); padding-left: 1rem;
}
.about-stats {
  margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: center;
}
.about-stat-value { display: block; font-size: 1.5rem; font-weight: 700; color: var(--color-accent); }
.about-stat-label { display: block; font-size: 0.75rem; color: rgba(248, 250, 253, 0.7); margin-top: 0.25rem; }

/* ============================================
   CONTACT
   ============================================ */
.contact-card {
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}
@media (min-width: 768px) { .contact-card { display: grid; grid-template-columns: 1fr 1fr; } }
.contact-info {
  padding: 2.5rem 2rem; background: var(--color-card);
}
@media (min-width: 768px) { .contact-info { padding: 3.5rem; } }
.contact-subtext {
  margin-top: 0.75rem; color: var(--color-muted-foreground);
}
.contact-methods { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-method {
  display: flex; align-items: center; gap: 1rem;
  transition: all 0.2s; cursor: default;
}
a.contact-method { cursor: pointer; }
.contact-method-icon {
  width: 2.75rem; height: 2.75rem; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: rgba(56, 189, 248, 0.2); color: var(--color-secondary-deep);
  flex-shrink: 0; transition: all 0.3s ease;
}
.contact-method:hover .contact-method-icon {
  background: var(--gradient-accent); color: var(--color-primary-foreground);
}
.contact-method-label {
  display: block; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--color-muted-foreground);
}
.contact-method-value {
  display: block; font-weight: 600; color: var(--color-primary);
  word-break: break-all;
}
.contact-social {
  margin-top: 2rem; display: flex; align-items: center; gap: 0.75rem;
}
.contact-social-link {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--color-primary); color: var(--color-primary-foreground);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.contact-social-link:hover { background: var(--color-secondary-deep); }
.contact-social-handle {
  font-size: 0.875rem; color: var(--color-muted-foreground); margin-left: 0.5rem;
}

/* --- Contact Form --- */
.contact-form-wrapper {
  position: relative; overflow: hidden;
  background: var(--gradient-hero); color: var(--color-primary-foreground);
}
.contact-form-glow {
  position: absolute; top: -5rem; right: -5rem;
  width: 18rem; height: 18rem; border-radius: 50%;
  background: rgba(52, 211, 153, 0.25); filter: blur(48px);
}
.contact-form-content {
  position: relative; padding: 2.5rem 2rem;
}
@media (min-width: 768px) { .contact-form-content { padding: 3.5rem; } }
.contact-form-title { font-size: 1.5rem; font-weight: 700; }
.contact-form-subtitle {
  margin-top: 0.5rem; font-size: 0.875rem;
  color: rgba(248, 250, 253, 0.8);
}
.contact-form { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.form-input {
  width: 100%; padding: 0.75rem 1rem; border-radius: var(--radius);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: var(--color-primary-foreground); font-size: 0.875rem;
  font-family: inherit; outline: none; transition: border-color 0.2s;
}
.form-input::placeholder { color: rgba(248, 250, 253, 0.6); }
.form-input:focus { border-color: var(--color-accent); }
.form-input option { color: #0f1729; }
.form-textarea { resize: vertical; min-height: 5rem; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--color-border); background: var(--color-card);
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; gap: 1rem; padding: 2.5rem 0;
}
@media (min-width: 768px) { .footer-inner { flex-direction: row; } }
.footer-brand {
  display: flex; align-items: center; gap: 0.75rem;
}
.footer-logo { width: 2.5rem; height: 2.5rem; object-fit: contain; }
.footer-name { font-weight: 700; color: var(--color-primary); }
.footer-copy { font-size: 0.875rem; color: var(--color-muted-foreground); }

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in { animation: fadeIn 0.6s ease both; }
.fade-in-up { animation: fadeInUp 0.6s ease both; }
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
  .site-header .btn-primary { display: none; }
  .hero-headline { font-size: 2rem; }
  .hero-stats { gap: 1rem; flex-wrap: wrap; }
  .section-title { font-size: 1.75rem; }
}
