/*
Theme Name: Astra Child - ASPCV Premium
Template: astra
Description: ASPCV brand-matched theme (navy + orange)
Version: 2.0
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== BRAND TOKENS ===== */
:root {
  --navy:        #1a2a5e;
  --navy-dark:   #111b3e;
  --navy-deep:   #0d1530;
  --orange:      #e8650a;
  --orange-lt:   #f07c2a;
  --blue:        #2b4ba0;
  --blue-lt:     #3d5fc0;
  --bg:          #f5f7ff;
  --bg-warm:     #eef0f8;
  --surface:     #ffffff;
  --border:      #dde2f0;
  --text:        #1a1a2e;
  --muted:       #5a6080;
  --gold:        #e8650a;

  --font-h: 'Playfair Display', Georgia, serif;
  --font-b: 'Inter', system-ui, sans-serif;
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px;
  --sh-sm: 0 2px 8px rgba(26,42,94,0.07);
  --sh-md: 0 8px 32px rgba(26,42,94,0.12);
  --sh-lg: 0 20px 60px rgba(26,42,94,0.18);
  --tx: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ===== RESET / BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-h); color: var(--text); line-height: 1.2; font-weight: 700; }
a { color: var(--blue); transition: var(--tx); }
a:hover { color: var(--orange); }
img { max-width: 100%; }

/* ===== HEADER / NAV ===== */
#masthead, .site-header, .main-header-bar,
.ast-site-header-wrap, .main-header-bar-wrap {
  background: #ffffff !important;
  
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  width: 100% !important;
}
#masthead { border-bottom: 2px solid var(--orange) !important; }
.ast-primary-header-bar,
#ast-desktop-header, .ast-main-header-wrap {
  background: #ffffff !important;
  min-height: 70px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 40px !important;
}
.main-header-bar-wrap { display: block !important; }

/* Logo */
.custom-logo, .ast-header-logo-img-wrap img,
.site-logo-img img, .custom-logo-link img {
  height: 42px !important;
  max-height: 42px !important;
  width: auto !important;
  filter: none !important;
  object-fit: contain !important;
}
.ast-site-identity {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.ast-site-identity .site-title,
.ast-site-identity .site-title a {
  display: block !important;
  font-family: var(--font-b) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #0d1530 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

/* Nav links desktop */
.ast-nav-menu > li > a, .main-header-menu > li > a,
#ast-desktop-header .main-header-menu > li > a {
  color: #0d1530 !important;
  font-family: var(--font-b) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.03em !important;
  padding: 0 14px !important;
  line-height: 70px !important;
  transition: var(--tx) !important;
}
.ast-nav-menu > li > a:hover, .main-header-menu > li > a:hover,
.ast-nav-menu > li.current-menu-item > a,
#ast-desktop-header .main-header-menu > li > a:hover {
  color: var(--orange) !important;
}

/* Dropdown */
.ast-nav-menu .sub-menu, .main-header-menu .sub-menu,
#ast-desktop-header .sub-menu {
  background: var(--navy-dark) !important;
  border-top: 2px solid var(--orange) !important;
  border-radius: 0 0 var(--r-md) var(--r-md) !important;
  box-shadow: var(--sh-lg) !important;
  min-width: 200px !important;
}
.ast-nav-menu .sub-menu li a, #ast-desktop-header .sub-menu li a {
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.84rem !important;
  padding: 10px 20px !important;
  line-height: 1.5 !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}
.ast-nav-menu .sub-menu li a:hover, #ast-desktop-header .sub-menu li a:hover {
  color: var(--orange) !important;
  background: rgba(232,101,10,0.08) !important;
}

