/* ==========================================================================
   Red Sea Technology Solutions — stylesheet
   Design tokens: black / white / brand red only.
   ========================================================================== */

:root{
  --color-black: #000000;
  --color-white: #ffffff;
  --color-red: #A80000;      /* client brand red — update here if the client confirms an exact value */
  --color-red-dark: #7A0000; /* hover/active shade, tint of brand red */

  /* Restrained tints/opacities of black + white — no other hues */
  --ink: rgba(0,0,0,0.86);
  --ink-soft: rgba(0,0,0,0.62);
  --ink-faint: rgba(0,0,0,0.42);
  --line: rgba(0,0,0,0.12);
  --line-strong: rgba(0,0,0,0.24);
  --paper-dim: rgba(0,0,0,0.03);

  --paper: rgba(255,255,255,0.92);
  --paper-soft: rgba(255,255,255,0.68);
  --paper-faint: rgba(255,255,255,0.4);
  --line-on-dark: rgba(255,255,255,0.16);

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;

  --container-width: 1200px;
  --section-spacing: clamp(56px, 8vw, 104px);
  --radius-sm: 3px;
  --transition-fast: 150ms ease;
  --header-height: 84px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--color-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4{
  font-family: var(--font-display);
  color: var(--color-black);
  line-height: 1.15;
  margin: 0;
}
p{ margin: 0; }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea{ font: inherit; color: inherit; }

:focus-visible{ outline: 2px solid var(--color-red); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Layout utilities ---------- */
.wrap{
  max-width: var(--container-width);
  margin: 0 auto;
  padding-inline: 24px;
}
section{ padding-block: var(--section-spacing); }
.visually-hidden{
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link{
  position: absolute; top: -80px; left: 16px; z-index: 100;
  background: var(--color-black); color: var(--color-white);
  padding: 12px 18px; border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}
.skip-link:focus{ top: 16px; }

.eyebrow{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}
.eyebrow.on-dark{ color: var(--color-red); }

.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head h2{
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 700;
  margin: 14px 0 12px;
}
.section-head p{ color: var(--ink-soft); font-size: 1.02rem; }
.section--dark .section-head p{ color: var(--paper-soft); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}
.btn-primary{
  background: var(--color-black);
  color: var(--color-white);
}
.btn-primary:hover{ background: var(--color-red); }
.btn-secondary{
  background: transparent;
  border-color: var(--line-strong);
  color: var(--color-black);
}
.btn-secondary:hover{ border-color: var(--color-red); color: var(--color-red); }
.btn-cta{
  background: var(--color-black);
  color: var(--color-white);
  padding: 10px 10px;
  font-size: 0.76rem;
}
.btn-cta:hover{ background: var(--color-red); }
.btn-cta-secondary{
  background: transparent;
  color: var(--color-black);
  border-color: var(--line-strong);
}
.btn-cta-secondary:hover{ background: transparent; border-color: var(--color-red); color: var(--color-red); }

/* ---------- Header / Navbar ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--color-white);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.site-header.is-scrolled{
  border-bottom-color: var(--line);
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.header-inner{
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand{ display: flex; align-items: center; gap: 12px; flex: none; }
.brand-logo{ height: 34px; width: auto; flex: none; }
.brand-text{ display: flex; flex-direction: column; line-height: 1.15; }
.brand-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--color-black);
}
.brand-sub{
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.brand-slogan{
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--color-red);
  line-height: 1.3;
  margin-top: 1px;
}

.primary-nav ul{ display: flex; align-items: center; gap: 36px; }
.primary-nav a{
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.primary-nav a:hover{ color: var(--color-red); border-bottom-color: var(--color-red); }
.primary-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"]{ color: var(--color-red); }

.header-actions{ display: flex; align-items: center; gap: 18px; flex: none; }

.menu-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after{
  width: 22px;
  height: 2px;
  background: var(--color-black);
  display: block;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.menu-toggle-bars::before,
.menu-toggle-bars::after{ content: ""; position: relative; }
.menu-toggle-bars::before{ top: 6px; }
.menu-toggle-bars::after{ top: 2px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars{ background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before{ top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after{ top: -2px; transform: rotate(-45deg); }

.mobile-nav{
  display: none;
  border-top: 1px solid var(--line);
  background: var(--color-white);
  overflow: hidden;
  max-height: 0;
  transition: max-height 220ms ease;
}
.mobile-nav.is-open{ max-height: 480px; }
.mobile-nav ul{ display: flex; flex-direction: column; padding: 8px 24px 20px; }
.mobile-nav a{
  display: block;
  padding: 10px 4px;
  font-size: 1.02rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mobile-nav a:hover{ color: var(--color-red); }
.mobile-nav a.btn-cta{
  display: block; text-align: center; margin-top: 16px;
  color: var(--color-white); border-bottom: none;
}
.mobile-nav a.btn-cta:hover{ color: var(--color-white); background: var(--color-red); }
.mobile-nav a.btn-cta.btn-cta-secondary{
  color: var(--color-black);
  border: 1px solid var(--line-strong);
  margin-top: 10px;
}
.mobile-nav a.btn-cta.btn-cta-secondary:hover{ color: var(--color-red); background: transparent; border-color: var(--color-red); }

@media (max-width: 1150px){
  .header-actions .btn-cta-secondary{ display: none; }
}

@media (max-width: 900px){
  .primary-nav{ display: none; }
  .header-actions .btn-cta{ display: none; }
  .menu-toggle{ display: flex; }
  .mobile-nav{ display: block; }
}

/* =========================================================
   HERO — REFERENCE DESIGN
   White editorial layout + red technical line-art
   ========================================================= */

.hero-reference{
  position: relative;
  min-height: calc(100vh - var(--header-height));
  min-height: 760px;
  padding: 0;
  background: #fff;
  overflow: hidden;
}

.hero-reference-inner{
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--header-height));
  min-height: 760px;

  display: grid;
  grid-template-columns: minmax(420px, 42%) minmax(0, 58%);

  align-items: stretch;
}


/* =========================================================
   LEFT SIDE
   ========================================================= */

.hero-reference-content{
  position: relative;
  z-index: 5;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding-left: clamp(48px, 7vw, 110px);
  padding-right: clamp(30px, 4vw, 70px);

  padding-top: 30px;
  padding-bottom: 60px;
}

.hero-reference-title{
  max-width: 610px;

  font-family: var(--font-display);
  font-size: clamp(2.7rem, 4.1vw, 4.35rem);
  line-height: 1.13;
  font-weight: 600;
  letter-spacing: -0.045em;

  color: #050505;
}

.hero-reference-btn{
  position: relative;
  z-index: 3;

  width: 238px;
  height: 84px;

  margin-top: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1.5px solid var(--color-red);

  background: #fff;

  color: #090909;

  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;

  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.hero-reference-btn:hover{
  background: var(--color-red);
  color: #fff;
  transform: translateY(-2px);
}


/* =========================================================
   DECORATIVE CIRCUIT PATTERN BEHIND BUTTON
   ========================================================= */

.hero-circuit{
  position: absolute;
  z-index: 1;

  left: -80px;
  bottom: 40px;

  width: 460px;
  height: 260px;

  background-image: url("../images/hero/hero-circuit.png");
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: cover;

  pointer-events: none;
}


/* =========================================================
   RIGHT TECHNICAL AREA
   ========================================================= */

.hero-reference{
  position: relative;

  min-height: calc(100vh - var(--header-height));
  min-height: 760px;

  margin-left: clamp(24px, 5vw, 90px);
  margin-right: clamp(24px, 5vw, 90px);

  background: #fff;
  overflow: hidden;
}


/* =========================================================
   LABELS
   ========================================================= */

.diagram-label{
  position: absolute;
  z-index: 4;

  color: #005eff;

  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;

  white-space: nowrap;

  user-select: none;
}

.label-infrastructure{
  left: 13%;
  top: 8%;
}

.label-about{
  left: 32%;
  top: 8%;
}

.label-cyber{
  left: 68%;
  top: 8%;
}

.label-audit{
  right: 2%;
  top: 8%;
}

.label-engineering{
  left: 9%;
  top: 31%;
}

.label-why{
  left: 38%;
  top: 31%;
}

.label-applications{
  left: 66%;
  top: 31%;
}

.label-staff{
  right: 2%;
  top: 31%;
}


/* =========================================================
   BOTTOM STRUCTURAL LINE
   ========================================================= */

.diagram-bottom-line{
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 1px;

  background: rgba(0,0,0,.14);
}


/* =========================================================
   DESKTOP REFINEMENT
   ========================================================= */

/* =========================================================
   HERO — RED SEA REFERENCE
   ========================================================= */

.hero-reference{
  position: relative;

  width: calc(100% - clamp(32px, 6vw, 110px));
  margin-left: auto;
  margin-right: auto;

  min-height: calc(100vh - var(--header-height));
  min-height: 720px;

  background: #ffffff;

  overflow: hidden;
}


/* =========================================================
   MAIN TWO-COLUMN LAYOUT
   ========================================================= */

.hero-reference-inner{
  position: relative;

  width: 100%;
  min-height: inherit;

  display: grid;

  grid-template-columns:
    minmax(390px, 43%)
    minmax(0, 57%);

  align-items: center;
}


/* =========================================================
   LEFT CONTENT
   ========================================================= */

.hero-reference-content{
  position: relative;

  z-index: 5;

  min-height: 650px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding:
    80px
    clamp(25px, 4vw, 65px)
    80px
    clamp(30px, 5vw, 75px);

  overflow: hidden;
}


/* small red line above headline */

.hero-reference-line{
  width: 250px;
  height: 1.5px;

  background: var(--color-red);

  margin-bottom: 34px;
}


/* =========================================================
   HEADLINE
   ========================================================= */

.hero-reference-title{
  margin: 0;

  max-width: 520px;

  font-family: var(--font-display);

  font-size:
    clamp(2.7rem, 4.25vw, 4.35rem);

  font-weight: 600;

  line-height: 1.12;

  letter-spacing: -0.045em;

  color: #050505;
}


/* =========================================================
   BUTTON
   ========================================================= */

.hero-reference-btn{
  position: relative;
  z-index: 4;

  width: 230px;
  height: 76px;

  margin-top: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1.5px solid var(--color-red);

  background: #ffffff;

  color: #050505;

  font-family: var(--font-display);

  font-size: 1rem;
  font-weight: 600;

  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.hero-reference-btn:hover{
  background: var(--color-red);
  color: #ffffff;

  transform: translateY(-2px);
}


/* =========================================================
   DECORATIVE CIRCUIT PATTERN — this is the block that actually wins the
   cascade (later, equal specificity to the earlier .hero-circuit rule),
   so the real geometry lives here.
   ========================================================= */

.hero-circuit{
  position: absolute;
  z-index: 1;

  left: 51px;
  bottom: -83px;

  width: 520px;
  height: 280px;
  background-image: url("../images/hero/hero-circuit.png");
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: cover;

  pointer-events: none;
}


/* =========================================================
   RIGHT DRAWING
   ========================================================= */

.hero-reference-visual{
  position: relative;

  width: 100%;
  min-width: 0;

  min-height: 650px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding:
    50px
    clamp(15px, 3vw, 45px)
    50px
    0;

  overflow: hidden;
}


/* =========================================================
   HERO IMAGE — replaces the former inline SVG diagram. Plain
   width:100%/height:auto keeps the file's own 4:3 ratio intact
   (no crop, no distortion) inside the same visual area/min-heights
   the diagram used to occupy.
   ========================================================= */

.hero-visual-image{
  display: block;

  height: auto;

  max-width: 820px;
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1400px){

  .hero-reference-inner{
    grid-template-columns: 42% 58%;
  }

  .hero-reference-title{
    font-size: clamp(3.2rem, 4vw, 4.6rem);
  }

  .hero-reference-content{
    padding-left: 70px;
  }

  .hero-visual-image{
    max-width: 900px;
  }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px){

  .hero-reference{
    width: calc(100% - 40px);
  }

  .hero-reference-inner{
    grid-template-columns: 44% 56%;
  }

  .hero-reference-content{
    padding-left: 35px;
    padding-right: 20px;
  }

  .hero-reference-title{
    font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  }

  .hero-reference-line{
    width: 190px;
  }

  .hero-reference-btn{
    width: 205px;
    height: 68px;
  }

  .hero-reference-visual{
    padding-right: 10px;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px){

  .hero-reference{
    width: calc(100% - 24px);

    min-height: auto;
  }

  .hero-reference-inner{
    display: flex;
    flex-direction: column;
  }


  .hero-reference-content{
    min-height: 500px;

    padding:
      65px
      24px
      40px;
  }


  .hero-reference-title{
    font-size: clamp(2.35rem, 9vw, 3.4rem);

    max-width: 100%;
  }


  .hero-reference-line{
    width: 170px;

    margin-bottom: 28px;
  }


  .hero-reference-btn{
    width: 205px;
    height: 66px;

    margin-top: 35px;
  }


  .hero-reference-visual{
    min-height: 430px;

    padding:
      10px
      10px
      45px;
  }


  .hero-visual-image{
    max-width: 700px;
  }


  .hero-circuit{
    width: 380px;
    height: 220px;

    left: -70px;
    bottom: 0;
  }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px){

  .hero-reference{
    width: calc(100% - 16px);
  }

  .hero-reference-content{
    min-height: 450px;

    padding:
      50px
      18px
      35px;
  }

  .hero-reference-title{
    font-size: 2.15rem;
  }

  .hero-reference-btn{
    width: 185px;
    height: 62px;
  }

  .hero-reference-visual{
    min-height: 350px;

    padding-bottom: 30px;
  }
}
/* ---------- Section shells (dark alternation) ---------- */
.section--dark{ background: var(--color-black); color: var(--paper); }
.section--dark h2, .section--dark h3, .section--dark h4{ color: var(--color-white); }

/* ---------- About ----------
   Editorial two-row composition: a mission statement paired with the
   company description, then the four values as an index list rather
   than a card grid. Deliberately not the hero's split-with-visual shape. */
.about{ padding-block: var(--section-spacing) clamp(72px, 10vw, 128px); }

.about-intro{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.about-statement{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  line-height: 1.32;
  color: var(--color-black);
  max-width: 22ch;
}
.about-statement-label{
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-top: 18px;
}
.about-body p{ color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 18px; }
.about-body p:last-child{ margin-bottom: 0; }

.about-secondary{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  margin-top: clamp(56px, 8vw, 96px);
}
.value-list{ border-top: 1px solid var(--line); }
.value-list li{
  display: grid;
  grid-template-columns: 44px 200px 1fr;
  align-items: baseline;
  gap: 20px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}
.value-index{ font-size: 0.8rem; color: var(--color-red); font-weight: 600; }
.value-name{ font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.value-desc{ font-size: 0.92rem; color: var(--ink-soft); }

/* Brand animation area — the video's own ratio (900x1200 portrait), not
   the generic 4:3 placeholder this used to be, so nothing is cropped. */
.about-frame{
  position: relative;
  aspect-ratio: 3 / 3;
  max-width: 420px;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  overflow: hidden;
}
.about-frame video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 880px){
  .about-intro, .about-secondary{ grid-template-columns: 1fr; gap: 32px; }
  .about-secondary{ margin-top: 48px; }
  .value-list li{ grid-template-columns: 32px 1fr; row-gap: 4px; }
  .value-desc{ grid-column: 2 / -1; }
  .about-frame{ max-width: 360px; }
}

/* ---------- Services ----------
   White card grid — ten client-supplied service images, consistent card
   height/image ratio, minimal border (no shadow), 3/2/1 responsive grid. */
.services{ background: var(--color-white); }

.svc-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 32px);
}
.svc-card{
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.svc-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.08);
  border-color: var(--line-strong);
}
.svc-card-image{
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper-dim);
}
.svc-card-image img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}
.svc-card:hover .svc-card-image img{ transform: scale(1.03); }

