:root {
  --navy: #0d3f86;
  --navy-deep: #082a5c;
  --blue: #1a62c4;
  --blue-bright: #2b78e4;
  --sky: #e7f1fb;
  --ink: #122033;
  --muted: #526277;
  --line: #d5e3f2;
  --paper: #f5f8fc;
  --white: #ffffff;
  --shadow: 0 10px 28px rgba(13, 47, 110, 0.08);
  --sans: "Manrope", "Segoe UI", sans-serif;
  --script: "Great Vibes", cursive;
  --max: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 7rem; }

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 6px 16px rgba(8, 42, 92, 0.08);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); }

:focus-visible {
  outline: 3px solid #f0b429;
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: white;
  padding: 0.55rem 0.8rem;
  z-index: 30;
}

.skip:focus { top: 0.6rem; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.topbar {
  background: white;
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  width: calc(100% - 1.5rem);
  max-width: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.65rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.logo {
  width: 74px;
  height: 74px;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding-left: 0.9rem;
  border-left: 2px solid #c5d5ea;
  min-width: 0;
}

.brand-text strong {
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  letter-spacing: 0.01em;
  color: var(--navy);
  line-height: 1.05;
}

.badge {
  align-self: flex-start;
  background: var(--blue);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.86rem;
}

.top-side {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.socials {
  display: flex;
  gap: 0.35rem;
  flex: none;
}

.socials a {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  display: grid;
  place-items: center;
}

.socials svg { width: 15px; height: 15px; fill: currentColor; }

.nav-toggle { display: none; }

.nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  min-height: 2.85rem;
  background: var(--blue);
  border-radius: 12px;
  padding: 0.2rem;
}

.nav a,
.nav button.menu-btn {
  color: white;
  text-decoration: none;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: clamp(0.72rem, 0.72vw, 0.88rem);
  padding: 0.42rem 0.22rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  white-space: nowrap;
  flex: 1 0 auto;
}

.nav > a[href="index.html"]::before {
  content: "";
  width: 1.05em;
  height: 1.05em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 3.2 3 11h2.2v9h5.1v-5.4h3.4V20H19V11H21.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (min-width: 1041px) {
  .nav > a + a,
  .nav > a + .menu,
  .nav > .menu + a,
  .nav > .menu + .menu {
    box-shadow: inset 1px 0 0 rgba(255,255,255,0.35);
  }
}

.nav a.active,
.nav a:hover,
.nav button.menu-btn:hover {
  background: rgba(8, 42, 92, 0.35);
  border-radius: 8px;
}

.nav > a.active {
  background: var(--navy-deep);
  border-radius: 9px;
  margin: 0;
  padding-top: 0.48rem;
}

.menu { position: relative; flex: 1 0 auto; display: flex; }
.menu > .menu-btn { flex: 1; }

.drop {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 230px;
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 0.35rem;
  z-index: 30;
}

.drop a {
  color: var(--navy) !important;
  display: block;
  border-radius: 8px;
  font-weight: 650;
}

.drop a:hover { background: var(--sky); }

.menu:hover .drop,
.menu:focus-within .drop,
.menu.open .drop { display: block; }

.caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid white;
}

.hero {
  position: relative;
  min-height: 460px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.78) 26%, rgba(255,255,255,0.18) 52%, rgba(255,255,255,0) 68%),
    url("../assets/photos/ehsaas-shade.jpg") center 42% / cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-copy { max-width: 640px; padding: 3.2rem 0 4.6rem; }

.hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.4rem, 4.8vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero h1 span {
  display: block;
  font-weight: 800;
  font-size: 0.46em;
  margin-bottom: 0.2rem;
}

.hero .line {
  margin: 0.8rem 0 0;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--navy-deep);
}

.pill-title {
  display: table;
  margin: 0 auto 1.1rem;
  background: var(--blue);
  color: white;
  font-weight: 800;
  padding: 0.45rem 1.3rem;
  border-radius: 999px;
}

.section { padding: 1.2rem 0 2.2rem; }

.services {
  margin-top: -2.2rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.8rem;
}

.service {
  background: white;
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-align: center;
  padding: 1.1rem 0.7rem 1rem;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid white;
}

.service:hover { border-color: #b9d2f2; }

.icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 0.55rem;
  border-radius: 50%;
  background: var(--sky);
  color: var(--blue);
  display: grid;
  place-items: center;
}

.icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.service strong { display: block; font-size: 0.95rem; }

.home-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 0.9fr;
  gap: 0.9rem;
}

.panel {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #e4eef8;
}

.panel h2 {
  margin: 0;
  background: var(--navy);
  color: white;
  font-size: 1.15rem;
  padding: 0.65rem 0.9rem;
}

.panel .body { padding: 0.9rem; }

.panel p { margin: 0.55rem 0 0; color: var(--muted); }

.media {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.media img,
.news-photo {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 8px;
}

.checks { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.checks li { padding: 0.18rem 0 0.18rem 1.3rem; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }

.more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  background: var(--blue);
  color: white;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font-size: 0.9rem;
}

.more::after { content: "›"; font-size: 1.15em; line-height: 1; }

.news-layout {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 0.7rem;
  align-items: start;
}

.news-layout .news-photo {
  height: 148px;
  margin: 0;
}

.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}
.news-list li:first-child { border-top: 0; padding-top: 0; }
.date-badge {
  background: var(--blue);
  color: white;
  border-radius: 8px;
  text-align: center;
  line-height: 1.1;
  padding: 0.35rem 0.2rem;
  font-weight: 800;
}
.date-badge span { display: block; font-size: 0.72rem; font-weight: 650; }
.news-list a { color: inherit; text-decoration: none; font-weight: 750; }
.news-list a:hover { color: var(--blue); }

