@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

/* ASD v5 — Shared brand and layout */
:root {
  --navy: #123653;
  --blue: #216b9b;
  --ink: #203b50;
  --muted: #607789;
  --light: #f3f7fa;
  --line: #dbe5ec;
  --white: #fff;
  --header-height: 100px;
  --header-opacity: .55;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font: 16px/1.7 'DM Sans', Arial, sans-serif; }
h1, h2, h3, h4 { font-family: 'Manrope', Arial, sans-serif; line-height: 1.18; letter-spacing: -.035em; }
h1 { font-size: clamp(2.5rem, 5.5vw, 5.5rem); margin: 0 0 24px; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3vw, 3rem); margin: 0 0 22px; }
h3 { font-size: 1.28rem; margin: 0 0 10px; }
p { margin: 0 0 18px; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #dbac51; outline-offset: 3px; }
.container { width: min(1180px, calc(100% - 48px)); margin: auto; }
.narrow { max-width: 800px; }

/* One fixed, transparent header across all pages */
.site-header { position: fixed; inset: 0 0 auto; width: 100%; z-index: 1000; background: rgba(51, 51, 51, var(--header-opacity)); border: 0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; height: var(--header-height); min-height: 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 800 2rem 'Manrope', sans-serif; letter-spacing: -.055em; color: var(--navy); }
.asd-logo { display: block; width: 150px; max-width: 100%; height: 64px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); }
.nav { display: flex; align-items: center; gap: 27px; }
.nav a { color: white; text-decoration: none; font-weight: 400; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: white; border-bottom-color: #fff; }
.nav-toggle { display: none; background: transparent; border: 0; color: white; font-size: 1.6rem; cursor: pointer; }

/* Hero images, fades, text overlay */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: white; background: #183d5c; }
.hero-slides, .hero-shade { position: absolute; inset: 0; pointer-events: none; }
.hero-slides { overflow: hidden; }
.hero-slide { position: absolute; inset: 0; background-position: center; background-size: cover; opacity: 0; transition: opacity 2s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-shade { background: linear-gradient(90deg, rgba(8,31,54,.397), rgba(12,45,76,.397) 53%, rgba(11,40,65,.397)); }
.hero-content { position: relative; z-index: 1; max-width: 810px; padding: calc(var(--header-height) + 45px) 0 70px; }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .74rem; font-weight: 800; color: #5aabd9; margin-bottom: 22px; }
.hero .eyebrow { color: #a7daff; }
.hero h1 { max-width: 920px; }
.hero p { font-size: clamp(1.05rem,1.6vw,1.3rem); max-width: 680px; color: #e3edf5; }
.slide-controls { position: absolute; z-index: 3; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.slide-dot { cursor: pointer; width: 11px; height: 11px; border-radius: 50%; border: 1px solid white; background: transparent; padding: 0; }
.slide-dot.selected { background: white; }

/* Buttons and links: accessible on light and dark backgrounds */
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn, a.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 23px; background: var(--blue); color: white; border: 1px solid var(--blue); border-radius: 5px; font-weight: 700; text-decoration: none; opacity: 1; transition: background .2s, transform .2s; }
.btn:hover, a.btn:hover { background: #17557e; color: white; transform: translateY(-2px); }
.btn.ghost { background: transparent; border-color: #e4edf5; color: white; }
.btn.ghost:hover { background: rgba(255,255,255,.16); color: white; }

/* Content sections and cards */
.section { padding: 90px 0; }
.section.light { background: var(--light); }
.intro { color: var(--muted); font-size: 1.13rem; max-width: 760px; }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; margin-top: 40px; }
.card { background: white; border: 1px solid var(--line); border-radius: 6px; padding: 30px; box-shadow: 0 8px 28px #12365308; }
.card .number { font: 800 .85rem 'Manrope',sans-serif; color: var(--blue); margin-bottom: 30px; }
.card p { color: var(--muted); }
.card a { font-weight: 700; color: var(--blue); }
.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 38px; }
.stat { padding: 24px 0; border-top: 2px solid var(--blue); }
.stat strong { display: block; font: 800 2.4rem 'Manrope',sans-serif; color: var(--navy); }
.stat span { color: var(--muted); font-size: .92rem; }

/* Portfolio images */
.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; margin-top: 35px; }
.project { background: white; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.project-image { height: 195px; background: #dce7ef; overflow: hidden; }
.project-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.project-details { padding: 24px; }
.project-details p { color: var(--muted); font-size: .9rem; }
.page-hero { padding: calc(var(--header-height) + 80px) 0 88px; background: linear-gradient(110deg,#173e5e,#2f7398); color: white; }
.page-hero h1 { font-size: clamp(2.7rem,4vw,4.4rem); }
.page-hero p { max-width: 740px; color: #e0eef5; font-size: 1.2rem; }
/* Our Projects banner rules live in assets/projects.css. */
.services-photo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-top: 48px; }
.services-photo-grid figure { margin: 0; }
.services-photo-grid img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 5px; }
.services-photo-grid figcaption { font-size: .88rem; margin-top: 10px; color: var(--muted); }

/* Contact and persistent site-wide call to action */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-panel { background: var(--light); padding: 40px; border-radius: 6px; }
.contact-panel a { color: var(--blue); }
.band { background: var(--navy); color: #fff; padding: 52px 0; }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.band h2 { margin: 0 0 10px; color: white; }
.band p { margin: 0; color: #c7d9e5; }
.band .btn { flex-shrink: 0; }
.footer { background: #edf2f5; border-top: 1px solid var(--line); padding: 50px 0 25px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; }
.footer p { color: var(--muted); max-width: 510px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; align-content: flex-start; }
.footer-nav a { text-decoration: none; font-size: .88rem; }
.copyright { border-top: 1px solid #d5e0e7; padding-top: 20px; margin-top: 34px; color: var(--muted); font-size: .8rem; }

/* Responsive layout */
@media (max-width: 1000px) { .nav { gap: 14px; } .nav a { font-size: 14px; } }
@media (max-width: 800px) {
  :root { --header-height: 74px; }
  .container { width: min(1180px,calc(100% - 36px)); }
  .header-inner { gap: 15px; }
  .asd-logo { width: 125px; height: 55px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: var(--header-height); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; background: rgba(51,51,51,.95); padding: 16px 25px; box-shadow: 0 18px 25px #0002; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 15px; }
  .hero-content { padding-top: calc(var(--header-height) + 40px); }
  .section { padding: 65px 0; }
  .grid, .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid, .project-grid, .contact-grid, .services-photo-grid { grid-template-columns: 1fr; }
  .band-inner, .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav { margin-top: 20px; }
  .page-hero { padding-top: calc(var(--header-height) + 65px); }
}

/* Footer social links — consistent on every page */
.footer-social { display: flex; align-items: center; gap: 11px; margin-top: 20px; }
.footer-social a { display: inline-flex; justify-content: center; align-items: center; width: 42px; height: 42px; border: 1px solid #c9d9e5; border-radius: 50%; color: #245a87; background: #fff; text-decoration: none; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.footer-social a:hover { background: #216b9b; color: white; transform: translateY(-2px); }
.footer-social svg { display: block; width: 20px; height: 20px; fill: currentColor; }
@media (prefers-reduced-motion: reduce) { .footer-social a { transition: none; } }

/* Keyboard navigation: visible only when focused; existing layout unchanged. */
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 2000; padding: 10px 16px; color: #123653; background: #fff; border: 2px solid #216b9b; border-radius: 4px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
#main-content { scroll-margin-top: var(--header-height); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