.svc-card-body{
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 22px 24px 24px;
}
.svc-card-body h3{ font-size: 1.05rem; font-weight: 700; }
.svc-card-body p{ font-size: 0.92rem; color: var(--ink-soft); flex: 1; }
.svc-card-link{
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.88rem; font-weight: 600; color: var(--color-black);
  margin-top: 4px;
  transition: color var(--transition-fast);
}
.svc-card-link span{ transition: transform var(--transition-fast); }
.svc-card:hover .svc-card-link{ color: var(--color-red); }
.svc-card:hover .svc-card-link span{ transform: translateX(3px); }

@media (max-width: 991px){
  .svc-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 599px){
  .svc-grid{ grid-template-columns: 1fr; }
}

html.svc-modal-lock{ overflow: hidden; }

/* ---------- Service detail modal ----------
   One reusable overlay + dialog, populated per-service by JS. Subtle
   fade + slight rise on open, respecting prefers-reduced-motion via the
   global override already in place. */
.svc-modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: opacity 200ms ease;
}
.svc-modal-overlay[hidden]{ display: none; }
.svc-modal-overlay.is-open{ opacity: 1; }

.svc-modal{
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--color-white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: clamp(28px, 4vw, 44px);
  transform: translateY(10px);
  transition: transform 220ms ease;
}
.svc-modal-overlay.is-open .svc-modal{ transform: translateY(0); }

