/* Cyclone Archive shared styles. Page-specific CSS stays in each page. */

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
    --red: #CF0125;
    --red-hover: #A80120;
    --yellow: #F8DB15;
    --yellow-hover: #E5C907;
    --black: #000000;
    --ink: #111111;
    --ink-soft: #555555;
    --ink-faint: #767676;
    --paper: #faf8f5;
    --white: #ffffff;
    --border: #eeebe6;
    --border-mid: #d1d5db;
    --font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--ink);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
  }

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

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.015em; }

/* Skip link */
  .skip-link {
    position: absolute; top: -48px; left: 0;
    background: var(--red); color: var(--white);
    padding: 10px 18px; z-index: 1000;
    text-decoration: none; font-weight: 600; transition: top 0.2s;
  }

.skip-link:focus { top: 0; }

/* Links: one brand accent for unvisited and visited. :where() keeps specificity at zero so component styles win. */
:where(a) { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:where(a:hover) { color: var(--red-hover); }
/* Block links take their colour from their contents. */
.nav-logo, .seg-row, .rel-card, .tp-big { color: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

:focus:not(:focus-visible) { outline: none; }

/* ============ NAVIGATION (dark, ties into hero) ============ */
  nav[role="navigation"] {
    background: var(--black);
    padding: 0 40px;
    display: flex; align-items: center; justify-content: space-between;
    height: 84px;
    position: sticky; top: 0; z-index: 200;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }

.nav-logo { display: flex; align-items: center; text-decoration: none; }

.nav-logo img { height: 50px; width: auto; }

.nav-links { display: flex; align-items: stretch; height: 84px; }

.nav-item { display: flex; align-items: center; position: relative; }

.nav-item > a {
    color: rgba(255,255,255,0.75); text-decoration: none;
    font-size: 14.5px; font-weight: 500;
    padding: 0 16px; height: 84px;
    display: flex; align-items: center; gap: 5px;
    transition: color 0.15s ease;
  }

.nav-item > a:hover { color: var(--white); }

.nav-parent { cursor: pointer; }

.nav-chevron { font-size: 9px; color: rgba(255,255,255,0.45); transform: translateY(1px); }

.dropdown {
    display: none;
    position: absolute; top: 84px; left: 0;
    background: #0d0d0d;
    border: 1px solid rgba(255,255,255,0.14);
    border-top: 2px solid var(--yellow);
    min-width: 268px;
    padding: 10px 0;
    box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  }

.nav-item:hover .dropdown,
  .nav-item:focus-within .dropdown { display: block; }

.dropdown a {
    display: block; padding: 9px 20px;
    color: rgba(255,255,255,0.72); text-decoration: none;
    font-size: 14px; font-weight: 500;
    transition: color 0.15s ease, background 0.15s ease;
  }

.dropdown a:hover { color: var(--white); background: rgba(255,255,255,0.07); }

.nav-right { display: flex; align-items: center; gap: 20px; }

.nav-phone {
    color: var(--white); text-decoration: none;
    font-size: 14.5px; font-weight: 600;
    display: flex; align-items: center; gap: 7px;
    transition: color 0.15s ease;
  }

.nav-phone svg { color: var(--yellow); }

.nav-phone:hover { color: var(--yellow); }

.nav-cta {
    background: var(--yellow); color: var(--black) !important;
    padding: 10px 22px; border-radius: 6px;
    font-weight: 700; font-size: 14.5px; text-decoration: none; white-space: nowrap;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  }

.nav-cta:hover { background: var(--yellow-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(248,219,21,0.2); }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 10px; }

.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; transition: transform 0.2s ease; }

/* ============ SHARED ============ */
  .container { max-width: 1120px; margin: 0 auto; padding: 0 40px; }

.section-label {
    font-size: 11.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.14em; color: var(--red); margin-bottom: 14px;
  }

.section-label.on-dark { color: var(--yellow); }

.section-title { font-size: 32px; font-weight: 700; margin-bottom: 14px; }

.section-intro { font-size: 16.5px; color: var(--ink-soft); max-width: 62ch; }

.section-header { margin-bottom: 48px; }

.btn-primary,
.btn-next {
    background: var(--red); color: var(--white);
    padding: 14px 30px; border-radius: 6px;
    font-family: var(--font); font-weight: 600; font-size: 16px;
    text-decoration: none; border: none; cursor: pointer; display: inline-block;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  }

.btn-primary:hover,
.btn-next:hover { background: var(--red-hover); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(207,1,37,0.3); }

.btn-yellow {
    background: var(--yellow); color: var(--black);
    padding: 14px 30px; border-radius: 6px;
    font-family: var(--font); font-weight: 700; font-size: 16px;
    text-decoration: none; border: none; cursor: pointer; display: inline-block;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  }

.btn-yellow:hover { background: var(--yellow-hover); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(248,219,21,0.25); }

.card {
    border: 1px solid var(--border); border-radius: 8px;
    padding: 28px; background: var(--white);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }

.card:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,0.07); }

