/* ASTAC Nigeria Ltd. – style.css
   Hand-written replacement for the Nicepage export. One file, no framework. */

/* ---------- Tokens ---------- */
:root {
  --c-cyan: #00badd;        /* custom-color-2: menu, lines, icons */
  --c-cyan-hover: #37cad4;  /* custom-color-3 */
  --c-cyan-light: #68d5f4;  /* palette-4-light-1: headings, tiles */
  --c-magenta: #ea0a8e;     /* custom-color-1 */
  --c-orange: #f5be54;      /* palette-3-light-1 */
  --c-teal: #16b6a1;        /* palette-1-base */
  --c-teal-light: #6af3e1;  /* palette-1-light-1 */
  --c-green: #45a091;       /* custom-color-4 */
  --c-dark: #292d33;        /* palette-5-dark-3: panels */
  --c-grey-80: #333333;
  --c-grey-90: #1a1a1a;
  --c-black: #000000;
  --c-white: #ffffff;
  --c-ink: #111111;

  --f-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-head: 'Montserrat', 'Roboto', sans-serif;
  --f-title: 'Montserrat', 'Roboto', sans-serif;
  --f-display: 'Montserrat', 'Roboto', sans-serif;

  --sheet: 1140px;
  --gutter: 16px;
  --header-h: 90px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 300;
  color: var(--c-ink);
  background: var(--c-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--f-head); font-weight: 500; line-height: 1.2; color: inherit; }
p { margin: 0; }
p + p { margin-top: 1em; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--gutter); top: -60px; z-index: 1001; padding: 8px 14px; background: var(--c-cyan); color: var(--c-ink); font-weight: 700; }
.skip-link:focus { top: 8px; }

/* ---------- Layout helpers ---------- */
.sheet { width: min(var(--sheet), 100% - 2 * var(--gutter)); margin-inline: auto; position: relative; }
.sheet > *, .tiles > *, .activities__grid > *, .feature__band > *, .feature__detail > *, .connection__grid > *,
.card > *, .detail > *, .infogrid__items > *, .strip > *, .smart__grid > * { min-width: 0; }
.icon { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex: none; }
.icon svg { width: 50%; height: 50%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon svg.is-fill { fill: currentColor; stroke: none; }
.icon--outline { border: 1.5px solid currentColor; }
.btn {
  display: inline-block; padding: 11px 30px; border: 2px solid currentColor;
  font-size: 1.25rem; letter-spacing: 2px; line-height: 1.4; color: var(--c-white);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--c-white); color: var(--c-ink); }
