/* ==========================================================
   Αν. Μαυροφιδόπουλος Α.Ε. — Modern Card Base Demo
   ========================================================== */

:root {
  --brand: #0a8fd8;
  --brand-600: #0878bb;
  --brand-700: #065d91;
  --brand-900: #073a5a;
  --accent: #ffb300;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --ink-100: #f1f5f9;
  --surface: #ffffff;
  --surface-alt: #f7fafd;
  --surface-dark: #0b1f33;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow: 0 10px 30px rgba(15, 23, 42, .08), 0 2px 6px rgba(15, 23, 42, .04);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);

  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink-900);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

a { color: var(--brand-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand); }

h1, h2, h3, h4, h5 {
  font-family: 'Manrope', 'Inter', sans-serif;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--ink-700); }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .85rem;
}
.eyebrow-light { color: #7dd3fc; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 40px; width: auto; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.primary-nav a {
  color: var(--ink-700);
  font-weight: 600;
  font-size: .95rem;
  position: relative;
}
.primary-nav a:not(.nav-cta):after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--brand);
  transition: right .25s var(--ease);
}
.primary-nav a:hover:not(.nav-cta):after { right: 0; }

.nav-cta {
  background: var(--brand);
  color: #fff !important;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.nav-cta:hover { background: var(--brand-600); transform: translateY(-1px); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 42px; height: 42px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink-900);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 820px);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s var(--ease), transform 8s linear;
}
.slide.is-active { opacity: 1; transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(7, 58, 90, .88) 0%, rgba(10, 143, 216, .55) 55%, rgba(10, 143, 216, .15) 100%),
    linear-gradient(0deg, rgba(8, 20, 35, .55), rgba(8, 20, 35, .25));
}

.hero-content {
  padding: 7rem 0 5rem;
  max-width: 820px;
}
.hero-content .eyebrow { color: #7dd3fc; }
.hero-content h1 { color: #fff; }
.hero-content .lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .9);
  max-width: 640px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 3rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(10, 143, 216, .35);
}
.btn-primary:hover { background: var(--brand-600); transform: translateY(-2px); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .4);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 720px;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.hero-stats span { font-size: .82rem; color: rgba(255, 255, 255, .75); }

/* ============ SECTIONS ============ */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.section-muted { background: var(--surface-alt); }
.section-dark {
  background: var(--surface-dark);
  color: #e2e8f0;
}
.section-dark h2 { color: #fff; }
.section-dark p { color: rgba(226, 232, 240, .8); }

.section-head {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head p { color: var(--ink-500); font-size: 1.05rem; }

/* ============ CARD GRIDS ============ */
.cards {
  display: grid;
  gap: 1.25rem;
}
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards-compact { gap: 1rem; }

.card {
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(10, 143, 216, .25);
}

/* stat card (milestones) */
.card-stat { padding: 1.75rem; }
.card-stat__num {
  font-family: 'Manrope', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -.03em;
  margin-bottom: .4rem;
}
.card-stat p { margin-bottom: 0; }

/* media card (with image) */
.card-media { display: flex; flex-direction: column; }
.card-media__img {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  transition: transform .6s var(--ease);
}
.card-media:hover .card-media__img { transform: scale(1.04); }
.card-media__body { padding: 1.5rem 1.75rem 1.75rem; }
.card-media__body p { margin-bottom: 1rem; }

.chip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.chip-list li {
  background: var(--ink-100);
  color: var(--ink-700);
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
}

/* product cards */
.card-product {
  padding: 1.75rem;
  position: relative;
}
.card-product__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 8px 18px rgba(10, 143, 216, .3);
}
.card-product__icon svg { width: 24px; height: 24px; }
.card-product h3 { margin-bottom: .35rem; }
.card-product p { margin-bottom: 0; color: var(--ink-500); font-size: .95rem; }

/* mini cards (activity) */
.mini-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, .06);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.mini-card:hover { transform: translateY(-2px); border-color: rgba(10, 143, 216, .3); }
.mini-card span {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--brand);
  min-width: 36px;
}
.mini-card h4 { margin: 0; }

/* brand grid */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.brand-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  filter: grayscale(.2);
}
.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  filter: grayscale(0);
}
.brand-card img { max-height: 60px; width: auto; object-fit: contain; }

/* equipment section */
.equipment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.equipment-copy h2 { color: #fff; }
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem 1.25rem;
}
.feature-list li {
  position: relative;
  padding-left: 1.6rem;
  color: rgba(226, 232, 240, .9);
  font-size: .95rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45rem;
  width: 14px; height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--brand), #7dd3fc);
}

