/* ============================================================
   GIAT Ltd — design system
   Light, professional, minimal. No frameworks.
   Type: Inter (single family, weight-based hierarchy)
   ============================================================ */

:root {
    /* Color */
    --bg: #ffffff;
    --bg-soft: #f6f8fa;          /* alternate sections, plates */
    --surface: #ffffff;          /* cards */
    --line: #e4e9ef;             /* borders */
    --line-soft: #e4e9ef;        /* alias kept for inline section borders */
    --text: #1b2733;             /* headings, primary text */
    --muted: #52616f;            /* body text */
    --accent: #0077cc;           /* GIAT electric blue */
    --accent-deep: #005fa6;
    --accent-soft: #eaf4fc;      /* tints for chips and icon tiles */
    --footer-bg: #1f2933;
    --footer-text: #c3ccd6;
    --ok: #15803d;
    --err: #b91c1c;

    /* Type */
    --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

    /* Rhythm */
    --radius: 8px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(16, 42, 67, 0.06);
    --shadow-md: 0 8px 24px rgba(16, 42, 67, 0.09);
    --header-h: 68px;
}

/* ----- Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    margin: 0;
    background: var(--bg);
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
    margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }

ul { margin: 0; padding: 0; list-style: none; }

address { font-style: normal; }

button { font: inherit; cursor: pointer; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

::selection { background: rgba(0, 119, 204, 0.18); }

.container {
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 20px;
}

.section { padding-block: 72px; }

/* ----- Type utilities ----- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 4vw, 38px);
}

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }

.lede { font-size: 18px; color: var(--muted); }

.mono { font-size: 14px; color: var(--muted); }

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 26px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { background: var(--accent-deep); color: #ffffff; box-shadow: var(--shadow-sm); }

.btn-ghost { border-color: var(--line); color: var(--text); background: var(--bg); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-block { width: 100%; }

.btn .icon { width: 17px; height: 17px; }

/* ----- Icons (inline SVG) ----- */
.icon {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 18px;
}

.icon-tile .icon { width: 22px; height: 22px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
}

.logo {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
}

.logo:hover { color: var(--text); }
.logo strong { color: var(--accent); font-weight: 700; }
.logo span { font-size: 23px; font-weight: 700; color: var(--text); }

.main-nav { display: none; align-items: center; gap: 30px; }

.main-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover { color: var(--text); }
.main-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

.main-nav .btn { min-height: 42px; padding: 9px 22px; font-size: 15px; color: #fff; border-bottom: none; }
.main-nav .btn[aria-current="page"] { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6); }

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
}

.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
    display: grid;
    gap: 2px;
    padding: 8px 20px 20px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.mobile-nav[hidden] { display: none; }

.mobile-nav a {
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
}

