:root {
  --navy: #0a2540;
  --navy-2: #0e3357;
  --accent: #1f7ae0;
  --accent-dark: #155fb0;
  --aws: #ff9900;
  --aws-dark: #e87f00;
  --bg: #ffffff;
  --bg-soft: #f4f8fc;
  --border: #e2e9f1;
  --text: #1a2b3c;
  --muted: #5b6b7b;
  --radius: 12px;
  --maxw: 1140px;
  --shadow: 0 6px 24px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 18px 48px rgba(10, 37, 64, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section__intro { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section__intro p { color: var(--muted); font-size: 1.1rem; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--aws); color: #2a1a00; box-shadow: 0 8px 20px rgba(255, 153, 0, 0.35); }
.btn--primary:hover { background: var(--aws-dark); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #f0f5fb; }
.btn--outline { border-color: var(--accent); color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand__mark { flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 800; font-size: 1.18rem; color: var(--navy); letter-spacing: 0.02em; }
.brand__sub { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__menu > li { position: relative; }
.nav__link {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  font-weight: 500;
  border-radius: 7px;
}
.nav__link:hover { background: var(--bg-soft); text-decoration: none; color: var(--navy); }
.nav__link.is-active { color: var(--accent); }

/* Dropdown */
.has-dropdown > .nav__link::after {
  content: "";
  display: inline-block;
  margin-left: 7px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 264px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 7px;
  color: var(--text);
  font-weight: 500;
}
.dropdown a:hover { background: var(--bg-soft); color: var(--accent); text-decoration: none; }

.nav__cta { margin-left: 10px; }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, rgba(31,122,224,0.35), transparent 60%),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #eaf2fb;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(700px 400px at 70% 0%, #000, transparent 75%);
  pointer-events: none;
}
.hero__inner { position: relative; padding: 96px 0 104px; max-width: 760px; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.22rem; color: #c4d6ea; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 70px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: #c4d6ea; max-width: 680px; margin: 0; font-size: 1.12rem; }
.breadcrumb { font-size: 0.85rem; color: #8fb0d4; margin-bottom: 16px; }
.breadcrumb a { color: #b9d2ee; }

/* Cards / services grid */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #fff;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 18px; }
.card__link { margin-top: auto; font-weight: 600; }
.card__link::after { content: " \2192"; }

/* Feature list */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.feature { display: flex; gap: 16px; }
.feature__icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.feature h3 { font-size: 1.12rem; margin-bottom: 4px; }
.feature p { color: var(--muted); margin: 0; }

/* Prose */
.prose { max-width: 760px; }
.prose p { font-size: 1.08rem; color: #33475b; }
.prose ul { padding-left: 1.1rem; color: #33475b; }
.prose li { margin-bottom: 0.5rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 6px; }
.tag {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--navy);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Testimonial */
.testimonial {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.testimonial blockquote {
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--navy);
  font-weight: 500;
  margin: 0 0 20px;
  position: relative;
}
.testimonial blockquote::before {
  content: "\201C";
  display: block;
  font-size: 4rem;
  line-height: 0.5;
  color: var(--aws);
  margin-bottom: 18px;
}
.testimonial cite { color: var(--muted); font-style: normal; font-weight: 600; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, var(--navy) 100%);
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6e6f7; font-size: 1.15rem; max-width: 620px; margin: 0 auto 28px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-info { background: var(--navy); color: #dceafa; border-radius: var(--radius); padding: 36px; }
.contact-info h2 { color: #fff; }
.contact-info a { color: #fff; }
.contact-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-item svg { flex: none; color: var(--aws); margin-top: 3px; }
.contact-item strong { display: block; color: #fff; }

.form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fbfdff;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,122,224,0.15); }
.field textarea { resize: vertical; min-height: 130px; }
.form-status { margin-top: 14px; font-weight: 600; display: none; }
.form-status.is-success { display: block; color: #1a8a4a; }
.form-status.is-error { display: block; color: #c0392b; }

/* Footer */
.site-footer { background: var(--navy); color: #b9cbe0; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: #b9cbe0; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-brand p { color: #93a9c2; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 40px;
  padding-top: 22px;
  font-size: 0.88rem;
  color: #8499b3;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 10px 16px 20px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__cta { margin: 12px 0 0; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 12px;
    display: none;
  }
  .has-dropdown.is-open .dropdown { display: block; }
  .features, .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Imagery & expanded components ===== */

/* Photo hero (home) */
.hero--photo {
  background:
    linear-gradient(155deg, rgba(8,30,53,0.94) 0%, rgba(12,45,77,0.84) 55%, rgba(12,45,77,0.74) 100%),
    url("/assets/img/hero.jpg") center/cover no-repeat;
}
.eyebrow--light { color: #7fb2ec; }

/* Two-column mega dropdown for the larger services menu */
.dropdown--mega {
  min-width: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 10px;
}

/* Stats / trust bar */
.statbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}
.stat__num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--navy); line-height: 1; }
.stat__num span { color: var(--aws); }
.stat__label { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }

/* Image + text media band */
.media { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.media + .media { margin-top: 64px; }
.media__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.media__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media--reverse .media__img { order: 2; }
.media h2 { margin-bottom: 14px; }
.media p { color: #33475b; font-size: 1.06rem; }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; color: #33475b; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* CTA band with photo */
.cta-photo {
  background:
    linear-gradient(135deg, rgba(31,122,224,0.92) 0%, rgba(10,37,64,0.94) 100%),
    url("/assets/img/datacenter.jpg") center/cover no-repeat;
}

/* Page hero with subtle photo */
.page-hero--photo {
  background:
    linear-gradient(150deg, rgba(8,30,53,0.93) 0%, rgba(12,45,77,0.82) 100%),
    url("/assets/img/software.jpg") center/cover no-repeat;
}

@media (max-width: 768px) {
  .dropdown--mega { grid-template-columns: 1fr; min-width: 0; }
  .statbar { grid-template-columns: 1fr 1fr; gap: 22px; }
  .media { grid-template-columns: 1fr; gap: 28px; }
  .media--reverse .media__img { order: 0; }
}