/* Mobile nav */
.ast-mobile-header-wrap,
#ast-mobile-header { background: #ffffff !important; }
.ast-mobile-header-wrap .ast-site-identity .site-title,
.ast-mobile-header-wrap .ast-site-identity .site-title a { color: #0d1530 !important; font-size: 0.8rem !important; }
.ast-button-wrap .menu-toggle,
.ast-mobile-header-wrap .menu-toggle,
button.ast-mobile-nav-buttons { color: #0d1530 !important; border-color: rgba(13,21,48,0.2) !important; }
.main-navigation { background: #ffffff !important; }
.main-navigation li a { color: #0d1530 !important; border-bottom: none !important; }
.main-navigation li a:hover { color: var(--orange) !important; }

/* ===== PAGE TITLE BAR ===== */
.aspcv-page-title {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: 80px 0 56px;
  position: relative; overflow: hidden;
}
.aspcv-page-title::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(232,101,10,0.15) 0%, transparent 60%);
}
.aspcv-page-title h1 {
  font-family: var(--font-h);
  color: #fff;
  font-size: clamp(2rem,4vw,3.2rem);
  margin: 0; position: relative; z-index: 1;
}
.aspcv-breadcrumb { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-top: 8px; position: relative; z-index: 1; }
.aspcv-breadcrumb a { color: var(--orange); text-decoration: none; }

/* ===== LAYOUT FULL-WIDTH FIXES ===== */
body.page-template-page-home-premium .site-content,
body.page-template-page-home-premium #content,
body.page-template-page-home-premium .ast-container,
body.page-template-page-home-premium .entry-content,
body.page-template-page-home-premium #primary {
  max-width: 100% !important; padding: 0 !important; margin: 0 !important; width: 100% !important;
}
body.page-template-page-home-premium .site-content > .ast-container { display: block !important; }
body.page-template-page-home-premium #secondary { display: none !important; }

.page-template-page-about #content .ast-container,
.page-template-page-technologies #content .ast-container,
.page-template-page-service #content .ast-container,
.page-template-page-contact #content .ast-container {
  display: block !important; max-width: 100% !important; padding: 0 !important; margin: 0 !important; width: 100% !important;
}
#secondary, .widget-area, .ast-sidebar-wrap { display: none !important; }
#primary, .site-main { width: 100% !important; max-width: 100% !important; padding: 0 !important; margin: 0 !important; float: none !important; }
.page-template-page-about .entry-content,
.page-template-page-technologies .entry-content,
.page-template-page-service .entry-content,
.page-template-page-contact .entry-content,
.page-template-page-about article,
.page-template-page-technologies article,
.page-template-page-service article,
.page-template-page-contact article {
  padding: 0 !important; margin: 0 !important; max-width: 100% !important;
}
.ast-flex.ast-justify-content-space-bet,
#content > .ast-container > .ast-row { display: block !important; }

/* Hero padding for sticky nav */
body.page-template-page-home-premium section:first-of-type { padding-top: 0 !important; }

/* ===== FOOTER ===== */
.site-footer, .ast-small-footer {
  background: #ffffff !important;
  color: rgba(255,255,255,0.5) !important;
  border-top: 2px solid var(--orange) !important;
  font-size: 0.85rem !important;
}
.site-footer a { color: var(--orange) !important; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(30px); }
  to   { opacity:1; transform:translateY(0); }
}
.aspcv-animate { opacity: 0; }
.aspcv-animate.visible { animation: fadeUp 0.7s cubic-bezier(0.4,0,0.2,1) forwards; }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 992px) {
  .ast-primary-header-bar,
  #ast-desktop-header, .ast-main-header-wrap { padding: 0 20px !important; }
}

