:root {
  --navy: #102a43;
  --navy-dark: #081b2b;
  --steel: #52667a;
  --light-steel: #d7dee5;
  --white: #ffffff;
  --accent: #d68026;
  --text: #142433;
  --max-width: 1140px;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(8, 27, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: #f7f9fb;
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.header {
  background: linear-gradient(180deg, var(--navy-dark), var(--navy));
  color: var(--white);
}

.topbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.92rem;
}

.topbar p {
  margin: 0;
}

.topbar-links {
  display: flex;
  gap: 1rem;
  font-weight: 600;
}

.topbar-links a {
  text-decoration: none;
}

.topbar-links a:hover {
  text-decoration: underline;
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  width: auto;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.2rem 0.3rem;
}

.menu {
  display: flex;
  gap: 0.2rem;
}

.menu a {
  text-decoration: none;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-weight: 600;
}

.menu a:hover,
.menu a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.menu-button {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  font-weight: 600;
}

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}

.hero-copy h1 {
  margin: 0.2rem 0 1rem;
  line-height: 1.2;
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
}

.hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.eyebrow {
  margin: 0;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8eb1cf;
  font-weight: 700;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.68rem 1.1rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #1e1e1e;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-image {
  margin: 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
}

.hero-image figcaption {
  font-size: 0.85rem;
  padding: 0.6rem 0.8rem;
  background: rgba(0, 0, 0, 0.24);
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1rem;
}

.section-alt {
  background: #ecf1f5;
  max-width: none;
}

.section-alt > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin: 0.4rem 0 0.7rem;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  color: var(--navy);
  line-height: 1.25;
}

.section-heading p {
  margin: 0;
  color: #2d4153;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--light-steel);
  border-left: 4px solid var(--steel);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: 0 4px 16px rgba(16, 42, 67, 0.06);
}

.card h3 {
  margin: 0 0 0.6rem;
  color: var(--navy);
}

.card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0.95rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #cfd8e2;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.project-card div {
  padding: 0.9rem 0.9rem 0.9rem 0;
}

.project-card h3 {
  margin: 0 0 0.35rem;
  color: var(--navy);
}

.project-card p {
  margin: 0;
}

.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.4rem;
  align-items: start;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid #cad4df;
  box-shadow: var(--shadow);
}

.about-copy h2 {
  margin: 0.4rem 0 0.7rem;
  color: var(--navy);
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
}

.about-copy p {
  margin: 0 0 0.7rem;
}

.about-copy ul {
  margin: 0;
  padding-left: 1.15rem;
}

.link-inline {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--navy);
  font-weight: 600;
}

.contact-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr 1.1fr 0.7fr;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #cfd8e2;
  padding: 1rem;
}

.contact-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: var(--navy);
}

.contact-card ul {
  margin: 0;
  padding-left: 1rem;
}

.contact-card li {
  margin-bottom: 0.3rem;
}

.quote-line {
  margin-top: 0.8rem;
  font-weight: 600;
  color: var(--navy);
}

.quote-form {
  display: grid;
  gap: 0.45rem;
}

.quote-form input,
.quote-form textarea {
  font: inherit;
  border: 1px solid #bcc9d6;
  border-radius: 8px;
  padding: 0.58rem 0.7rem;
  background: #fcfdff;
}

.quote-form input:focus,
.quote-form textarea:focus {
  outline: 2px solid #7ea0c0;
  border-color: #7ea0c0;
}

.quote-form button {
  margin-top: 0.4rem;
  cursor: pointer;
}

.qr-card {
  text-align: center;
}

.qr-card img {
  width: min(220px, 100%);
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid #ced8e1;
}

.footer {
  text-align: center;
  padding: 1.2rem 1rem 1.8rem;
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .project-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card div {
    padding: 0.8rem 0.9rem 1rem;
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-links {
    flex-wrap: wrap;
  }

  .menu-button {
    display: inline-flex;
  }

  .menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 1rem;
    z-index: 12;
    flex-direction: column;
    min-width: 220px;
    background: #0f2f4d;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.35rem;
  }

  .menu.is-open {
    display: flex;
  }

  .menu a {
    border-radius: 6px;
  }

  .nav-wrap {
    position: relative;
  }

  .brand {
    gap: 0.55rem;
  }

  .brand img {
    height: 34px;
  }

  .brand span {
    font-size: 0.95rem;
    line-height: 1.2;
  }
}