.svc-modal-close{
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.svc-modal-close:hover{ border-color: var(--color-red); color: var(--color-red); }
.svc-modal-close svg{ width: 16px; height: 16px; }

.svc-modal-index{
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
  color: var(--color-red); margin-bottom: 10px;
}
.svc-modal-title{ font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 700; margin-bottom: 16px; padding-right: 40px; }
.svc-modal-intro{ font-size: 1rem; color: var(--ink-soft); margin-bottom: 26px; }
.svc-modal-subheading{
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 14px;
}
.svc-modal-list{ margin-bottom: 8px; }
.svc-modal-list li{
  font-size: 0.94rem; color: var(--ink); position: relative;
  padding-left: 18px; margin-bottom: 10px;
}
.svc-modal-list li::before{ content: "\2014"; position: absolute; left: 0; color: var(--color-red); }

.svc-modal-vendors{ margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.svc-modal-logos{ display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.svc-modal-logos img{ height: 28px; width: auto; max-width: 120px; }

@media (max-width: 768px){
  .svc-modal{ max-width: 92%; }
}
@media (max-width: 480px){
  .svc-modal-overlay{ padding: 16px; }
  .svc-modal{ max-width: 94%; padding: 24px 20px 28px; }
}

/* ---------- Partners: Technology wall ----------
   White background, centered heading, categories arranged in a balanced
   multi-column grid so small categories (one or two logos) sit beside
   others instead of each claiming a full-width row of empty space.
   Categories and logos are exactly as supplied by the client. */
.partners{ background: var(--color-white); }
.partners-head{ max-width: 620px; margin: 0 auto clamp(48px, 7vw, 72px); text-align: center; }
.partners-head h2{ font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 700; margin-bottom: 12px; }
.partners-head p{ color: var(--ink-soft); font-size: 1.02rem; }

.partner-groups{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(32px, 4vw, 64px);
  row-gap: clamp(40px, 5vw, 56px);
  align-items: start;
}
.partner-group-label{
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 18px;
}
.logo-row{ display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; }
.partner-logo{ height: 40px; width: auto; max-width: 130px; }
.partner-note{ margin-top: clamp(48px, 7vw, 72px); font-size: 0.85rem; color: var(--ink-faint); max-width: 60ch; text-align: center; margin-inline: auto; }

@media (max-width: 900px){
  .partner-groups{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px){
  .partner-groups{ grid-template-columns: 1fr; row-gap: 36px; }
  .partner-logo{ height: 26px; max-width: 110px; }
  .logo-row{ gap: 16px 20px; }
}

/* ---------- Why us ----------
   White brand panel: the identity on the left, the reasons as a quiet
   editorial list on the right — no cards, no grid lines. */
.why{ background: var(--color-white); }
.why-panel{
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}
.why-brand{
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.why-brand-logo{ height: 56px; width: auto; margin-bottom: 6px; }
.why-brand-name{ font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--color-black); }
.why-brand-sub{ font-size: 0.85rem; color: var(--ink-faint); margin-top: -8px; }
.why-brand-tagline{
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-red); margin-top: 12px;
}

.why-list{ display: flex; flex-direction: column; }
.why-item{
  display: flex; gap: 20px;
  padding-block: 22px;
}
.why-item + .why-item{ border-top: 1px solid var(--line); }
.why-item .n{ font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--color-red); flex: none; width: 32px; }
.why-item h3{ font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.why-item p{ font-size: 0.92rem; color: var(--ink-soft); }

@media (max-width: 880px){
  .why-panel{ grid-template-columns: 1fr; gap: 40px; }
  .why-brand{ align-items: center; text-align: center; }
}

/* ---------- Contact ---------- */
.contact-grid{ display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
.contact-info h2{ font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 12px 0 16px; }
.contact-info p{ color: var(--paper-soft); max-width: 44ch; }
.info-line{ display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 0.96rem; }
.info-line svg{ width: 17px; height: 17px; stroke: var(--color-red); flex: none; }
.contact-social{ display: flex; gap: 14px; margin-top: 32px; }
.contact-social a{
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid var(--line-on-dark); border-radius: var(--radius-sm);
  color: var(--paper-soft); transition: border-color var(--transition-fast), color var(--transition-fast);
}
.contact-social a:hover{ border-color: var(--color-red); color: var(--color-red); }
.contact-social svg{ width: 17px; height: 17px; }

form{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field{ display: flex; flex-direction: column; gap: 7px; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-size: 0.8rem; color: var(--paper-soft); }
.field input, .field select, .field textarea{
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  padding: 12px 13px;
  font-size: 0.92rem;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: 2px solid var(--color-red); outline-offset: 1px; border-color: var(--color-red);
}
.field textarea{ resize: vertical; min-height: 90px; }

/* "Service interested in" — custom listbox standing in for a native
   <select>. Chromium won't let CSS reliably recolor the *selected* row
   inside a native select's open popup (it keeps the system blue
   highlight), so this reproduces the same closed-state look with a
   dropdown whose open list is fully styleable. */
.select-custom{ position: relative; }
.select-trigger{
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--color-red);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  padding: 12px 13px;
  font-family: inherit;
  font-size: 0.92rem;
  text-align: left;
}
.select-trigger:focus-visible{ outline: 2px solid var(--color-red); outline-offset: 1px; }
.select-trigger-arrow{ width: 16px; height: 16px; flex: none; transition: transform var(--transition-fast); }
.select-trigger[aria-expanded="true"] .select-trigger-arrow{ transform: rotate(180deg); }

.select-options{
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--color-black);
  border: 1px solid var(--color-red);
  border-radius: var(--radius-sm);
  max-height: 280px; overflow-y: auto;
  padding: 4px;
}
.select-options[hidden]{ display: none; }
.select-options li{
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-size: 0.92rem;
  cursor: pointer;
}
.select-options li.is-active{ background: var(--color-red); color: var(--color-white); }

.form-note{ grid-column: 1 / -1; font-size: 0.78rem; color: var(--paper-faint); margin-top: 2px; }

.field-error{
  font-size: 0.78rem;
  color: var(--color-red);
  min-height: 0;
  display: none;
}
.field.has-error input,
.field.has-error textarea{ border-color: var(--color-red); }
.field.has-error .field-error{ display: block; }

.contact-submit[disabled]{ opacity: 0.6; cursor: not-allowed; }

.contact-status{
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}
.contact-status.is-success{
  display: block;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-on-dark);
  color: var(--color-white);
}
.contact-status.is-error{
  display: block;
  background: rgba(168,0,0,0.15);
  border: 1px solid var(--color-red);
  color: var(--color-white);
}

@media (max-width: 880px){ .contact-grid{ grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 560px){ form{ grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer{
  background: var(--color-black); color: var(--paper-soft);
  padding-block: 36px; border-top: 1px solid var(--line-on-dark);
}
.footer-grid{
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 18px; font-size: 0.85rem;
}
.footer-tags{ font-size: 0.78rem; letter-spacing: 0.03em; color: var(--paper-faint); }
.footer-social{ display: flex; gap: 14px; }
.footer-social a{ display: flex; color: var(--paper-soft); transition: color var(--transition-fast); }
.footer-social a:hover{ color: var(--color-red); }
.footer-legal-link{ color: inherit; transition: color var(--transition-fast); }
.footer-legal-link:hover{ color: var(--color-red); }

/* ---------- Loyalty Program page ----------
   Same header/footer, typography, tokens and buttons as the rest of the
   site; this is the only page-specific CSS the new page needs. */
.loyalty-hero{
  background: var(--color-black);
  color: var(--paper);
  padding-block: clamp(48px, 8vw, 88px);
}
.loyalty-hero .eyebrow{ margin-bottom: 14px; }
.loyalty-hero h1{
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 14px;
}
.loyalty-hero p{ color: var(--paper-soft); max-width: 60ch; font-size: 1.02rem; }

.loyalty-form-section{ background: var(--color-white); }
.loyalty-form-wrap{ max-width: 600px; margin: 0 auto; }
/* Opt out of the shared `form{ display:grid }` rule (written for the
   two-column Contact form) without touching that shared rule itself. */
#loyalty-form{ display: flex; flex-direction: column; }

.loyalty-field{ display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.loyalty-field label{ font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.loyalty-field input{
  background: var(--color-white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  padding: 12px 14px;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), outline-color var(--transition-fast);
}
.loyalty-field input:focus{ outline: 2px solid var(--color-red); outline-offset: 1px; border-color: var(--color-red); }
.loyalty-field-error{
  font-size: 0.8rem;
  color: var(--color-red);
  min-height: 0;
  display: none;
}
.loyalty-field.has-error input{ border-color: var(--color-red); }
.loyalty-field.has-error .loyalty-field-error{ display: block; }

.loyalty-submit{ width: 100%; justify-content: center; margin-top: 4px; }
.loyalty-submit[disabled]{ opacity: 0.6; cursor: not-allowed; }

.loyalty-status{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}
.loyalty-status.is-success{
  display: block;
  background: var(--paper-dim);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.loyalty-status.is-error{
  display: block;
  background: rgba(168,0,0,0.06);
  border: 1px solid var(--color-red);
  color: var(--color-red-dark);
}

/* ---------- Privacy Policy page ----------
   Same header/footer, typography and tokens as the rest of the site;
   only a readable-measure content wrapper is page-specific. */
.policy-wrap{ max-width: 72ch; margin-inline: auto; }
.policy-wrap h2{ font-size: 1.3rem; margin-top: 40px; margin-bottom: 14px; }
.policy-wrap h2:first-child{ margin-top: 0; }
.policy-wrap p{ color: var(--ink-soft); font-size: 1rem; margin-bottom: 16px; }
.policy-list{ list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.policy-list li{ color: var(--ink-soft); font-size: 1rem; margin-bottom: 8px; }
.policy-list--plain{ list-style: none; padding-left: 0; }
.policy-list--plain li{ margin-bottom: 6px; }

@media (max-width: 560px){
  .loyalty-form-wrap{ max-width: none; }
}
.footer-social svg{ width: 16px; height: 16px; }
