/* =====================================================================
   BTR Global - site styles
   Colors and fonts are set once here; pages only use the class names.
   ===================================================================== */
:root {
    --ink: #1B1F22;      /* dark charcoal: header, footer, headings */
    --paper: #F4F3EF;    /* warm off-white page background */
    --white: #FFFFFF;
    --line: #D9D6CE;     /* borders */
    --stone: #C9C5BB;    /* light text on dark, connector lines */
    --text: #4A5055;     /* body copy */
    --muted: #5B6166;    /* small labels */
    --rust: #B4400B;     /* accent */
    --sans: 'Archivo', system-ui, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

body { margin: 0; background: var(--paper); }
a { color: var(--ink); }
a:hover { color: var(--rust); }

.page {
    font-family: var(--sans); color: var(--ink); background: var(--paper);
    min-height: 100vh; display: flex; flex-direction: column;
}

/* ---------- Header + menu ---------- */
.site-header--dark { background: var(--ink); color: var(--paper); }
.bar {
    max-width: 1200px; margin: 0 auto; padding: 20px 24px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand:hover { color: inherit; }
.brand img { height: 44px; width: auto; display: block; }
.brand span { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { padding: 12px 14px; font-size: 15px; font-weight: 600; text-decoration: none; }
.site-header--dark .nav a { color: var(--paper); }
.nav a.cta { padding: 12px 18px; border-radius: 999px; }
.site-header--dark .nav a.cta { background: var(--paper); color: var(--ink); }

/* ---------- Home page hero ---------- */
.hero { max-width: 1200px; margin: 0 auto; padding: 72px 24px 88px; text-align: center; }
.eyebrow {
    margin: 0 0 16px; font-family: var(--mono); font-size: 13px;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone);
}
.hero h1 { margin: 0; }
.hero h1 img { width: 80%; max-width: 420px; height: auto; display: block; margin: 0 auto; }
.hero-title { font-size: clamp(36px, 6vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -0.025em; }
.rule { display: block; width: 64px; height: 4px; background: var(--rust); margin: 28px auto 0; }
.hero-lead { margin: 28px auto 0; max-width: 620px; font-size: 18px; line-height: 1.55; color: var(--stone); }
.hero-lead a { color: var(--paper); }

/* ---------- Home page: logo floating over the equipment slideshow ---------- */
.hero--slides {
    position: relative; max-width: none; padding: 0; overflow: hidden;
    min-height: 460px; height: min(78vh, 760px);
    display: flex; align-items: center; justify-content: center;
}
.slides { position: absolute; inset: 0; margin: 0; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); }
.slide.is-active img { animation: slow-zoom 9s ease-out forwards; }
@keyframes slow-zoom { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.hero-shade {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(27, 31, 34, .35) 0%, rgba(27, 31, 34, .65) 75%),
        linear-gradient(to bottom, rgba(27, 31, 34, .45), rgba(27, 31, 34, 0) 30%, rgba(27, 31, 34, .55));
}
.hero-content { position: relative; z-index: 1; padding: 40px 24px 96px; text-align: center; }
.hero-logo { margin: 0; }
.hero-logo img {
    width: 80%; max-width: 420px; height: auto; display: block; margin: 0 auto;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .55));
}
/* Intro text sits on a soft dark panel so it reads clearly over every photo */
.hero--slides .hero-lead {
    color: var(--paper); padding: 18px 26px; border-radius: 14px;
    background: rgba(27, 31, 34, .55);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
.slide-caption {
    position: absolute; z-index: 2; left: 24px; bottom: 24px; max-width: calc(100% - 48px);
    padding: 9px 16px; border-radius: 999px; background: rgba(27, 31, 34, .72);
    color: var(--paper); text-decoration: none; font-size: 14px; font-weight: 600;
    backdrop-filter: blur(4px); box-sizing: border-box;
}
.slide-caption:hover { color: var(--paper); background: var(--rust); }
.slide-brand { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); margin-right: 6px; }
.slide-caption:hover .slide-brand { color: var(--paper); }
.slide-dots { position: absolute; z-index: 2; right: 24px; bottom: 30px; display: flex; gap: 2px; }
.slide-dot {
    width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.slide-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(244, 243, 239, .55); transition: background .2s, transform .2s; }
.slide-dot:hover::before { background: var(--paper); }
.slide-dot.is-active::before { background: var(--rust); transform: scale(1.3); }
.slide-dot:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; border-radius: 50%; }
@media (prefers-reduced-motion: reduce) {
    .slide { transition: none; }
    .slide.is-active img { animation: none; }
}