.mobile-nav a[aria-current="page"] { color: var(--accent); }
.mobile-nav .btn { margin-top: 14px; border-bottom: none; color: #fff; }

@media (min-width: 860px) {
    .main-nav { display: flex; }
    .menu-toggle, .mobile-nav { display: none; }
}

/* ============================================================
   Hero (home)
   ============================================================ */
.hero {
    position: relative;
    padding: 108px 0 96px;
    color: #ffffff;
    background:
        linear-gradient(100deg, rgba(9, 24, 38, 0.92) 0%, rgba(9, 30, 48, 0.78) 45%, rgba(9, 34, 54, 0.5) 100%),
        url('../images/hero-industrial.webp') center / cover no-repeat;
    border-bottom: 1px solid var(--line);
}

.hero .container { max-width: 620px; }

.hero .eyebrow { color: #a9d6ff; }

.hero h1 {
    color: #ffffff;
    font-size: clamp(34px, 5vw, 52px);
    letter-spacing: -0.025em;
    max-width: 16ch;
}

.hero h1 em { font-style: normal; color: #6cb7ff; }

.hero .lede { color: rgba(255, 255, 255, 0.86); max-width: 48ch; margin-bottom: 28px; }

.hero .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.5); color: #ffffff; }
.hero .btn-ghost:hover { border-color: #ffffff; background: rgba(255, 255, 255, 0.12); color: #ffffff; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

/* spec readout chips */
.readouts { display: flex; flex-wrap: wrap; gap: 10px; }

.readout {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.readout small {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.85;
}

/* Product image panel */
.plate {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.plate img { width: 100%; height: 100%; object-fit: contain; margin-inline: auto; }

@media (min-width: 900px) {
    .hero { padding: 132px 0 116px; }
}

/* ============================================================
   Cards & grids
   ============================================================ */
.grid { display: grid; gap: 22px; align-items: start; }

@media (min-width: 640px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid-3 { grid-template-columns: repeat(3, 1fr); }
                             .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover { box-shadow: var(--shadow-md); border-color: #d5dde5; }

.card h3 { font-size: 20px; margin-bottom: 10px; }

.card .more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    font-weight: 600;
    margin-top: 18px;
}

.card .more .icon { width: 15px; height: 15px; transition: transform 0.2s ease; }
.card .more:hover .icon { transform: translateX(3px); }

/* check list */
.check-list { display: grid; gap: 10px; margin-top: 16px; }

.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }

.check-list .icon { width: 17px; height: 17px; color: var(--accent); margin-top: 3px; }

/* industry cards */
.industry-card { display: flex; flex-direction: column; }
.industry-card .head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.industry-card .icon-tile { margin-bottom: 0; }
.industry-card h3 { margin: 0; font-size: 18px; }

/* Non-interactive info cards (no link/control inside): don't imply
   clickability with the default .card hover elevation. */
.industry-card:hover,
.timeline-item.card:hover,
.stat:hover,
.team-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--line);
}

/* ============================================================
   Split sections (text + image)
   ============================================================ */
.split { display: grid; gap: 36px; align-items: center; }

@media (min-width: 900px) {
    .split { grid-template-columns: 1fr 1fr; gap: 64px; }
    .split.flip > .split-media { order: -1; }
}

.split-media .plate { aspect-ratio: 4 / 3.4; }

/* ============================================================
   Product detail blocks (products page)
   ============================================================ */
.product-block {
    border-top: 1px solid var(--line);
    padding-block: 64px;
}

.product-block:first-of-type { border-top: none; padding-top: 8px; }

.badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-deep);
    background: var(--accent-soft);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 16px;
}

.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0 26px; }

.spec-cell {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.spec-cell dt {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
}

.spec-cell dd { margin: 0; color: var(--text); font-weight: 500; font-size: 15px; }

/* gallery: plate + thumbnails */
.gallery-main { aspect-ratio: 4 / 4; }

.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }

.gallery-thumbs button {
    flex: 1;
    max-width: 92px;
    aspect-ratio: 1;
    padding: 6px;
    background: #ffffff;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    opacity: 0.75;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.gallery-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--accent); opacity: 1; }

/* service items */
.service-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.service-item .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 4px; }
.service-item h4 { font-size: 17px; margin-bottom: 4px; }
.service-item p { color: var(--muted); }

/* ============================================================
   Page header (subpages)
   ============================================================ */
.page-header {
    padding: 56px 0 48px;
    background: linear-gradient(to bottom, #f2f7fb, #ffffff);
    border-bottom: 1px solid var(--line);
}

.page-header h1 { font-size: clamp(32px, 4.5vw, 44px); letter-spacing: -0.02em; }
.page-header .lede { max-width: 62ch; }
.page-header .readouts { margin-top: 24px; }

/* ============================================================
   Timeline (about)
   ============================================================ */
.timeline { position: relative; display: grid; gap: 26px; padding-left: 30px; max-width: 780px; margin-inline: auto; }

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), rgba(0, 119, 204, 0.12));
}

.timeline-item { position: relative; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--accent);
}

.timeline-item .year {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--accent);
}

.timeline-item h3 { font-size: 19px; margin: 4px 0 8px; }

