/* TEICO header v2 (2026-11-21): large hanging emblem + name, white menu row, navy top bar.
   Styles the existing header component; no change to its links or menus. */
body > .bg-primary.text-primary-foreground { background: #060A26 !important; min-height: 42px !important; padding: 6px 0 !important; position: relative; font-size: 13px; }
body > .bg-primary.text-primary-foreground p, body > .bg-primary.text-primary-foreground a { font-size: 13.5px !important; }
body > .bg-primary.text-primary-foreground .wrapper { padding-left: max(190px, calc((100% - 1280px) / 2 + 190px)); }
body > .bg-primary.text-primary-foreground svg { color: #FBDA0C; }

body > .bg-foreground.sticky, body > .bg-foreground.sticky > header { background: #fff !important; color: #0D1440 !important; }
body > .bg-foreground.sticky { box-shadow: 0 1px 0 #E3E7EF; transition: box-shadow .25s; z-index: 80 !important; }
html.th-scrolled body > .bg-foreground.sticky { box-shadow: 0 10px 30px -18px rgba(6,10,38,.45); }
body > .bg-foreground.sticky > header { height: 88px !important; }
body > .bg-foreground.sticky > header > .wrapper { justify-content: flex-start !important; gap: 0 !important; }

/* the emblem: 150px, hanging over the top bar, the menu row and the hero */
header img[alt="Logo"] { content: url(/img/brand/teico-mark-320.png); width: 150px !important; height: 150px !important; max-width: none !important; max-height: none !important; flex: none !important;
  margin: -30px 0 -32px -8px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(6,10,38,.28)); position: relative; z-index: 2; transition: width .25s, height .25s, margin .25s; }
body > .bg-foreground.sticky > header > .wrapper::before { content: "TEICO OVERSEAS"; order: 1; margin-left: 14px; font-size: 25px; line-height: 1; font-weight: 800; letter-spacing: .03em; color: #0057AD; white-space: nowrap; }
header img[alt="Logo"] { order: 0; }
header nav { order: 2; margin-left: auto; }
header button[data-slot="sheet-trigger"] { order: 3; margin-left: auto; color: #0D1440 !important; }
html.th-scrolled header img[alt="Logo"] { width: 62px !important; height: 62px !important; margin: 0 0 0 -4px; }

/* menu row */
header nav a[data-slot="navigation-menu-link"], header nav button[data-slot="navigation-menu-trigger"] { background: transparent !important; color: #0D1440 !important; font-size: 14.5px !important; font-weight: 700 !important; letter-spacing: .06em; padding: 8px 14px !important; height: auto !important; border-radius: 999px; }
header nav a[data-slot="navigation-menu-link"]:hover, header nav button[data-slot="navigation-menu-trigger"]:hover, header nav button[data-state="open"] { background: #EEF4FF !important; color: #0057AD !important; }
header nav a[data-slot="navigation-menu-link"].font-bold, header nav button[data-slot="navigation-menu-trigger"].font-bold { background: #0D1440 !important; color: #FBDA0C !important; }
header nav button[data-slot="navigation-menu-trigger"].font-bold svg { color: #FBDA0C !important; }
header nav button[data-slot="navigation-menu-trigger"] svg { color: #0057AD !important; }
header nav > a[href="/contact-us"] { background: #0057AD; border-color: #0057AD !important; color: #fff !important; font-size: 15px !important; padding: 11px 20px !important; }
header nav > a[href="/contact-us"]:hover { background: #FBDA0C; border-color: #FBDA0C !important; color: #060A26 !important; }

@media (max-width: 1180px) {
  body > .bg-foreground.sticky > header > .wrapper::before { font-size: 20px; }
  header img[alt="Logo"] { width: 120px !important; height: 120px !important; margin: -32px 0 -16px -6px; }
  header nav a[data-slot="navigation-menu-link"], header nav button[data-slot="navigation-menu-trigger"] { font-size: 12.5px !important; padding: 6px 9px !important; letter-spacing: .03em; }
  body > .bg-primary.text-primary-foreground .wrapper { padding-left: 16px; }
}
@media (max-width: 1023px) {
  body > .bg-foreground.sticky > header { height: 72px !important; }
  header img[alt="Logo"] { width: 84px !important; height: 84px !important; margin: -14px 0 -10px -4px; }
  html.th-scrolled header img[alt="Logo"] { width: 52px !important; height: 52px !important; margin: 0; }
  body > .bg-foreground.sticky > header > .wrapper::before { font-size: 17px; margin-left: 10px; }
}

/* footer (all pages): blob background -> soft paper gradient with a fine technical grid */
body > footer[class*="footer-ellipse"] { background: url(/graphics/site-v2/grid-light.svg) center / 1600px auto, radial-gradient(900px 420px at 100% 0%, rgba(2,133,254,.06), rgba(2,133,254,0) 60%), linear-gradient(180deg, #F7F9FC 0%, #EEF2F7 100%) !important; border-top: 1px solid #DDE2EA; }
body > footer a { transition: color .35s ease; }
body > footer a:hover { color: #0057AD; }
