/* ============================================
   IMCAP Cables — Shared Design System
   Extracted from the original single-page site
   Used by every page across the multi-page site
   ============================================ */

:root{
  --navy:#5c1c26;
  --navy-2:#7c2531;
  --gold:#c9a06a;
  --gold-soft:#e8cf9e;
  --red:#8a2a35;
  --copper:#b5651d;
  --maroon:#7c2531;
  --maroon-dark:#5e1c26;
  --paper:#f6f4ee;
  --paper-2:#eeebe1;
  --ink:#1b2028;
  --ink-soft:#525a68;
  --line:#dcd6c6;
  --ok:#2f6b3a;
  --radius:14px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Cairo',sans-serif;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  opacity:0;
  transition:opacity .32s ease;
}
body.page-loaded{opacity:1;}
body.page-leaving{opacity:0;}
@media (prefers-reduced-motion: reduce){
  body{transition:none;opacity:1;}
}
h1,h2,h3,.brand,.eyebrow{font-family:'Cairo',sans-serif;}
.mono{font-family:'IBM Plex Mono',monospace;}
a{color:inherit;}
img{max-width:100%;display:block;}
.wrap{max-width:960px;margin:0 auto;padding:0 20px;}

/* Decorative divider (cable cross-section motif) */
.ring-divider{
  display:flex;align-items:center;justify-content:center;gap:8px;
  margin:0 auto;width:100%;max-width:960px;padding:0 20px;
}
.ring-divider .core{width:9px;height:9px;border-radius:50%;background:var(--copper);flex:none;}
.ring-divider .line{height:2px;flex:1;background:linear-gradient(90deg,transparent,var(--line) 15%,var(--line) 85%,transparent);}
.ring-divider .ins{width:16px;height:16px;border-radius:50%;border:2px solid var(--gold);flex:none;}

/* Header / navigation (sticky, shared across all pages via shared.js) */
header.top{
  position:sticky;top:0;z-index:50;
  background:rgba(92,28,38,.96);
  backdrop-filter:blur(6px);
  color:#fff;
}
.top-inner{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 20px;max-width:960px;margin:0 auto;gap:14px;
  flex-wrap:wrap;
}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:1.05rem;color:#fff;text-decoration:none;flex:none;}
.brand img{height:46px;width:auto;display:block;}
.site-nav{display:flex;align-items:center;gap:4px;flex-wrap:wrap;order:3;flex-basis:100%;justify-content:center;}
.site-nav a{
  color:#e8ecf5;text-decoration:none;font-size:.86rem;font-weight:600;
  padding:7px 12px;border-radius:999px;transition:background .15s ease,color .15s ease;
}
.site-nav a:hover,.site-nav a.active{background:rgba(255,255,255,.1);color:var(--gold-soft);}
.top-actions{display:flex;gap:8px;align-items:center;}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;gap:6px;
  padding:9px 16px;border-radius:999px;
  font-family:'Cairo',sans-serif;font-weight:700;font-size:.85rem;
  text-decoration:none;border:1px solid transparent;cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease;
  white-space:nowrap;
}
.btn:active{transform:scale(.97);}
.btn-gold{background:var(--gold);color:var(--navy);}
.btn-gold:hover{box-shadow:0 4px 14px rgba(201,167,104,.4);}
.btn-outline{background:transparent;color:#fff;border-color:rgba(255,255,255,.35);}
.btn-outline:hover{border-color:var(--gold);}
.btn svg{width:16px;height:16px;flex:none;}
#langToggle{
  background:transparent;color:var(--gold-soft);border:1px solid rgba(255,255,255,.3);
  padding:8px 13px;font-family:'IBM Plex Mono',monospace;font-weight:600;font-size:.78rem;
}
#langToggle:hover{border-color:var(--gold);}

/* Small kicker label used above section titles */
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:.8rem;letter-spacing:.5px;color:var(--gold-soft);
  font-weight:700;margin-bottom:18px;
}
.eyebrow::before{content:"";width:22px;height:2px;background:var(--gold);}

/* Small badge/chip */
.pill{
  display:inline-flex;align-items:center;gap:6px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.15);
  padding:7px 13px;border-radius:999px;font-size:.78rem;color:#e8ecf5;
}
.pill b{color:var(--gold-soft);}

