/* ===========================
   CSS Variables
   =========================== */
:root {
  --primary: #081c33;
  --secondary: #4a90e2;
  --accent: #ff6b35;
  --background: #ffffff;
  --foreground: #1a1a1a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

/* ===========================
   Reset & Base Styles
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-900);
  background-color: var(--background);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
}

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

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

button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h1 {
  font-size: 2.25rem; /* 36px */
}

h2 {
  font-size: 1.875rem; /* 30px */
}

h3 {
  font-size: 1.5rem; /* 24px */
}

p {
  color: var(--gray-700);
  line-height: 1.625;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3rem; /* 48px */
  }
  
  h2 {
    font-size: 2.25rem; /* 36px */
  }
  
  h3 {
    font-size: 1.875rem; /* 30px */
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3.75rem; /* 60px */
  }
}

/* ===========================
   Layout Utilities
   =========================== */
.container-custom {
  width: 100%;
  max-width: 80rem; /* 1280px */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-custom {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-custom {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.section-white {
  background-color: #ffffff;
}

.section-gray {
  background-color: var(--gray-50);
}

.section-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.section-primary p {
  color: rgba(255, 255, 255, 0.9);
}

/* ===========================
   Grid System
   =========================== */
.grid {
  display: grid;
  gap: 2rem;
}

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

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

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

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

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

/* ===========================
   Header
   =========================== */
#header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  transition: all 0.2s ease;
  background-color: transparent;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

#header.header-scrolled {
  background-color: #ffffff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  color: var(--gray-700);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.nav-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: block;
  color: var(--gray-700);
}

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

.mobile-menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-menu-btn .hamburger-icon {
  display: block;
}

.mobile-menu-btn .close-icon {
  display: none;
}

.mobile-menu-btn.active .hamburger-icon {
  display: none;
}

.mobile-menu-btn.active .close-icon {
  display: block;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 100%;
  margin-top: 1rem;
  background-color: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  padding: 1rem 0.5rem;
  z-index: 50;
}

.mobile-menu.active {
  display: block;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  color: var(--gray-700);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.nav-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.mobile-contact-btn {
  margin: 0 1rem;
}

/* ===========================
   Footer
   =========================== */
footer {
  background-color: var(--gray-50);
  padding-top: 3rem;
  padding-bottom: 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

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

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.footer-tagline {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.footer-contact {
  color: var(--gray-600);
}

.footer-email {
  color: var(--primary);
  transition: text-decoration 0.2s ease;
}

.footer-email:hover {
  text-decoration: underline;
}

.footer-heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--gray-600);
  transition: color 0.2s ease;
}

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

.footer-copyright {
  text-align: center;
  border-top: 1px solid var(--gray-200);
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-md {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

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

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background-color: var(--secondary);
  color: #ffffff;
}

.btn-secondary:hover {
  opacity: 0.9;
}

.btn-outline {
  background-color: #ffffff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--gray-50);
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #ffffff, #ffffff, var(--gray-50));
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .hero-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: url('/assets/img/grid.svg');
  background-position: center;
  mask-image: linear-gradient(180deg, white, rgba(255, 255, 255, 0));
  -webkit-mask-image: linear-gradient(180deg, white, rgba(255, 255, 255, 0));
}

.hero-container {
  position: relative;
}

.hero-content {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: rgba(8, 28, 51, 0.1);
  color: var(--primary);
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  line-height: 1.625;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* ===========================
   Section Headers
   =========================== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================
   Service Cards
   =========================== */
.service-card {
  padding: 1.5rem;
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid var(--gray-100);
  transition: box-shadow 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.service-icon {
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-icon svg {
  width: 2rem;
  height: 2rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-card p {
  margin-bottom: 1rem;
}

.service-link {
  color: var(--primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: text-decoration 0.2s ease;
}

.service-link:hover {
  text-decoration: underline;
}

.service-link svg {
  width: 1rem;
  height: 1rem;
  margin-left: 0.25rem;
}

/* ===========================
   Value Cards
   =========================== */
.value-card {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  text-align: center;
}

.value-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.value-card p {
  color: var(--gray-600);
}

/* ===========================
   Approach Cards
   =========================== */
.approach-card {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-100);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  text-align: center;
}

.approach-number {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.approach-emoji {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.approach-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.approach-card p {
  color: var(--gray-600);
}

/* ===========================
   Why Us Section
   =========================== */
.why-us-content h2 {
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.why-us-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.why-us-list li {
  display: flex;
  gap: 1rem;
}

.check-icon {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 0.25rem;
}

.check-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.why-us-list h3 {
  font-weight: 500;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.why-us-list p {
  color: var(--gray-600);
}

/* Testimonial Card */
.testimonial-card {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid var(--gray-100);
}

.testimonial-card blockquote {
  font-style: italic;
  font-size: 1.125rem;
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 3rem;
  height: 3rem;
  background-color: var(--gray-300);
  border-radius: 9999px;
  flex-shrink: 0;
}

.author-name {
  font-weight: 500;
}

.author-title {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ===========================
   About Section
   =========================== */
.about-image {
  aspect-ratio: 16 / 9;
  background-color: var(--gray-200);
  border-radius: 0.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.about-image img {
  object-fit: contain;
  max-width: 100%;
  height: auto;
}

.about-content h2 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* ===========================
   Contact Section
   =========================== */
.contact-content {
  text-align: center;
}

.contact-content h2 {
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .contact-buttons {
    flex-direction: row;
  }
}

/* ===========================
   Prose (Legal Pages)
   =========================== */
.prose {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.prose h1 {
  font-weight: 700;
  margin-bottom: 2rem;
}

.prose h2 {
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h3 {
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1rem;
  color: var(--gray-700);
}

.prose a {
  color: var(--primary);
  transition: text-decoration 0.2s ease;
}

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

.prose strong {
  font-weight: 600;
  color: var(--gray-900);
}