.btn--dark { color: var(--c-dark); }
.btn--dark:hover, .btn--dark:focus-visible { background: var(--c-dark); color: var(--c-white); }
.line { height: 3px; width: 100%; background: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--c-black); color: var(--c-cyan);
  height: var(--header-h);
}
.site-header .sheet { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo img { width: 200px; height: auto; }
.nav { display: flex; align-items: center; gap: 0; }
.nav > li { position: relative; }
.nav a { display: block; padding: 10px 20px; white-space: nowrap; transition: color .2s var(--ease); }
.nav a:hover, .nav a:focus-visible, .nav > li:focus-within > a { color: var(--c-cyan-hover); }
.nav .has-sub > a { padding-right: 34px; }
.nav .has-sub > a::after {
  content: ""; position: absolute; right: 16px; top: 50%; margin-top: -3px;
  border: 5px solid transparent; border-top-color: currentColor; border-bottom: 0;
}
.sub {
  position: absolute; left: 0; top: 100%; min-width: 160px; padding: 10px 0;
  background: var(--c-grey-80);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.nav > li:hover > .sub, .nav > li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sub a { padding: 10px 20px; }
.sub a:hover, .sub a:focus-visible { background: #404040; color: var(--c-cyan); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--c-cyan-light); }
.nav-toggle svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.nav-close { display: none; }

@media (max-width: 991px) {
  :root { --header-h: 70px; }
  .logo img { width: 160px; }
  .nav-toggle { display: inline-flex; }
  .nav-wrap {
    position: fixed; inset: 0; z-index: 1100;
    background: rgba(0,0,0,.95); color: var(--c-cyan);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility 0s linear .25s;
  }
  .nav-wrap.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav { flex-direction: column; gap: 4px; text-align: center; font-size: 1.25rem; }
  .nav a { padding: 10px 20px; }
  .nav .has-sub > a { padding-right: 20px; }
  .nav .has-sub > a::after { display: none; }
  .sub { position: static; min-width: 0; padding: 0 0 6px; background: none; opacity: 1; visibility: visible; transform: none; font-size: 1rem; }
  .sub a { padding: 6px 20px; color: var(--c-cyan-light); }
  .sub a:hover { background: none; }
  .nav-close { display: inline-flex; position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; align-items: center; justify-content: center; }
  .nav-close svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Sections (generic) ---------- */
section { position: relative; }
.bg-photo { background-size: cover; background-position: 50% 50%; background-repeat: no-repeat; }
.bg-dark-roof { background: linear-gradient(rgba(0,0,0,.9), rgba(0,0,0,.9)), url("../images/bg-glass-roof.jpg") 50% 50% / cover no-repeat; color: var(--c-white); }

/* ---------- Hero ---------- */
.hero {
  min-height: clamp(720px, calc(100svh - var(--header-h)), 1000px);
  display: flex; align-items: center; text-align: center; color: var(--c-white);
  background-image: linear-gradient(rgba(0,0,0,.05), rgba(0,0,0,.05)), url("../images/hero-beach.jpg");
  padding: 48px 0 24px;
}
.hero .sheet { display: flex; flex-direction: column; align-items: center; }
.hero .sheet > a { display: block; width: 100%; }
.hero__wordmark { width: min(589px, 80%); height: auto; margin-inline: auto; }
.hero__emblem { width: min(318px, 55%); height: auto; margin: clamp(16px, 3vw, 35px) auto 0; }
.hero__claim {
  margin-top: clamp(24px, 4vw, 44px);
  font-family: var(--f-title); font-weight: 500; font-size: clamp(1.6rem, 4.2vw, 3rem); letter-spacing: 2px;
}
.hero__rule { width: 150px; height: 6px; background: var(--c-white); margin-top: 7px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; width: 100%; margin-top: 35px; }
.tile {
  position: relative; min-height: 230px; padding: 24px 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  border: 1px solid rgba(255,255,255,.55);
  color: var(--c-white);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tile { isolation: isolate; }
.tile::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.2); z-index: -1; transition: background-color .35s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.35); border-color: rgba(255,255,255,.9); }
.tile:hover::before { background: rgba(0,0,0,.55); }
.tile .icon { width: 84px; height: 84px; border: 1.5px solid rgba(255,255,255,.9); }
.tile .icon--flag svg { width: 44%; height: 44%; }
.tile h2 { font-size: 1.125rem; letter-spacing: 3px; font-weight: 400; text-transform: uppercase; }
.hero__copyright { display: none; }
@media (max-width: 991px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .tiles { grid-template-columns: 1fr; gap: 14px; } .tile { min-height: 180px; } }

/* ---------- Activities ---------- */
.activities { padding: 50px 0 40px; }
.activities__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.activity { display: grid; grid-template-columns: 85px 1fr; gap: 12px 10px; padding: 30px 30px 30px 20px; color: var(--c-white); }
.activity .icon { width: 85px; height: 85px; color: var(--c-cyan); margin-top: 6px; }
.activity h2 { font-size: 1.25rem; font-weight: 700; color: var(--c-cyan); }
.activity p { margin-top: 16px; }
.activity .more { color: var(--c-cyan-light); white-space: nowrap; }
.activity:hover .more { text-decoration: underline; }
@media (max-width: 991px) { .activities__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .activities__grid { grid-template-columns: 1fr; } .activity { padding: 24px 10px; } }

/* ---------- Smart solutions ---------- */
.smart { background: var(--c-grey-80); color: var(--c-white); padding: 60px 0; }
.smart .sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; align-items: center; }
.smart__grid { display: grid; grid-template-columns: 1fr 1fr; }
.smart__grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.smart__text { padding: 30px; }
.display { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.2rem, 4.6vw, 3.75rem); line-height: 1.1; letter-spacing: -.01em; }
.smart__accent { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.4rem, 5vw, 4.25rem); color: var(--c-teal); line-height: 1.1; margin-top: 8px; }
@media (max-width: 767px) { .smart .sheet { grid-template-columns: 1fr; } .smart__text { text-align: center; padding: 30px 0 0; } }