@media (max-width: 768px) {
  /* Nav */
  .ast-primary-header-bar { padding: 0 16px !important; min-height: 60px !important; }

  /* Inner page sections — force single column */
  section > div[style*="display:grid"],
  section > div > div[style*="display:grid"],
  section > div[style*="grid-template-columns"],
  section > div > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Tech page alternating layout */
  div[style*="grid-template-columns:1.2fr 1fr"],
  div[style*="grid-template-columns:1fr 1.2fr"],
  div[style*="grid-template-columns: 1.2fr 1fr"],
  div[style*="grid-template-columns: 1fr 1.2fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Services 4-col → 1-col */
  div[style*="grid-template-columns:repeat(4,1fr)"],
  div[style*="grid-template-columns: repeat(4,1fr)"],
  div[style*="repeat(4,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* How we work 4-col → 2-col */
  div[style*="repeat(4,1fr)"] { grid-template-columns: 1fr 1fr !important; }

  /* ESCO 2-col → 1-col */
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Page title */
  .aspcv-page-title { padding: 60px 0 40px !important; }
  .aspcv-page-title h1 { font-size: 1.8rem !important; }

  /* Section padding */
  section[style*="padding:100px"],
  section[style*="padding: 100px"] { padding: 60px 0 !important; }
  section[style*="padding:80px"],
  section[style*="padding: 80px"] { padding: 50px 0 !important; }

  /* Container padding */
  div[style*="max-width:1200px"],
  div[style*="max-width: 1200px"],
  div[style*="max-width:1100px"],
  div[style*="max-width: 1100px"] { padding-left: 16px !important; padding-right: 16px !important; }

  /* Font sizes */
  h2[style*="clamp"] { font-size: 1.7rem !important; }

  /* Contact 2-col */
  div[style*="grid-template-columns:1fr 1.4fr"],
  div[style*="grid-template-columns: 1fr 1.4fr"] { grid-template-columns: 1fr !important; }

  /* About leadership grid */
  div[style*="grid-template-columns:repeat(3,1fr)"],
  div[style*="grid-template-columns: repeat(3,1fr)"] { grid-template-columns: 1fr 1fr !important; }
  div[style*="grid-template-columns:repeat(2,1fr)"],
  div[style*="grid-template-columns: repeat(2,1fr)"] { grid-template-columns: 1fr 1fr !important; }

  /* Timeline */
  div[style*="grid-template-columns:repeat(6,1fr)"],
  div[style*="repeat(6,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }

  /* Hero home mobile - handled inline */
  .aspcv-hero-text { padding: 20px !important; }
}

@media (max-width: 480px) {
  div[style*="repeat(4,1fr)"],
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }

  div[style*="grid-template-columns:repeat(3,1fr)"],
  div[style*="repeat(3,1fr)"] { grid-template-columns: 1fr !important; }

  div[style*="grid-template-columns:repeat(2,1fr)"],
  div[style*="repeat(2,1fr)"] { grid-template-columns: 1fr !important; }
}

/* ===== MOBILE NAV + HERO FIXES ===== */
@media(max-width:920px){
  /* Hide desktop header on mobile */
  #ast-desktop-header { display: none !important; }
  /* Show mobile header */
  #ast-mobile-header, .ast-mobile-header-wrap { display: block !important; }
  .ast-mobile-header-wrap { background: #ffffff !important; }

  /* Hero: remove min-height causing empty space */
  section[style*='min-height:90vh'] { min-height: unset !important; padding: 80px 0 56px !important; }
  section[style*='min-height: 90vh'] { min-height: unset !important; padding: 80px 0 56px !important; }

  /* Mobile hamburger */
  .ast-button-wrap .menu-toggle { color: #fff !important; }
  .ast-mobile-nav-buttons svg, .ast-mobile-nav-buttons span { color: #fff !important; fill: #fff !important; }
}

@media(max-width:600px){
  /* Stats grid 2-col */
  .hp-stats-grid { grid-template-columns: repeat(2,1fr) !important; gap: 16px !important; }
  .hp-stats-grid > div:last-child { grid-column: 1/-1; }

  /* Container padding */
  div[style*='padding:0 24px'] { padding: 0 16px !important; }
  div[style*='padding: 0 24px'] { padding: 0 16px !important; }
}

/* ===== TECH DETAIL FULL WIDTH ===== */
.page-template-page-tech-detail #content .ast-container,
.page-template-page-tech-detail #primary,
.page-template-page-tech-detail .site-main,
.page-template-page-tech-detail .entry-content,
.page-template-page-tech-detail article {
  display: block !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}
.page-template-page-tech-detail #secondary { display: none !important; }

/* ===== ESCO FULL WIDTH ===== */
.page-template-page-esco #content .ast-container,
.page-template-page-esco #primary,
.page-template-page-esco .entry-content,
.page-template-page-esco article {
  display: block !important; max-width: 100% !important; width: 100% !important; padding: 0 !important; margin: 0 !important; float: none !important;
}
.page-template-page-esco #secondary { display: none !important; }

/* ===== ESCO AST-CONTAINER FIX ===== */
.page-template-page-esco #content .ast-container {
  display: block !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ===== AST-PAGE-BUILDER FULL WIDTH FIX (all custom templates) ===== */
.ast-page-builder-template #content .ast-container,
body.page-template-page-esco-php #content .ast-container,
body.page-template-page-about-php #content .ast-container,
body.page-template-page-technologies-php #content .ast-container,
body.page-template-page-service-php #content .ast-container,
body.page-template-page-contact-php #content .ast-container,
body.page-template-page-tech-detail-php #content .ast-container {
  display: block !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-direction: unset !important;
}

/* ===== MOBILE NAV LIGHT THEME ===== */
@media(max-width:921px) {
  /* Light white navbar on mobile */
  #ast-mobile-header,
  .ast-mobile-header-wrap,
  .ast-mobile-header-wrap .main-header-bar,
  .ast-mobile-header-wrap .ast-primary-header-bar {
    background: #ffffff !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
  }

  /* Logo on mobile */
  .ast-mobile-header-wrap .custom-logo,
  .ast-mobile-header-wrap .site-logo-img img,
  .ast-mobile-header-wrap .custom-logo-link img {
    height: 36px !important;
    max-height: 36px !important;
    width: auto !important;
    display: block !important;
    filter: none !important;
  }

  /* Site title dark on light bg */
  .ast-mobile-header-wrap .ast-site-identity .site-title,
  .ast-mobile-header-wrap .ast-site-identity .site-title a {
    color: #1a1a2e !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
  }

  /* Hamburger icon — dark */
  .ast-mobile-header-wrap .menu-toggle,
  .ast-mobile-header-wrap .ast-button-wrap button,
  .ast-mobile-header-wrap .ast-mobile-nav-buttons,
  #ast-mobile-header .menu-toggle {
    color: #1a1a2e !important;
    border-color: rgba(26,42,94,0.2) !important;
    background: transparent !important;
  }
  .ast-mobile-header-wrap .menu-toggle span,
  .ast-mobile-header-wrap .menu-toggle .ast-icon,
  #ast-mobile-header .menu-toggle svg,
  #ast-mobile-header .menu-toggle span {
    color: #1a1a2e !important;
    fill: #1a1a2e !important;
    background: #1a1a2e !important;
  }
  /* Hamburger lines */
  .ast-mobile-header-wrap .menu-toggle .ast-icon svg path,
  .ast-button-wrap .ast-mobile-nav-buttons svg path {
    stroke: #1a1a2e !important;
    fill: #1a1a2e !important;
  }

  /* Mobile dropdown menu */
  .main-navigation,
  .ast-mobile-header-wrap .main-navigation {
    background: #ffffff !important;
    border-top: 1px solid #eef0f8 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
  }
  .main-navigation li a,
  .ast-mobile-header-wrap .main-navigation li a {
    color: #1a1a2e !important;
    font-weight: 500 !important;
    border-bottom: 1px solid #eef0f8 !important;
    padding: 14px 20px !important;
  }
  .main-navigation li a:hover {
    color: #e8650a !important;
    background: #fff4ee !important;
  }
  .main-navigation .sub-menu {
    background: #f5f7ff !important;
  }
  .main-navigation .sub-menu li a {
    color: #3a3a5a !important;
    padding: 12px 32px !important;
  }
}

/* ===== MOBILE NAV OVERRIDE (masthead) ===== */
@media(max-width:921px) {
  #masthead,
  #masthead .main-header-bar,
  #ast-mobile-header,
  .ast-mobile-header-wrap,
  #ast-mobile-header .main-header-bar,
  #ast-mobile-header .ast-primary-header-bar {
    background: #ffffff !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
  }

  /* Hamburger lines dark */
  #masthead .ast-button-wrap button,
  #masthead .menu-toggle,
  #ast-mobile-header .ast-button-wrap button {
    color: #1a1a2e !important;
  }
  #masthead .ast-button-wrap button span,
  #masthead .menu-toggle .ast-icon,
  #masthead .ast-mobile-nav-buttons svg,
  #ast-mobile-header .ast-button-wrap svg {
    background-color: #1a1a2e !important;
    color: #1a1a2e !important;
    fill: #1a1a2e !important;
  }

  /* Site title */
  #masthead .site-title a,
  #masthead .site-title {
    color: #1a1a2e !important;
  }

  /* Mobile open menu */
  #masthead .main-navigation,
  #ast-mobile-header .main-navigation {
    background: #ffffff !important;
  }
  #masthead .main-navigation a {
    color: #1a1a2e !important;
    border-bottom: 1px solid #eef0f8 !important;
  }
  #masthead .main-navigation a:hover { color: #e8650a !important; }
}

