/* =========================================================================
   ethio Time Tech — global stylesheet
   -------------------------------------------------------------------------
   BRAND COLORS: change the variables below to match your real brand once
   you have the logo. Everything on the site references these.
   ========================================================================= */

:root {
  /* --- Brand palette (PLACEHOLDER — swap for your real colors) --- */
  --brand:        #0b3d91;   /* primary deep blue */
  --brand-dark:   #062a66;   /* darker shade for gradients/hover */
  --brand-light:  #2563eb;   /* lighter blue */
  --accent:       #00c2a8;   /* teal accent (AI / tech highlight) */
  --accent-dark:  #009e89;

  /* --- Neutrals --- */
  --ink:          #0f172a;   /* main text */
  --muted:        #5b6473;   /* secondary text */
  --line:         #e5e8ee;   /* borders */
  --bg:           #ffffff;
  --bg-soft:      #f5f7fb;   /* section alt background */
  --bg-dark:      #0a1730;   /* dark sections / footer */

  /* --- Layout --- */
  --maxw: 1160px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .16);
  --font: "Segoe UI", system-ui, -apple-system, "Noto Sans Ethiopic", Roboto, Arial, sans-serif;
}

/* ----------------------------- Reset / base ----------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-light); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #d8e0f0; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--accent); }

.section-head { max-width: 720px; margin: 0 auto 50px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.section--dark .section-head p { color: #aab6cf; }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: .98rem;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(11,61,145,.28); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--accent { background: var(--accent); color: #042b27; box-shadow: 0 8px 20px rgba(0,194,168,.30); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }

/* ----------------------------- Header / nav ----------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--ink); font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand .logo-mark { width: 38px; height: 38px; flex: 0 0 auto; }
.brand b { color: var(--brand); }
.brand .tld { color: var(--accent-dark); }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  color: var(--ink); font-weight: 600; font-size: .96rem;
  padding: 8px 14px; border-radius: 8px;
}
.nav-links a:hover { background: var(--bg-soft); text-decoration: none; }
.nav-links a.active { color: var(--brand); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.lang-toggle button {
  background: transparent; border: 0; cursor: pointer;
  padding: 7px 13px; font-weight: 700; font-size: .85rem; color: var(--muted);
}
.lang-toggle button.active { background: var(--brand); color: #fff; }

.nav-toggle {
  display: none; background: transparent; border: 0; cursor: pointer;
  width: 42px; height: 42px; border-radius: 8px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; position: relative;
  width: 22px; height: 2px; background: var(--ink); margin: 0 auto;
  transition: .25s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* ----------------------------- Hero ----------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(0,194,168,.22), transparent 60%),
    linear-gradient(160deg, var(--brand-dark) 0%, var(--brand) 55%, #0e4fb8 100%);
  color: #eaf1ff;
}
.hero .container { position: relative; z-index: 2; padding-top: 86px; padding-bottom: 92px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.hero h1 .hl { color: var(--accent); }
.hero p.lead { font-size: 1.18rem; color: #c9d6f5; margin: 20px 0 30px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero-badges div { font-size: .92rem; color: #c9d6f5; }
.hero-badges b { display: block; font-size: 1.6rem; color: #fff; }

.hero-visual {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px; padding: 22px; backdrop-filter: blur(6px);
}
.hero-visual .stack-row { display: flex; gap: 10px; margin-bottom: 12px; }
.hero-visual .chip {
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px; padding: 14px; flex: 1; font-size: .82rem; color: #dce6ff;
}
.hero-visual .chip b { display: block; color: #fff; font-size: .95rem; margin-bottom: 3px; }
.hero-visual .ai-line {
  margin-top: 8px; padding: 12px 14px; border-radius: 10px;
  background: rgba(0,194,168,.16); border: 1px solid rgba(0,194,168,.4);
  color: #d7fff7; font-weight: 600; font-size: .9rem;
}

/* ----------------------------- Card grids ----------------------------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: #fff;
  font-size: 1.4rem; margin-bottom: 16px;
}
.card.accent .icon { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #042b27; }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .97rem; }

/* ----------------------------- Stats band ----------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stats .stat b { display: block; font-size: 2.4rem; color: var(--brand); font-weight: 800; }
.section--dark .stats .stat b { color: var(--accent); }
.stats .stat span { color: var(--muted); font-size: .95rem; }
.section--dark .stats .stat span { color: #aab6cf; }

/* ----------------------------- Client logos ----------------------------- */
.logo-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; align-items: stretch; }
.client-logo {
  display: grid; place-items: center; text-align: center;
  border: 1px dashed var(--line); border-radius: 12px; padding: 22px 14px;
  background: var(--bg); color: var(--muted); font-weight: 700; min-height: 92px;
  transition: border-color .2s, color .2s;
}
.client-logo:hover { border-color: var(--brand-light); color: var(--brand); }
.client-logo small { display: block; font-weight: 500; font-size: .72rem; color: #9aa3b2; margin-top: 4px; }
.client-logo img {
  max-height: 56px; max-width: 100%; width: auto; object-fit: contain;
  filter: grayscale(100%); opacity: .78; transition: filter .25s, opacity .25s;
}
.client-logo:hover img { filter: grayscale(0%); opacity: 1; }
.client-logo--solid { border-style: solid; }

/* Client cards (clients page) */
.client-card-logo { height: 64px; display: flex; align-items: center; margin-bottom: 14px; }
.client-card-logo img { max-height: 56px; max-width: 180px; width: auto; object-fit: contain; }
.client-card-logo .name-badge {
  display: inline-block; font-weight: 800; color: var(--brand); font-size: 1.15rem;
  padding: 10px 16px; background: var(--bg-soft); border-radius: 10px; border: 1px solid var(--line);
}
.card h3 + p { margin-top: 6px; }

/* Projects table */
.projects-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.projects-table { width: 100%; border-collapse: collapse; min-width: 680px; background: var(--bg); }
.projects-table th {
  text-align: left; background: var(--bg-dark); color: #fff; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .06em; padding: 14px 18px; font-weight: 700;
}
.projects-table td { padding: 16px 18px; border-top: 1px solid var(--line); vertical-align: top; font-size: .94rem; }
.projects-table tr:nth-child(even) td { background: var(--bg-soft); }
.projects-table .p-name { font-weight: 700; color: var(--ink); display: block; }
.projects-table .p-scope { color: var(--muted); font-size: .85rem; display: block; margin-top: 3px; max-width: 360px; }
.projects-table .p-year { font-weight: 700; color: var(--brand); white-space: nowrap; }
.projects-table .p-client { font-weight: 600; }

/* ----------------------------- Product showcase ----------------------------- */
.product {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 40px 0; border-top: 1px solid var(--line);
}
.product:first-of-type { border-top: 0; }
.product.reverse .product-media { order: 2; }
.product-media {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.screenshot-placeholder {
  aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center;
  background:
    linear-gradient(135deg, rgba(11,61,145,.06), rgba(0,194,168,.08)),
    repeating-linear-gradient(45deg, #f1f4fa 0 14px, #eef2f9 14px 28px);
  color: var(--muted); font-weight: 700; padding: 24px;
}
.screenshot-placeholder span { font-size: .78rem; font-weight: 500; color: #98a2b3; display: block; margin-top: 6px; }
.product-body .tag {
  display: inline-block; background: rgba(0,194,168,.14); color: var(--accent-dark);
  font-size: .76rem; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px;
}
.product-body h3 { font-size: 1.5rem; margin-bottom: 10px; }
.product-body p { color: var(--muted); margin-bottom: 16px; }
.feature-list { list-style: none; display: grid; gap: 9px; }
.feature-list li { position: relative; padding-left: 28px; color: var(--ink); font-size: .96rem; }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent-dark); font-weight: 800;
}

/* ----------------------------- CTA band ----------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand) 60%, var(--brand-light));
  color: #fff; border-radius: 22px; padding: 56px 44px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { color: #d3def8; max-width: 600px; margin: 14px auto 26px; }
.cta-band .hero-cta { justify-content: center; }

/* ----------------------------- Values / about ----------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split p { color: var(--muted); margin-bottom: 16px; }
.timeline { list-style: none; display: grid; gap: 18px; }
.timeline li {
  position: relative; padding-left: 30px; color: var(--ink);
}
.timeline li::before {
  content: ""; position: absolute; left: 6px; top: 7px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(0,194,168,.18);
}
.timeline li b { display: block; }
.founded-note {
  margin-top: 18px; padding: 14px 18px; border-left: 4px solid var(--accent);
  background: var(--bg-soft); border-radius: 8px; color: var(--ink); font-weight: 600;
}

/* ----------------------------- Contact ----------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; }
.contact-info .info-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info .info-item .ic {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--brand); font-size: 1.2rem;
}
.contact-info .info-item b { display: block; }
.contact-info .info-item span { color: var(--muted); font-size: .95rem; }
.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .96rem; background: var(--bg-soft);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--brand-light); background: #fff; }
.note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.form-status {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  font-size: .92rem; font-weight: 600;
}
.form-status--ok { background: rgba(0,194,168,.12); color: var(--accent-dark); border: 1px solid rgba(0,194,168,.4); }
.form-status--err { background: rgba(220,38,38,.08); color: #b91c1c; border: 1px solid rgba(220,38,38,.3); }
.form-status[hidden] { display: none; }

/* ----------------------------- Page hero (inner pages) ----------------------------- */
.page-hero {
  background: linear-gradient(160deg, var(--brand-dark), var(--brand));
  color: #fff; padding: 64px 0 56px; text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { color: #c9d6f5; max-width: 640px; margin: 14px auto 0; font-size: 1.08rem; }
.breadcrumb { color: #9fb2dd; font-size: .85rem; margin-bottom: 12px; }
.breadcrumb a { color: #c9d6f5; }

/* ----------------------------- Footer ----------------------------- */
.site-footer { background: var(--bg-dark); color: #aab6cf; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; letter-spacing: .04em; }
.site-footer a { color: #aab6cf; display: block; padding: 4px 0; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand b { color: #fff; }
.site-footer .brand .tld { color: var(--accent); }
.footer-about p { font-size: .92rem; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10); padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .85rem; color: #7e8aa6;
}

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 900px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .logo-strip { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .product, .product.reverse .product-media { grid-template-columns: 1fr; }
  .product.reverse .product-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px; box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; border-radius: 8px; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2, .logo-strip { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .cta-band { padding: 40px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