/* ---------- Company cards (home page) ---------- */
.branch-stem { display: flex; justify-content: center; }
.branch-stem span { width: 2px; height: 48px; background: var(--stone); }
.companies { width: 100%; max-width: 1080px; box-sizing: border-box; margin: 0 auto; padding: 0 24px 96px; }
.branch-arms { margin: 0 25%; height: 24px; border: 2px solid var(--stone); border-bottom: none; border-radius: 12px 12px 0 0; }
.section-label {
    margin: 32px 0 28px; text-align: center; font-family: var(--mono); font-weight: 500;
    font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--white); border: 1.5px solid var(--line); border-radius: 16px;
    text-decoration: none; color: var(--ink); scroll-margin-top: 24px;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover, .card:focus-visible {
    color: var(--ink); box-shadow: 0 10px 30px rgba(27, 31, 34, .10); transform: translateY(-2px); outline: none;
}
/* Equipment photo band with the company logo centered on it */
.card-media {
    position: relative; height: 190px; display: flex; align-items: center; justify-content: center;
    background-color: var(--ink); background-size: cover; background-position: center;
    transition: background-size .4s;
}
.card-media::before {   /* brightens the middle of the photo so the logo stands out */
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 70% at center, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .25) 55%, rgba(255, 255, 255, 0) 100%);
}
.card-media--plain {    /* companies without a photo yet: light band with fine diagonal lines */
    background-color: #E9E7E1;
    background-image: repeating-linear-gradient(135deg, rgba(27, 31, 34, .045) 0 2px, transparent 2px 14px);
}
/* Logo sits straight on the photo, no box; a soft glow that follows its shape keeps it readable */
.card-logo { position: relative; display: flex; align-items: center; justify-content: center; }
.card-logo img {
    max-height: 96px; max-width: 250px; width: auto; height: auto; display: block;
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 1)) drop-shadow(0 0 3px rgba(255, 255, 255, .95)) drop-shadow(0 0 12px rgba(255, 255, 255, .85)) drop-shadow(0 4px 14px rgba(0, 0, 0, .25));
}
.card-logo-box { display: block; border-radius: 6px; padding: 5px; }
.card-logo-box img { max-height: 70px; max-width: 240px; }
.card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; padding: 24px 28px 28px; }
.card-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.card-name { font-weight: 800; font-size: 24px; line-height: 1.1; letter-spacing: -0.01em; }
.card-text { font-size: 15px; line-height: 1.5; color: var(--text); }
.card-cta { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 14px; color: var(--rust); }

/* ---------- Our story ---------- */
.story { background: var(--white); border-top: 1px solid var(--line); }
.story-inner { max-width: 1080px; margin: 0 auto; padding: 88px 24px; display: flex; flex-wrap: wrap; gap: 48px 64px; }
.story-intro { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.story-intro .kicker { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rust); }
.story-intro h2 { margin: 0; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.story-intro .lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text); }
.story-photo { margin: 8px 0 0; }
.story-photo img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--line); }
.timeline { flex: 999 1 520px; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.timeline li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.tl-when { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rust); padding-top: 4px; }
.tl-body { display: flex; flex-direction: column; gap: 8px; }
.tl-body h3 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 800; }
.tl-body p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text); }
.tl-body .tl-note { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; background: var(--ink); color: var(--stone); }
.footer-inner {
    max-width: 1200px; margin: 0 auto; padding: 40px 24px;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 15px; line-height: 1.6;
}
.footer-info { display: flex; flex-direction: column; gap: 4px; }
.footer-name { font-weight: 800; font-size: 18px; color: var(--paper); }
.site-footer a, .site-footer a:hover { color: var(--paper); }
.copyright { align-self: flex-end; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; }

/* ---------- Phones ---------- */
@media (max-width: 720px) {
    .cols { grid-template-columns: minmax(0, 1fr); }
    .branch { display: none; }
    .hero--slides { height: auto; min-height: 520px; }
    .hero-content { padding: 48px 20px 132px; }
    .slide-caption { left: 16px; right: 16px; bottom: 56px; max-width: none; text-align: center; }
    .slide-dots { left: 0; right: 0; bottom: 14px; justify-content: center; }
}


/* ---------- Footer legal links, cookie banner accent, Privacy & Cookie Policy page ---------- */
.footer-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; align-self: flex-end; }
.footer-legal { font-size: 13px; }
.cc-banner { --cc-accent: #E46A2E; --cc-font: var(--sans); }
.policy-page { width: 100%; max-width: 820px; box-sizing: border-box; margin: 0 auto; padding: 64px 24px 88px; font-size: 17px; line-height: 1.65; color: var(--text); }
.policy-page h1 { margin: 0 0 8px; font-size: clamp(32px, 4.4vw, 46px); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.policy-updated { margin: 0 0 28px; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--rust); }
.policy-page h2 { margin: 36px 0 8px; font-size: 22px; line-height: 1.2; font-weight: 800; color: var(--ink); }
.policy-page p { margin: 0 0 14px; }
.policy-page a { color: var(--rust); }
.policy-table-wrap { overflow-x: auto; margin: 12px 0 18px; }
.policy-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); font-size: 15px; }
.policy-table th, .policy-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.policy-table td:first-child { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
@media (max-width: 720px) { .footer-end { align-items: flex-start; align-self: auto; } }
