/*
Theme Name: GOFIVAL Theme
Author: GOFIVAL
Description: Buyer-side industrial B2B sourcing theme for GOFIVAL.
Version: 3.1.4
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: gofival-theme
*/

:root {
    --gf-navy: #041d8c;
    --gf-blue: #6498e4;
    --gf-ink: #101b33;
    --gf-muted: #60708d;
    --gf-pale: #eef4ff;
    --gf-line: #dbe5f3;
    --gf-white: #ffffff;
    --gf-dark: #07142e;
    --gf-radius: 18px;
    --gf-shadow: 0 18px 50px rgba(4, 29, 140, 0.10);
    --gofi-font-body-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --gofi-font-body: 15px;
    --gofi-font-hero: clamp(34px, 3.2vw, 40px);
    --gofi-font-h1: clamp(28px, 2.5vw, 32px);
    --gofi-font-product-h1: clamp(26px, 2.35vw, 30px);
    --gofi-font-h2: clamp(20px, 1.7vw, 22px);
    --gofi-font-h3: clamp(16px, 1.3vw, 18px);
    --gofi-font-h4: 15px;
    --gofi-font-small: 12px;
    --gofi-font-table: 13px;
    --gofi-weight-normal: 400;
    --gofi-weight-medium: 500;
    --gofi-weight-semibold: 600;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--gf-ink);
    background: #f9fbff;
    font-family: var(--gofi-font-body-family);
    font-size: var(--gofi-font-body);
    line-height: 1.65;
}
a { color: var(--gf-navy); text-decoration: none; }
a:hover { color: #00126d; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: min(1180px, calc(100% - 44px)); margin: 0 auto; }
.site-main { min-height: 60vh; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(219,229,243,.8);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 82px; }
.site-brand img { display: block; width: 188px; }
.site-nav ul { display: flex; align-items: center; gap: 25px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; color: var(--gf-ink); font-size: .95rem; font-weight: 650; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav .current-menu-item > a { color: var(--gf-navy); }
.site-nav .current-menu-item > a { font-weight: 800; }
.menu-toggle { display: none; border: 1px solid var(--gf-line); background: var(--gf-white); color: var(--gf-navy); border-radius: 10px; padding: 9px 12px; font-weight: 800; }

.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border: 1px solid transparent; border-radius: 999px; padding: 13px 22px;
    font-size: .92rem; font-weight: 800; line-height: 1.2; cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(4,29,140,.16); }
.button-primary { background: var(--gf-navy); color: var(--gf-white); }
.button-primary:hover { color: var(--gf-white); background: #001a78; }
.button-secondary { background: var(--gf-white); border-color: var(--gf-line); color: var(--gf-navy); }
.button-light { background: var(--gf-white); color: var(--gf-navy); }

.hero { position: relative; overflow: hidden; padding: 92px 0 86px; background: linear-gradient(135deg, #061c83 0%, #0b348f 55%, #356cae 100%); color: var(--gf-white); }
.hero::after { content: ""; position: absolute; width: 470px; height: 470px; right: -140px; top: -180px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.05), 0 0 0 84px rgba(255,255,255,.04); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(310px, .88fr); gap: 64px; align-items: center; }
.eyebrow { margin: 0 0 16px; color: var(--gf-blue); font-size: .77rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.hero .eyebrow { color: #bcd5ff; }
.hero h1 { max-width: 760px; margin: 0 0 22px; font-size: clamp(2.65rem, 6vw, 5.4rem); letter-spacing: -.055em; line-height: .98; }
.hero p { max-width: 660px; margin: 0 0 30px; color: #dce9ff; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-card { padding: 26px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--gf-radius); background: rgba(255,255,255,.10); box-shadow: var(--gf-shadow); }
.hero-card strong { display: block; margin-bottom: 13px; font-size: 1.1rem; }
.hero-card ul { margin: 0; padding: 0; list-style: none; color: #dce9ff; }
.hero-card li { padding: 11px 0 11px 26px; border-top: 1px solid rgba(255,255,255,.16); position: relative; }
.hero-card li::before { content: "↗"; position: absolute; left: 0; color: #a9c8ff; font-weight: 900; }

.section { padding: 92px 0; }
.section-tint { background: var(--gf-pale); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.section-heading h2 { max-width: 660px; margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.04em; line-height: 1.05; }
.section-heading p { max-width: 510px; margin: 0; color: var(--gf-muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { padding: 26px; border: 1px solid var(--gf-line); border-radius: var(--gf-radius); background: var(--gf-white); box-shadow: var(--gf-shadow); }
.card h3 { margin: 0 0 10px; color: var(--gf-navy); font-size: 1.25rem; line-height: 1.2; }
.card p { margin: 0; color: var(--gf-muted); }
.number { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 22px; border-radius: 10px; background: var(--gf-pale); color: var(--gf-navy); font-weight: 900; }
.product-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 250px; }
.product-card .tag { display: inline-flex; width: fit-content; margin-bottom: 18px; padding: 5px 9px; border-radius: 999px; background: #e9f1ff; color: var(--gf-navy); font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.product-card .product-meta { margin: 0 0 20px; color: var(--gf-muted); font-size: .92rem; }

.cta-band { padding: 34px 38px; border-radius: var(--gf-radius); background: var(--gf-dark); color: var(--gf-white); display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.5rem); letter-spacing: -.03em; line-height: 1.1; }
.cta-band p { margin: 0; color: #c6d6f7; }

.page-hero { padding: 70px 0 56px; background: linear-gradient(180deg, #eef4ff 0%, #f9fbff 100%); border-bottom: 1px solid var(--gf-line); }
.page-hero h1 { max-width: 800px; margin: 0 0 13px; font-size: clamp(2.5rem, 5vw, 4.3rem); letter-spacing: -.05em; line-height: 1; }
.page-hero p { max-width: 680px; margin: 0; color: var(--gf-muted); font-size: 1.05rem; }
.breadcrumbs { margin-bottom: 22px; color: var(--gf-muted); font-size: .82rem; font-weight: 800; }

.product-detail { padding: 70px 0 90px; }
.product-detail-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 36px; align-items: start; }
.product-panel { padding: 30px; border: 1px solid var(--gf-line); border-radius: var(--gf-radius); background: var(--gf-white); box-shadow: var(--gf-shadow); }
.product-panel h2 { margin: 0 0 16px; font-size: 1.55rem; line-height: 1.15; }
.product-panel h3 { margin: 26px 0 10px; color: var(--gf-navy); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.product-panel ul { margin: 0; padding-left: 20px; }
.product-panel .notice { padding: 14px 16px; border-left: 4px solid var(--gf-blue); background: var(--gf-pale); color: #35476a; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 13px 0; border-bottom: 1px solid var(--gf-line); text-align: left; vertical-align: top; }
.spec-table th { width: 42%; color: var(--gf-muted); font-size: .86rem; font-weight: 700; }
.spec-table td { color: var(--gf-ink); font-weight: 700; }
.status-badge { display: inline-block; padding: 4px 9px; border-radius: 999px; background: #fff3d7; color: #785300; font-size: .75rem; font-weight: 900; }

.quote-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 28px; align-items: start; }
.quote-form label { display: block; margin-bottom: 6px; color: var(--gf-ink); font-size: .86rem; font-weight: 800; }
.quote-form input, .quote-form textarea, .quote-form select { width: 100%; padding: 12px 13px; border: 1px solid var(--gf-line); border-radius: 10px; color: var(--gf-ink); background: #fbfdff; font: inherit; }
.quote-form textarea { min-height: 150px; resize: vertical; }
.quote-form .field { margin-bottom: 17px; }
.quote-form .form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.quote-form .form-note { margin: 0 0 20px; color: var(--gf-muted); font-size: .85rem; }
.quote-form .form-success { padding: 14px 16px; margin-bottom: 20px; border-radius: 10px; background: #e9f8ef; color: #176239; }
.quote-form .form-error { padding: 14px 16px; margin-bottom: 20px; border-radius: 10px; background: #fff0f0; color: #8c2020; }

.site-footer { padding: 52px 0 28px; background: var(--gf-dark); color: #c6d6f7; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .7fr .8fr .85fr; gap: 32px; padding-bottom: 38px; }
.footer-brand img { width: 190px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p, .site-footer li { max-width: 380px; color: #9cb0d5; font-size: .9rem; }
.site-footer h3 { margin: 0 0 13px; color: var(--gf-white); font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #c6d6f7; }
.footer-bottom { display:flex; justify-content:space-between; gap:20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); color: #8399c2; font-size: .78rem; }
.footer-bottom span:last-child { display:flex; gap:18px; }

@media (max-width: 820px) {
    .container { width: min(100% - 32px, 680px); }
    .header-inner { min-height: 70px; }
    .site-brand img { width: 166px; }
    .menu-toggle { display: block; }
    .site-nav { display: none; position: absolute; left: 16px; right: 16px; top: 70px; padding: 16px; border: 1px solid var(--gf-line); border-radius: 14px; background: var(--gf-white); box-shadow: var(--gf-shadow); }
    .site-nav.is-open { display: block; }
    .site-nav ul { display: block; }
    .site-nav li { padding: 8px 0; }
	.site-nav a { padding: 5px 2px; }
    .hero { padding: 66px 0 62px; }
    .hero-grid, .product-detail-grid, .quote-layout { grid-template-columns: 1fr; gap: 28px; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .section { padding: 66px 0; }
    .section-heading { display: block; }
    .section-heading p { margin-top: 16px; }
    .cta-band { display: block; padding: 28px; }
    .cta-band .button { margin-top: 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
	.footer-bottom { display:block; }
	.footer-bottom span { display:block; }
	.footer-bottom span:last-child { display:flex; margin-top:10px; }
}

@media (max-width: 520px) {
    .hero h1 { font-size: 2.65rem; }
    .hero-actions .button { width: 100%; }
    .quote-form .form-row { grid-template-columns: 1fr; gap: 0; }
    .product-panel { padding: 22px; }
}

/* Keep the contact breadcrumb banner visually unchanged while the content hero provides the page H1. */
.page-hero .gofi-contact-page-title { max-width:800px; margin:0 0 13px; font-family:"GF Manrope", "Segoe UI Symbol", Arial, sans-serif; color:#172339; font-size:var(--gofi-font-h1); font-weight:var(--gofi-weight-semibold); letter-spacing:-.025em; line-height:1.2; }