/* Compact banner for inner pages (About / Quality / Products / Contact) —
   same navy gradient + eyebrow/h1 language as the homepage hero, without
   the large cross-section illustration, sized for a page title instead. */
.page-banner{
  position:relative;
  background:radial-gradient(1100px 500px at 80% -10%, var(--navy-2), var(--navy) 60%);
  color:#fff;
  padding:38px 0 34px;
}
.page-banner .eyebrow{margin-bottom:12px;}
.page-banner h1{
  font-size:clamp(1.5rem,4vw,2.2rem);
  font-weight:900;margin:0;line-height:1.3;
}

/* Section heading pattern (reused across every page) */
.section-head{max-width:640px;margin:0 auto 34px;text-align:center;}
.section-head .eyebrow{justify-content:center;color:var(--red);}
.section-head .eyebrow::before{background:var(--red);}
.section-head h2{font-size:clamp(1.5rem,3.6vw,2.1rem);font-weight:800;margin:0 0 10px;color:var(--navy);}
.section-head p{color:var(--ink-soft);margin:0;}

section.alt{background:var(--paper-2);}

/* About page: copy + vision/mission cards */
.about-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:28px;align-items:start;}
@media (max-width:760px){.about-grid{grid-template-columns:1fr;}}
.about-copy p{color:var(--ink-soft);margin:0 0 16px;}
.vm-stack{display:flex;flex-direction:column;gap:16px;}
.vm-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:20px 22px;position:relative;overflow:hidden;
}
.vm-card::before{
  content:"";position:absolute;top:0;right:0;left:0;height:4px;
  background:linear-gradient(90deg,var(--maroon),var(--gold));
}
.vm-card h3{margin:0 0 8px;font-size:1.05rem;color:var(--navy);display:flex;align-items:center;gap:8px;}
.vm-card h3 .dot{width:14px;height:14px;border-radius:50%;background:var(--maroon);border:2px solid var(--gold);flex:none;}
.vm-card p{margin:0;color:var(--ink-soft);font-size:.94rem;}
.location-line{
  display:flex;gap:10px;align-items:flex-start;margin-top:18px;
  background:#fff;border:1px dashed var(--gold);border-radius:var(--radius);
  padding:16px 18px;
}
.location-line svg{width:20px;height:20px;flex:none;color:var(--copper);margin-top:2px;}
.location-line strong{color:var(--navy);}

/* Reach cards (domestic / international) */
.reach-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
@media (max-width:700px){.reach-row{grid-template-columns:1fr;}}
.reach-card{
  background:var(--navy);color:#fff;border-radius:var(--radius);
  padding:24px 22px;
}
.reach-card h3{margin:0 0 8px;color:var(--gold-soft);font-size:1.05rem;}
.reach-card p{margin:0;color:#c9d2e4;font-size:.9rem;}

/* Quality page: certification badges */
.cert-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
@media (max-width:700px){.cert-row{grid-template-columns:1fr;}}
.cert-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:22px;text-align:center;
}
.cert-badge{
  width:56px;height:56px;border-radius:50%;margin:0 auto 14px;
  display:flex;align-items:center;justify-content:center;
  background:var(--navy);color:var(--gold-soft);
}
.cert-badge svg{width:28px;height:28px;}
.cert-card h3{margin:0 0 6px;font-size:1rem;color:var(--navy);}
.cert-card p{margin:0;font-size:.85rem;color:var(--ink-soft);}

