/* BayFrontigo 2026 — explicit contrast layer.
   Loaded last so foreground colours never depend on inheritance across light/dark sections. */

/* HERO */
.hero.hero-award{color:#f7f9fb}
.hero.hero-award .hero-copy{color:#b9c5cf}
.hero.hero-award .hero-copy{border:0!important;outline:0!important;box-shadow:none!important}
.hero.hero-award h1,.hero.hero-award h1 .hero-line{border:0!important;outline:0!important;box-shadow:none!important}
.hero.hero-award h1:before,.hero.hero-award h1:after,.hero.hero-award h1 .hero-line:before,.hero.hero-award h1 .hero-line:after{content:none!important;display:none!important}
.hero.hero-award .button.primary{background:#f7f9fa!important;color:#06111b!important}
.hero.hero-award .button.primary:hover{background:#fff!important;color:#02070d!important}
.hero.hero-award .button.secondary{color:#f7f9fb!important;border-color:rgba(255,255,255,.32)!important;background:rgba(255,255,255,.055)!important}
.hero.hero-award .button.secondary:hover{color:#fff!important;border-color:rgba(233,185,79,.72)!important;background:rgba(233,185,79,.10)!important}
.hero-meta small{color:#8ea1b2!important}.hero-meta strong{color:#d9e1e7!important}.scroll-cue{color:#91a2b1!important}

/* LIGHT INTRO */
.intro{color:#091018!important}.intro .section-label{color:#087fbe!important}.intro h2{color:#091018!important}.intro p{color:#46525c!important}.company-principle strong{color:#091018!important}.company-principle span{color:#53616b!important}

/* DARK SOLUTIONS */
.dark-section{color:#f4f7fa!important}.dark-section .section-label{color:#65c8ff!important}.dark-section h2,.dark-section h3{color:#f7f9fb!important}.dark-section .cards p{color:#bdc8d2!important}.dark-section .cards article>span{color:#f3c85b!important}.dark-section .cards article:after{color:#f0c153!important}

/* PRODUCTS: light outer section + dark showcase */
.products{color:#071019!important}.products>.section-label{color:#087fbe!important}.products>h2{color:#071019!important}.products>p{color:#4d5962!important}
.product-showcase{color:#f7f9fb!important}.product-showcase h3{color:#f7f9fb!important}.product-showcase .product-kicker{color:#75cfff!important}.product-showcase .product-lead,.product-showcase p{color:#b8c4cf!important}.product-showcase p strong{color:#f5f7f9!important}.product-showcase .product-tags span{color:#cbd4dc!important;background:rgba(255,255,255,.075)!important}.product-showcase .button.primary{background:#f7f9fa!important;color:#06111b!important}.product-showcase .button.primary:hover{background:#fff!important;color:#02070d!important}

/* DARK DNA / METHOD — V3.2 */
.capabilities{background:#02060b!important;color:#f7f9fb!important}
.capabilities .section-label{color:#7f93a4!important}
.capabilities .cap-grid b{color:#efbd4e!important}
.capabilities .cap-grid h3{color:#f7f9fb!important}
.capabilities .cap-grid p{color:#b8c4cf!important}

/* DARK CONTACT */
.contact{color:#f7f9fb!important}.contact .section-label{color:#65c8ff!important}.contact h2{color:#f7f9fb!important}.contact .form-intro{color:#b4c0ca!important}.contact .direct-email{color:#72cfff!important}.contact .info-form label{color:#c6d0d9!important}
.contact .info-form input,.contact .info-form select,.contact .info-form textarea{color:#f7f9fb!important;background-color:#07111b!important;border-color:rgba(255,255,255,.18)!important;color-scheme:dark}
.contact .info-form input:focus,.contact .info-form select,.contact .info-form textarea:focus{color:#fff!important;background-color:#091723!important;border-color:#45bfff!important}
.contact .info-form input::placeholder,.contact .info-form textarea::placeholder{color:#9cabb8!important;opacity:1}
.contact .info-form select option,.contact .info-form select optgroup{color:#071019!important;background:#fff!important}
.contact .info-form select option:checked{color:#071019!important;background:#dceffb!important}
.contact .form-button{background:#f7f9fa!important;color:#06111b!important}.contact .form-button:hover{background:#fff!important;color:#02070d!important}.contact .form-button:disabled{color:#26323b!important;background:#aeb9c1!important}

/* NAVIGATION */
.site-header{background:rgba(2,7,13,.86)!important;border-bottom:1px solid rgba(255,255,255,.10)!important;box-shadow:0 8px 28px rgba(2,7,13,.12)!important;backdrop-filter:blur(20px) saturate(135%)!important;-webkit-backdrop-filter:blur(20px) saturate(135%)!important}
.site-header nav>a{color:#e2e9ee!important;text-shadow:0 1px 2px rgba(0,0,0,.18)}
.site-header nav>a:hover{color:#fff!important}
.site-header .nav-cta{color:#071019!important;background:#f3c85b!important;border-color:#f3c85b!important;text-shadow:none!important}
.site-header .nav-cta:hover{color:#02070d!important;background:#ffd66b!important;border-color:#ffd66b!important}
.language-select{color:#eef3f6!important;background-color:#07111b!important;color-scheme:dark;border:1px solid rgba(255,255,255,.10)!important;border-radius:8px}
.language-select option,.language-select optgroup{color:#071019!important;background:#fff!important}
.language-select option:checked{color:#071019!important;background:#dceffb!important}

/* FOOTER */
footer{color:#aab6c0!important}.footer-links a{color:#aab6c0!important}.footer-links a:hover{color:#fff!important}.copyright{color:#8796a3!important}
select option,select optgroup{color:#071019;background-color:#fff}
button,input,select,textarea{font:inherit}
a:focus-visible,button:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #f0c153!important;outline-offset:3px}

@media(max-width:600px){
 .site-header{background:rgba(2,7,13,.92)!important;box-shadow:0 6px 22px rgba(2,7,13,.16)!important}
 .hero.hero-award .button.secondary{background:rgba(255,255,255,.07)!important;border-color:rgba(255,255,255,.36)!important;color:#fff!important}
 .dark-section .cards p{color:#c4ced7!important}
 .product-showcase .product-lead,.product-showcase p{color:#c0cad3!important}
 .capabilities .cap-grid h3{color:#fff!important}
 .capabilities .cap-grid p{color:#c2ccd5!important}
 .contact .form-intro{color:#bdc7d0!important}
 .contact .info-form input,.contact .info-form select,.contact .info-form textarea{font-size:16px}
}

/* Readable solution numbers (01, 02, 03) on desktop and mobile. */
.dark-section .cards article > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 40px;
  padding: 7px 13px;
  border: 1px solid rgba(243, 200, 91, .48);
  border-radius: 10px;
  background: rgba(243, 200, 91, .09);
  color: #f3c85b !important;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .10em;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
  .dark-section .cards article > span:first-child {
    min-width: 58px;
    min-height: 38px;
    font-size: 19px;
  }
}

/* Matching BayFrontigo DNA number badges. */
.capabilities .cap-grid > div > b:first-child{display:inline-flex;align-items:center;justify-content:center;min-width:62px;min-height:40px;padding:7px 13px;border:1px solid rgba(243,200,91,.48);border-radius:10px;background:rgba(243,200,91,.09);color:#f3c85b!important;font-size:21px!important;font-weight:700;line-height:1;letter-spacing:.10em;font-variant-numeric:tabular-nums}
@media(max-width:600px){.capabilities .cap-grid > div > b:first-child{min-width:58px;min-height:38px;font-size:19px!important}}

/* AI & Innovation editorial section */
.ai-innovation{background:radial-gradient(ellipse at 90% 0%,rgba(17,129,213,.16),transparent 45%),#030a12;color:#f4f8fb;scroll-margin-top:90px}
.ai-innovation-head{display:grid;grid-template-columns:1.4fr 1fr;gap:48px;align-items:end}
.ai-innovation .section-label{color:#70ccff!important}
.ai-innovation h2{font-size:clamp(38px,5.4vw,76px);line-height:1.08;letter-spacing:-.045em;margin:20px 0 0;color:#fff}
.ai-innovation-head>p{color:#becbd6;font-size:clamp(16px,1.5vw,20px);line-height:1.65;max-width:560px}
.ai-innovation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:55px 0 35px}
.ai-innovation-card{position:relative;overflow:hidden;min-height:315px;padding:30px;border:1px solid rgba(114,198,255,.18);border-radius:20px;background:linear-gradient(155deg,rgba(21,55,82,.55),rgba(5,15,27,.85));display:flex;flex-direction:column;justify-content:flex-end}
.ai-innovation-number{position:absolute;top:27px;left:30px;color:#f3c85b;font-weight:700;font-size:15px;letter-spacing:.14em}
.ai-innovation-orb{position:absolute;width:130px;height:130px;top:22px;right:8px;border-radius:50%;background:radial-gradient(circle at 35% 35%,rgba(112,204,255,.8),rgba(29,103,190,.25) 40%,transparent 70%);filter:blur(3px);opacity:.6}
.ai-innovation-card h3{font-size:clamp(22px,2.1vw,30px);line-height:1.2;color:#fff;margin:0 0 14px}
.ai-innovation-card p{color:#c2cfda;line-height:1.55;margin:0;font-size:15px}
.ai-innovation-cta{display:inline-flex;gap:20px;align-items:center}
@media(max-width:800px){.ai-innovation-head{grid-template-columns:1fr;gap:15px}.ai-innovation-grid{grid-template-columns:1fr;margin:30px 0}.ai-innovation-card{min-height:225px;padding:26px}.ai-innovation-orb{width:95px;height:95px}.ai-innovation-card h3{font-size:25px}}

/* Homepage refinement: preserve existing visual language and product pages. */
.home-page .hero.hero-award h1{font-size:var(--bf-hero-heading);line-height:1.04;letter-spacing:-.05em;max-width:100%;margin:24px 0 28px;overflow-wrap:break-word}
.home-page .hero-line{max-width:100%;text-wrap:balance}
.home-page .hero-gradient{padding-bottom:.06em}
.home-page .hero-lower{max-width:none;grid-template-columns:minmax(0,650px) minmax(0,1fr);gap:clamp(24px,4vw,60px);align-items:center;margin-top:24px}
.home-page .hero-actions{flex-wrap:wrap;gap:12px}
.home-page .hero-actions .button{min-height:54px;font-size:15px;white-space:normal}
.home-page .hero.hero-award .button.primary{background:#f3c85b!important;color:#071019!important}
.home-page .hero.hero-award .button.primary:hover{background:#ffd66b!important;color:#02070d!important}
.home-page .hero-meta{margin-top:clamp(30px,5vh,60px)}
.home-page .hero-meta small{font-size:10px;letter-spacing:.13em;color:#aab9c7!important}
.home-page .hero-meta strong{font-size:15px;line-height:1.4}
.site-header nav{font-size:var(--bf-nav);gap:clamp(12px,1.4vw,26px)}
.site-header .brand-logo{width:var(--bf-logo);height:var(--bf-logo-height);max-width:100%}
.site-header .brand{min-width:0;flex-shrink:0}
.site-header .language-select{min-height:40px}
@media(max-width:1100px){.site-header .brand-logo{width:205px}.site-header nav{font-size:13px;gap:12px}}
@media(max-width:900px){.home-page .hero-lower{grid-template-columns:1fr;gap:22px}.home-page .hero-meta{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.site-header .brand-logo{width:180px;height:62px;max-width:48vw}.home-page .hero.hero-award h1{font-size:var(--bf-hero-heading);line-height:1.08;letter-spacing:-.04em;margin:22px 0}.home-page .hero-lower{display:block;margin-top:0}.home-page .hero-actions{display:grid;grid-template-columns:1fr;margin-top:22px}.home-page .hero-meta{margin-top:26px}.home-page .hero-meta strong{font-size:13px}.home-page .hero-meta small{font-size:10px}}

/* Homepage dimensional system. Typography and layout only; keep content and visual identity. */
:root {
  --bf-section-space: clamp(64px, 6vw, 96px);
  --bf-gutter: max(7vw, 32px);
  --bf-heading: clamp(40px, 4.2vw, 64px);
  --bf-lead: clamp(19px, 1.5vw, 22px);
  --bf-body: clamp(16px, 1.15vw, 18px);
  --bf-card-title: clamp(22px, 1.8vw, 28px);
  --bf-section-gap: 40px;
  --bf-hero-heading: clamp(52px, 7.4vw, 124px);
  --bf-detail-heading: clamp(40px, 5.2vw, 78px);
  --bf-product-heading: clamp(36px, 3.2vw, 52px);
  --bf-label: 12px;
  --bf-button: 15px;
  --bf-button-height: 54px;
  --bf-nav: 14px;
  --bf-logo: 247px;
  --bf-logo-height: 76px;
  --bf-header-height: 78px;
}
.home-page .section {
  padding-top: var(--bf-section-space);
  padding-bottom: var(--bf-section-space);
  scroll-margin-top: 78px;
}
.home-page .section .section-label {
  font-size: var(--bf-label);
  line-height: 1.4;
  letter-spacing: .18em;
}
.home-page .section h2 {
  font-size: var(--bf-heading);
  line-height: 1.06;
  letter-spacing: -.045em;
  margin: 16px 0 24px;
}
.home-page .intro p,
.home-page .products > p,
.home-page .ai-innovation-head > p,
.home-page .contact .form-intro {
  font-size: var(--bf-lead);
  line-height: 1.55;
}
.home-page .intro {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 48px;
  row-gap: 16px;
  align-items: start;
}
.home-page .intro > .section-label { grid-column: 1 / -1; }
.home-page .intro > div:nth-child(2) { display: contents; }
.home-page .intro h2 { grid-column: 1; margin: 0; }
.home-page .intro p { grid-column: 2; margin: 0; max-width: 68ch; }
.home-page .company-principle {
  grid-column: 1 / -1;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  margin-top: 20px;
  padding: 24px 0 0;
}
.home-page .company-principle strong {
  min-width: 0;
  font-size: 19px;
  line-height: 1.4;
}
.home-page .company-principle span { font-size: var(--bf-body); }
.home-page .section-heading {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}
.home-page .section-heading h2 { margin-bottom: 0; }
.home-page .cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: var(--bf-section-gap);
}
.home-page .cards article {
  min-height: 300px;
  margin: 0;
  padding: 24px 22px 76px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.home-page .cards article:last-child { border-right: 0; }
.home-page .solution-icon { width: 60px; height: 60px; margin-top: 18px; }
.home-page .solution-icon svg { width: 26px; height: 26px; }
.home-page .cards h3 {
  font-size: var(--bf-card-title);
  line-height: 1.16;
  margin: 18px 0 12px;
  overflow-wrap: break-word;
  hyphens: auto;
}
.home-page .cards p {
  font-size: var(--bf-body);
  line-height: 1.55;
  max-width: none;
  overflow-wrap: break-word;
  hyphens: auto;
}
.home-page .card-link { right: 22px; bottom: 20px; }
.home-page .products > .section-label,
.home-page .products > h2,
.home-page .products > p {
  margin-left: var(--bf-gutter);
  margin-right: var(--bf-gutter);
}
.home-page .product-showcase {
  margin: var(--bf-section-gap) var(--bf-gutter) 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  min-height: 560px;
}
.home-page .product-copy { padding: clamp(30px, 3.2vw, 48px); min-width: 0; }
.home-page .product-showcase h3 {
  font-size: var(--bf-product-heading);
  line-height: 1.08;
  overflow-wrap: break-word;
}
.home-page .product-showcase p { font-size: var(--bf-body); line-height: 1.55; }
.home-page .product-showcase .product-visual { min-height: 560px; }
.home-page .ai-innovation-grid,
.home-page .cap-grid { margin-top: var(--bf-section-gap); }
.home-page .ai-innovation-card h3,
.home-page .cap-grid h3 { font-size: var(--bf-card-title); line-height: 1.18; }
.home-page .ai-innovation-card p,
.home-page .cap-grid p { font-size: var(--bf-body); line-height: 1.55; }
@media (max-width: 1199px) {
  .home-page .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .cards article:nth-child(2n) { border-right: 0; }
}
@media (max-width: 900px) {
  :root { --bf-gutter: 28px; --bf-section-space: 64px; --bf-section-gap: 32px; }
  .home-page .intro,
  .home-page .company-principle { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .home-page .intro h2,
  .home-page .intro p { grid-column: 1; }
  .home-page .product-showcase { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .home-page .product-showcase .product-visual { min-height: 420px; }
}
@media (max-width: 600px) {
  :root {
    --bf-gutter: 22px;
    --bf-section-space: 48px;
    --bf-heading: clamp(32px, 8.5vw, 40px);
    --bf-lead: 18px;
    --bf-body: 16px;
    --bf-card-title: 23px;
    --bf-section-gap: 28px;
    --bf-hero-heading: clamp(35px, 10.5vw, 52px);
    --bf-detail-heading: clamp(35px, 9vw, 48px);
    --bf-product-heading: clamp(32px, 8vw, 40px);
    --bf-logo: 180px;
    --bf-logo-height: 62px;
    --bf-header-height: 68px;
  }
  .home-page .section { scroll-margin-top: 68px; }
  .home-page .intro { padding-inline: var(--bf-gutter); }
  .home-page .cards article { padding: 22px 0 64px !important; }
  .home-page .solution-icon { width: 52px; height: 52px; }
  .home-page .solution-icon svg { width: 24px; height: 24px; }
  .home-page .cards h3 { margin: 16px 0 10px !important; }
  .home-page .cards p { margin: 0 !important; font-size: 16px !important; line-height: 1.55 !important; }
  .home-page .product-copy { padding: 28px 20px; }
  .home-page .product-showcase h3 { font-size: var(--bf-product-heading); }
  .home-page .product-showcase .product-visual { min-height: 300px !important; }
  .home-page .products { padding-bottom: var(--bf-section-space) !important; }
  .home-page .capabilities { padding-block: var(--bf-section-space) !important; }
  .home-page .cap-grid p { font-size: 16px; }
}

/* Shared dimensions for every marketing route, including the Blazor fallback.
   Component-specific layouts are retained in the respective stylesheets. */
main .section { scroll-margin-top: var(--bf-header-height); }
main .section .section-label { font-size: var(--bf-label); line-height: 1.4; letter-spacing: .18em; }
main .button { font-size: var(--bf-button); min-height: var(--bf-button-height); white-space: normal; text-align: center; }
main .hero-actions { flex-wrap: wrap; }
@media (max-width: 600px) {
  main .hero-actions .button { max-width: 100%; }
}

/* Compact card header: original circular icon on the right, label and title on the left.
   Reserve a real grid column for the icon so long translated headings never overlap it. */
:root {
  --bf-card-icon: 48px;
  --bf-card-icon-symbol: 24px;
  --bf-card-header-gap: 12px;
}
:is(.home-page, .wine-hype-page) .cards article:has(> .solution-icon) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--bf-card-icon);
  grid-template-rows: auto auto 1fr;
  column-gap: var(--bf-card-header-gap);
  row-gap: 0;
  align-items: start;
  min-height: 0;
  padding-block: 24px 28px;
}
:is(.home-page, .wine-hype-page) .cards article:has(> .solution-icon):has(> .card-link) {
  padding-bottom: 70px;
}
:is(.home-page, .wine-hype-page) .cards article:has(> .solution-icon) > span:first-child {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  max-width: 100%;
}
:is(.home-page, .wine-hype-page) .cards article:has(> .solution-icon) > .solution-icon {
  grid-column: 2;
  grid-row: 1 / 3;
  justify-self: end;
  align-self: start;
  width: var(--bf-card-icon);
  height: var(--bf-card-icon);
  margin: 0 !important;
  font-size: var(--bf-card-icon-symbol);
}
:is(.home-page, .wine-hype-page) .cards article:has(> .solution-icon) > .solution-icon svg {
  width: var(--bf-card-icon-symbol);
  height: var(--bf-card-icon-symbol);
}
:is(.home-page, .wine-hype-page) .cards article:has(> .solution-icon) > h3 {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  margin: 12px 0 0;
  overflow-wrap: anywhere;
}
:is(.home-page, .wine-hype-page) .cards article:has(> .solution-icon) > p {
  grid-column: 1 / -1;
  grid-row: 3;
  min-width: 0;
  margin: 14px 0 0;
  align-self: start;
}
@media (max-width: 600px) {
  :root { --bf-card-icon: 44px; --bf-card-icon-symbol: 22px; }
  :is(.home-page, .wine-hype-page) .cards article:has(> .solution-icon) {
    display: grid !important;
    padding: 22px 0 24px !important;
  }
  :is(.home-page, .wine-hype-page) .cards article:has(> .solution-icon):has(> .card-link) {
    padding-bottom: 62px !important;
  }
  :is(.home-page, .wine-hype-page) .cards article:has(> .solution-icon) > h3 {
    margin: 10px 0 0 !important;
  }
  :is(.home-page, .wine-hype-page) .cards article:has(> .solution-icon) > p {
    margin: 12px 0 0 !important;
  }
}
