/* =====================================================================
   TES Storage and Logistics B.V. — website styles
   Shared stylesheet: design system + all page styles
   Hand-written, no framework, no external dependencies.
   ===================================================================== */

/* ------------------------------------------------------------------ */
/* 1. Design tokens                                                    */
/* ------------------------------------------------------------------ */
:root {
  --navy:      #0f2440;   /* headers, footer, dark sections */
  --navy-2:    #12335c;   /* lighter navy for gradients     */
  --steel:     #1d5a8a;   /* primary blue                    */
  --steel-2:   #2b73ab;   /* hover blue                      */
  --amber:     #f5a623;   /* accent / CTA                    */
  --amber-2:   #e0930f;   /* accent hover                    */
  --ink:       #1c2733;   /* body text                       */
  --muted:     #5c6b7a;   /* secondary text                  */
  --line:      #e2e8f0;   /* borders                         */
  --grey:      #f4f6f9;   /* light section background        */
  --white:     #ffffff;

  --container: 1200px;
  --radius:    10px;
  --shadow:    0 10px 30px rgba(15, 36, 64, .10);
  --shadow-sm: 0 4px 14px rgba(15, 36, 64, .08);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ------------------------------------------------------------------ */
/* 2. Base / reset                                                     */
/* ------------------------------------------------------------------ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--steel); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--steel-2); }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 84px 0; }
.section--grey { background: var(--grey); }
.section--navy { background: var(--navy); color: #cdd8e6; }
.section--navy h2, .section--navy h3 { color: #fff; }

/* Photographic section background: the scene photo is set inline (background-image
   on the <section>, so its relative URL resolves against the page), and this dark
   navy wash sits on top via ::before so section text stays readable. White cards
   keep their dark-on-white text. */
.section--photo {
  position: relative;
  color: #dbe4ee;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.section--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(9, 21, 38, .55), rgba(9, 21, 38, .68));
  pointer-events: none;
}
.section--photo > .container { position: relative; z-index: 1; }
.section--photo .eyebrow { color: #f5c877; }
.section--photo h2, .section--photo h3 { color: #fff; }
.section--photo .lead, .section--photo p { color: #dbe4ee; }
.section--photo .features li,
.section--photo .stat__label { color: #dbe4ee; }
/* Bold lead-ins default to dark navy — force light so they read on the photo */
.section--photo .features b,
.section--photo p b,
.section--photo li b { color: #fff; }
.section--photo .value h3 { color: #fff !important; }
.section--photo .value p  { color: #dbe4ee !important; }
.section--photo .btn--outline { color: #fff; border-color: rgba(255, 255, 255, .6); }
.section--photo .btn--outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
/* White cards sit on top of the photo — keep their original dark text */
.section--photo .card h3 { color: var(--navy); }
.section--photo .card p  { color: var(--muted); }
.section--photo .card li { color: var(--muted); }
.section--photo .card .features li { color: var(--muted); }
.section--photo .card .features b { color: var(--navy); }
.section--photo .card .card__link { color: var(--steel); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .6rem;
}

.lead { font-size: 1.12rem; color: var(--muted); }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ------------------------------------------------------------------ */
/* 3. Buttons                                                          */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--amber); color: var(--navy); }
.btn--primary:hover { background: var(--amber-2); color: var(--navy); }
.btn--dark { background: var(--steel); color: #fff; }
.btn--dark:hover { background: var(--steel-2); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--outline { background: transparent; color: var(--steel); border-color: var(--steel); }
.btn--outline:hover { background: var(--steel); color: #fff; }

/* ------------------------------------------------------------------ */
/* 4. Top bar                                                          */
/* ------------------------------------------------------------------ */
.topbar {
  background: var(--navy);
  color: #b9c6d6;
  font-size: .85rem;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  padding-block: 9px;
}
.topbar a { color: #dbe4ee; }
.topbar a:hover { color: #fff; }
.topbar .topbar__meta { display: flex; flex-wrap: wrap; gap: 20px; }
.topbar .topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; flex: none; }

/* ------------------------------------------------------------------ */
/* 5. Header / navigation                                              */
/* ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 42px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text b { font-size: 1.28rem; color: var(--navy); font-weight: 800; letter-spacing: -.02em; }
.brand__text span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); font-weight: 600; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__menu a {
  display: block;
  padding: 10px 12px;
  color: var(--navy);
  font-weight: 600;
  font-size: .96rem;
  border-radius: 6px;
  white-space: nowrap;
}
.nav__menu a:hover { background: var(--grey); color: var(--steel); }
.nav__menu a.active { color: var(--steel); }
.nav__menu a.active::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--amber);
  margin-top: 3px;
  border-radius: 2px;
}
.nav__right { display: flex; align-items: center; gap: 12px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 26px; height: 3px; border-radius: 2px; background: var(--navy);
  transition: transform .25s ease, opacity .25s ease;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ------------------------------------------------------------------ */
/* 6. Hero                                                             */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  color: #fff;
  background-color: var(--navy);
  /* The scene photo is set inline (background-image on the <section>) so its
     relative URL resolves against the page; this navy tint sits on top via ::before. */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(12,30,54,.74), rgba(20,60,96,.48));
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero__inner { padding: 110px 0 120px; max-width: 760px; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.18rem; color: #dbe4ee; max-width: 600px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Page banner (inner pages) */
.page-banner {
  position: relative;
  color: #fff;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 76px 0;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(12,30,54,.80), rgba(20,60,96,.56));
  pointer-events: none;
}
.page-banner > .container { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; margin-bottom: .2rem; }
.crumbs { color: #b9c6d6; font-size: .92rem; }
.crumbs a { color: var(--amber); }

/* ------------------------------------------------------------------ */
/* 7. Cards / grids                                                    */
/* ------------------------------------------------------------------ */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(29,90,138,.10);
  color: var(--steel);
  margin-bottom: 18px;
}
.card__icon svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin-bottom: 1rem; }
.card__link { font-weight: 700; font-size: .92rem; display: inline-flex; gap: 6px; align-items: center; }
.card__link svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ */
/* 8. Stats band                                                       */
/* ------------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.stat { text-align: center; padding: 10px; }
.stat__num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; color: #fff; line-height: 1; }
.stat__num .suffix { color: var(--amber); }
.stat__label { margin-top: 8px; font-size: .95rem; color: #b9c6d6; }

/* ------------------------------------------------------------------ */
/* 9. Media / split layout                                             */
/* ------------------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.split__media .imgph { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Placeholder image block (used until real photos are added) */
.imgph {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(255,255,255,.9);
  font-weight: 700;
  letter-spacing: .04em;
  background: linear-gradient(135deg, var(--navy), var(--steel));
  border-radius: var(--radius);
  padding: 20px;
}
.imgph small { display: block; font-weight: 500; opacity: .8; margin-top: 6px; letter-spacing: 0; }

/* Feature list (storage / transport pages) */
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.features li { display: flex; gap: 14px; align-items: flex-start; }
.features .tick {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(245,166,35,.15); color: var(--amber-2);
  display: grid; place-items: center; margin-top: 2px;
}
.features .tick svg { width: 15px; height: 15px; }
.features b { color: var(--navy); }

/* ------------------------------------------------------------------ */
/* 10. Why-choose / value tiles                                        */
/* ------------------------------------------------------------------ */
.value { text-align: left; }
.value__icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(245,166,35,.14); color: var(--amber-2);
  display: grid; place-items: center; margin-bottom: 14px;
}
.value__icon svg { width: 28px; height: 28px; }
.value h3 { font-size: 1.1rem; }
.value p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ------------------------------------------------------------------ */
/* 11. CTA band                                                        */
/* ------------------------------------------------------------------ */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--steel));
  color: #fff;
  border-radius: 16px;
  padding: 54px 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: #dbe4ee; margin: .4rem 0 0; }

/* ------------------------------------------------------------------ */
/* 12. Contact page                                                    */
/* ------------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: start; }
.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 8px; font: inherit; color: var(--ink); background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(29,90,138,.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .err { color: #c0392b; font-size: .82rem; margin-top: 5px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea { border-color: #c0392b; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.form-msg {
  display: none; margin-top: 16px; padding: 14px 16px; border-radius: 8px;
  background: rgba(39,174,96,.12); color: #1e7e46; font-weight: 600;
}
.form-msg.show { display: block; }
.form-msg.error { background: rgba(192,57,43,.10); color: #c0392b; }

.info-block { background: var(--grey); border-radius: var(--radius); padding: 30px; }
.info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .ic {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(29,90,138,.10); color: var(--steel);
  display: grid; place-items: center;
}
.info-row .ic svg { width: 20px; height: 20px; }
.info-row .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.info-row .val { color: var(--navy); font-weight: 600; }
.info-row .val a { font-weight: 600; }

/* Bulleted address / location list (contact info) */
.addr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.addr-list li { position: relative; padding-left: 16px; }
.addr-list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
}
.addr-list .addr { display: block; color: var(--navy); font-weight: 600; }
.addr-list .loc  { display: block; color: var(--muted); font-weight: 500; font-size: .9rem; margin-top: 1px; }

.legal-box {
  margin-top: 22px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--navy); color: #cdd8e6; font-size: .9rem;
}
.legal-box b { color: #fff; }
.legal-box .legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin-top: 10px; }

.map-ph {
  margin-top: 26px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--grey);
}
.map-ph .imgph { aspect-ratio: 21 / 7; border-radius: 0; }

/* ------------------------------------------------------------------ */
/* 13. Footer                                                          */
/* ------------------------------------------------------------------ */
.site-footer { background: var(--navy); color: #a9b8ca; padding-top: 64px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; letter-spacing: .02em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-grid a { color: #b9c6d6; }
.footer-grid a:hover { color: #fff; }
.footer-brand b { color: #fff; font-size: 1.35rem; font-weight: 800; }
.footer-brand p { margin-top: 12px; font-size: .93rem; max-width: 34ch; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-contact p { margin: 0 0 12px; font-size: .93rem; display: flex; gap: 10px; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--amber); }
.footer-legal { font-size: .9rem; line-height: 1.8; }
.footer-legal b { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 20px 0;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: .86rem; color: #8ea0b4;
}
.footer-bottom a { color: #8ea0b4; }
.footer-bottom a:hover { color: #fff; }

/* ------------------------------------------------------------------ */
/* 14. Utilities + reveal animation                                    */
/* ------------------------------------------------------------------ */
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* 15. Responsive                                                      */
/* ------------------------------------------------------------------ */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats   { grid-template-columns: repeat(2, 1fr); }
  .split   { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav__menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__menu a { padding: 12px 8px; border-radius: 0; border-bottom: 1px solid var(--grey); }
  .nav__menu a.active::after { display: none; }
  .nav { position: relative; }
  /* Keep the "Get a Quote" button visible on mobile, just more compact */
  .nav__right { gap: 8px; }
  .nav__right .btn { padding: 9px 14px; font-size: .85rem; }
  .cta-band { padding: 36px 26px; text-align: center; justify-content: center; }
  .legal-box .legal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .grid--4, .grid--3, .grid--2, .stats, .footer-grid { grid-template-columns: 1fr; }
  .hero__inner { padding: 72px 0 80px; }
  /* Very small screens: keep brand tagline from crowding the button */
  .brand__text span { display: none; }
  .nav__right .btn { padding: 8px 12px; font-size: .8rem; }
}

/* "Talk to sales" opens the AI voice widget; hide on mobile where the floating orb serves */
.js-talk-sales { white-space: nowrap; cursor: pointer; }
@media (max-width: 760px) { .nav__right .js-talk-sales { display: none; } }

/* ============================================================
   CONTENT PROTECTION
   Pairs with js/protect.js. Text is unselectable, images are
   undraggable, and printing yields a copyright notice rather
   than a clean copy of the page. Form fields stay fully usable
   so visitors can still type and paste an enquiry.
   ============================================================ */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;   /* no iOS long-press "Copy / Save Image" */
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
img, svg, .page-banner, .section--photo, .hero {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}
img { -webkit-touch-callout: none; }

/* Transparent overlay on photos so "save image as" grabs nothing useful */
.brand__logo, .page-banner img, .section img { pointer-events: none; }

/* Toast shown by js/protect.js when a copy attempt is blocked */
#copyNotice {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 9999;
  transform: translate(-50%, 12px);
  max-width: min(92vw, 460px);
  padding: 12px 18px;
  border-radius: 10px;
  background: rgba(15, 36, 64, .96);
  color: #fff;
  font-size: .88rem;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
#copyNotice.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Printing the page produces a notice, not the content */
@media print {
  body * { visibility: hidden !important; }
  body::before {
    visibility: visible !important;
    content: "© TES Storage and Logistics B.V. — www.tesbv.nl. This page is copyright protected and may not be printed, copied or redistributed. For permission, email info@tesbv.nl";
    display: block;
    padding: 40px;
    font: 600 14pt/1.6 system-ui, Arial, sans-serif;
    text-align: center;
  }
}
