/* Shared stylesheet for new pages (services, projects support pages, legal, 404, thank-you).
   Mirrors the palette/tokens used in index.html and projects.html so visual identity stays consistent. */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --secondary: #ff6b35;
  --dark: #111827;
  --gray-900: #1f2937;
  --gray-700: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --success: #10b981;
  --radius: 14px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 25px 80px rgba(15, 23, 42, 0.18);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  min-height: 100vh;
  line-height: 1.6;
  padding-bottom: 0;
}

body.has-sticky-bar {
  padding-bottom: 72px;
}

a {
  color: inherit;
}

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

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 10000;
  background: var(--dark);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

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

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 32px;
}

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

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}

.brand-tag {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 600;
  font-size: 15px;
}

.nav-links a {
  color: var(--gray-700);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--dark);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 900;
}

.mobile-menu-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -340px;
  width: min(320px, 84vw);
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: var(--transition);
  z-index: 950;
  overflow-y: auto;
}

.mobile-menu.open {
  right: 0;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
}

.mobile-nav-links a {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
}

.button.primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(26, 115, 232, 0.35);
}

.button.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.button.secondary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.35);
}

.button.secondary:hover {
  filter: brightness(0.94);
  transform: translateY(-2px);
}

.button.ghost {
  background: transparent;
  border-color: rgba(26, 115, 232, 0.4);
  color: var(--primary);
}

.button.ghost:hover {
  background: rgba(26, 115, 232, 0.08);
}

/* Sticky mobile CTA bar */
.sticky-cta-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 980;
  background: var(--dark);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

.sticky-cta-bar-grid {
  display: flex;
  gap: 12px;
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}

.sticky-cta-bar .button {
  flex: 1;
  padding: 14px 12px;
  font-size: 14px;
}

@media (max-width: 760px) {
  .sticky-cta-bar {
    display: block;
  }
}

/* Generic page sections */
.page-hero {
  padding: 72px 0 56px;
}

.page-hero .eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(26, 115, 232, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: 16px;
}

.page-hero p.lead {
  font-size: 18px;
  color: var(--gray-700);
  max-width: 760px;
}

.section {
  padding: 64px 0;
}

.section.soft {
  background: var(--gray-100);
}

.section h2 {
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 16px;
}

.section h3 {
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 8px;
}

.section p {
  color: var(--gray-700);
}

.breadcrumbs {
  font-size: 14px;
  color: var(--gray-500);
  padding: 16px 0 0;
}

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

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Footer */
footer.site-footer-simple {
  background: #0b1220;
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  align-items: flex-start;
}

.footer-grid .brand-name {
  color: #fff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
