:root {
  --bg: #06140d;
  --bg-2: #0a1e14;
  --panel: #0d2117;
  --line: #3d6b50;
  --text: #f7f7f7;
  --muted: #c9d7ce;
  --accent: #35d04a;
  --accent-deep: #13852b;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(calc(100% - 56px), var(--max)); margin: 0 auto; }

.site-header {
  position: absolute; z-index: 20; top: 0; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 56px), 1210px); height: 108px; display: flex; align-items: center; justify-content: space-between;
}
.brand-name { font-size: 12px; font-weight: 800; letter-spacing: 1.4px; margin-top: 3px; }
.brand-tagline { font-size: 10px; margin-top: 5px; }
.nav { display: flex; gap: 35px; align-items: center; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.nav a { padding: 29px 0 14px; border-bottom: 3px solid transparent; transition: .2s ease; }
.nav a:hover, .nav a.active { border-color: var(--accent); }
.menu-toggle { display: none; border: 0; background: none; padding: 10px; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0; }

.hero { position: relative; min-height: 620px; overflow: hidden; background: #06140d url('assets/hero-keyboard.jpg') right center / 58% 100% no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #06140d 0%, #06140d 31%, rgba(6,20,13,.88) 45%, rgba(6,20,13,.22) 69%, rgba(6,20,13,.04) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 68% 50%, rgba(53,208,74,.18), transparent 30%); }
.hero-content { position: relative; z-index: 2; padding-top: 196px; }
.hero-eyebrow { font-size: 34px !important; font-weight: 900; text-transform: uppercase; color: #fff !important; letter-spacing: .2px !important; margin-bottom: 8px !important; }
.hero-eyebrow span { color: var(--accent); }
.hero h1 { margin: 0; font-size: clamp(44px, 4.5vw, 68px); line-height: 1.12; text-transform: uppercase; max-width: 650px; letter-spacing: -1.8px; }
.hero-copy { max-width: 535px; font-size: 16px; line-height: 1.7; color: #f0f0f0; margin: 18px 0 30px; }
.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 22px; min-width: 183px; padding: 16px 24px; text-transform: uppercase; font-size: 13px; font-weight: 800; border-radius: 2px; transition: .2s ease; }
.btn span { font-size: 23px; font-weight: 400; line-height: 0; }
.btn-primary { background: linear-gradient(90deg, #118a2a, #46e65d); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-outline { border: 1px solid #d4d4d4; }
.btn-outline:hover { background: #fff; color: #111; }

.section { padding: 34px 0 18px; background: radial-gradient(circle at 45% 15%, #10291b, #07150e 62%); }
.section-heading { text-align: center; margin-bottom: 25px; }
.section-heading .eyebrow, .eyebrow { color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; margin: 0 0 8px; letter-spacing: .25px; }
.section-heading h2 { font-size: 29px; font-weight: 500; margin: 0; letter-spacing: .4px; }
.heading-line { display: block; width: 34px; height: 2px; background: var(--accent); margin: 11px auto 0; }

.service-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.service-card { min-height: 250px; border: 1px solid #467257; border-radius: 5px; padding: 20px 14px 18px; text-align: center; display: flex; flex-direction: column; background: rgba(9,31,19,.72); }
.service-card .icon { color: var(--accent); font-size: 48px; height: 65px; display: flex; align-items: center; justify-content: center; font-weight: 300; }
.service-card h3 { font-size: 14px; line-height: 1.25; text-transform: uppercase; margin: 8px 0 12px; min-height: 35px; }
.service-card p { color: #dedede; font-size: 12px; line-height: 1.55; margin: 0; }
.service-card a { margin-top: auto; font-size: 12px; font-weight: 700; padding-top: 16px; }
.service-card a span { color: var(--accent); font-size: 20px; vertical-align: -2px; }

.partner { padding-top: 30px; }
.partner-title { text-align: center; font-size: 23px; text-transform: uppercase; letter-spacing: 2px; font-weight: 500; margin: 0 0 25px; }
.partner-title span { color: var(--accent); }
.partner-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.partner-grid article { text-align: center; padding: 0 28px 17px; border-right: 1px solid #3f6b50; }
.partner-grid article:last-child { border-right: 0; }
.partner-icon { color: var(--accent); font-size: 42px; height: 52px; }
.partner-grid h3 { font-size: 13px; margin: 10px 0 8px; }
.partner-grid p { font-size: 12px; line-height: 1.65; color: #e3e3e3; margin: 0; }

.process { padding: 10px 0 25px; }
.section-heading.compact { margin-bottom: 18px; }
.process-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 16px; }
.process-grid article { display: grid; grid-template-columns: 73px 1fr; gap: 12px; align-items: start; }
.process-icon { width: 66px; height: 66px; border: 1px solid #5b8c6a; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 33px; }
.process-grid strong { color: var(--accent); font-size: 18px; }
.process-grid h3 { margin: 2px 0 8px; font-size: 12px; text-transform: uppercase; }
.process-grid p { margin: 0; color: #dedede; font-size: 11px; line-height: 1.5; }
.process-arrow { font-size: 30px; font-weight: 200; }

.cta { position: relative; overflow: hidden; background: linear-gradient(105deg, #062b15 0%, #128833 39%, #07351a 70%, #19a942 100%); border-top: 1px solid #285d39; border-bottom: 1px solid #285d39; }
.cta::before, .cta::after { content: ""; position: absolute; width: 300px; height: 300px; border: 2px solid rgba(82,232,103,.32); transform: rotate(45deg); }
.cta::before { left: -210px; top: -100px; }
.cta::after { right: 0; top: -220px; }
.cta-inner { min-height: 110px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.cta h2 { font-size: 22px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 4px; }
.cta p { margin: 0; font-size: 16px; }
.btn-light { background: #fff; color: #111; min-width: 150px; }

.footer { background: #07170f; padding: 30px 0 13px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .9fr 1fr; gap: 65px; padding-bottom: 24px; }
.footer .brand { margin-bottom: 18px; }
.footer-brand p, .footer-grid > div > p { color: #d4d4d4; font-size: 11px; line-height: 1.55; }
.footer h3 { text-transform: uppercase; font-size: 11px; margin: 5px 0 14px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 7px; }
.footer-grid > div:not(.footer-brand) a { font-size: 11px; color: #d8d8d8; }
.socials { display: flex; gap: 14px; margin-top: 11px; }
.socials a { width: 18px; height: 18px; border-radius: 2px; background: #f0f0f0; color: #111; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.footer-bottom { border-top: 1px solid #274b34; display: flex; justify-content: space-between; padding-top: 12px; color: #adadae; font-size: 9px; }
.footer-bottom span:last-child { display: flex; align-items: center; gap: 18px; }
.footer-bottom i { width: 1px; height: 13px; background: #626a6e; }

@media (max-width: 1050px) {
  .nav { gap: 18px; font-size: 11px; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .process-arrow { display: none; }
}

@media (max-width: 760px) {
  .container, .site-header { width: min(calc(100% - 32px), var(--max)); }
  .site-header { height: 90px; }
  .menu-toggle { display: block; cursor: pointer; }
  .nav { position: absolute; top: 84px; right: 0; width: 250px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: #07170f; border: 1px solid #315840; padding: 8px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; }
  .hero { min-height: 670px; background-size: auto 70%; background-position: 70% bottom; }
  .hero::before { background: linear-gradient(180deg, rgba(6,20,13,.98) 0%, rgba(6,20,13,.92) 55%, rgba(6,20,13,.34) 100%); }
  .hero-content { padding-top: 145px; }
  .hero-eyebrow { font-size: 25px !important; }
  .hero h1 { font-size: 42px; }
  .hero-copy { max-width: 100%; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: 1fr; }
  .partner-grid article { border-right: 0; border-bottom: 1px solid #315840; padding: 18px 0; }
  .process-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 22px 0; gap: 20px; flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
}

/* @media (max-width: 480px) {
  .brand { width: 120px; }
  .brand-logo { width: 72px; height: 56px; }
  .hero h1 { font-size: 34px; }
  .service-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; }
} */


/* Green theme refinements */
.site-header { background: linear-gradient(180deg, rgba(4,18,10,.72), rgba(4,18,10,0)); }
.nav a:hover, .nav a.active { color: #71f27f; }
.service-card { box-shadow: 0 10px 24px rgba(0,0,0,.18); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 16px 32px rgba(16,120,44,.20); }
.service-card a:hover, .footer a:hover { color: #71f27f; }
.process-icon { background: rgba(24,135,52,.08); }
.btn-outline:hover { background: #eaffed; color: #0a3217; border-color: #71f27f; }
.btn-light { background: #edfff0; color: #0b3318; }
.socials a:hover { background: var(--accent); color: #05130b; }

/* ==================================
   F1 LOGO SIZE
   ================================== */

.site-header .brand {
    width: auto !important;
    min-width: 300px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-header .brand-logo {
    width: 320px !important;
    height: auto !important;
    max-width: none !important;
    object-fit: contain;
}

/* Tablet */
@media (max-width: 1050px) {
    .site-header .brand {
        min-width: 220px;
    }

    .site-header .brand-logo {
        width: 220px !important;
    }
}

/* Mobile */
@media (max-width: 760px) {
    .site-header .brand {
        min-width: 0;
    }

    .site-header .brand-logo {
        width: 200px !important;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .site-header .brand-logo {
        width: 170px !important;
    }
}

/* Move hero text and buttons slightly to the left
@media (min-width: 761px) {
    .hero-content {
        position: relative;
        left: -70px;
    }
}

Align F1 Solutions logo with hero content
@media (min-width: 761px) {
    .site-header .brand {
        position: relative;
        left: -60px;
    }
}
*/