﻿/* Base */
:root {
  --color-bg: #f3f4f6;
  --color-surface: #ffffff;
  --color-primary: #112a3e;
  --color-primary-dark: #0c1f30;
  --color-muted: #5f6a7a;
  --color-text: #0f172a;
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 25px 45px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section-light {
  background: #fff;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-head p {
  color: var(--color-muted);
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  line-height: 1.2;
  font-family: "Space Grotesk", "Inter", sans-serif;
}

p {
  margin-top: 0;
  color: var(--color-muted);
}

/* Header & hero */
.hero-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(17, 42, 62, 0.15), transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(15, 23, 42, 0.08), transparent 30%);
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(243, 244, 246, 0.8);
  backdrop-filter: blur(14px);
  z-index: 10;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.header-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 18px;
  background: #112a3e;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

.logo-img {
  display: block;
  width: 170px;
  max-width: 45vw;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.main-nav a {
  font-weight: 600;
  color: var(--color-muted);
}

.main-nav a:not(.btn) {
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  min-width: 120px;
  text-align: center;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.main-nav a:not(.btn):hover {
  color: var(--color-primary);
  border-color: rgba(17, 42, 62, 0.25);
  background: rgba(17, 42, 62, 0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  border: none;
  background: transparent;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) 0 3rem;
}

.hero h1 span {
  color: var(--color-primary);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 15px 35px rgba(17, 42, 62, 0.25);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid rgba(15, 23, 42, 0.2);
  color: var(--color-text);
  background: transparent;
}

.btn-call,
.btn-call:visited,
.main-nav a.btn-call {
  color: #fff;
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags span {
  background: rgba(17, 42, 62, 0.1);
  color: var(--color-primary);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.hero-media figure {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-watch {
  background: var(--color-surface);
  display: inline-flex;
  flex-direction: column;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  box-shadow: var(--shadow);
}

.hero-watch strong {
  font-size: 1.5rem;
}

/* Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.pillars-grid article {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: #fbfcff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid rgba(17, 42, 62, 0.08);
  box-shadow: var(--shadow);
}

.service-card header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(17, 42, 62, 0.15);
  color: var(--color-primary);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.service-card ul {
  padding-left: 1.1rem;
  margin: 0;
  color: var(--color-muted);
}

.service-card li + li {
  margin-top: 0.4rem;
}

/* Showcase */
.showcase {
  background: #f9fafc;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.showcase-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
}

.showcase-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.showcase-content {
  padding: 1.5rem;
}

.showcase-content ul {
  padding-left: 1.1rem;
  margin: 0.5rem 0 0;
  color: var(--color-muted);
}

/* Timeline */
.timeline {
  background: #fff;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 3rem auto 0;
  max-width: 720px;
  display: grid;
  gap: 1rem;
}

.timeline-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.timeline-list span {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(17, 42, 62, 0.15);
  color: var(--color-primary);
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* CTA */
.cta {
  background: linear-gradient(120deg, #112a3e, #184b65);
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.85);
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta .btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.cta .btn-ghost:hover {
  border-color: #fff;
}

/* Contact */
.contact {
  background: #f8fafc;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 1rem;
}

.contact-list li {
  margin-bottom: 1rem;
}

.contact-list strong {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--color-muted);
  text-transform: uppercase;
}

.contact-form {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.15);
  padding: 0.9rem 1rem;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
}

.opening {
  margin-top: 1rem;
  font-weight: 600;
}

.legal {
  font-size: 0.95rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow);
}

.legal ul {
  padding-left: 1.1rem;
  margin-top: 0.5rem;
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 1.5rem 0;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1rem;
  font-weight: 600;
  flex-wrap: wrap;
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-text);
  color: #fff;
  padding: 1rem 1.3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 68px;
    right: 5vw;
    flex-direction: column;
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .header-layout {
    position: relative;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-media figure {
    border-radius: var(--radius-lg);
  }

  .footer-layout {
    flex-direction: column;
    align-items: flex-start;
  }
}
