:root{
  --bg:#f7f7f8;
  --card:#ffffff;
  --accent:#0f4373;
  --muted:#6b7280;
  --radius:10px;
  --container:1100px;
  --gap:24px;
  --header-height:64px;
}

/* Optional: load Inter from Google Fonts (uncomment if desired)
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');
*/

*{box-sizing:border-box}
html,body{height:100%}
body{
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin:0;
  color:#111;
  background:var(--bg);
  line-height:1.5;
}

/* Accessible skip link: hidden until focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  background: transparent;
  z-index: 9999;
}

.skip-link:focus,
.skip-link:active {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  background: #0a58ca;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  clip: auto;
  white-space: normal;
  z-index: 99999;
}

/* Layout container */
.container{
  max-width:var(--container);
  margin:0 auto;
  padding:32px;
  gap:var(--gap);
}

/* Header visual separation and sticky behavior */
.site-header{
  background:linear-gradient(180deg, rgba(250,250,252,0.95), rgba(245,247,250,0.92));
  backdrop-filter:saturate(120%) blur(6px);
  position:sticky;
  top:0;
  z-index:30;
  border-bottom:1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 18px rgba(10,20,40,0.03);
  height:var(--header-height);
}

/* Darker variant you can toggle by adding the class site-header--dark */
.site-header--dark{
  background:linear-gradient(180deg, rgba(238,241,246,0.98), rgba(233,236,241,0.98));
  border-bottom-color: rgba(0,0,0,0.08);
  box-shadow: 0 8px 28px rgba(10,20,40,0.05);
}

/* Header inner layout */
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
}

/* Brand styling with gradient and badge */
.header-inner .brand {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: #0b1630;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  border-radius: 6px;
  transition: transform .12s ease, color .18s ease, text-shadow .18s ease;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  position: relative;
  z-index: 40;
}

/* Small accent badge to the left of the brand */
.header-inner .brand::before{
  content: "";
  width:10px;
  height:10px;
  background: linear-gradient(180deg, #0f4373, #0b9bd6);
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(11,20,40,0.08);
  display:inline-block;
  transform: translateY(-1px);
}

/* Hover affordance */
.header-inner .brand:hover {
  transform: translateY(-2px);
  text-shadow: 0 6px 20px rgba(11,20,40,0.06);
}

/* Small tagline under brand */
.header-inner .brand .tag {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0;
}

/* Optional subtle text-gradient for the brand word */
.header-inner .brand .brand-text {
  background: linear-gradient(90deg, #0b1630 0%, #0f4373 60%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  display: inline-block;
}

/* Navigation */
.nav{
  display:flex;
  align-items:center;
  gap:20px;
}

/* Nav link size, weight and spacing */
.header-inner .nav a {
  font-size: 1.02rem;
  font-weight: 700;
  color: #0b1630;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, transform .12s ease;
}

/* Subtle hover and focus state */
.header-inner .nav a:hover,
.header-inner .nav a:focus-visible {
  color: var(--accent);
  background: rgba(11,116,222,0.06);
  outline: 3px solid rgba(11,116,222,0.18);
  outline-offset: 2px;
  transform: translateY(-1px);
}

/* Mobile nav toggle: hidden on desktop */
.nav-toggle{
  display:none;
  background:transparent;
  border:0;
  font-size:1.25rem;
  line-height:1;
  cursor:pointer;
  color:#0b1630;
}

.nav-toggle:focus-visible{
  outline:3px solid rgba(11,116,222,0.18);
  outline-offset:2px;
  border-radius:8px;
}

/* Global button styles (for non-hero sections) */
.btn-primary{
  background:var(--accent);
  color:white;
  padding:10px 14px;
  border-radius:8px;
  text-decoration:none;
  display:inline-block;
  cursor:pointer;
}

.btn-outline{
  border:1px solid rgba(0,0,0,0.08);
  padding:10px 14px;
  border-radius:8px;
  text-decoration:none;
  color:#111;
  background:transparent;
  display:inline-block;
  cursor:pointer;
}

.btn-primary:focus-visible,
.btn-outline:focus-visible{
  outline:3px solid rgba(11,116,222,0.18);
  outline-offset:2px;
  border-radius:8px;
}

/* Full-bleed hero background */
.hero {
  width: 100%;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  position: relative;
  color: white;
  min-height: 64vh;
  display: flex;
  align-items: center;
  background-image: url("/assets/img/Modernized-Web-head.jpg");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  padding: 48px 0;
}


/* Overlay for legibility */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,12,24,0.45), rgba(6,12,24,0.45));
  pointer-events: none;
  z-index: 1;
}

/* Keep the content above the overlay */
.hero-inner { 
  position: relative; 
  z-index: 2; 
  display: flex; 
  gap: 28px; 
  align-items: center; 
}

/* Hero copy sizing */
.hero-copy { 
  max-width: 720px; 
  padding: 0 16px; 
}

.hero-copy h1 { 
  font-size: 2.2rem; 
  margin: 0 0 12px; 
  line-height: 1.05; 
}

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

/* CTA buttons container */
.hero-ctas { 
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap; 
  margin-bottom: 14px; 
}

/* Hero button styles - FIXED for visibility on dark background */
.hero .btn-primary,
.hero .btn-outline {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  border: 2px solid transparent;
}

/* Primary button - solid blue */
.hero .btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(15, 67, 115, 0.3);
}

/* Outline button - white with border, NOW VISIBLE on dark background */
.hero .btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
}

.nav .btn-primary.quote-btn {
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(15,67,115,0.3);
  margin-right: 8px;
}