/* ---------- Numbered feature sections (01–05) ---------- */
.feature { color: var(--c-white); padding: 60px 0; overflow: hidden; }
.feature__band {
  display: grid; grid-template-columns: 25% 30% 35% 10%;
  width: calc(100% - max(var(--gutter), (100% - var(--sheet)) / 2));
  margin-left: auto;
}
.feature--mirror .feature__band { grid-template-columns: 10% 30% 35% 25%; margin-left: 0; margin-right: auto; }
.feature__cell { min-height: 306px; padding: 30px; }
.feature__icon { display: flex; align-items: center; justify-content: center; color: var(--c-white); }
.feature__icon .icon { width: 103px; height: 103px; border-color: var(--c-white); }
.feature__title { background: var(--c-dark); }
.feature__title .line { color: var(--accent); }
.feature__title h2 { font-family: var(--f-title); font-weight: 500; font-size: 3rem; line-height: 1.1; margin-top: 20px; }
.feature__intro { background: var(--c-dark); padding-bottom: 26px; }
.feature__spacer { background: var(--c-dark); }
.feature--light .feature__title, .feature--light .feature__intro, .feature--light .feature__spacer { background: rgba(255,255,255,.85); color: var(--c-ink); }

.feature__detail {
  display: grid; grid-template-columns: 194px 1fr; align-items: stretch;
  max-width: 895px; margin: 60px 0 0 auto;
}
.feature--mirror .feature__detail { grid-template-columns: 1fr 194px; margin: 60px auto 0 0; }
.feature__number {
  font-family: var(--f-title); font-weight: 200; font-size: 6.5rem; line-height: 1;
  padding: 30px 0; align-self: start;
}
.feature--mirror .feature__number { text-align: right; padding-right: 20px; }
.feature__box { background: rgba(41,45,51,.85); padding: 30px; font-size: 1.25rem; line-height: 1.6; }
.feature__box .btn { margin-top: 36px; }
.feature--light .feature__box { background: rgba(255,255,255,.85); color: var(--c-ink); }
.feature--err .feature__box { background: rgba(26,26,26,.85); }

@media (max-width: 991px) {
  .feature__band, .feature--mirror .feature__band { grid-template-columns: 1fr 1fr; width: 100%; }
  .feature__spacer { display: none; }
  .feature__intro { grid-column: 1 / -1; }
  .feature--mirror .feature__icon { order: -1; }
  .feature__cell { min-height: 0; }
  .feature__icon { min-height: 220px; }
  .feature__detail, .feature--mirror .feature__detail { grid-template-columns: 1fr; max-width: none; margin: 40px var(--gutter) 0; }
  .feature--mirror .feature__number { text-align: left; order: -1; }
  .feature__number { font-size: 5rem; padding: 10px 0 16px; }
}
@media (max-width: 767px) {
  .feature { padding: 40px 0; }
  .feature__band, .feature--mirror .feature__band { grid-template-columns: 1fr; }
  .feature__icon { min-height: 180px; }
  .feature__title h2 { font-size: 2.25rem; }
  .feature__box { font-size: 1.0625rem; padding: 24px; }
}