/* SASO license cards */
.saso-strip{
  display:flex;align-items:center;gap:12px;justify-content:center;
  margin:0 auto 30px;flex-wrap:wrap;
}
.saso-strip .badge{
  display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);
  border-radius:999px;padding:8px 16px;font-size:.8rem;color:var(--navy);font-weight:700;
}
.saso-strip .badge svg{width:18px;height:18px;color:var(--ok);flex:none;}
.license-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
@media (max-width:820px){.license-row{grid-template-columns:1fr;}}
.license-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:22px;position:relative;overflow:hidden;
}
.license-card::before{
  content:"";position:absolute;top:0;right:0;left:0;height:4px;
  background:linear-gradient(90deg,var(--maroon),var(--gold));
}
.license-card .lic-head{display:flex;align-items:center;gap:10px;margin-bottom:12px;}
.license-card .lic-icon{
  width:40px;height:40px;border-radius:50%;flex:none;
  background:var(--paper-2);border:2px solid var(--gold);
  display:flex;align-items:center;justify-content:center;color:var(--maroon);
}
.license-card .lic-icon svg{width:20px;height:20px;}
.license-card h3{margin:0;font-size:.98rem;color:var(--navy);line-height:1.4;}
.license-card .lic-std{font-family:'IBM Plex Mono',monospace;font-size:.78rem;color:var(--copper);margin-bottom:10px;display:block;}
.license-card .lic-meta{
  display:flex;flex-wrap:wrap;gap:6px;margin-top:12px;
}
.license-card .lic-meta span{
  background:var(--paper-2);border:1px solid var(--line);border-radius:8px;
  padding:4px 9px;font-size:.72rem;color:var(--ink-soft);font-family:'IBM Plex Mono',monospace;
}
.license-foot{
  text-align:center;margin-top:22px;font-size:.8rem;color:var(--ink-soft);
}
.license-foot a{color:var(--maroon);text-decoration:underline;}

/* Homepage hero (index.html only) */
.hero{
  position:relative;
  background:radial-gradient(1100px 500px at 80% -10%, var(--navy-2), var(--navy) 60%);
  color:#fff;
  padding:56px 0 46px;
  overflow:hidden;
}
.hero .wrap{position:relative;z-index:2;}
.hero h1{
  font-size:clamp(1.9rem,5.5vw,3rem);
  font-weight:900;margin:0 0 16px;line-height:1.3;
}
.hero h1 span{color:var(--gold-soft);}
.hero p.lead{
  color:#cdd6e8;font-size:1.05rem;max-width:52ch;margin:0 0 28px;
}
.hero-badges{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:32px;}
.hero-cta{display:flex;flex-wrap:wrap;gap:10px;}
.cross-section{position:absolute;left:-60px;top:50%;transform:translateY(-50%);width:340px;height:340px;opacity:.9;}

/* Contact page */
.contact-card{
  background:var(--navy);color:#fff;border-radius:20px;
  padding:38px 30px;position:relative;overflow:hidden;
}
.contact-card h2{margin:0 0 8px;font-size:1.5rem;color:#fff;}
.contact-card p.sub{color:#c9d2e4;margin:0 0 26px;}
.contact-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;}
@media (max-width:600px){.contact-grid{grid-template-columns:1fr;}}
.contact-item{
  display:flex;align-items:center;gap:12px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);
  border-radius:12px;padding:14px 16px;text-decoration:none;color:#fff;
  transition:background .15s ease;
}
.contact-item:hover{background:rgba(255,255,255,.12);}
.contact-item .ic{
  width:38px;height:38px;border-radius:50%;flex:none;
  background:var(--gold);color:var(--navy);
  display:flex;align-items:center;justify-content:center;
}
.contact-item .ic svg{width:19px;height:19px;}
.contact-item .meta b{display:block;font-size:.95rem;}
.contact-item .meta small{color:#c9d2e4;font-size:.78rem;}

/* Homepage teaser cards linking to each inner page */
.teaser-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
@media (max-width:760px){.teaser-grid{grid-template-columns:1fr;}}
.teaser-card{
  display:block;background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:22px;text-decoration:none;transition:border-color .15s ease,transform .15s ease;
}
.teaser-card:hover{border-color:var(--gold);transform:translateY(-2px);}
.teaser-card h3{margin:0 0 8px;color:var(--navy);font-size:1.05rem;display:flex;align-items:center;justify-content:space-between;gap:8px;}
.teaser-card h3 svg{width:18px;height:18px;color:var(--copper);flex:none;}
.teaser-card p{margin:0;color:var(--ink-soft);font-size:.88rem;}

/* Official certificate image gallery (quality.html) */
.cert-group{margin-top:34px;}
.cert-group-title{font-weight:700;color:var(--navy);margin-bottom:12px;font-size:.95rem;display:flex;align-items:center;gap:8px;}
.cert-group-title .mono{font-weight:600;color:var(--copper);font-size:.78rem;}
.cert-gallery{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
@media (max-width:600px){.cert-gallery{grid-template-columns:1fr;}}
.cert-gallery img{
  width:100%;border-radius:10px;border:1px solid var(--line);cursor:zoom-in;
  transition:border-color .15s ease,transform .15s ease;
}
.cert-gallery img:hover{border-color:var(--gold);transform:translateY(-2px);}

.lightbox-overlay{
  position:fixed;inset:0;background:rgba(20,10,12,.88);
  display:flex;align-items:center;justify-content:center;
  z-index:200;padding:30px;
}
.lightbox-overlay img{max-width:100%;max-height:90vh;border-radius:8px;box-shadow:0 10px 40px rgba(0,0,0,.4);}
.lightbox-close{
  position:absolute;top:20px;left:20px;
  width:40px;height:40px;border-radius:50%;border:none;
  background:rgba(255,255,255,.15);color:#fff;font-size:1.5rem;cursor:pointer;
  display:flex;align-items:center;justify-content:center;line-height:1;
}
.lightbox-close:hover{background:rgba(255,255,255,.28);}

/* Scroll-triggered section reveal */
.reveal{
  opacity:0;transform:translateY(28px);
  transition:opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1);
}
.reveal.revealed{opacity:1;transform:translateY(0);}
.teaser-grid .reveal:nth-child(2),.cert-row .reveal:nth-child(2),.license-row .reveal:nth-child(2),.reach-row .reveal:nth-child(2),.vm-stack .reveal:nth-child(2),.contact-grid .reveal:nth-child(2),.product-index-grid .reveal:nth-child(2){transition-delay:.08s;}
.teaser-grid .reveal:nth-child(3),.cert-row .reveal:nth-child(3),.license-row .reveal:nth-child(3),.contact-grid .reveal:nth-child(3),.product-index-grid .reveal:nth-child(3){transition-delay:.16s;}
.teaser-grid .reveal:nth-child(4),.contact-grid .reveal:nth-child(4),.product-index-grid .reveal:nth-child(4){transition-delay:.24s;}
.product-index-grid .reveal:nth-child(5){transition-delay:.32s;}
.product-index-grid .reveal:nth-child(6){transition-delay:.4s;}
.product-index-grid .reveal:nth-child(7){transition-delay:.48s;}
@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1;transform:none;transition:none;}
}