/* Hover states */
.hero .btn-primary:hover,
.hero .btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 67, 115, 0.4);
  opacity: 0.95;
}

.hero .btn-outline:hover,
.hero .btn-outline:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}

/* Trust list */
.trust { 
  margin: 10px 0 0 0; 
  padding: 0; 
  list-style: none; 
  color: rgba(255,255,255,0.95); 
}

/* Hide the inline image completely since background is used */
.hero-image { 
  flex: 1;
}

/* Allow inline hero images to display when present */
.hero-image img {
  display: block !important;
  visibility: visible !important;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Sections and cards */
.section{padding:48px 0}

.alt{background:linear-gradient(180deg,#fff,#f7f9fc)}

.grid-3{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:18px;
}

.card{
  background:var(--card);
  padding:20px;
  border-radius:10px;
  box-shadow:0 6px 18px rgba(10,20,40,0.04);
}

.card h3 { margin-top: 0; margin-bottom: 8px; font-size: 1.05rem; }
.card h4 { margin-top: 0; font-size: 1rem; }
.card p { margin-bottom: 10px; color: var(--muted); }
.card ul { margin: 8px 0 0 18px; padding: 0; color: #111; }
.card ul li { margin-bottom: 6px; }

.portfolio-card img{
  width:100%;
  max-width:100%;
  height:140px;
  object-fit:cover;
  border-radius:8px;
}

/* Highlight the recommended card */
.grid-3 > .card:nth-child(2) {
  transform: translateY(-6px);
  border-color: rgba(15,67,115,0.08);
}

/* Lead section */
.lead-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:linear-gradient(90deg,#fff,#f3fbff);
  padding:20px;
  border-radius:12px;
  box-shadow:0 8px 20px rgba(10,20,40,0.04);
}

/* Footer */
.site-footer{
  padding:28px 0;
  background:transparent;
  border-top:1px solid rgba(0,0,0,0.04);
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

/* Utility classes */
.img-responsive{max-width:100%;height:auto;display:block}
.muted { color: var(--muted); }
.hero-title { margin-bottom: 8px; }

/* Avoid content hiding under the sticky header */
@supports (position:sticky) {
  main{ padding-top: calc(var(--header-height) + 8px); }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce){
  *{transition:none!important;animation:none!important}
}

/* Mobile responsive - consolidated */
@media (max-width:860px){
  .header-inner {
    padding: 8px 0;
    gap: 12px;
    position: relative;
    z-index: 50;
  }

  /* Brand stays visible but slightly smaller and compact */
  .header-inner .brand {
    font-size: 1rem;
    gap: 8px;
    padding: 2px 4px;
  }

  /* Hide optional tagline under brand on mobile */
  .header-inner .brand .tag {
    display: none;
  }

  /* Nav switches to stacked layout */
  .nav {
    display: none;
  }

  /* Dropdown panel that appears when .nav.open is applied */
  .nav.open {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    position: absolute;
    right: 16px;
    top: calc(var(--header-height) + 8px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(11,20,40,0.12);
    border: 1px solid rgba(11,20,40,0.06);
    width: min(92vw, 320px);
    max-width: 320px;
    z-index: 60;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }

  /* Make links large and easy to tap */
  .nav.open a {
    display: block;
    padding: 10px 12px;
    color: #0b1630;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
  }

  /* Hover/focus states inside panel */
  .nav.open a:hover,
  .nav.open a:focus-visible {
    background: rgba(11,116,222,0.06);
    outline: none;
    transform: none;
  }

  /* Contact link styling in mobile nav */
  .nav.open a.nav-link {
    background: transparent !important;
    color: #0b1630 !important;
    font-weight: 700;
    text-align: left;
    padding: 10px 12px;
    border-radius: 8px;
  }

  .nav-toggle {
    display: inline-block;
    font-size: 1.25rem;
    padding: 6px;
  }

  /* Hero responsive */
  .hero { 
    min-height: 46vh; 
    background-position: center 45%; 
    padding: 22px 0; 
  }

  .hero-inner { 
    flex-direction: column; 
    text-align: center; 
  }

  .hero-copy { 
    padding: 0 14px; 
  }

  .hero-copy h1 { 
    font-size: 1.4rem; 
  }

  /* Other responsive adjustments */
  .grid-3 { 
    grid-template-columns: 1fr; 
    gap: 12px; 
  }

  .card { 
    padding: 16px; 
  }

  .card[style*="display:flex"] { 
    flex-direction: column; 
  }

  .card[style*="display:flex"] > div:last-child { 
    margin-top:12px; 
  }

  .lead-inner{
    flex-direction:column;
    gap:12px;
  }

  .footer-inner{
    flex-direction:column;
    gap:12px;
    text-align:center;
  }

  footer.card { 
    flex-direction: column; 
    align-items: stretch; 
  }
}

/* Tablet responsive */
@media (max-width:1100px){
  .hero { 
    min-height: 56vh; 
    background-position: center 35%; 
    padding: 36px 0; 
  }
  
  .hero-copy h1 { 
    font-size: 1.9rem; 
  }
}

@media (max-width: 860px) {
 .hero { 
    background-image: url("/assets/img/Modernized-Web-head.jpg") !important;
    background-size: cover !important;
    background-position: center 45% !important;
    background-repeat: no-repeat !important;
  }
}

.hero { background-image: url("/assets/img/Modernized-Web-head.jpg") !important; background-size: cover !important; background-position: center 45% !important; }


/* Allow inline hero image to show when present */
.hero-image img {
  display: block !important;
  visibility: visible !important;
  width: 100%;
  height: auto;
  object-fit: cover;
}