/* ============================================================
   Stats
   ============================================================ */
.stat { text-align: center; padding: 26px 16px; }

.stat .num {
    font-size: clamp(34px, 4.5vw, 44px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--accent);
    line-height: 1.1;
}

.stat .label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 6px;
}

/* team */
.team-card { text-align: center; }

.team-card .avatar {
    width: 82px;
    height: 82px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
}

.team-card .avatar .icon { width: 30px; height: 30px; }

.team-card .role {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    text-align: center;
    padding-block: 76px;
}

.cta-band h2 { font-size: clamp(28px, 4vw, 38px); color: #ffffff; }
.cta-band .eyebrow { color: rgba(255, 255, 255, 0.85); }
.cta-band .lede { max-width: 56ch; margin-inline: auto; margin-bottom: 30px; color: rgba(255, 255, 255, 0.92); }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }

.cta-band .btn-primary { background: #ffffff; color: var(--accent-deep); }
.cta-band .btn-primary:hover { background: #f0f6fb; color: var(--accent-deep); }

.cta-band .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: #ffffff; }
.cta-band .btn-ghost:hover { border-color: #ffffff; background: rgba(255, 255, 255, 0.1); color: #ffffff; }

/* ============================================================
   Forms (contact)
   ============================================================ */
.form-card { padding: 32px; }

.field { margin-bottom: 20px; }

.field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #cfd8e0;
    border-radius: var(--radius);
    color: var(--text);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.15);
}

.field textarea { resize: vertical; min-height: 140px; }

.field-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.checkbox-field { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 24px; font-size: 14px; }
.checkbox-field input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--accent); }

.form-msg {
    display: none;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 22px;
    font-size: 15px;
}

.form-msg.show { display: flex; }
.form-msg .icon { width: 18px; height: 18px; margin-top: 2px; }
.form-msg.success { background: #ecf8f0; border: 1px solid #b7e4c7; color: var(--ok); }
.form-msg.error { background: #fdf0ef; border: 1px solid #f3c1bd; color: var(--err); }

/* contact info blocks */
.contact-row { display: flex; gap: 16px; align-items: flex-start; }
.contact-row + .contact-row { margin-top: 22px; }
.contact-row .icon-tile { margin-bottom: 0; width: 42px; height: 42px; }
.contact-row h3 { font-size: 17px; margin-bottom: 4px; }
.contact-row a { color: var(--muted); }
.contact-row a:hover { color: var(--accent); }

.hours-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hours-row:last-of-type { border-bottom: none; }
.hours-row span:last-child { color: var(--text); font-weight: 500; }

.note {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-size: 14px;
}

.note .icon { width: 16px; height: 16px; margin-top: 3px; }

.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 17px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 500;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.quick-link + .quick-link { margin-top: 10px; }
.quick-link:hover { border-color: var(--accent); color: var(--accent); background: #ffffff; }
.quick-link .icon { width: 18px; height: 18px; color: var(--accent); }

/* map */
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); height: 420px; }
.map-frame gmp-map { display: block; height: 100%; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 28px;
    font-size: 15px;
}

.footer-grid { display: grid; gap: 36px; margin-bottom: 44px; }

@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

.footer-grid h3 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--footer-text); }
.footer-grid a:hover { color: #ffffff; }

.social { display: flex; gap: 10px; margin-top: 18px; }

.social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #3a4754;
    border-radius: 8px;
    color: var(--footer-text);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.social a:hover { color: #ffffff; border-color: #ffffff; }
.social .icon { width: 17px; height: 17px; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #3a4754;
    padding-top: 24px;
    font-size: 14px;
}

.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a { color: var(--footer-text); }
.footer-bottom a:hover { color: #ffffff; }

/* ============================================================
   Motion
   ============================================================ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Print
   ============================================================ */
@media print {
    .site-header, .site-footer, .cta-band, .menu-toggle { display: none; }
    body { background: #fff; color: #222; }
}