/* Preloader (visible instantly, no JS dependency, hidden once the page is ready) */
#preloader{
  position:fixed;inset:0;z-index:999;
  background:var(--navy);
  display:flex;align-items:center;justify-content:center;
  transition:opacity .45s ease, visibility .45s ease;
}
#preloader.hide{opacity:0;visibility:hidden;pointer-events:none;}
.preloader-inner{position:relative;width:92px;height:92px;display:flex;align-items:center;justify-content:center;}
.preloader-logo{
  font-family:'Cairo',sans-serif;font-weight:900;font-size:.95rem;
  letter-spacing:1.5px;color:var(--gold-soft);
}
.preloader-ring{
  position:absolute;inset:0;border-radius:50%;
  border:3px solid rgba(255,255,255,.15);
  border-top-color:var(--gold);
  animation:preloader-spin .85s linear infinite;
}
@keyframes preloader-spin{to{transform:rotate(360deg);}}
@media (prefers-reduced-motion: reduce){
  .preloader-ring{animation-duration:1.6s;}
}

/* Product pages */
.product-media{
  margin:0 0 26px;border-radius:12px;overflow:hidden;
  border:1px solid var(--line);box-shadow:0 8px 22px rgba(92,28,38,.1);
  position:relative;height:300px;background:#fdfcf9;
  display:flex;align-items:center;justify-content:center;
}
.product-media::after{
  content:"";position:absolute;top:0;right:0;left:0;height:3px;
  background:linear-gradient(90deg,var(--maroon),var(--gold));z-index:1;
}
.product-media svg{width:100%;height:100%;display:block;padding:14px;box-sizing:border-box;}
@media (max-width:640px){.product-media{height:240px;}}

.spec-sheet{
  display:grid;grid-template-columns:150px 1fr;gap:0;
  border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin:22px 0;
}
.spec-sheet .sk,.spec-sheet .sv{padding:12px 16px;font-size:.88rem;border-top:1px solid var(--line);}
.spec-sheet .sk{background:var(--paper-2);font-weight:700;color:var(--navy);}
.spec-sheet .sv{color:var(--ink-soft);}
.spec-sheet .sk:first-child,.spec-sheet .sv:first-child{border-top:none;}
@media (max-width:600px){
  .spec-sheet{grid-template-columns:1fr;}
  .spec-sheet .sv{border-top:none;padding-top:2px;padding-bottom:14px;}
}

