/* ==========================================================================
   gridion.net - site stylesheet (Vertex standard framework)

   Look and feel follow the old WordPress site (owner 2026-10-16: "look similar
   to the old page"): Montserrat headings + Nunito Sans text, dark navy top bar,
   white header, "// eyebrow" labels, square uppercase buttons in light blue,
   dark page-title bands with the breadcrumb on the right, a dark "why choose
   us" band with numbered cards, dark footer. Colours from the old theme and
   the Gridion logo. Fonts are self-hosted (assets/fonts, SIL OFL).
   The menu is the framework drawer: pin open on desktop, pop-up on mobile.
   ========================================================================== */

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("assets/fonts/montserrat-latin.woff2") format("woff2");
}
@font-face {
    font-family: "Nunito Sans";
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url("assets/fonts/nunito-sans-latin.woff2") format("woff2");
}

:root {
    --blue: #03349a;          /* Gridion logo blue */
    --sky: #43baff;           /* old theme accent */
    --sky-dark: #1fa3f0;
    --navy: #161d39;          /* old top bar */
    --indigo: #262051;        /* old "why choose us" band */
    --indigo-2: #2f2963;
    --footer: #1f1c3e;
    --ink: #1b1d21;           /* old headings */
    --text: #6d6d6d;          /* old body text */
    --line: #e7e7e7;
    --bg: #ffffff;
    --bg-alt: #f6f6f6;
    --white: #ffffff;
    --ok-bg: #e7f7ee;
    --ok-ink: #165c34;
    --err-bg: #fdecec;
    --err-ink: #8a1c1c;
    --shadow: 0 12px 40px rgba(22, 29, 57, 0.10);
    --nav-width: 300px;
    --head: "Montserrat", -apple-system, "Segoe UI", Arial, sans-serif;
    --body: "Nunito Sans", -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.85;
    color: var(--text);
    background: var(--bg);
}

img { max-width: 100%; height: auto; }

a { color: var(--blue); }
a:hover { color: var(--sky-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--sky);
    outline-offset: 2px;
}