.equipment-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: .75rem;
  aspect-ratio: 1;
}
.equipment-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.equipment-gallery .g1 { grid-row: 1 / 3; }
.equipment-gallery .g2 { grid-column: 2; }
.equipment-gallery .g3 { grid-column: 2; }

/* pdf cards */
.pdf-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.pdf-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(10, 143, 216, .3);
  color: inherit;
}
.pdf-card__icon {
  width: 44px;
  height: 52px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(185, 28, 28, .25);
}
.pdf-card h4 { margin: 0 0 .15rem; font-size: 1rem; color: var(--ink-900); }
.pdf-card span { font-size: .82rem; color: var(--ink-500); }

/* contact card */
.contact-card {
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700) 70%, var(--brand));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  right: -200px; top: -200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}
.contact-card h2 { color: #fff; }
.contact-card .eyebrow { color: #7dd3fc; }
.contact-card p { color: rgba(255, 255, 255, .85); }
.contact-card__copy { position: relative; z-index: 1; }
.contact-card__info {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-content: center;
}
.info-item__label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: #7dd3fc;
  margin-bottom: .35rem;
}
.info-item__value { font-size: 1rem; line-height: 1.5; color: #fff; }
.info-item__value a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.info-item__value a:hover { color: #fff; border-bottom-color: #fff; }

/* ============ FOOTER ============ */
.site-footer {
  background: #06121f;
  color: #94a3b8;
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1) opacity(.9);
}
.site-footer h5 {
  color: #fff;
  font-size: .95rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: #94a3b8; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: #94a3b8; font-size: .9rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .menu-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 1rem 1.25rem 1.5rem;
    gap: .25rem;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .primary-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .primary-nav a {
    padding: .75rem .25rem;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
  }
  .primary-nav a:not(.nav-cta):after { display: none; }
  .nav-cta { margin-top: .75rem; text-align: center; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); }

  .equipment { grid-template-columns: 1fr; gap: 2rem; }
  .equipment-gallery { aspect-ratio: 16 / 10; }

  .contact-card { grid-template-columns: 1fr; gap: 1.75rem; }
  .contact-card__info { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hero-content { padding: 5rem 0 3.5rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: 1fr; }
  .contact-card__info { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============ DEMO MODAL ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 18, 31, .65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .3s var(--ease);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem 1.75rem;
  box-shadow: 0 30px 80px rgba(6, 18, 31, .35), 0 10px 30px rgba(6, 18, 31, .2);
  animation: popIn .45s var(--ease);
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink-100);
  border: 0;
  color: var(--ink-700);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
}
.modal__close:hover {
  background: var(--ink-900);
  color: #fff;
  transform: rotate(90deg);
}

.modal__badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 179, 0, .15), rgba(10, 143, 216, .15));
  color: var(--brand-700);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.modal__badge svg { color: var(--accent); }

.modal__dialog h2 {
  font-size: 1.6rem;
  margin-bottom: .5rem;
}
.modal__lead {
  font-size: .97rem;
  color: var(--ink-700);
  margin-bottom: 1.5rem;
}
.modal__lead strong { color: var(--ink-900); }

.dev-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid rgba(10, 143, 216, .15);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.dev-card__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 64px;
  padding: .5rem .65rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .06);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.dev-card__logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .14);
}
.dev-card__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.dev-card__body { flex: 1; min-width: 0; }
.dev-card__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: .15rem;
}
.dev-card__name {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: var(--ink-900);
  font-size: 1.02rem;
  margin-bottom: .2rem;
}
.dev-card__site {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--brand);
  font-weight: 600;
  font-size: .92rem;
}
.dev-card__site:hover { color: var(--brand-700); }

.modal__contact {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem .9rem;
  background: var(--surface-alt);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-700);
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.contact-chip:hover {
  background: #fff;
  border-color: var(--brand);
  color: var(--brand-700);
}
.contact-chip svg { color: var(--brand); flex-shrink: 0; }

.modal__actions {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
}
.modal__actions .btn {
  padding: .75rem 1.3rem;
  font-size: .92rem;
  flex: 1;
  min-width: 160px;
  justify-content: center;
}
.btn-secondary {
  background: var(--ink-100);
  color: var(--ink-900);
  border: 1px solid transparent;
}
.btn-secondary:hover {
  background: var(--ink-900);
  color: #fff;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

body.modal-open { overflow: hidden; }

@media (max-width: 520px) {
  .modal__dialog { padding: 2rem 1.35rem 1.35rem; }
  .modal__dialog h2 { font-size: 1.35rem; }
  .modal__actions .btn { min-width: 100%; }
}

/* subtle entrance animation */
@media (prefers-reduced-motion: no-preference) {
  .card, .mini-card, .brand-card, .pdf-card { animation: rise .7s var(--ease) both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
