:root {
  /* Logo/Brand Colors (Ref: Tailwind Sky-600, Gray-900) */
  --color-primary: #0284c7;
  /* Sky 600 */
  --color-primary-hover: #0369a1;
  /* Sky 700 */
  --color-primary-light: #e0f2fe;
  /* Sky 100 */

  --color-accent: #059669;
  /* Emerald 600 */
  --color-accent-light: #d1fae5;

  --color-bg: #ffffff;
  --color-bg-alt: #f9fafb;
  /* Gray 50 */
  --color-text-main: #111827;
  /* Gray 900 */
  --color-text-muted: #4b5563;
  /* Gray 600 */

  --color-border: #e5e7eb;
  /* Gray 200 */

  /* Spacing */
  --spacing-xs: 0.5rem;
  /* 2 */
  --spacing-sm: 1rem;
  /* 4 */
  --spacing-md: 1.5rem;
  /* 6 */
  --spacing-lg: 3rem;
  /* 12 */
  --spacing-xl: 5rem;
  /* 20 */

  /* Borders & Shadows */
  --radius-sm: 0.5rem;
  /* rounded-lg */
  --radius-md: 1rem;
  /* rounded-2xl (from ref) */
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);

  /* Fonts */
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  scroll-behavior: smooth;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  color: var(--color-text-main);
  font-weight: 700;
  /* bold */
  letter-spacing: -0.025em;
  /* tracking-tight */
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  max-width: 65ch;
}

.overline {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  display: block;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1280px;
  /* max-w-7xl */
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding: var(--spacing-xl) 0;
}

.bg-alt {
  background-color: var(--color-bg-alt);
}

.grid {
  display: grid;
  gap: var(--spacing-md);
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.flex {
  display: flex;
  gap: var(--spacing-sm);
}

.flex-wrap {
  flex-wrap: wrap;
}

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

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

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

/* --- Components --- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  /* rounded-2xl */
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}

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

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

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

.btn-ghost:hover {
  background-color: var(--color-primary-light);
}

/* Cards */
.card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.card-icon {
  color: var(--color-primary);
  margin-bottom: 1rem;
  width: 32px;
  height: 32px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  background-color: var(--color-bg-alt);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.nav-link {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
}

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

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .nav-menu.active {
    display: flex;
  }
}

/* Service Detail (Inline) */
.service-detail-wrapper {
  grid-column: 1 / -1;
  overflow: hidden;
  transition: all 0.3s ease;
}

.service-detail {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  background-color: white;
  padding: 4rem 0 2rem;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* Form */
.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  /* rounded-xl in ref */
  border: 1px solid var(--color-border);
  padding: 0.75rem;
  /* py-2 px-3 */
  margin-top: 0.25rem;
  font-size: 1rem;
}

.form-input:focus {
  outline: 2px solid var(--color-primary);
  border-color: var(--color-primary);
}

.form-label {
  font-weight: 500;
  font-size: 0.875rem;
  /* text-sm */
  color: var(--color-text-main);
}

/* Animations */
.fade-in-up {
  animation: fadeInUp 0.4s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}