/* =============================================
   Martup — Τεχνολογία για την Υγεία
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #2a71a6;
  --blue-dk: #1d5480;
  --blue-lt: #e8f2fa;
  --dark:    #1c2b3a;
  --gray:    #f5f6f8;
  --mid:     #666;
  --border:  #e0e4ea;
  --white:   #fff;
  --font:    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --r:       3px;
  --shadow:  0 2px 16px rgba(0,0,0,.09);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: #333; background: var(--white); line-height: 1.7; font-size: 15px; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dk); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; }
p { margin-bottom: .85rem; }
p:last-child { margin-bottom: 0; }

.themecolor { color: var(--blue); }

/* ── Layout ── */
.wrap       { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.section    { padding: 80px 0; }
.section-sm { padding: 50px 0; }

.col2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.col3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.col4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

@media(max-width:960px){ .col2{grid-template-columns:1fr} .col3{grid-template-columns:1fr 1fr} .col4{grid-template-columns:1fr 1fr} }
@media(max-width:640px){ .col3,.col4{grid-template-columns:1fr} .section{padding:56px 0} }

/* page visibility */
.page { display: none; }
.page.active { display: block; }

/* ════════════════════════════════
   TOP BAR
════════════════════════════════ */
#topbar {
  background: var(--dark); color: #aabccc;
  font-size: .8rem; padding: 7px 0;
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.topbar-inner a { color: #aabccc; }
.topbar-inner a:hover { color: #fff; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-sep { opacity: .3; }

/* ════════════════════════════════
   NAVBAR
════════════════════════════════ */
#navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 76px; gap: 20px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.nav-logo img { height: 42px; width: auto; }
.nav-logo-text {
  font-size: 1.6rem; font-weight: 800; color: var(--dark); letter-spacing: -.5px;
}
.nav-logo-text span { color: var(--blue); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > li { position: relative; }
.nav-links > li > a,
.nav-links > li > button {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 15px; border-radius: var(--r);
  font-size: .88rem; font-weight: 600; letter-spacing: .2px;
  color: #333; cursor: pointer; border: none; background: none;
  transition: color .15s, background .15s; white-space: nowrap;
  text-transform: uppercase;
}
.nav-links > li > a:hover,
.nav-links > li > button:hover { color: var(--blue); background: var(--blue-lt); }
.nav-links > li.is-active > a { color: var(--blue); }

.nav-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  border-radius: 0 0 var(--r) var(--r);
  box-shadow: var(--shadow); min-width: 240px;
  opacity: 0; pointer-events: none; transform: translateY(-4px);
  transition: opacity .15s, transform .15s;
}
.nav-links > li:hover .nav-dropdown { opacity: 1; pointer-events: auto; transform: none; }
.nav-dropdown li a {
  display: block; padding: 10px 18px;
  font-size: .85rem; color: #333;
  border-bottom: 1px solid var(--border);
  transition: background .1s, color .1s;
}
.nav-dropdown li:last-child a { border-bottom: none; }
.nav-dropdown li a:hover { background: var(--blue-lt); color: var(--blue); }

.nav-cta {
  background: var(--blue) !important; color: #fff !important;
  border-radius: var(--r) !important; margin-left: 8px;
}
.nav-cta:hover { background: var(--blue-dk) !important; color: #fff !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; border: none; background: none; padding: 6px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: .2s; }

@media(max-width:900px){
  .hamburger { display: flex; }
  .nav-links {
    display: none; flex-direction: column; align-items: flex-start;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--white); border-bottom: 2px solid var(--border);
    padding: 10px 20px 18px; gap: 0; box-shadow: 0 6px 20px rgba(0,0,0,.1);
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; }
  .nav-links > li > a, .nav-links > li > button { width: 100%; }
  .nav-dropdown {
    position: static; box-shadow: none; border: none; border-top: none;
    opacity: 1; pointer-events: auto; transform: none;
    padding-left: 14px; display: none;
  }
  .nav-links > li.dd-open .nav-dropdown { display: block; }
  #topbar .topbar-right { display: none; }
}

/* ════════════════════════════════
   HERO SLIDER
════════════════════════════════ */
.hero-slider {
  position: relative; overflow: hidden;
  background: var(--dark);
}
.hero-slide {
  display: none;
  min-height: 620px;
  background-size: cover; background-position: center;
  background-color: #1c2b3a;
  align-items: center;
  position: relative;
}
.hero-slide.active { display: flex; }
.hero-slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,22,36,.8) 0%, rgba(10,22,36,.5) 60%, rgba(10,22,36,.2) 100%);
  z-index: 0;
}
.hero-slide > .wrap { position: relative; z-index: 1; }
.hero-content {
  position: relative; z-index: 1; max-width: 600px; color: #fff;
}
.hero-content h1 { font-size: clamp(2rem,4vw,3.4rem); line-height: 1.15; margin-bottom: 18px; }
.hero-content h1 .themecolor { color: #5bb8f5; }
.hero-content h5 { font-weight: 400; font-size: 1.05rem; opacity: .9; margin-bottom: 30px; max-width: 520px; }
.hero-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.4); cursor: pointer; transition: background .2s;
  border: none;
}
.hero-dot.active { background: var(--blue); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px; border-radius: var(--r);
  font-size: .9rem; font-weight: 700; cursor: pointer;
  border: 2px solid transparent; transition: all .15s; text-decoration: none;
  letter-spacing: .3px;
}
.btn-blue   { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-blue:hover { background: var(--blue-dk); border-color: var(--blue-dk); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline-blue { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline-blue:hover { background: var(--blue); color: #fff; }
.btn-white  { background: #fff; color: var(--blue); }
.btn-white:hover { background: #e8f2fa; color: var(--blue-dk); }

/* ── Section title ── */
.sec-title { text-align: center; margin-bottom: 52px; }
.sec-title h2 { font-size: clamp(1.4rem,3vw,2.1rem); margin-bottom: 12px; }
.sec-title p  { color: var(--mid); max-width: 560px; margin: 0 auto; }
.divider { width: 48px; height: 3px; background: var(--blue); border-radius: 2px; margin: 14px auto 0; }
.divider-left { margin-left: 0; }
.divider-sm { width: 40px; height: 2px; background: var(--blue); border-radius: 2px; margin-bottom: 20px; }

/* ── Page hero ── */
.page-hero {
  position: relative; min-height: 440px; display: flex; align-items: center;
  background-size: cover; background-position: center; color: #fff;
  background-color: var(--dark); /* fallback when image not loaded */
  text-align: right;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 20%, rgba(14,30,45,.7) 60%, rgba(14,30,45,.85) 100%);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 600px; margin-left: auto; }
.page-hero h1 { font-size: clamp(2rem,4vw,3rem); line-height: 1.2; margin-bottom: 10px; }
.page-hero h5 { font-weight: 400; opacity: .88; font-size: 1rem; }

/* ── List check ── */
.list-check li { display: flex; gap: 10px; margin-bottom: 9px; align-items: flex-start; }
.list-check li::before {
  content: '✓'; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px;
  background: var(--blue); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 800;
}

/* ── Cards ── */
.card {
  background: var(--white); border-radius: 6px;
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(0,0,0,.12); }
.card-img { overflow: hidden; }
.card-img img { width: 100%; height: 220px; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 26px; }
.card-body h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card-body p  { color: var(--mid); font-size: .88rem; margin-bottom: 16px; }

/* ── Number step ── */
.step-nr { font-size: 2.4rem; font-weight: 900; color: var(--blue); line-height: 1; margin-bottom: 10px; }

/* ── Cert badge ── */
.cert-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.cert-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border: 1px solid var(--border);
  border-radius: 20px; font-size: .8rem; font-weight: 700;
  color: var(--mid);
}
.cert-badge svg { color: var(--blue); }

/* ── Feature box ── */
.feat-box { text-align: center; padding: 30px 20px; }
.feat-icon {
  width: 60px; height: 60px; background: var(--blue-lt); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); margin: 0 auto 16px;
}
.feat-box h4 { margin-bottom: 8px; font-size: 1rem; }
.feat-box p  { color: var(--mid); font-size: .88rem; }

/* ── Dark section ── */
.sec-dark { background: var(--dark); color: #dde6ef; }
.sec-dark h2, .sec-dark h3, .sec-dark h4 { color: #fff; }
.sec-blue { background: var(--blue); color: #fff; }
.sec-blue h2, .sec-blue h3 { color: #fff; }
.sec-gray { background: var(--gray); }

/* ── Stats bar ── */
.stats-bar { background: var(--blue); color: #fff; padding: 44px 0; text-align: center; }
.stat h3   { font-size: 2.6rem; line-height: 1; margin-bottom: 6px; }
.stat p    { font-size: .85rem; opacity: .85; }

/* ── Tabs ── */
.tab-nav { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn {
  padding: 12px 24px; font-size: .9rem; font-weight: 700;
  border: none; background: none; cursor: pointer; color: var(--mid);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color .15s, border-color .15s; text-transform: uppercase; letter-spacing: .3px;
}
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── Product tunnel ── */
.tunnel-product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.tunnel-thumb-slider { position: relative; }
.tunnel-main-img { border-radius: 6px; overflow: hidden; margin-bottom: 10px; }
.tunnel-main-img img { width: 100%; height: 300px; object-fit: cover; }
.tunnel-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.tunnel-thumb { width: 70px; height: 55px; border-radius: 4px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color .15s; }
.tunnel-thumb.active { border-color: var(--blue); }
.tunnel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tunnel-specs { font-size: .88rem; color: var(--mid); }
.tunnel-specs strong { color: #333; }
@media(max-width:640px){ .tunnel-product{grid-template-columns:1fr} }

/* ── Contact ── */
.contact-card {
  background: var(--white); border-radius: 6px;
  border: 1px solid var(--border); padding: 32px; box-shadow: var(--shadow);
}
.contact-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-icon {
  width: 44px; height: 44px; background: var(--blue-lt); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); flex-shrink: 0;
}
.contact-row h5 { font-size: .88rem; text-transform: uppercase; letter-spacing: .5px; color: var(--mid); margin-bottom: 4px; }
.contact-row p  { color: #333; font-size: .95rem; margin: 0; }

/* ── Form ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:600px){ .form-row{grid-template-columns:1fr} }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 5px; font-size: .85rem; font-weight: 600; color: #444; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: var(--r); font-family: var(--font); font-size: .9rem;
  transition: border-color .15s; background: var(--white);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42,113,166,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── Map ── */
.map-wrap { border-radius: 6px; overflow: hidden; height: 300px; border: 1px solid var(--border); }
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ── Social ── */
.social-row { display: flex; gap: 10px; margin-top: 14px; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-lt); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.social-link:hover { background: var(--blue); color: #fff; }

/* ── News ── */
.news-card { background: var(--white); border-radius: 6px; border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); }
.news-card-img img { width: 100%; height: 200px; object-fit: cover; }
.news-card-body { padding: 22px; }
.news-date { font-size: .78rem; color: var(--mid); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.news-card-body h4 { font-size: 1rem; margin-bottom: 10px; }
.news-card-body p  { color: var(--mid); font-size: .87rem; }

/* ── Infographic fullwidth ── */
.infographic { width: 100%; }
.infographic img { width: 100%; display: block; }

/* ── CTA section ── */
.cta-section {
  position: relative; padding: 80px 0;
  background-size: cover; background-position: center;
  background-color: var(--dark); /* fallback */
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(14,30,45,.75);
}
.cta-inner { position: relative; z-index: 1; color: #fff; }
.cta-inner h3 { font-size: clamp(1.4rem,3vw,2rem); margin-bottom: 10px; color: #fff; }
.cta-inner h5 { font-weight: 400; opacity: .9; margin-bottom: 26px; }

/* ── Free install icon ── */
.free-install {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px; padding: 14px 20px; margin-top: 20px; color: #fff;
}

/* ── Home tunnels dark section ── */
.home-tunnels-section {
  position: relative;
  background-color: #0e1e2d;
  background-size: cover;
  background-position: center;
}
.home-tunnels-section::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(10,20,32,.72);
}
.home-tunnels-section .wrap { position: relative; z-index: 1; }
.home-tunnels-section .list-check li::before { background: var(--blue); }

/* ── Home tunnels dark section ── */
.home-tunnels-section {
  position: relative;
  background-color: var(--dark);
  background-size: cover;
  background-position: center left;
}
.home-tunnels-section::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,30,45,.3) 0%, rgba(14,30,45,.7) 50%, rgba(14,30,45,.95) 100%);
}
.home-tunnels-section .wrap { position: relative; z-index: 1; }

/* ── Accordion ── */
  cursor: pointer; padding: 14px 18px;
  font-weight: 600; font-size: .95rem;
  border-bottom: 1px solid var(--border);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
details summary::after { content: '+'; font-size: 1.2rem; color: var(--blue); }
details[open] summary::after { content: '−'; }
details .detail-body { padding: 18px; color: var(--mid); font-size: .92rem; }
details { border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 8px; }

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
footer { background: var(--dark); color: #8aa0b8; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 50px; }
@media(max-width:900px){ .footer-grid{grid-template-columns:1fr 1fr} }
@media(max-width:560px){ .footer-grid{grid-template-columns:1fr} }
.footer-logo { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-logo span { color: #5bb8f5; }
.footer-about { font-size: .85rem; line-height: 1.75; }
.footer-col h5 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: #8aa0b8; font-size: .85rem; transition: color .15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-col p { font-size: .85rem; margin-bottom: 7px; }
.footer-col a { color: #8aa0b8; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0; text-align: center; font-size: .78rem; color: #677f96;
}
.footer-bottom a { color: #5bb8f5; }