.p-specs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:6px;}
.p-specs span{
  background:var(--paper-2);border:1px solid var(--line);
  border-radius:8px;padding:5px 10px;font-size:.78rem;color:var(--navy);
  font-family:'IBM Plex Mono',monospace;
}

.table-scroll{overflow-x:auto;border-radius:10px;border:1px solid var(--line);margin:22px 0;}
table{border-collapse:collapse;width:100%;min-width:560px;font-size:.82rem;}
thead th{
  background:var(--navy);color:#fff;font-weight:600;
  padding:9px 10px;text-align:center;white-space:nowrap;font-family:'Cairo',sans-serif;
}
tbody td{
  padding:8px 10px;text-align:center;border-top:1px solid var(--line);
  font-family:'IBM Plex Mono',monospace;color:var(--ink);white-space:nowrap;
}
tbody tr:nth-child(even){background:var(--paper);}

.product-nav{display:flex;justify-content:space-between;gap:12px;margin-top:30px;flex-wrap:wrap;}
.product-nav a{
  display:flex;align-items:center;gap:8px;color:var(--maroon);text-decoration:none;
  font-weight:700;font-size:.9rem;padding:10px 16px;border:1px solid var(--line);border-radius:999px;
  transition:border-color .15s ease;
}
.product-nav a:hover{border-color:var(--gold);}
.product-nav a svg{width:16px;height:16px;}

/* Products index page */
.product-index-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
@media (max-width:700px){.product-index-grid{grid-template-columns:1fr;}}
.product-index-card{
  display:flex;gap:14px;align-items:center;background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);padding:16px;text-decoration:none;
  transition:border-color .15s ease,transform .15s ease;
}
.product-index-card:hover{border-color:var(--gold);transform:translateY(-2px);}
.product-index-card .pi-icon{
  width:52px;height:52px;border-radius:50%;flex:none;background:var(--paper-2);
  border:2px solid var(--gold);display:flex;align-items:center;justify-content:center;
}
.product-index-card .pi-icon svg{width:26px;height:26px;color:var(--maroon);}
.product-index-card h3{margin:0 0 4px;color:var(--navy);font-size:1rem;}
.product-index-card p{margin:0;color:var(--ink-soft);font-size:.82rem;}

/* Cable components explainer (real responsive HTML, not a flat image) */
.cable-info{
  background:var(--navy);color:#fff;border-radius:18px;overflow:hidden;
  box-shadow:0 10px 26px rgba(92,28,38,.14);
}
.cable-info-head{padding:30px 26px 22px;}
.cable-info-head h2{margin:0;font-size:clamp(1.3rem,3vw,1.7rem);font-weight:800;}
.ci-bar{background:var(--gold);color:var(--navy);font-weight:700;padding:12px 26px;font-size:.95rem;}
.ci-overview{padding:22px 26px;color:#e8ecf5;font-size:.92rem;line-height:1.8;}
.cc-grid{display:grid;grid-template-columns:1fr;}
@media (min-width:760px){
  .cc-grid{grid-template-columns:repeat(3,1fr);}
}
.cc-item{border-top:1px solid rgba(255,255,255,.12);}
@media (min-width:760px){
  .cc-item{border-top:none;border-inline-start:1px solid rgba(255,255,255,.12);}
  .cc-item:first-child{border-inline-start:none;}
}
.cc-item img{width:100%;height:200px;object-fit:cover;display:block;}
@media (min-width:760px){.cc-item img{height:220px;}}
.cc-item p{margin:0;padding:18px 22px;font-size:.88rem;color:#e8ecf5;line-height:1.75;}
.ci-cta{text-align:center;padding:18px;font-weight:700;background:rgba(0,0,0,.15);font-size:.92rem;}

/* Global footer (shared across all pages via shared.js) */
footer{
  text-align:center;padding:26px 20px;font-size:.8rem;color:var(--ink-soft);
  background:var(--paper-2);
}
footer b{color:var(--navy);}

@media (max-width:560px){
  .top-inner{padding:10px 16px;}
  .site-nav{gap:2px;}
  .site-nav a{padding:6px 9px;font-size:.8rem;}
}