.card-icon {
    width: 42px; height: 42px; border-radius: 8px;
    background: rgba(0,0,0,0.05); color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
  }

.card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; }

.card p { font-size: 14.5px; color: var(--ink-soft); }

.card-link {
    color: var(--red); font-size: 14px; font-weight: 600;
    text-decoration: none; margin-top: 14px; display: inline-block;
    transition: color 0.15s ease;
  }

.card-link:hover { color: var(--red-hover); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.btn-black {
    background: var(--black); color: var(--white);
    padding: 14px 30px; border-radius: 6px;
    font-family: var(--font); font-weight: 700; font-size: 16px;
    text-decoration: none; border: none; cursor: pointer; display: inline-block;
    width: 100%; text-align: center;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  }

.btn-black:hover { background: #1f1f1f; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.3); }

/* ============ SCROLL REVEAL ============ */
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease-out, transform 0.55s ease-out; }

.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ FOOTER ============ */
  footer { background: #101010; color: rgba(255,255,255,0.7); padding: 64px 40px 36px; border-top: 1px solid rgba(255,255,255,0.16); }

.footer-grid {
    max-width: 1120px; margin: 0 auto 48px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  }

.footer-col h4 {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.14em; color: rgba(255,255,255,0.45); margin-bottom: 16px;
  }

.footer-col a {
    display: block; color: rgba(255,255,255,0.65); text-decoration: none;
    font-size: 14px; padding: 5px 0; transition: color 0.15s ease;
  }

.footer-col a:hover { color: var(--white); }

.footer-bottom {
    max-width: 1120px; margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.12); padding-top: 32px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px;
  }

.footer-brand img { height: 40px; width: auto; margin-bottom: 12px; }

.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.5); max-width: 46ch; }

.footer-legal { font-size: 13px; color: rgba(255,255,255,0.5); text-align: right; }

.footer-legal a { color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.15s ease; }

.footer-legal a:hover { color: var(--white); }

.footer-phone { color: var(--yellow); font-weight: 600; text-decoration: none; white-space: nowrap; }