h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
strong { color: var(--ink); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 2000;
    background: var(--blue); color: var(--white); padding: 0.6rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------------------
   Buttons - square and uppercase, as on the old site
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border: 1px solid transparent;
    border-radius: 0;
    font-family: var(--head);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn-primary { background: var(--sky); color: var(--white); }
.btn-primary:hover { background: var(--blue); color: var(--white); }
.btn-primary:disabled { background: #a9b4c8; cursor: not-allowed; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: var(--white); background: transparent; }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-outline-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--blue); }

.link-more {
    font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--sky); text-decoration: none;
}
.link-more::before { content: "\2192"; margin-right: 0.6em; }

/* --------------------------------------------------------------------------
   Top bar + header
   -------------------------------------------------------------------------- */
.topbar { background: var(--navy); color: #b5b5b5; font-size: 13px; }
.topbar-row { display: flex; align-items: center; gap: 1.5rem; min-height: 44px; }
.topbar a { color: #d6d9e3; text-decoration: none; }
.topbar a:hover { color: var(--sky); }
.topbar-item { display: inline-flex; align-items: center; gap: 0.5rem; }
.topbar-item .ico { color: var(--sky); }
.topbar-tagline { margin-left: auto; font-style: italic; }
.topbar-social {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border-left: 1px solid rgba(255, 255, 255, 0.1); border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.topbar-social svg { width: 14px; height: 14px; }

.site-header {
    position: sticky; top: 0; z-index: 900;
    background: var(--white);
    box-shadow: 0 2px 18px rgba(22, 29, 57, 0.08);
}
.header-row { display: flex; align-items: center; gap: 1.25rem; min-height: 90px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { width: 175px; height: auto; display: block; }

.header-call {
    margin-left: auto; display: flex; align-items: center; gap: 0.8rem;
    padding-left: 1.5rem; border-left: 1px solid var(--line);
    text-decoration: none; font-family: var(--head); font-weight: 700; color: var(--ink); white-space: nowrap;
}
.header-call .ico { width: 28px; height: 28px; color: var(--sky); stroke-width: 1.8; }
.header-call small { display: block; font-family: var(--body); font-weight: 400; font-size: 13px; color: var(--text); line-height: 1.2; }
.header-call span { line-height: 1.35; }
.header-call:hover { color: var(--sky-dark); }

.nav-toggle {
    background: none; border: none; cursor: pointer;
    padding: 0.6rem 0.5rem; display: flex; flex-direction: column; justify-content: center;
    gap: 5px; flex-shrink: 0; line-height: 0;
}
.nav-toggle:hover .nav-toggle-bar { background: var(--sky); }
.nav-toggle-bar {
    display: block; width: 28px; height: 2px; background: var(--ink);
    transition: transform 0.25s ease, opacity 0.2s ease, width 0.2s ease, background 0.2s; transform-origin: center;
}
body.nav-open .nav-toggle .nav-toggle-bar:nth-child(1),
body.nav-pinned .nav-toggle .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle .nav-toggle-bar:nth-child(2),
body.nav-pinned .nav-toggle .nav-toggle-bar:nth-child(2) { opacity: 0; width: 0; }
body.nav-open .nav-toggle .nav-toggle-bar:nth-child(3),
body.nav-pinned .nav-toggle .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 700px) {
    .topbar-tagline { display: none; }
    .topbar-social { margin-left: auto; }
    .header-row { min-height: 72px; }
    .logo img { width: 145px; }
    .header-call { padding-left: 0; border-left: 0; }
    .header-call small, .header-call span { display: none; }
}

/* --------------------------------------------------------------------------
   Menu drawer: pop-up overlay everywhere; pinned (pushes content) on desktop
   -------------------------------------------------------------------------- */
.nav-overlay {
    position: fixed; inset: 0; background: rgba(22, 29, 57, 0.55);
    opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s; z-index: 950;
}
body.nav-open .nav-overlay { opacity: 1; visibility: visible; }

.site-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: var(--nav-width); max-width: 86vw;
    background: var(--indigo); color: var(--white);
    transform: translateX(100%); transition: transform 0.25s ease;
    z-index: 1000; display: flex; flex-direction: column; overflow-y: auto;
}
body.nav-open .site-nav, body.nav-pinned .site-nav { transform: translateX(0); }

.nav-drawer-head { display: flex; justify-content: flex-end; gap: 0.25rem; padding: 0.9rem 0.9rem 0.4rem; }
.nav-pin, .nav-close {
    background: none; border: none; color: var(--white); cursor: pointer; padding: 0.45rem; line-height: 0;
}
.nav-pin:hover, .nav-close:hover { color: var(--sky); }
body.nav-pinned .nav-pin { color: var(--sky); }
body.nav-pinned .nav-close { display: none; }
@media (max-width: 1099px) { .nav-pin { display: none; } }

.site-nav ul { list-style: none; margin: 0; padding: 0.5rem 0; }
.site-nav li a {
    display: block; padding: 0.7rem 1.6rem; color: var(--white); text-decoration: none;
    font-family: var(--head); font-weight: 600; font-size: 15px;
    border-left: 3px solid transparent;
}
.site-nav li a:hover { color: var(--sky); background: rgba(255, 255, 255, 0.05); }
.site-nav li a.active { border-left-color: var(--sky); color: var(--sky); }
.nav-foot { margin-top: auto; padding: 1.2rem 1.6rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.nav-foot a { color: var(--sky); font-family: var(--head); font-weight: 700; text-decoration: none; }

@media (min-width: 1100px) {
    body { transition: padding-right 0.25s ease; }
    body.nav-pinned { padding-right: var(--nav-width); }
}

/* --------------------------------------------------------------------------
   Hero (home) and page-title bands - dark "network" look of the old slider
   and page headers, drawn in CSS (no stock photos)
   -------------------------------------------------------------------------- */
.hero, .page-hero {
    position: relative; overflow: hidden; color: #c9d3ef;
    background-color: #0b1033;
}
.hero::before, .page-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        radial-gradient(rgba(67, 186, 255, 0.55) 1px, transparent 1.6px),
        linear-gradient(rgba(67, 186, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(67, 186, 255, 0.07) 1px, transparent 1px);
    background-size: 22px 22px, 88px 88px, 88px 88px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
}
.hero {
    background-image:
        radial-gradient(ellipse 60% 70% at 78% 60%, rgba(67, 186, 255, 0.45), transparent 60%),
        radial-gradient(ellipse 80% 60% at 70% 115%, rgba(3, 52, 154, 0.95), transparent 70%),
        linear-gradient(135deg, #070b26 0%, #0b1a5c 55%, #03349a 100%);
    padding: clamp(4.5rem, 11vw, 8.5rem) 0;
}
.hero .container, .page-hero .container { position: relative; }
.hero-sub { color: var(--white); font-size: 1.15rem; margin-bottom: 0.4rem; }
.hero h1 {
    color: var(--white); text-transform: uppercase; font-weight: 900;
    font-size: clamp(2.1rem, 5.6vw, 4.2rem); line-height: 1.1; max-width: 16ch;
}
.hero .lead { max-width: 58ch; color: #dfe6fb; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.page-hero {
    background-image:
        radial-gradient(ellipse 70% 90% at 85% 120%, rgba(113, 65, 177, 0.55), transparent 65%),
        radial-gradient(ellipse 50% 80% at 10% -20%, rgba(3, 52, 154, 0.7), transparent 70%),
        linear-gradient(135deg, #0c0a2e 0%, #1c1554 60%, #261a66 100%);
    padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.page-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.page-hero h1 { color: var(--white); margin-bottom: 0.2em; }
.page-hero .lead { margin: 0; max-width: 56ch; font-size: 1.1rem; line-height: 1.6; }
.breadcrumb {
    font-family: var(--head); font-weight: 600; font-size: 14px; text-transform: uppercase; color: var(--white);
}
.breadcrumb a { color: #b6bfdd; text-decoration: none; }
.breadcrumb a:hover { color: var(--sky); }
.breadcrumb .sep { color: var(--sky); margin: 0 0.45rem; }
@media (max-width: 700px) { .breadcrumb { font-size: 12px; } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.eyebrow {
    font-family: var(--head); color: var(--blue); font-weight: 800; text-transform: uppercase;
    font-size: 14px; margin-bottom: 0.3rem;
}
.eyebrow-light { color: var(--sky); }
.lead { font-size: 1.15rem; }

.section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-title { margin-bottom: 1.4rem; }
.center-head { text-align: center; max-width: 720px; margin: 0 auto 2.6rem; }

.about-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
.about-panel {
    background: var(--white); box-shadow: var(--shadow); padding: 3rem; display: flex; align-items: center;
    justify-content: center; border-bottom: 4px solid var(--sky);
}
.about-panel img { width: 300px; }
@media (max-width: 860px) { .about-row { grid-template-columns: 1fr; } .about-panel { padding: 2rem; } }

.prose { max-width: 820px; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }

ul.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; }
ul.ticks li { position: relative; padding-left: 2rem; margin-bottom: 0.7rem; }
ul.ticks li::before {
    content: ""; position: absolute; left: 0; top: 0.55em; width: 1.1rem; height: 1.1rem;
    background: var(--sky) no-repeat center / 0.72rem
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* Service cards (home) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.card {
    display: flex; flex-direction: column; background: var(--white); padding: 2.2rem 2rem;
    text-decoration: none; color: var(--text); box-shadow: 0 4px 24px rgba(22, 29, 57, 0.06);
    border-bottom: 3px solid transparent; transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-bottom-color: var(--sky); color: var(--text); }
.card h3 { margin-top: 1.1rem; }
.card p { flex: 1; }
.card-icon svg {
    width: 46px; height: 46px; fill: none; stroke: var(--blue); stroke-width: 1.5;
    stroke-linecap: round; stroke-linejoin: round;
}

/* Dark "why choose us" band with numbered cards (old home page) */
.section-dark { background: var(--indigo); color: #b9b6d3; }
.section-dark .section-title { color: var(--white); }
.why-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
@media (max-width: 1000px) { .why-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-cards { grid-template-columns: 1fr; } }
.why-card {
    position: relative; overflow: hidden; background: var(--indigo-2); padding: 2.2rem 1.8rem 2rem;
    transition: transform 0.3s;
}
.why-card:hover { transform: translateY(-4px); }
.why-card::after {
    content: ""; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px;
    border-radius: 50%; background: rgba(255, 255, 255, 0.04);
}
.why-num {
    position: absolute; top: -0.15em; left: 0.2em; font-family: var(--head); font-weight: 900;
    font-size: 4.5rem; line-height: 1; color: rgba(255, 255, 255, 0.06);
}
.why-card h3 { position: relative; color: var(--white); margin-top: 0.6rem; }
.why-card p { position: relative; margin: 0; font-size: 15px; }

/* Call-to-action band (old "Let's Build Your Business" band) */
.cta-band {
    background:
        radial-gradient(ellipse 60% 120% at 100% 0%, rgba(67, 186, 255, 0.45), transparent 60%),
        linear-gradient(135deg, var(--blue) 0%, #1564c9 100%);
    color: #e3ecff; padding: clamp(3rem, 7vw, 4.5rem) 0;
}
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-eyebrow { color: var(--white); margin: 0 0 0.3rem; font-size: 1.05rem; }
.cta-band h2 { color: var(--white); margin: 0 0 0.3em; font-size: clamp(1.5rem, 3vw, 2.2rem); max-width: 24ch; }
.cta-band p { margin: 0; }
.cta-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem; }
.cta-phone { color: var(--white); font-family: var(--head); font-weight: 700; text-decoration: none; }
.cta-phone:hover { color: var(--navy); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3.5rem; align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; gap: 2rem; } }
.contact-phone { font-family: var(--head); font-size: 1.7rem; font-weight: 800; }
.contact-phone a { text-decoration: none; }

.form label { display: block; color: var(--text); margin-bottom: 1.1rem; font-size: 15px; }
.form input, .form select, .form textarea {
    display: block; width: 100%; margin-top: 0.4rem; padding: 0.85rem 1rem;
    border: 1px solid transparent; border-radius: 0; font: inherit; color: var(--ink); background: #f5f5f5;
}
.form input:focus, .form select:focus, .form textarea:focus { background: var(--white); border-color: var(--sky); outline: none; }
.form textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 14px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.captcha-field { margin: 0.4rem 0 1rem; }
.captcha-noscript { color: var(--err-ink); }
altcha-widget { --altcha-max-width: 100%; --altcha-color-border: #e1e1e1; --altcha-border-radius: 0; }

.notice { padding: 0.9rem 1.1rem; margin-bottom: 1.2rem; }
.notice-success { background: var(--ok-bg); color: var(--ok-ink); }
.notice-error { background: var(--err-bg); color: var(--err-ink); }

/* --------------------------------------------------------------------------
   Footer (old dark footer)
   -------------------------------------------------------------------------- */
.site-footer { background: var(--footer); color: #a9a6c4; padding: 4.2rem 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { width: 170px; height: auto; margin-bottom: 0.9rem; }
.footer-tagline { color: var(--sky); font-style: italic; }
.footer-head { color: var(--white); font-size: 16px; font-weight: 700; margin-bottom: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.site-footer a { color: #d3d1e6; text-decoration: none; }
.site-footer a:hover { color: var(--sky); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: 3rem; padding: 1.3rem 20px; font-size: 14px; }
.footer-bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