/* Hamburger button fix — remove dark bg, show 3-line style */
@media(max-width:921px){
  .menu-toggle.ast-mobile-menu-trigger-minimal {
    background: transparent !important;
    border: none !important;
    padding: 8px !important;
    width: auto !important;
    height: auto !important;
  }
  .menu-toggle.ast-mobile-menu-trigger-minimal .ast-icon {
    background: transparent !important;
    color: #0d1530 !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-around !important;
  }
  /* Force SVG inside button to be visible and dark */
  .menu-toggle svg { display: block !important; fill: #0d1530 !important; color: #0d1530 !important; width:24px!important; height:24px!important; }
  .menu-toggle svg line, .menu-toggle svg rect, .menu-toggle svg path { stroke: #0d1530 !important; fill: #0d1530 !important; }
}

/* ===== HAMBURGER 3-LINE ICON ===== */
@media(max-width:921px){
  /* Hide Astra's SVG icon */
  .menu-toggle .ast-icon svg,
  .menu-toggle svg { display:none !important; }
  /* Draw 3 lines via pseudo */
  .menu-toggle { position:relative !important; width:40px !important; height:40px !important; background:transparent !important; border:1.5px solid rgba(13,21,48,0.2) !important; border-radius:6px !important; padding:0 !important; display:flex !important; align-items:center !important; justify-content:center !important; }
  .menu-toggle::before {
    content:'' !important;
    display:block !important;
    width:20px !important;
    height:2px !important;
    background:#0d1530 !important;
    box-shadow:0 6px 0 #0d1530, 0 -6px 0 #0d1530 !important;
    border-radius:2px !important;
  }
}

/* ===== MOBILE NAV ALIGNMENT FIX ===== */
@media(max-width:921px){
  /* Nav bar flex layout */
  #ast-mobile-header .main-header-bar,
  .ast-mobile-header-wrap .main-header-bar {
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    padding:0 16px !important;
    height:64px !important;
    min-height:64px !important;
  }
  /* Site identity row: logo + title side by side */
  #ast-mobile-header .ast-site-identity,
  .ast-mobile-header-wrap .ast-site-identity {
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    flex:1 !important;
  }
  /* Logo bigger */
  #ast-mobile-header .custom-logo-link img,
  #ast-mobile-header .site-logo-img img,
  .ast-mobile-header-wrap .custom-logo-link img {
    height:40px !important;
    max-height:40px !important;
    width:auto !important;
  }
  /* Site title smaller, fits on one line */
  #ast-mobile-header .site-title,
  #ast-mobile-header .site-title a,
  .ast-mobile-header-wrap .site-title,
  .ast-mobile-header-wrap .site-title a {
    font-size:0.68rem !important;
    letter-spacing:0.04em !important;
    line-height:1.2 !important;
    white-space:nowrap !important;
    color:#0d1530 !important;
    font-weight:700 !important;
  }
  /* Hamburger stays right */
  #ast-mobile-header .ast-button-wrap,
  .ast-mobile-header-wrap .ast-button-wrap {
    flex-shrink:0 !important;
    margin-left:auto !important;
  }
}

/* Nav items fit single row */
.ast-nav-menu > li > a, .main-header-menu > li > a,
#ast-desktop-header .main-header-menu > li > a {
  padding: 0 10px !important;
  font-size: 0.82rem !important;
}

/* Desktop: shrink site title so nav fits one row */
@media(min-width:922px){
  .ast-site-identity .site-title,
  .ast-site-identity .site-title a {
    font-size: 0.72rem !important;
    letter-spacing: 0.04em !important;
  }
  .ast-site-identity { max-width: 260px !important; }
  #ast-desktop-header .main-header-menu > li > a {
    padding: 0 8px !important;
    font-size: 0.8rem !important;
  }
}