/* ---------- Connection (Austria – Europe – Nigeria) ---------- */
.connection { background: var(--c-grey-90); color: var(--c-white); padding: 60px 0; }
.connection .sheet { display: grid; grid-template-columns: 1fr 1fr; }
.connection__grid { display: grid; grid-template-columns: 1fr 1fr; }
.connection__cell { min-height: 289px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(234,10,142,.6); }
.connection__cell .icon { width: 103px; height: 103px; color: var(--c-white); border-color: rgba(255,255,255,.7); }
.connection__cell .icon--flag svg { width: 58%; height: 58%; }
.connection__text { border: 1px solid rgba(234,10,142,.6); border-left: 0; padding: 30px 30px 30px 48px; display: flex; flex-direction: column; justify-content: center; }
.connection__text .display { font-size: clamp(2rem, 4.2vw, 3.5rem); }
.connection__accent { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.6rem, 5.5vw, 4.5rem); color: var(--c-magenta); line-height: 1.1; margin-top: 10px; }
@media (max-width: 767px) {
  .connection .sheet { grid-template-columns: 1fr; }
  .connection__cell { min-height: 170px; }
  .connection__text { border-left: 1px solid rgba(234,10,142,.6); border-top: 0; text-align: center; padding: 30px; }
}

/* ---------- Company cards (About / View / Legal / Info) ---------- */
.cards { padding: 60px 0; }
.card { display: grid; grid-template-columns: 1fr 1fr; background: var(--c-dark); }
.card + .card { margin-top: 60px; }
.card__head { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 30px; }
.card__head h2 { font-family: var(--f-head); font-weight: 200; font-size: clamp(3rem, 6.5vw, 5.5rem); text-transform: uppercase; letter-spacing: .04em; line-height: 1.1; }
.card--compact { grid-template-columns: 1fr 2fr; }
.card--compact + .card--compact { margin-top: 10px; }
.card--compact .card__head { padding: 30px; }
.card--compact .card__head h2 { font-size: 1.75rem; font-weight: 500; letter-spacing: .12em; }
.card--compact .card__head p { font-size: .875rem; color: rgba(255,255,255,.7); }
.card--compact .card__body { font-size: .9375rem; line-height: 1.7; color: rgba(255,255,255,.85); }
.card__head p { font-size: 1.0625rem; font-weight: 400; margin-top: 8px; }
.card__body { padding: 30px; }
.card__body p + p { margin-top: 1em; }
.card--magenta .card__head { color: var(--c-magenta); }
.card--cyan .card__head { color: var(--c-cyan-light); }
.card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin-top: 1em; }
.card dt { font-weight: 700; }
.card dd { margin: 0; }
@media (max-width: 767px) { .card, .card--compact { grid-template-columns: 1fr; } .card__head, .card--compact .card__head { padding: 40px 20px 10px; } }

/* ---------- Contact ---------- */
.contact { padding: 67px 0 46px; }
.contact .sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.contact__lead { padding: 20px; }
.contact__lead h2 { font-size: clamp(2.4rem, 5vw, 3.75rem); font-weight: 700; color: var(--c-cyan-light); }
.contact__lead h2 a { font-weight: 300; }
.contact__lead h2 a:hover { color: var(--c-cyan); }
.contact__lead p { font-size: 1.25rem; margin-top: 11px; }
.contact__lead img { width: 197px; height: auto; margin-top: 32px; }
.contact__details { padding: 20px; }
.contact__details h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.contact__details dl { margin: 0; }
.contact__details dt { font-weight: 700; margin-top: 14px; }
.contact__details dd { margin: 0; }
.contact__details a:hover { color: var(--c-cyan-light); }
@media (max-width: 767px) { .contact .sheet { grid-template-columns: 1fr; } }

