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

:root {
  --primary:        #0a2540;
  --primary-light:  #1a3c5e;
  --accent:         #e8a020;
  --accent-light:   #f5c050;
  --white:          #ffffff;
  --bg:             #f4f6f9;
  --text:           #111827;
  --muted:          #6b7280;
  --border:         #e5e7eb;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius:    8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --max-w: 1200px;
  --nav-h: 68px;
}

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

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  transition: all 0.18s ease;
  white-space: nowrap;
}

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

.btn--outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn--outline:hover { background: var(--primary); color: var(--white); transform: translateY(-1px); }

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

/* ===== SECTION SHARED ===== */
.section { padding: 88px 0; }
.section--bg { background: var(--bg); }

.section__eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section__sub {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 560px;
}

.section__header {
  text-align: center;
  margin-bottom: 56px;
}
.section__header .section__sub { margin-inline: auto; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--primary);
}
.nav__logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 6px;
}
.nav__logo-text { font-size: 1.0625rem; font-weight: 700; }

.nav__logo-img {
  height: 52px;
  width: auto;
  display: block;
}
.nav__logo-img--footer {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--primary);
  transition: background 0.15s;
}
.nav__link:hover { background: var(--bg); }
.nav__link--cta {
  background: var(--accent);
  color: var(--primary);
  font-weight: 600;
  margin-left: 8px;
}
.nav__link--cta:hover { background: var(--accent-light); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius);
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding-top: var(--nav-h);
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(10,37,64,0.06) 0%, transparent 70%),
    linear-gradient(160deg, #f0f4f8 0%, var(--white) 60%);
}

/* decorative grid lines */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10,37,64,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,37,64,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-block: 80px 64px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 20px;
  max-width: 640px;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__sub {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  width: fit-content;
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 24px 40px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }

.stat__number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}
.stat__label {
  font-size: 0.8125rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ===== ABOUT ===== */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about__lead {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 16px;
  line-height: 1.65;
}
.about__body {
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.75;
}

.about__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text);
}
.about__list li svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--accent);
}

.about__visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about__card {
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.about__card:last-child { grid-column: 1 / -1; }

.about__card--primary { background: var(--primary); }
.about__card--accent  { background: var(--accent); }
.about__card--light   { background: var(--bg); border: 1px solid var(--border); }

.about__card-number {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}
.about__card-label { font-size: 0.875rem; font-weight: 500; }

.about__card--primary .about__card-number,
.about__card--primary .about__card-label { color: var(--white); }

.about__card--accent .about__card-number,
.about__card--accent .about__card-label { color: var(--primary); }

.about__card--light .about__card-number { color: var(--primary); }
.about__card--light .about__card-label  { color: var(--muted); }

/* ===== SERVICES ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-card__icon {
  width: 48px; height: 48px;
  background: rgba(10,37,64,0.07);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}
.service-card__icon svg { width: 24px; height: 24px; }

.service-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.service-card__text {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ===== PROJECTS ===== */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: box-shadow 0.2s, transform 0.2s;
}
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.project-card__img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center;
  background: var(--bg);
}

.project-card__body { padding: 24px; }

.project-card__tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(10,37,64,0.08);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}
.project-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.project-card__text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== TEAM ===== */
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}

.team-card__avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
}
.team-card__avatar--1 { background: var(--primary); }
.team-card__avatar--2 { background: #2c6e6e; }
.team-card__avatar--3 { background: #5c3a1e; }
.team-card__avatar--4 { background: #5c1e5c; }

.team-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.team-card__role {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.team-card__bio {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== CONTACT ===== */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact__text {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 32px;
  font-size: 1.0625rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact__details li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text);
}
.contact__details li svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--primary);
}
.contact__details a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact__details a:hover { color: var(--accent); }

/* Contact form */
.contact__form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}
.form-group label span { color: var(--accent); }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #b0b8c4; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10,37,64,0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form__status {
  font-size: 0.9rem;
  min-height: 1.4em;
  text-align: center;
}
.form__status.success { color: #1a7a3c; }
.form__status.error   { color: #c0392b; }

/* ===== FOOTER ===== */
.footer {
  background: var(--primary);
  color: var(--white);
  padding-top: 56px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer__brand .nav__logo-mark { background: rgba(255,255,255,0.15); color: var(--white); }
.footer__brand .nav__logo-text { color: var(--white); }
.footer__tagline { margin-top: 10px; font-size: 0.9rem; color: rgba(255,255,255,0.55); }

.footer__nav ul {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__nav a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.15s;
}
.footer__nav a:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 20px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
}
.footer__bottom a { color: rgba(255,255,255,0.6); }
.footer__bottom a:hover { color: var(--white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .team__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about__inner    { grid-template-columns: 1fr; gap: 48px; }
  .services__grid  { grid-template-columns: repeat(2, 1fr); }
  .projects__grid  { grid-template-columns: repeat(2, 1fr); }
  .contact__inner  { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  /* Nav mobile */
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 20px;
    box-shadow: var(--shadow-md);
  }
  .nav__links.open { display: flex; }
  .nav__link { padding: 10px 12px; }
  .nav__link--cta { margin-left: 0; margin-top: 4px; text-align: center; }

  .hero__stats { width: 100%; }
  .stat { flex: 1; padding: 20px 16px; }
  .stat__number { font-size: 1.5rem; }

  .services__grid  { grid-template-columns: 1fr; }
  .projects__grid  { grid-template-columns: 1fr; }
  .team__grid      { grid-template-columns: repeat(2, 1fr); }
  .form-row        { grid-template-columns: 1fr; }
  .contact__form   { padding: 24px; }

  .footer__inner  { flex-direction: column; gap: 24px; }
  .footer__bottom { flex-direction: column; gap: 6px; text-align: center; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .team__grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .hero__stats { flex-direction: column; }
}
