@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --primary: #0A192F;
  --primary-light: #112B50;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-alt: #F1F5F9;
  --text: #0F172A;
  --muted: #475569;
  --border: #E2E8F0;
  --success: #059669;
  --error: #DC2626;

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  
  --container: 1200px;
  --radius: 8px;
  --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);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

*, *::before, *::after { box-sizing: border-box; }

body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 0.5em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

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

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

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 80px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.site-logo span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover, .site-nav a.active {
  color: var(--accent);
}

.site-nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font-body);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

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

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

.btn-outline {
  background-color: transparent;
  color: var(--primary) !important;
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background-color: var(--surface-alt);
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  background-color: var(--primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: white;
  font-size: 3.5rem;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero p {
  color: #CBD5E1;
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-image {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  width: 100%;
  height: 500px;
}

/* Sections */
.section {
  padding: 6rem 0;
}

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

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text) !important;
}

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

.service-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--surface-alt);
}

.service-card-content {
  padding: 2rem;
}

.service-card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.service-card-content p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.service-link {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Portal Section */
.portal-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.portal-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.portal-content ul {
  list-style: none;
  margin: 2rem 0;
}

.portal-content li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.portal-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: bold;
}

.portal-visual {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 3rem;
  color: white;
  box-shadow: var(--shadow-lg);
}

/* Two Column Layout (Services Pages) */
.page-hero {
  background-color: var(--surface);
  padding: 6rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 800px;
}

.content-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  padding: 4rem 0;
}

.prose {
  max-width: 100%;
}

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

.prose p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  color: var(--text);
}

.prose ul {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

/* Sidebar / Forms */
.sidebar-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: sticky;
  top: 100px;
}

.sidebar-box h3 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--bg);
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--surface);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.form-checkbox input {
  margin-top: 0.25rem;
}

.form-checkbox label {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.4;
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 6px;
  display: none;
  font-size: 0.95rem;
}

.form-message.success {
  display: block;
  background-color: #ECFDF5;
  color: var(--success);
  border: 1px solid #A7F3D0;
}

.form-message.error {
  display: block;
  background-color: #FEF2F2;
  color: var(--error);
  border: 1px solid #FECACA;
}

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

/* Contact Page Specific */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding: 4rem 0;
}

.contact-info {
  background: var(--primary);
  color: white;
  padding: 3rem;
  border-radius: var(--radius);
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-info h2 {
  color: white;
}

.contact-info p {
  color: #CBD5E1;
  margin-bottom: 2rem;
}

.info-item {
  margin-bottom: 1.5rem;
}

.info-item h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-item p, .info-item a {
  color: #E2E8F0;
  font-size: 1.125rem;
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: auto;
}

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

.footer-brand h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #94A3B8;
  max-width: 400px;
}

.footer-links h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94A3B8;
  overflow-wrap: anywhere;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1E293B;
  display: flex;
  justify-content: space-between;
  color: #64748B;
  font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .hero .container, .portal-section, .content-layout, .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }
  
  .hero h1 {
    font-size: 2.75rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1180px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  
  .site-nav.active {
    display: flex;
  }
  
  .site-nav-mobile-toggle {
    display: block;
  }

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

  .hero h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 480px) {
  .contact-info, .sidebar-box {
    padding: 1.5rem;
    min-width: 0;
  }
  .form-input, .form-select, .form-textarea {
    min-width: 0;
  }
}