.footer-phone:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links {
      display: none; position: fixed; top: 84px; left: 0; right: 0; bottom: 0;
      background: var(--black); flex-direction: column; align-items: stretch;
      padding: 20px 24px; height: auto; overflow-y: auto; z-index: 300;
    }
  .nav-links.open { display: flex; }
  .nav-item { display: block; }
  .nav-item > a {
      color: var(--white); padding: 16px 0; height: auto;
      border-bottom: 1px solid rgba(255,255,255,0.1); width: 100%;
    }
  .nav-chevron { display: none; }
  .dropdown {
      display: block; position: static; background: transparent;
      border: none; box-shadow: none; min-width: 0; padding: 0 0 8px 16px;
    }
  .dropdown a { color: rgba(255,255,255,0.65); padding: 13px 0; }
  .dropdown a:hover { background: transparent; color: var(--white); }
  .nav-right .nav-phone { display: none; }
  .nav-right { gap: 8px; }
  .nav-cta { padding: 12px 16px; font-size: 13px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .section-title { font-size: 25px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-legal { text-align: left; }
}

.btn-back {
  display: inline-block; padding: 13px 26px; border-radius: 6px;
  border: 1px solid var(--border-mid); background: transparent;
  color: var(--ink); font-family: var(--font); font-weight: 600; font-size: 15px;
  text-decoration: none; transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-back:hover { border-color: var(--ink); background: var(--paper); }

/* ==========================================================================
   Cookie consent
   The banner is a centred card rather than a bottom bar, and rejecting is one
   click, sitting beside accepting. Under GDPR refusing has to be as easy as
   agreeing, and the Irish DPC has enforced on exactly that asymmetry.
   ========================================================================== */

#cc-banner, #cc-modal {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(17, 17, 17, 0.45);
}
#cc-modal { z-index: 10000; }

.cc-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    padding: 30px 30px 26px;
    width: 100%; max-width: 470px;
    max-height: 88vh; overflow-y: auto;
    position: relative;
    color: var(--ink);
}
.cc-card-wide { max-width: 560px; }

.cc-card h2 {
    display: flex; align-items: center; gap: 10px;
    font-size: 19px; font-weight: 700; line-height: 1.3;
    margin: 0 0 10px; color: var(--ink);
}
.cc-card h2 svg { color: var(--red); flex-shrink: 0; }
.cc-card > p {
    font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 22px;
}
.cc-card > p a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }

.cc-choices {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px;
}
.cc-choices .cc-btn { width: 100%; }
@media (max-width: 380px) { .cc-choices { grid-template-columns: 1fr; } }
.cc-plain {
    appearance: none; background: none; border: 0; padding: 6px 2px;
    font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
    cursor: pointer; border-radius: 4px;
}
.cc-plain:hover { color: var(--red); }