/* ---------- Detail sections: image + text ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; background: var(--c-dark); color: var(--c-white); }
.detail--wide { grid-template-columns: 2fr 1fr; }
.detail--37 { grid-template-columns: 37fr 23fr; }
.detail__img { position: relative; min-height: 440px; }
.detail__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail__text { padding: 30px; align-self: center; }
.detail__text h2 { font-family: var(--f-head); font-weight: 200; font-size: clamp(2.6rem, 5.5vw, 5.5rem); line-height: 1.1; }
.detail__text p { margin-left: clamp(0px, 8%, 97px); margin-top: 8px; }
.detail__text p + p { margin-top: 1em; }
.t-cyan { color: var(--c-cyan-light); }
.t-orange { color: var(--c-orange); }
.t-magenta { color: var(--c-magenta); }
.t-teal { color: var(--c-teal); }
@media (max-width: 991px) { .detail--wide, .detail--37 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) {
  .detail, .detail--wide, .detail--37 { grid-template-columns: 1fr; }
  .detail__img { min-height: 0; aspect-ratio: 16 / 10; }
  .detail__text { padding: 24px var(--gutter) 30px; }
  .detail__text p { margin-left: 0; }
}

/* ---------- Info grids (reasons, columns) ---------- */
.infogrid { background: var(--c-dark); color: var(--c-white); padding: 32px 0 56px; text-align: center; }
.infogrid__title { font-family: var(--f-head); font-weight: 200; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.2; max-width: 583px; margin: 0 auto; }
.infogrid__sub { max-width: 733px; margin: 6px auto 0; }
.infogrid__items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 32px; text-align: left; }
.infogrid__items--2 { grid-template-columns: repeat(2, 1fr); }
.infogrid__items--1 { grid-template-columns: 1fr; }
.infocell { padding: 30px; background: #30353c; border-top: 1px solid rgba(255,255,255,.15); color: var(--c-white); }
.infocell h3 { font-size: 1.125rem; font-weight: 600; font-family: var(--f-head); letter-spacing: .02em; }
.infocell p { margin-top: 18px; font-weight: 300; line-height: 1.8; color: rgba(255,255,255,.88); }
.infocell p + p { margin-top: 1em; }
.infocell--cyan { border-top: 3px solid var(--c-cyan-light); }
.infocell--cyan h3 { color: var(--c-cyan-light); }
.infocell--orange { border-top: 3px solid var(--c-orange); }
.infocell--orange h3 { color: var(--c-orange); }
.infocell--magenta { border-top: 3px solid var(--c-magenta); }
.infocell--magenta h3 { color: var(--c-magenta); }
.infocell--teal { border-top: 3px solid var(--c-teal); }
.infocell--teal h3 { color: var(--c-teal); }
a.infocell:hover { background: #363c44; }
.infocell table { border-collapse: collapse; margin-top: 10px; font-weight: 300; }
.infocell td, .infocell th { padding: 2px 16px 2px 0; text-align: left; font-weight: inherit; vertical-align: top; }
.infocell td:nth-child(2), .infocell td:nth-child(3) { white-space: nowrap; }
@media (max-width: 991px) { .infogrid__items { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .infogrid__items, .infogrid__items--2 { grid-template-columns: 1fr; } .infocell { padding: 24px 20px; } }
@media (max-width: 575px) { .infocell td:nth-child(2), .infocell td:nth-child(3) { white-space: normal; } .infocell td { padding-right: 10px; } }

/* ---------- Photo strip ---------- */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--c-dark); }
.strip img { width: 100%; aspect-ratio: 480 / 419; object-fit: cover; }
@media (max-width: 575px) { .strip { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding: 50px 0; text-align: center; color: var(--c-cyan); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--c-cyan); color: var(--c-cyan); background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.to-top.is-visible { opacity: .85; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { opacity: 1; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Reveal on scroll (subtle) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}
