/* ==========================
   R&S Business Design & Solutions
   Premium, modern, enterprise-grade styles
   ========================== */

:root {
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --text: #0F172A;
  /* Slate 900 */
  --muted: #64748B;
  /* Slate 500 */
  --primary: #1E40AF;
  /* Deep Navy/Blue 800 */
  --accent: #3B82F6;
  /* Vibrant Blue 500 */
  --success: #10B981;
  --border-light: rgba(15, 23, 42, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.08);
  /* Soft, diffused premium shadow */
  --shadow-sm: 0 8px 24px -6px rgba(15, 23, 42, 0.05);
  /* Subtle lift */
  --container: 1200px;
  --header-height: 100px;
}

/* base reset */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary);
}

/* Top Bar */
.site-top-bar {
  background: var(--primary);
  color: #fff;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.2px;
}

.site-top-bar .top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.interactive-link, .interactive-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #E2E8F0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}

.interactive-link:hover {
  color: #fff;
}

.interactive-link svg, .interactive-text svg {
  color: var(--accent);
}

@media (max-width: 1024px) {
  .site-top-bar .top-bar-inner {
    justify-content: center;
    flex-direction: column;
    gap: 12px;
  }
}

/* Header - Premium Glassmorphism */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand .logo {
  height: 80px;
  border-radius: 12px;
  object-fit: contain;
}

.brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
}

.nav-list {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-list a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-list a:hover {
  color: var(--text);
  background: var(--border-light);
}

.primary-btn {
  background: var(--text);
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
  margin-left: 8px;
}

.primary-btn:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.2);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.10;
  z-index: 0;
  filter: grayscale(100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(250, 250, 250, 0.98));
  z-index: 1;
  backdrop-filter: blur(4px);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 80px 0 100px;
  max-width: 900px;
  text-align: left;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-block;
  padding: 6px 14px;
  background: rgba(30, 64, 175, 0.08);
  border-radius: 99px;
}

.hero-title {
  font-size: clamp(48px, 6.5vw, 84px);
  line-height: 1.05;
  margin: 0 0 28px;
  color: var(--text);
}

.hero-title .hero-anim {
  display: inline-block;
  position: relative;
}

.hero-title .word {
  display: inline-block;
  color: var(--primary);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content .lead {
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: 48px;
  font-weight: 400;
}

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

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 8px 24px -6px rgba(30, 64, 175, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -8px rgba(30, 64, 175, 0.4);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text);
}

.btn-ghost:hover {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.15);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  display: inline-flex;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-light);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

/* Sections */
.section {
  padding: 100px 0;
  background: var(--bg);
  position: relative;
}

.section.gray {
  background: #F4F6F8;
}

.section h2 {
  font-size: clamp(34px, 4.5vw, 48px);
  margin-bottom: 20px;
  color: var(--text);
  font-weight: 800;
}

.section .section-intro {
  color: var(--muted);
  font-size: 20px;
  max-width: 640px;
  margin-bottom: 56px;
  line-height: 1.6;
}

/* Split layout (About) */
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.media {
  position: relative;
}

.media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: block;
  filter: contrast(1.05);
}

.media::after {
  content: '';
  position: absolute;
  inset: -20px;
  border: 1px solid var(--border-light);
  border-radius: calc(var(--radius) + 12px);
  z-index: -1;
}

.content .lead {
  color: var(--text);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.5;
}

.content p {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 17px;
  line-height: 1.8;
}

/* Cards (Services) */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.card {
  background: var(--surface);
  padding: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-figure {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-light);
  transition: transform 0.6s ease;
}

.card-inner {
  padding: 36px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  font-size: 26px;
  margin: 0 0 14px;
  font-weight: 700;
}

.card p {
  color: var(--muted);
  margin-bottom: 28px;
  flex: 1;
  font-size: 16px;
  line-height: 1.7;
}

.card-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: gap 0.2s ease;
  margin-top: auto;
  font-size: 16px;
}

.card-link::after {
  content: "→";
  font-size: 18px;
  transition: transform 0.2s ease;
}

.card-link:hover {
  color: var(--accent);
}

.card-link:hover::after {
  transform: translateX(6px);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 23, 42, 0.1);
  }

  .card:hover .card-figure {
    transform: scale(1.03);
  }
}

/* Pills (Industries) */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.pill {
  background: var(--surface);
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.12);
  transform: translateY(-2px);
}

/* Featured clients */
.client-logos {
  display: flex;
  gap: 56px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 48px;
  opacity: 0.5;
}

.client-logos img {
  height: 80px;
  filter: grayscale(100%);
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.client-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Contact Specific Overhaul */
#contact {
  background: #fff;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

#contact h2 {
  margin-bottom: 24px;
}

#contact p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 0;
}

.contact-info-container {
  display: inline-block;
  text-align: left;
  background: var(--bg);
  padding: 48px 64px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  margin-top: 40px;
}

.contact-info-container p {
  margin: 0;
  font-size: 18px;
  line-height: 2.2;
  color: var(--text);
}

.contact-info-container b {
  color: var(--primary);
  display: inline-block;
  width: 110px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer */
.site-footer {
  background: #0F172A;
  padding: 64px 0;
  color: #94A3B8;
  text-align: center;
  border-top: none;
}

.site-footer .footer-inner {
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.site-footer p {
  margin: 0;
  font-size: 15px;
}

.footer-nav {
  display: flex;
  gap: 28px;
}

.footer-nav a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #fff;
}

/* Gentle reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease
}

.reveal.active {
  opacity: 1;
  transform: translateY(0)
}

/* progress indicator */
.progress-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 100;
  background: transparent;
  pointer-events: none;
}

#scroll-progress {
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: none;
  border-radius: 0 0 4px 4px;
}

/* back to top */
.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 56px;
  height: 56px;
  border-radius: 100%;
  border: 1px solid var(--border-light);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 700;
  color: var(--text);
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto
}

.back-to-top:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.15);
  color: var(--primary);
  border-color: rgba(15, 23, 42, 0.1);
}

/* small screens */
@media (max-width:1024px) {
  .hero-title {
    font-size: clamp(40px, 6vw, 64px);
  }

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

@media (max-width:768px) {
  .section {
    padding: 60px 0;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 85vh;
  }

  .hero-content {
    padding: 120px 0 80px;
  }

  .nav-list {
    display: none;
    position: absolute;
    right: 24px;
    top: 100%;
    flex-direction: column;
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    align-items: flex-start;
    min-width: 260px;
    z-index: 100;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .client-logos {
    gap: 32px;
    justify-content: center;
  }

  .contact-info-container {
    padding: 32px 24px;
    width: 100%;
  }
}

/* Focus states */
:focus {
  outline: 2px solid transparent;
  outline-offset: 2px
}

:focus-visible {
  outline: 3px solid rgba(30, 64, 175, 0.4);
  border-radius: 8px
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    filter: none !important;
  }

  .card-figure {
    transform: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
