/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary:    #1e3a5f;
  --color-accent:     #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-bg:         #ffffff;
  --color-bg-alt:     #f1f5f9;
  --color-text:       #1e293b;
  --color-text-muted: #64748b;
  --color-border:     #e2e8f0;
  --color-white:      #ffffff;

  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-card: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --shadow-card-hover: 0 4px 8px rgba(0,0,0,.08), 0 12px 32px rgba(37,99,235,.12);

  --transition: 200ms ease;
}

html {
  scroll-behavior: smooth;
}

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

img, svg { display: block; }

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

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 1.25rem 0;
}

.header.scrolled {
  background: var(--color-bg);
  box-shadow: 0 1px 0 var(--color-border);
  padding: 0.875rem 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-bg);
  letter-spacing: -0.02em;
  transition: color var(--transition);
}

.header.scrolled .logo {
  color: var(--color-primary);
}

.logo--light {
  color: var(--color-bg);
}

/* ===== NAV ===== */
.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover {
  color: var(--color-white);
  background: rgba(255,255,255,.1);
}

.header.scrolled .nav__link {
  color: var(--color-text-muted);
}

.header.scrolled .nav__link:hover {
  color: var(--color-text);
  background: var(--color-bg-alt);
}

.nav__link--cta {
  background: var(--color-accent);
  color: var(--color-white) !important;
  padding: 0.5rem 1.125rem;
}

.nav__link--cta:hover {
  background: var(--color-accent-hover) !important;
}

.header.scrolled .nav__link--cta {
  background: var(--color-accent);
  color: var(--color-white) !important;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition);
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.header.scrolled .hamburger span {
  background: var(--color-text);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a4fa0 50%, var(--color-accent) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(255,255,255,.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(255,255,255,.03) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  padding-top: 6rem;
  padding-bottom: 5rem;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 640px;
}

.hero__title {
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,.8);
  margin-bottom: 2.25rem;
  max-width: 520px;
  line-height: 1.7;
}

.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
}

.hero__wave svg {
  width: 100%;
  height: 80px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,.45);
}

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

.btn--large {
  font-size: 1.0625rem;
  padding: 0.9rem 2rem;
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.btn.loading .btn__text { display: none; }
.btn.loading .btn__spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 0;
}

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

.section__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.section__subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ===== CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card__icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(30,58,95,.08), rgba(37,99,235,.12));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-accent);
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

.card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.625rem;
}

.card__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ===== SERVICES CTA ===== */
.services-cta {
  margin-top: 3rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.services-cta__text {
  font-size: 1rem;
  color: var(--color-text-muted);
  flex: 1;
  min-width: 200px;
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  box-shadow: none;
  white-space: nowrap;
}

.btn--outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,.25);
}

/* ===== ABOUT ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__text {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.about__quote {
  border-left: 4px solid var(--color-accent);
  padding-left: 1.25rem;
  margin: 2rem 0 1.5rem;
}

.about__quote span {
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
  color: var(--color-primary);
}

.about__cvr {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.about__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 280px;
}

.about__icon-cell {
  aspect-ratio: 1;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  color: var(--color-accent);
  transition: transform var(--transition), box-shadow var(--transition);
}

.about__icon-cell:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.about__icon-cell svg {
  width: 40%;
  height: 40%;
}

/* ===== CONTACT ===== */
.contact {
  max-width: 600px;
  margin: 0 auto;
}

.form__group {
  margin-bottom: 1.25rem;
}

.form__label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.form__input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-base);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form__input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.form__input.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

.form__textarea {
  resize: vertical;
  min-height: 130px;
}

.form__error {
  display: block;
  font-size: 0.8125rem;
  color: #ef4444;
  margin-top: 0.375rem;
  min-height: 1.2em;
}

.form__status {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  display: none;
}

.form__status.success {
  display: block;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form__status.error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-primary);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer__slogan {
  font-size: 0.875rem;
  color: rgba(255,255,255,.6);
}

.footer__legal {
  font-size: 0.875rem;
  color: rgba(255,255,255,.5);
}

/* ===== ANIMATIONS ===== */
.animate-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.cards .animate-fade-up:nth-child(2) { transition-delay: 0.1s; }
.cards .animate-fade-up:nth-child(3) { transition-delay: 0.2s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 99;
  }

  .nav.open {
    display: flex;
  }

  .nav__link {
    font-size: 1.5rem;
    color: rgba(255,255,255,.9) !important;
    padding: 0.75rem 2rem;
  }

  .nav__link--cta {
    background: var(--color-accent) !important;
    color: var(--color-white) !important;
    padding: 0.875rem 2.5rem !important;
    border-radius: 12px;
  }

  .hero__title { font-size: 2.5rem; }

  .section { padding: 3.5rem 0; }

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

  .about__visual { display: none; }

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

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2.125rem; }
  .hero__subtitle { font-size: 1rem; }
}