.page-hero {
  background: linear-gradient(100deg, var(--navy-deep), var(--blue));
  color: white;
  padding: 2.2rem 0 1.8rem;
}

.page-hero h1 { margin: 0.2rem 0 0; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.03em; }
.page-hero p { margin: 0.45rem 0 0; max-width: 42rem; color: #d7e6f8; }
.crumb { margin: 0; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: #b9d4f5; }

.prose { padding: 1.6rem 0 2.4rem; }
.card-grid, .project-list, .gallery, .legal-list, .two {
  display: grid;
  gap: 0.9rem;
}
.card-grid { grid-template-columns: repeat(3, 1fr); }
.two { grid-template-columns: 1.15fr 0.85fr; }
.card, .project, .shot, .legal, .plain {
  background: white;
  border: 1px solid #e4eef8;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.card, .plain, .legal { padding: 1rem 1.05rem 1.05rem; }
.card h2, .plain h2, .project h2, .legal h2 { margin: 0 0 0.4rem; font-size: 1.25rem; color: var(--navy); }
.card p, .plain p, .project p, .legal p { margin: 0.4rem 0 0; color: var(--muted); }
.kicker { color: var(--blue); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.pill-title.spaced { margin-top: 2rem; }
.aim { display: flex; flex-direction: column; }
.aim .icon { margin: 0 0 0.75rem; }
.aim p:last-of-type { flex: 1; }
.aim .more, .card .more { align-self: flex-start; }

.project { overflow: hidden; }
.project img { width: 100%; height: 220px; object-fit: cover; }
.project .body, .shot figcaption { padding: 0.9rem 1rem 1rem; }
.project-list { grid-template-columns: 1fr 1fr; }

.gallery { grid-template-columns: repeat(3, 1fr); }
.shot { overflow: hidden; margin: 0; }
.shot img { width: 100%; height: 220px; object-fit: cover; }
.shot figcaption { color: var(--muted); font-size: 0.92rem; }

table { width: 100%; border-collapse: collapse; margin-top: 0.7rem; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.45rem 0.4rem; border-bottom: 1px solid var(--line); }
th { color: var(--navy); }

.facts { display: grid; grid-template-columns: 8rem 1fr; gap: 0.2rem 0.7rem; margin-top: 0.7rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.people { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.people li { background: var(--sky); border-radius: 10px; padding: 0.6rem 0.7rem; }
.people strong { display: block; }
.people span { color: var(--muted); font-size: 0.88rem; }

.legal-list { grid-template-columns: 1fr 1fr; }
.legal img { width: 100%; max-height: 280px; object-fit: cover; object-position: top; border-radius: 10px; margin-bottom: 0.7rem; }
[data-full] { cursor: zoom-in; }

form { display: grid; gap: 0.65rem; }
label { font-weight: 750; font-size: 0.92rem; }
input, textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.7rem;
  border: 1px solid #c5d6ea;
  border-radius: 10px;
  background: #fbfdff;
}
textarea { min-height: 140px; resize: vertical; }
button.send {
  justify-self: start;
  background: var(--blue);
  color: white;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
}

.site-footer {
  background: linear-gradient(180deg, #0e56b5 0%, #0a3f86 100%);
  color: white;
  margin-top: 1.6rem;
  padding: 1.7rem 0 1.15rem;
  border-top-left-radius: 50% 42px;
  border-top-right-radius: 50% 42px;
}
.footer-inner {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  align-items: center;
}
.footer-mark {
  width: 42px;
  height: 42px;
  flex: none;
  fill: white;
}
.site-footer p {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.05;
  text-align: center;
}
.site-footer small {
  display: block;
  text-align: center;
  color: #d5e6f8;
  margin-top: 0.35rem;
}

dialog {
  width: min(920px, calc(100% - 1.2rem));
  border: 0;
  padding: 0;
  border-radius: 12px;
}
dialog::backdrop { background: rgba(8, 24, 48, 0.72); }
dialog img { width: 100%; }
dialog form { position: absolute; top: 0.5rem; right: 0.5rem; }
dialog button {
  background: var(--navy);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 980px) {
  .services { grid-template-columns: repeat(3, 1fr); }
  .home-grid, .card-grid, .project-list, .gallery, .legal-list, .two { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  .topbar-inner { grid-template-columns: 1fr auto; }
  .nav { grid-column: 1 / -1; order: 3; }
}

@media (max-width: 760px) {
  .topbar-inner { grid-template-columns: 1fr; }
  .nav { grid-column: auto; }
  .logo { width: 58px; height: 58px; }
  .services, .home-grid, .card-grid, .project-list, .gallery, .legal-list, .two, .people { grid-template-columns: 1fr; }
  .hero { min-height: 360px; background-position: center; }
  .facts { grid-template-columns: 1fr; }
  .news-layout { grid-template-columns: 1fr; }
  .news-layout .news-photo { height: 140px; }
  .footer-mark { display: none; }
  .site-footer { border-top-left-radius: 0; border-top-right-radius: 0; }
}
