/* IT Smart Consulting – single-page site */
/* Fonts are self-hosted (latin subset from Google Fonts, SIL Open Font Licence) */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/inter-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Baskerville"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/libre-baskerville-latin-400.woff2") format("woff2");
}
/* Arial tuned to Inter's size, so text doesn't jump when Inter arrives */
@font-face {
  font-family: "Inter Fallback"; src: local("Arial");
  ascent-override: 90.44%; descent-override: 22.52%; line-gap-override: 0%; size-adjust: 107.12%;
}
:root {
  --navy: #003979;
  --blue: #0184c0;
  --sky: #3092cd;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --surface: #ffffff;
  --text: #13213a;
  --muted: #55627a;
  --border: #e2e8f1;
  --accent: #0070a6;   /* --blue darkened for small text contrast (WCAG AA) */
  --heading: var(--navy);
  --shadow: 0 1px 2px rgba(16, 32, 64, .04), 0 8px 24px rgba(16, 32, 64, .06);
  --radius: 14px;
  --max: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-alt: #0f1a2d;
    --surface: #132036;
    --text: #e6ecf5;
    --muted: #a3b0c5;
    --border: #22314b;
    --accent: #4fb0e6;
    --heading: #ffffff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
  .brand-mark, .hero-art img { filter: brightness(1.7) saturate(1.1); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: Inter, "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { color: var(--heading); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.35em; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .5em 1em; font-size: .92rem; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(0, 57, 121, .25); }
.btn-primary:hover { background: #00448f; }
.btn-ghost { border-color: var(--border); color: var(--heading); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-white { background: #fff; color: var(--navy); }
.btn-outline-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
@media (prefers-color-scheme: dark) {
  .btn-primary { background: #0072a8; }   /* darker than --blue so white text passes WCAG AA */
  .btn-primary:hover { background: #00649a; }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 40px; height: auto; }
.brand-name { font-family: "Libre Baskerville", Georgia, serif; font-size: 1.2rem; color: var(--heading); white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: .97rem; }
.site-nav a:not(.btn):hover { color: var(--accent); }
.menu-toggle { display: none; background: none; border: 0; color: var(--heading); padding: 8px; cursor: pointer; }
.menu-toggle .icon { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 8px 20px 20px; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .site-nav .btn { margin-top: 16px; justify-content: center; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 96px;
  background:
    radial-gradient(900px 420px at 85% 10%, color-mix(in srgb, var(--sky) 18%, transparent), transparent 70%),
    radial-gradient(700px 400px at 0% 100%, color-mix(in srgb, var(--blue) 10%, transparent), transparent 70%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .45;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.eyebrow, .about-text .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: .9em; }
.eyebrow-light { color: #9fd3f5; }
.accent { background: linear-gradient(90deg, var(--blue), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-weight: 500; font-size: .97rem; }
.hero-points li { display: flex; align-items: center; gap: .45em; }
.hero-points .icon { color: var(--accent); }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(100%, 360px); opacity: .95; }

@media (max-width: 860px) {
  .hero { padding: 56px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-sub { color: var(--muted); }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } .section { padding: 64px 0; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
}
.card-icon .icon { width: 24px; height: 24px; }

/* About */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.about-text p { color: var(--muted); }
.about-text strong { color: var(--text); }
.checklist { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: .6em; align-items: center; font-weight: 500; }
.checklist .icon { color: var(--accent); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  background: linear-gradient(160deg, var(--navy), #0a5ea5); color: #fff;
  border-radius: var(--radius); padding: 24px 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow);
}
.stat:nth-child(2), .stat:nth-child(3) { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.stat-num { font-size: 2.3rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.stat:nth-child(2) .stat-num, .stat:nth-child(3) .stat-num { color: var(--accent); }
.stat-label { font-size: .9rem; opacity: .9; line-height: 1.4; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 36px; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step p { color: var(--muted); margin: 0; }
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 16px;
}
@media (prefers-color-scheme: dark) { .step-num { background: #0072a8; } }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Contact */
.contact {
  padding: 88px 0; color: #dbe8f7;
  background: radial-gradient(800px 400px at 90% 0%, rgba(48, 146, 205, .35), transparent 70%), linear-gradient(160deg, #00295a, var(--navy));
}
.contact h2 { color: #fff; }
.contact-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.contact-lead { font-size: 1.1rem; max-width: 34em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.areas { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 28px; }
.areas h3 { color: #fff; display: flex; align-items: center; gap: .5em; font-size: 1.05rem; }
.areas h3 .icon { color: #9fd3f5; }
.areas p { margin-bottom: 1.4em; }
.areas p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .contact-inner { grid-template-columns: 1fr; } .contact-actions .btn { width: 100%; justify-content: center; } }

/* Footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 28px 0; font-size: .88rem; color: var(--muted); }
.footer-inner p { margin: 0 0 .3em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}

/* WhatsApp floating button */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .icon { width: 28px; height: 28px; }

/* About photo */
.about-person { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.avatar {
  width: 112px; height: 112px; border-radius: 50%; object-fit: cover; flex: none;
  border: 4px solid var(--surface); box-shadow: 0 0 0 2px var(--accent), var(--shadow);
}
.about-person .eyebrow { margin-bottom: .2em; }
.about-text .person-caption { margin: 0; color: var(--muted); }
