:root {
  --color-primary: #1A237E;
  --color-text: #37474F;
  --color-accent: #C5A66A;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F7F9FA;
  --color-border: #E0E6EA;
  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.12);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.18);
}

/* Modern CSS reset (trimmed) */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Lato', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  color: var(--color-primary);
  line-height: 1.25;
  margin: 0 0 0.6rem 0;
}

h1 { font-size: clamp(1.8rem, 3vw + 1rem, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2vw + 0.8rem, 2rem); }
h3 { font-size: clamp(1.15rem, 1.5vw + 0.6rem, 1.35rem); }
p { margin: 0 0 1rem 0; }
small { opacity: 0.85; }

/* Layout utilities */
.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}
.section { padding: 3rem 0; }
.section--tight { padding: 2rem 0; }
.grid {
  display: grid;
  gap: 1.25rem;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  transition: transform .15s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.lead { font-size: clamp(1rem, 0.6vw + 0.8rem, 1.15rem); }
.muted { color: #55626a; }
.text-center { text-align: center; }

/* Header / Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(130%) blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
}
.brand__logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 20% 20%, #2C348A, #0F1248);
  position: relative;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.3), 0 4px 10px rgba(0,0,0,0.12);
}

.brand__logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}
.brand__text { font-size: 1.1rem; letter-spacing: 0.3px; }

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}
.nav__link {
  text-decoration: none;
  color: var(--color-text);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}
.nav__link:hover, .nav__link:focus { background: var(--color-bg-alt); }

.nav__cta {
  background: var(--color-accent);
  color: #1b1b1b;
  font-weight: 700;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.nav__cta:hover, .nav__cta:focus { filter: brightness(0.95); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown__toggle { display: inline-flex; align-items: center; gap: 0.35rem; }
.dropdown__menu {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  display: none;
}
.dropdown[aria-expanded="true"] .dropdown__menu { display: block; }
.dropdown__item { display: block; padding: 0.5rem 0.65rem; border-radius: var(--radius-sm); color: var(--color-text); text-decoration: none; }
.dropdown__item:hover, .dropdown__item:focus { background: var(--color-bg-alt); }

/* Mobile nav */
.nav-toggle { display: none; }
.nav-toggle__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
}

@media (max-width: 960px) {
  .nav { display: none; }
  .nav.is-open {
    position: fixed;
    inset: 64px 0 0 0;
    background: #fff;
    display: block;
    border-top: 1px solid var(--color-border);
    padding: 1rem;
    overflow: auto;
  }
  .nav__list { flex-direction: column; align-items: stretch; }
  .dropdown__menu { position: static; display: block; box-shadow: none; border: none; padding: 0.25rem 0 0.5rem; }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(180deg, #0f1248 0%, #1A237E 60%, #1A237E 100%);
  color: #fff;
  overflow: hidden;
}
.hero__inner { padding: 4rem 0 3rem; display: grid; gap: 1.25rem; }
.hero--split .hero__inner { align-items: center; }
@media (min-width: 960px) { .hero--split .hero__inner { grid-template-columns: 1.15fr 0.85fr; } }
.hero__kicker { letter-spacing: 1px; text-transform: uppercase; opacity: 0.9; }
.hero h1 { color: #fff; }
.hero__sub { color: #e6e9ff; max-width: 60ch; }
.hero__ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform .06s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--color-accent); color: #1b1b1b; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--ghost:hover { border-color: #fff; }

.hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background: radial-gradient(120% 80% at 20% 10%, rgba(255,255,255,0.4), rgba(255,255,255,0) 60%),
              radial-gradient(120% 60% at 80% 10%, rgba(255,255,255,0.25), rgba(255,255,255,0) 60%);
}

/* Icon list */
.icon-list { display: grid; gap: 0.75rem; }
.icon-list__item { display: grid; grid-template-columns: 36px 1fr; gap: 0.75rem; align-items: start; }
.icon { width: 24px; height: 24px; color: var(--color-primary); }

/* Services */
.service-card { display: grid; gap: 0.4rem; text-decoration: none; color: inherit; }
.service-card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}
.service-card:hover .service-card__icon { border-color: var(--color-primary); }

/* Why us */
.why {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* Testimonials */
.slider { position: relative; overflow: hidden; }
.slider__track { display: flex; gap: 1rem; transition: transform .4s ease; }
.testimonial { min-width: 100%; }
@media (min-width: 700px) { .testimonial { min-width: 50%; } }
.slider__nav { display: flex; gap: 0.5rem; justify-content: center; margin-top: 0.75rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #c9d0d6; border: none; }
.dot.is-active { background: var(--color-primary); }

/* CTA banner */
.cta-banner {
  background: linear-gradient(180deg, #fdfcf9, #f7f2e7);
  border: 1px solid #efe5cc;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

/* Forms */
.form { display: grid; gap: 0.75rem; }
.input, .textarea, .select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: #fff;
}
.textarea { min-height: 140px; resize: vertical; }
.label { font-weight: 600; }
.help { font-size: 0.9rem; color: #5c6b74; }

/* Timeline */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
  content: "";
  position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--color-border);
}
.timeline__item { position: relative; margin-bottom: 1rem; }
.timeline__item::before {
  content: ""; position: absolute; left: -2px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--color-primary);
}

/* Accordion */
.accordion { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.accordion__item + .accordion__item { border-top: 1px solid var(--color-border); }
.accordion__header { width: 100%; text-align: left; background: #fff; padding: 0.9rem 1rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.accordion__panel { display: none; padding: 0.75rem 1rem 1rem; background: #fff; }
.accordion__item[aria-expanded="true"] .accordion__panel { display: block; }

/* Team */
.team-card { display: grid; gap: 0.5rem; }
.team-card img { border-radius: 12px; border: 1px solid var(--color-border); }
.badge { display: inline-block; padding: 0.25rem 0.5rem; border-radius: 999px; background: var(--color-bg-alt); border: 1px solid var(--color-border); font-size: 0.85rem; }

/* Footer */
.footer { background: #0e0f1a; color: #c7ced6; }
.footer a { color: #d9e1ea; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__top { padding: 2rem 0; border-bottom: 1px solid #1f2333; }
.footer__grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__bottom { padding: 1rem 0; font-size: 0.9rem; color: #9aa7b3; }

/* Accessibility helpers */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto; height: auto;
  display: inline-block;
  margin: 0.5rem;
  background: #fff;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Helpers */
.stack-sm > * + * { margin-top: 0.4rem; }
.stack > * + * { margin-top: 0.75rem; }
.stack-lg > * + * { margin-top: 1rem; }

.hr { height: 1px; background: var(--color-border); border: 0; }

/* Map */
.map-embed { border: 0; width: 100%; height: 350px; border-radius: 12px; }

/* Table (if needed) */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--color-border); text-align: left; }

/* Focus styles */
:where(a, button, [role="button"], .input, .textarea, .select, summary):focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.image-card {
  overflow: hidden;
  padding: 0;
}
.image-card img { display: block; width: 100%; height: auto; }

/* Decorative underline for headings */
.underline {
  position: relative;
  display: inline-block;
}
.underline::after {
  content: "";
  position: absolute; left: 0; bottom: -6px; width: 64%; height: 6px;
  background: linear-gradient(90deg, var(--color-accent), rgba(197,166,106,0));
  border-radius: 6px;
}

/* Gallery */
.gallery { display: grid; gap: 1rem; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 0.5rem; font-size: 0.95rem; color: #5a6872; }

/* Hero Logo */
.hero-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-logo {
  width: 100%;
  height: auto;
  max-width: 300px;
  opacity: 0.95;
}
