/* ============================================================
   Morini Computers — static multilingual site
   Brand: #006599 · Headings: Orbitron · Body: Open Sans
   ============================================================ */

:root {
  --blue:       #006599;
  --blue-dark:  #004b73;
  --blue-light: #e6f1f7;
  --ink:        #2b2b2b;
  --body:       #4a4a4a;
  --muted:      #6a737d;
  --bg:         #f1f1f1;
  --card:       #ffffff;
  --line:       #e2e6ea;
  --shadow:     0 6px 24px rgba(0,0,0,.07);
  --shadow-lg:  0 14px 40px rgba(0,0,0,.12);
  --radius:     14px;
  --max:        1180px;
  --header-h:   78px;
}

*,*::before,*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); }

h1,h2,h3,h4 { font-family: "Orbitron", sans-serif; color: var(--blue); line-height: 1.2; letter-spacing: .5px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

.section { padding: 76px 0; }
.section--alt { background: var(--card); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section__head h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin: 0 0 14px; text-transform: uppercase; }
.section__head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.eyebrow { font-family:"Orbitron",sans-serif; text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; color: var(--blue); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "Orbitron", sans-serif; font-weight: 600; letter-spacing: .6px;
  font-size: .92rem; text-transform: uppercase;
  padding: 14px 30px; border-radius: 40px; cursor: pointer; border: 2px solid var(--blue);
  background: var(--blue); color: #fff; transition: all .22s ease;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color:#fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: #fff; }
.btn--lg { padding: 16px 38px; font-size: 1rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand .logo { height: 44px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-family: "Orbitron", sans-serif; font-size: .82rem; font-weight: 500;
  letter-spacing: .5px; text-transform: uppercase; color: var(--ink); position: relative;
}
.nav a::after { content:""; position:absolute; left:0; bottom:-6px; width:0; height:2px; background:var(--blue); transition:width .25s; }
.nav a:hover { color: var(--blue); }
.nav a:hover::after { width:100%; }

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

/* ---------- Language switcher (top right) ---------- */
.lang-switch { display: flex; gap: 6px; align-items: center; }
.lang-btn {
  width: 30px; height: 22px; padding: 0; border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; cursor: pointer; background: none; line-height: 0; opacity: .55;
  transition: opacity .2s, transform .2s, box-shadow .2s;
}
.lang-btn svg { width: 100%; height: 100%; display: block; }
.lang-btn:hover { opacity: 1; transform: translateY(-1px); }
.lang-btn.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--blue); border-color: var(--blue); }

/* ---------- Mobile menu toggle ---------- */
.menu-toggle { display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:6px; }
.menu-toggle span { width:26px; height:3px; background:var(--blue); border-radius:3px; transition:.3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; color: #fff; text-align: center;
  padding: clamp(80px, 14vw, 150px) 0;
  background: linear-gradient(rgba(0,40,64,.72), rgba(0,40,64,.82)), url("../img/hero.jpg") center/cover no-repeat;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 8px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero .eyebrow { color: #8fd3ff; display:block; margin-bottom: 14px; }
.hero__sub { font-size: clamp(1rem, 2.2vw, 1.3rem); max-width: 760px; margin: 0 auto 22px; font-weight: 300; }
.hero__quote { font-style: italic; font-size: 1.05rem; opacity: .9; margin: 0 0 30px; }

/* ============================================================
   SECTORS
   ============================================================ */
.sectors { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.sector {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 18px; text-align: center; transition: .25s; box-shadow: var(--shadow);
}
.sector:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.sector .ico { font-size: 2.2rem; color: var(--blue); margin-bottom: 12px; }
.sector h3 { font-size: 1rem; margin: 0; text-transform: uppercase; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.svc {
  background: var(--card); border-radius: var(--radius); padding: 34px 30px;
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: .25s; position: relative; overflow: hidden;
}
.svc::before { content:""; position:absolute; left:0; top:0; width:5px; height:100%; background:var(--blue); transform: scaleY(0); transform-origin: top; transition: transform .3s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.svc:hover::before { transform: scaleY(1); }
.svc .ico { font-size: 2rem; color: var(--blue); margin-bottom: 14px; }
.svc h3 { font-size: 1.18rem; margin: 0 0 12px; }
.svc p { margin: 0 0 12px; }
.svc ul { margin: 10px 0 0; padding-left: 0; list-style: none; }
.svc li { padding: 4px 0 4px 26px; position: relative; }
.svc li::before { content:"\f058"; font-family:"Font Awesome 6 Free"; font-weight:900; color: var(--blue); position:absolute; left:0; top:4px; }

/* ============================================================
   SPECIALIZATIONS
   ============================================================ */
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
.spec-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; box-shadow: var(--shadow);
}
.spec-card h3 { font-size: 1.15rem; margin: 0 0 14px; text-transform: uppercase; display:flex; align-items:center; gap:10px; }
.spec-card h3 i { color: var(--blue); }
.spec-card p { margin: 0 0 10px; }
.spec-card strong { color: var(--ink); }
.spec-card .cert-label { margin: 16px 0 0; font-weight: 700; color: var(--ink); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.badge { background:#fff; border:1px solid var(--line); border-radius: 8px; padding: 8px 14px; font-weight: 700; font-size: .9rem; color: var(--blue); }
.logos { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; align-items: center; }
.logos img {
  height: 46px; width: auto; object-fit: contain; background:#fff; border:1px solid var(--line);
  border-radius: 8px; padding: 6px 10px; filter: grayscale(.2); transition: .2s;
}
.logos img:hover { filter: none; transform: scale(1.06); box-shadow: var(--shadow); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: center; }
.about p { margin: 0 0 14px; }
.stats { display: flex; gap: 20px; margin-top: 26px; }
.stat { flex:1; background: var(--blue); color:#fff; border-radius: var(--radius); padding: 26px 18px; text-align:center; }
.stat .num { font-family:"Orbitron",sans-serif; font-size: 2.4rem; font-weight: 700; line-height:1; }
.stat .lbl { font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; margin-top: 8px; opacity:.92; }
.about-list { list-style: none; padding: 0; margin: 0; columns: 1; }
.about-list li { padding: 9px 0 9px 30px; position: relative; border-bottom: 1px dashed var(--line); }
.about-list li::before { content:"\f00c"; font-family:"Font Awesome 6 Free"; font-weight:900; color: var(--blue); position:absolute; left:0; top:10px; }
.about-aside { background: var(--card); border:1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.about-aside h4 { margin:0 0 16px; font-size:1rem; text-transform:uppercase; }

/* ============================================================
   TRAINING
   ============================================================ */
.train-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:16px; margin-top: 28px; }
.train-item {
  background: var(--card); border:1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-align:center; box-shadow: var(--shadow); transition:.2s;
}
.train-item:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: var(--shadow-lg); }
.train-item i { font-size: 1.8rem; color: var(--blue); margin-bottom: 10px; }
.train-item span { display:block; font-family:"Orbitron",sans-serif; font-size:.9rem; font-weight:500; color: var(--ink); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { display:grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-card { background: var(--card); border:1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.contact-line { display:flex; gap:16px; align-items:flex-start; padding: 14px 0; border-bottom:1px solid var(--line); }
.contact-line:last-child { border-bottom: 0; }
.contact-line i { color: var(--blue); font-size: 1.3rem; width: 28px; text-align:center; margin-top: 3px; }
.contact-line .ct-label { font-size:.75rem; text-transform:uppercase; letter-spacing:.5px; color: var(--muted); }
.contact-line .ct-value { font-size: 1.05rem; color: var(--ink); }
.contact-cta { background: var(--blue); color:#fff; border-radius: var(--radius); padding: 40px; display:flex; flex-direction:column; justify-content:center; }
.contact-cta h3 { color:#fff; margin:0 0 12px; }
.contact-cta p { margin: 0 0 24px; opacity:.95; }
.contact-cta .btn { background:#fff; color: var(--blue); border-color:#fff; align-self:flex-start; }
.contact-cta .btn:hover { background: var(--blue-dark); color:#fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #0c2230; color: #c7d2da; padding: 56px 0 22px; }
.footer-grid { display:grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color:#fff; font-size: 1rem; text-transform: uppercase; margin: 0 0 18px; }
.site-footer .flogo { height: 46px; width: auto; margin-bottom: 16px; }
.site-footer ul { list-style:none; padding:0; margin:0; }
.site-footer li { display:flex; gap:12px; align-items:flex-start; padding: 6px 0; }
.site-footer li i { color: var(--blue); margin-top:5px; width:18px; }
.site-footer a { color:#c7d2da; }
.site-footer a:hover { color:#fff; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top:36px; padding-top:20px; display:flex; flex-wrap:wrap; gap:14px; justify-content:space-between; font-size:.85rem; }
.footer-bottom nav { display:flex; gap:18px; flex-wrap:wrap; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal { background: var(--card); }
.legal .container { max-width: 900px; }
.legal h1 { font-size: clamp(1.6rem,3.5vw,2.2rem); margin: 0 0 8px; }
.legal h2 { font-size: 1.15rem; margin: 34px 0 10px; text-transform: uppercase; }
.legal p, .legal li { color: var(--body); }
.legal ul { padding-left: 20px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* header: 8 menu items (Service Catalog) — let the header use a bit more width and tighten the menu so the flags stay visible */
@media (min-width: 761px) {
  .site-header .container { max-width: 1360px; }
  .nav { gap: 20px; }
  .nav a { font-size: .78rem; }
}
@media (min-width: 761px) and (max-width: 1240px) {
  .site-header .container, .header-right { gap: 12px; }
  .nav { gap: 14px; }
  .nav a { font-size: .72rem; letter-spacing: .2px; }
}
@media (max-width: 920px) {
  .services, .spec, .about, .contact { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: repeat(2,1fr); }
  .train-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about { gap: 30px; }
}
@media (max-width: 760px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 0;
    transform: translateY(-120%); transition: transform .3s; box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 22px; width: 100%; }
  .nav a::after { display: none; }
}
@media (max-width: 520px) {
  .sectors, .train-grid, .footer-grid { grid-template-columns: 1fr; }
  .stats { flex-direction: column; }
  .section { padding: 54px 0; }
  /* header on narrow phones: keep one row, scale logo by width (keeps aspect ratio), tighten right side */
  .site-header .container { gap: 10px; padding: 0 14px; }
  .brand { min-width: 0; }
  .brand .logo { width: clamp(118px, 40vw, 165px); height: auto; }
  .lang-switch { gap: 4px; }
  .lang-btn { width: 24px; height: 18px; }
  .header-right { gap: 10px; }
}

.ct-social { display:flex; flex-wrap:wrap; gap:8px 18px; }
.contact-line .ct-social i { font-size:1.1rem; width:auto; margin:0 4px 0 0; }