.cc-btn {
    appearance: none; border: 1px solid transparent; cursor: pointer;
    padding: 12px 20px; border-radius: 8px;
    font: inherit; font-size: 14.5px; font-weight: 600; line-height: 1;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap; text-align: center;
    display: inline-flex; align-items: center; justify-content: center;
}
.cc-wide { display: flex; width: 100%; }
.cc-primary { background: var(--red); color: #fff; border-color: var(--red); }
.cc-primary:hover { background: var(--red-hover); border-color: var(--red-hover); }
.cc-ghost { background: #fff; color: var(--ink); border-color: #d8d8d8; }
.cc-ghost:hover { border-color: var(--ink); }

.cc-close {
    position: absolute; top: 14px; right: 14px;
    width: 32px; height: 32px; border: 0; background: none;
    font-size: 24px; line-height: 1; color: var(--ink-faint);
    cursor: pointer; border-radius: 6px;
}
.cc-close:hover { color: var(--ink); background: #f4f4f4; }

.cc-intro { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 20px; }

.cc-row {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 16px 0; border-top: 1px solid #e8e8e8;
}
.cc-row:last-of-type { border-bottom: 1px solid #e8e8e8; }
.cc-row-text { flex: 1; }
.cc-row-text h3 { font-size: 15px; font-weight: 600; margin: 0 0 4px; line-height: 1.3; }
.cc-row-text p { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.55; }
.cc-row-control { flex-shrink: 0; padding-top: 3px; }

.cc-always {
    display: inline-block; background: #f2f2f2; color: var(--ink-soft);
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    padding: 5px 11px; border-radius: 99px;
}

.cc-toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.cc-toggle input { opacity: 0; width: 0; height: 0; }
.cc-toggle .cc-slider {
    position: absolute; inset: 0; background: #d1d5db; border-radius: 24px;
    cursor: pointer; transition: background 0.2s ease;
}
.cc-toggle .cc-slider::before {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px; background: #fff; border-radius: 50%;
    transition: transform 0.2s ease; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.cc-toggle input:checked + .cc-slider { background: var(--red); }
.cc-toggle input:checked + .cc-slider::before { transform: translateX(20px); }
.cc-toggle input:focus-visible + .cc-slider { outline: 2px solid var(--red); outline-offset: 2px; }

.cc-modal-actions {
    display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap;
}

@media (max-width: 600px) {
    .cc-card { padding: 24px 20px 20px; }
    .cc-choices { gap: 16px; }
    .cc-modal-actions { flex-direction: column-reverse; }
    .cc-modal-actions .cc-btn { width: 100%; }
}

/* Security controls checklist: written to be lifted into a buyer's own supplier checklist */
.ctl-head { margin: 56px 0 22px; max-width: 46rem; }
.ctl-title { font-size: 22px; font-weight: 700; line-height: 1.3; margin: 0 0 8px; color: var(--ink); }
.ctl-head p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; margin: 0; }
.ctl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ctl-group { background: #fff; border: 1px solid #e6e6e6; border-radius: 12px; padding: 22px 20px; }
.ctl-group h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); margin: 0 0 14px; }
.ctl-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.ctl-group li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.ctl-group li svg { color: var(--red); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 1000px) { .ctl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ctl-grid { grid-template-columns: 1fr; } }

/* Chain of custody: the scanner photo sits beside the section header */
.custody-top { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; margin-bottom: 40px; }
.custody-top .section-header { margin-bottom: 0; }
.custody-photo { margin: 0; }
.custody-photo img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: 14px; }
@media (max-width: 860px) { .custody-top { grid-template-columns: 1fr; gap: 24px; } }

/* Chain of custody runs to three cards */
@media (min-width: 1001px) { .svc-row.svc-row-3 { grid-template-columns: repeat(3, 1fr); } }

/* Present for screen readers and search, hidden on screen */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Headline breaks are set by meaning on wide screens and let the line wrap naturally on phones */
@media (max-width: 767px) { .h1-br { display: none; } }

/* Buy archive boxes: the secondary action beside every quote */
.hero-side { display: flex; flex-direction: column; gap: 18px; }
.card-alt-link { align-self: center; color: var(--white); font-size: 21px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.card-alt-link span { color: var(--yellow); transition: transform 0.15s ease; display: inline-block; }
.card-alt-link:hover { color: var(--yellow); }
.card-alt-link:hover span { transform: translateX(3px); }
.cta-or { display: flex; align-items: center; gap: 14px; max-width: 520px; margin: 26px auto 18px; color: rgba(255,255,255,0.5); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.cta-or::before, .cta-or::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.18); }
.cta-alt-link { display: inline-block; color: var(--white); font-size: 21px; font-weight: 700; text-decoration: none; margin-bottom: 30px; }
.cta-alt-link span { color: var(--yellow); display: inline-block; transition: transform 0.15s ease; }
.cta-alt-link:hover { color: var(--yellow); }
.cta-alt-link:hover span { transform: translateX(3px); }
.btn-outline-light, .btn-outline-dark { display: inline-block; padding: 14px 24px; border-radius: 8px; font-weight: 700; font-size: 16px; text-decoration: none; line-height: 1; transition: border-color 0.15s ease, color 0.15s ease; }
.btn-outline-light { color: var(--white); border: 1.5px solid rgba(255,255,255,0.45); }
.btn-outline-light:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-outline-dark { color: var(--ink); border: 1.5px solid #cfcfcf; }
.btn-outline-dark:hover { border-color: var(--ink); }

/* Photo beside the "room" copy on service pages */
.room-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.room-photo { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1; max-height: 460px; background: var(--paper); }
.room-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-photo-pad { background: var(--paper); }
.room-photo-pad img { object-fit: contain; padding: 18px; }
@media (max-width: 900px) {
  .room-grid { grid-template-columns: 1fr; gap: 32px; }
  .room-photo { aspect-ratio: 4 / 3; max-height: none; }
}
