:root {
  --paper: #F5F3EC;
  --ink: #0F1D4A;
  --blue: #1F44C8;
  --blue-soft: #DCE3F7;
  --blue-hover: #1838A8;
  --muted: #55608A;
  --border: #D4D8E8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Bricolage Grotesque", "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.brand {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--blue);
}

.brand a {
  display: inline-block;
  text-decoration: none;
}

.logo {
  height: 48px;
  width: auto;
  display: block;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 0;
  gap: 48px;
}

h1 {
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 12ch;
  color: var(--ink);
}

.lead {
  margin-top: 20px;
  max-width: 50ch;
  font-size: 1.15rem;
  color: var(--muted);
}

.status {
  margin-top: 48px;
  max-width: 360px;
}

.status p {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--muted);
}

.status strong {
  color: var(--blue);
  font-weight: 600;
}

.bar {
  height: 6px;
  background: var(--blue-soft);
  border-radius: 99px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: 38%;
  background: var(--blue);
  border-radius: 99px;
  animation: slide 2.6s ease-in-out infinite;
}

@keyframes slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(270%); }
}

.cta-group {
  margin-top: 32px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--blue);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

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

.btn-primary:active {
  transform: translateY(1px);
}

.social {
  margin-top: 24px;
}

.social-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: white;
  color: var(--blue);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  transform: translateY(-2px);
}

.social-links.vertical {
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.social-links.vertical a {
  width: auto;
  height: auto;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  background: transparent;
  border: none;
  justify-content: flex-start;
}

.social-links.vertical a:hover {
  background: transparent;
  color: var(--blue-hover);
  transform: translateX(4px);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.foot a {
  color: var(--blue);
  text-decoration: none;
}

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

/* Contact Page */
.contact-hero {
  gap: 32px;
}

.contact-header {
  max-width: 600px;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.info-card {
  padding: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.info-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

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

.info-card a {
  color: var(--blue);
  text-decoration: none;
}

.info-card a:hover {
  text-decoration: underline;
}

/* Success Message */
.success-message {
  padding: 16px 20px;
  background: #E8F5E9;
  border: 1px solid #81C784;
  border-radius: 8px;
  color: #2E7D32;
  font-weight: 500;
  display: none;
}

.success-message.show {
  display: block;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (min-width: 768px) {
  .contact-container {
    grid-template-columns: 1.5fr 1fr;
  }

  .logo {
    height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bar span {
    animation: none;
    width: 55%;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .lead {
    font-size: 1rem;
  }

  .foot {
    flex-direction: column;
    gap: 8px;
  }
}