/* Desktop: restore logo size */
@media(min-width:922px){
  .custom-logo, .ast-header-logo-img-wrap img,
  .site-logo-img img, .custom-logo-link img {
    height: 44px !important;
    max-height: 44px !important;
  }
}

/* Logo container fix - no shrink */
.custom-logo-link,
.ast-header-logo-img-wrap,
.ast-site-logo { flex-shrink: 0 !important; }
.custom-logo-link img,
.ast-header-logo-img-wrap img {
  height: 44px !important;
  width: auto !important;
  max-width: none !important;
  min-width: unset !important;
}

/* Desktop: hide duplicate site title text, show only logo icon */
@media(min-width:922px){
  .ast-site-identity .site-title { display:none !important; }
  .custom-logo-link img,
  .ast-header-logo-img-wrap img {
    height: 56px !important;
    max-height: 56px !important;
    width: auto !important;
    max-width: none !important;
  }
}

/* Desktop logo: force wider display box */
@media(min-width:922px){
  .custom-logo-link img,
  .ast-header-logo-img-wrap img {
    height: 52px !important;
    width: 130px !important;
    max-width: 130px !important;
    object-fit: contain !important;
    object-position: left center !important;
  }
}

/* Desktop: show title text alongside icon */
@media(min-width:922px){
  .ast-site-identity .site-title { display:block !important; }
  .ast-site-identity .site-title,
  .ast-site-identity .site-title a {
    font-size:0.85rem !important;
    font-weight:700 !important;
    color:#0d1530 !important;
    letter-spacing:0.05em !important;
    text-transform:uppercase !important;
    white-space:nowrap !important;
  }
  /* Keep logo icon compact */
  .custom-logo-link img,
  .ast-header-logo-img-wrap img {
    height: 40px !important;
    width: 40px !important;
    max-width: 40px !important;
    object-fit: contain !important;
  }
  .ast-site-identity { max-width:320px !important; gap:10px !important; }
}

/* Use wide logo with baked-in text, hide duplicate title */
.ast-site-identity .site-title { display:none !important; }
.custom-logo-link img,
.ast-header-logo-img-wrap img {
  height: 50px !important;
  width: auto !important;
  max-width: none !important;
  max-height: 50px !important;
  object-fit: contain !important;
}
