@font-face { font-family: Poppins; src: url('fonts/Poppins-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url('fonts/Poppins-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Poppins; src: url('fonts/Poppins-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Poppins; src: url('fonts/Poppins-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Poppins; src: url('fonts/Poppins-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: Allura; src: url('fonts/Allura-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }

/* Scoped to the homepage so the existing application pages retain their styles. */
.forge-site {
    --forge-blue: #1865f2;
    --forge-blue-dark: #0d47a1;
    --forge-navy: #071a33;
    --forge-black: #0a0a0a;
    --forge-charcoal: #111318;
    --forge-gray: #6b7280;
    --forge-border: #e5e7eb;
    --forge-background: #f7f9fc;
    --forge-white: #fff;
    font-family: Poppins, Arial, sans-serif;
    color: var(--forge-navy);
    background: var(--forge-white);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.forge-site *, .forge-site *::before, .forge-site *::after { box-sizing: border-box; }
.forge-site h1, .forge-site h2, .forge-site p, .forge-site ul { margin: 0; }
.forge-site a { color: inherit; text-decoration: none; }
.forge-site button, .forge-site input { font: inherit; }
.forge-site button { cursor: pointer; }
.forge-site button:disabled { cursor: default; }
.forge-site a:focus-visible, .forge-site button:focus-visible, .forge-site input:focus-visible, .forge-site summary:focus-visible { outline: 3px solid var(--forge-blue); outline-offset: 5px; }
.forge-site section, .forge-site footer { scroll-margin-top: 24px; }
.forge-container { width: calc(100% - 128px); max-width: 1440px; margin-inline: auto; }
.forge-site .eyebrow { color: var(--forge-blue); text-transform: uppercase; font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: .13em; }
.forge-site h2 { font-size: clamp(38px, 3.1vw, 48px); font-weight: 700; line-height: 1.12; letter-spacing: -.055em; }
.forge-icon { width: 24px; height: 24px; flex: 0 0 auto; vertical-align: middle; }
.reference-image { display: block; width: 100%; height: 100%; overflow: hidden; }
.forge-site .forge-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 52px; padding: 13px 24px; border: 1px solid transparent; border-radius: 6px; font-size: 15px; font-weight: 500; line-height: 1.4; transition: background-color .18s ease, border-color .18s ease; }
.forge-button .forge-icon { width: 20px; height: 20px; }
.forge-site .primary { background: var(--forge-blue); color: white; }
.forge-site .primary:hover { background: var(--forge-blue-dark); }
.forge-site .light-outline { border-color: #e5e7eb; color: white; background: transparent; }
.forge-site .light-outline:hover { background: #ffffff12; }
.forge-site .blue-outline { border-color: var(--forge-blue); color: var(--forge-blue); }
.forge-site .blue-outline:hover { background: #1865f20a; }
.forge-site .white { color: var(--forge-navy); background: white; }
.forge-site .white:hover { background: #e9eff9; }
.forge-site .white .forge-icon { color: var(--forge-blue); }
.forge-site .text-link { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 500; color: var(--forge-blue); }
.text-link .forge-icon { width: 19px; height: 19px; }
.forge-site .text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.forge-site .icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 7px; border: 0; border-radius: 4px; background: transparent; color: inherit; }
.forge-site .icon-button:hover { color: var(--forge-blue); }
.skip-link { position: absolute; left: 16px; top: -70px; padding: 12px 20px; background: white; z-index: 10; }
.skip-link:focus { top: 12px; }

/* Header */
.forge-header { position: relative; z-index: 5; background: white; border-bottom: 1px solid #f0f1f4; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 80px; }
.header-logo { width: 207px; height: 59px; flex-shrink: 0; }
.desktop-nav { display: flex; align-items: center; gap: 26px; align-self: stretch; }
.desktop-nav a { position: relative; display: inline-flex; align-items: center; height: 100%; font-size: 14px; font-weight: 500; white-space: nowrap; }
.desktop-nav .active, .desktop-nav a:hover { color: var(--forge-blue); }
.desktop-nav .active::after { position: absolute; bottom: 15px; left: 0; right: 0; height: 2px; background: var(--forge-blue); content: ''; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.forge-site .header-cta { min-height: 46px; padding: 11px 18px; font-size: 13px; gap: 12px; margin-left: 12px; }
.language-switch { display: flex; align-items: center; gap: 6px; font-size: 11px; margin-inline: 5px; }
.language-switch span:first-child { color: var(--forge-blue); font-weight: 600; }
.language-switch span:nth-child(2) { color: #bac1cc; }
.language-switch button { background: none; border: 0; padding: 6px 0; color: #707889; font-size: 11px; }
.header-popover > summary { list-style: none; }
.header-popover > summary::-webkit-details-marker { display: none; }
.header-popover[open] > summary { color: var(--forge-blue); }
.header-popover:not([open]) .popover-content { display: none; }
.popover-content { position: absolute; right: 64px; top: 72px; width: 340px; padding: 24px; border: 1px solid var(--forge-border); border-radius: 6px; background: white; box-shadow: 0 8px 25px #071a3314; font-size: 14px; }
.popover-content label { display: block; margin-bottom: 12px; font-weight: 600; }
.popover-content input { width: 100%; border: 1px solid #acb4c2; border-radius: 4px; padding: 10px; }
.popover-content ul { list-style: none; padding: 10px 0 0; }
.popover-content li a { display: flex; align-items: center; justify-content: space-between; padding-block: 8px; }
.popover-content p { margin: 12px 0; }
.forge-site .mobile-toggle, .mobile-nav { display: none; }

/* Category imagery uses the exact product photography supplied in the guide. */
.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.category-card { min-width: 0; padding: 0; text-align: left; border: 1px solid var(--forge-border); border-radius: 7px; overflow: hidden; background: white; color: var(--forge-navy); transition: border-color .18s; }
.category-card:hover, .category-card[aria-expanded="true"] { border-color: var(--forge-blue); }
.category-photo { display: block; aspect-ratio: .94; overflow: hidden; }
.category-label { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 14px 12px; font-size: 14px; font-weight: 600; }
.category-label .forge-icon { width: 18px; height: 18px; }
.category-detail { display: flex; align-items: center; gap: 24px; padding: 22px; margin-top: 20px; background: var(--forge-background); border-radius: 6px; }
.category-detail p { font-size: 14px; margin-top: 5px; }
.category-detail .text-link { margin-left: auto; }

/* Footer */
.forge-footer { background: #0c1b26; color: white; padding: 64px 0 26px; }
.footer-main { display: grid; grid-template-columns: 1.2fr .7fr 1fr 1.3fr; gap: 56px; padding-bottom: 40px; }
.footer-logo { display: block; width: 230px; height: 83px; margin: -10px 0 6px; }
.social-links { display: flex; gap: 10px; margin-left: -7px; }
.social-links .icon-button { width: 31px; height: 36px; padding: 3px; }
.social-links .forge-icon { width: 24px; height: 24px; }
.forge-site .forge-footer h2 { font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.5; margin-bottom: 11px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; }
.footer-links a, .footer-links button { font-size: 14px; line-height: 1.6; margin-bottom: 5px; color: #dce2e8; }
.footer-links button { border: 0; padding: 0; background: none; text-align: left; }
.footer-links a:hover, .footer-links button:hover { color: white; text-decoration: underline; }
.newsletter p { font-size: 14px; line-height: 1.7; color: #dce2e8; margin-bottom: 18px; }
.newsletter form { display: flex; min-height: 50px; }
.newsletter input { min-width: 0; width: 100%; padding: 13px 17px; border: 1px solid white; border-radius: 5px 0 0 5px; color: var(--forge-navy); background: white; font-size: 13px; }
.newsletter input::placeholder { color: #758197; }
.newsletter form button { border: 0; border-radius: 0 5px 5px 0; width: 55px; flex: 0 0 55px; background: var(--forge-blue); color: white; }
.newsletter form button:hover { background: var(--forge-blue-dark); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid #40505f; padding-top: 24px; font-size: 12px; color: #dce2e8; }
.footer-bottom p:last-child { display: flex; align-items: center; gap: 18px; }
.footer-bottom span { display: inline-block; width: 40px; height: 2px; background: var(--forge-blue); }
.footer-notice { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 15px; border: 1px solid #40505f; margin-bottom: 24px; font-size: 14px; }

@media (min-width: 1600px) { .header-inner { gap: 40px; } .desktop-nav { gap: 34px; } .desktop-nav a { font-size: 14px; } .category-label { font-size: 14px; } }
@media (max-width: 1279px) {
    .forge-container { width: calc(100% - 80px); }
    .header-inner { gap: 16px; }
    .header-logo { width: 175px; height: 50px; }
    .desktop-nav { gap: 18px; }
    .header-actions { gap: 3px; }
    .forge-site .header-cta { font-size: 12px; padding-inline: 13px; margin-left: 6px; }
    .header-actions .icon-button { width: 34px; }
    .category-grid { gap: 12px; }
    .category-label { padding-inline: 8px; font-size: 11px; }
    .footer-main { gap: 28px; }
    .footer-logo { width: 200px; height: 72px; }
}
@media (max-width: 1100px) {
    .desktop-nav { gap: 17px; }
    .desktop-nav a { font-size: 12px; }
    .forge-site .header-cta { display: none; }
    .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
    .category-label { padding: 15px; font-size: 15px; }
    .category-photo { aspect-ratio: 1.13; }
    .footer-main { grid-template-columns: 1fr 1fr 1fr; gap: 36px; }
    .newsletter { grid-column: 2 / 4; max-width: 450px; }
}
@media (max-width: 900px) {
    .forge-container { width: calc(100% - 40px); }
    .forge-site h2 { font-size: 36px; }
    .header-inner { min-height: 76px; gap: 8px; }
    .header-logo { width: 171px; height: 49px; }
    .desktop-nav { display: none; }
    .forge-site .mobile-toggle { display: inline-flex; }
    .header-actions { gap: 0; }
    .header-actions .icon-button { width: 34px; height: 40px; padding: 6px; }
    .language-switch { margin-inline: 5px; gap: 4px; }
    .cart-popover { display: none; }
    .mobile-nav { display: flex; flex-direction: column; gap: 4px; padding: 8px 20px 24px; border-top: 1px solid var(--forge-border); }
    .mobile-nav > a { padding: 10px 4px; font-size: 16px; }
    .mobile-nav > a:first-child { color: var(--forge-blue); }
    .mobile-nav .forge-button { margin-top: 8px; }
    .popover-content { top: 72px; right: 20px; width: min(340px, calc(100vw - 40px)); }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
    .category-photo { aspect-ratio: .94; }
    .category-label { font-size: 12px; padding: 13px 10px; }
    .category-label .forge-icon { width: 16px; height: 16px; }
    .category-detail { flex-wrap: wrap; padding: 16px; gap: 12px; }
    .category-detail .text-link { margin: 0; }
    .category-detail .icon-button { margin-left: auto; }
    .forge-footer { padding: 52px 0 28px; }
    .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; padding-bottom: 32px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-logo { width: 225px; height: 81px; }
    .footer-links a, .footer-links button { font-size: 12px; margin-bottom: 9px; }
    .newsletter { grid-column: 1 / -1; max-width: none; }
    .footer-bottom { flex-direction: column; gap: 12px; font-size: 11px; }
    .footer-bottom p:last-child { justify-content: space-between; }
}
@media (min-width: 600px) and (max-width: 900px) {
    .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .category-label { font-size: 13px; }
}
@media (max-width: 599px) {
    .footer-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 374px) {
    .forge-container { width: calc(100% - 32px); }
    .header-logo { width: 151px; height: 44px; }
    .category-label { font-size: 11px; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) { .forge-site *, .forge-site *::before, .forge-site *::after { transition: none !important; scroll-behavior: auto !important; } }
