/* ==========================================================================
   IHS Partners Ghana Ltd — homepage
   Static rebuild of ihs-partnersgh.com (values carried over 1:1 from the
   original theme: colours, type scale, spacing and breakpoints).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts — Inter (variable, self-hosted, latin + latin-ext)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
  --primary: #4190D1;
  --secondary: #1D6363;
  --headline: #000000;
  --body: #546078;
  --dark: #2F2A26;
  --white: #FFFFFF;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';

  --container-max: 1240px;
  --container-width: 95%;

  /* Type scale — desktop */
  --h1-size: 72px;
  --h2-size: 52px;
  --h3-size: 32px;
  --h4-size: 24px;
  --h5-size: 20px;
  --h6-size: 14px;
  --p-size: 18px;

  /* Buttons — desktop */
  --btn-size: 16px;
  --btn-padding: 17px 32px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--p-size);
  font-weight: 400;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 500; color: var(--headline); }
p { margin: 0; }
img { max-width: 100%; height: auto; border: 0; }

h1 { font-size: var(--h1-size); line-height: 1.2; letter-spacing: -0.027em; }
h2 { font-size: var(--h2-size); line-height: 1.3; letter-spacing: -0.027em; }
h3 { font-size: var(--h3-size); line-height: 1.3; letter-spacing: -0.027em; }
h4 { font-size: var(--h4-size); line-height: 1.3; letter-spacing: -0.027em; }
h5 { font-size: var(--h5-size); line-height: 1.3; letter-spacing: -0.015em; }
h6 {
  font-size: var(--h6-size);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.section { position: relative; }

.section__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.container {
  position: relative;
  width: var(--container-width);
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
}

.col {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px;
}

.col--center { display: flex; flex-direction: column; align-items: stretch; }

.widget + .widget { margin-top: 20px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: var(--btn-padding);
  font-family: var(--font);
  font-size: var(--btn-size);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  border: 0;
  border-radius: 100px;
  transition: background-color .3s, color .3s, border-color .3s;
}

.btn__icon { display: flex; align-items: center; }

.btn__icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.btn--solid {
  background-color: var(--primary);
  color: var(--white);
}
.btn--solid:hover,
.btn--solid:focus-visible {
  background-color: var(--white);
  color: var(--primary);
}

.btn--ghost {
  background-color: var(--white);
  border: 1px solid var(--white);
  color: var(--primary);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background-color: transparent;
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: 180px 0 80px;
  background-image: url('../assets/img/sky-bg.jpeg');
  background-position: bottom center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero .section__overlay { background-color: #000000; opacity: .34; }

.widget--narrow { width: 900px; max-width: 100%; }

.hero__title-widget { padding-bottom: 32px; }
.hero__title-widget + .widget { margin-top: 0; }

.hero__title {
  font-size: 27px;
  color: var(--white);
}

.hero__lede { margin-bottom: 40px; }
.hero__lede + .widget { margin-top: 0; }

.hero__lede p {
  font-size: var(--h4-size);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.027em;
  color: var(--white);
}

.hero__lede p + p { margin-top: 1.3em; }

/* --------------------------------------------------------------------------
   Public notice / contact
   -------------------------------------------------------------------------- */
.notice { padding: 120px 0; }

.notice .col--center { justify-content: center; }

.notice__lead {
  font-size: 22px;
  padding-bottom: 20px;
}

.notice__lead p {
  font-size: 22px;
  line-height: 1.6;
  color: var(--body);
}

.notice__lead strong { font-weight: 700; }

.cards { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }

.card {
  padding: 32px 40px;
  border: 1px solid rgba(154, 154, 154, .39);
  transition: border-color .3s;
}

.card:hover { border-color: var(--primary); }

.card__icon {
  display: block;
  margin-bottom: 16px;
  font-size: 28px;
  color: var(--headline);
}

.card__icon svg {
  display: block;
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.card__title {
  font-size: var(--h5-size);
  color: var(--headline);
}

/* --------------------------------------------------------------------------
   Call to action
   -------------------------------------------------------------------------- */
.cta {
  z-index: 1;
  padding: 180px 0 0;
  background-image: url('../assets/img/cta-bg.webp');
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
}

.cta .section__overlay { background-color: var(--secondary); opacity: .2; }

.cta__spacer { flex: 0 0 40%; }

.cta__panel { flex: 0 0 60%; min-width: 0; }

.cta__panel-inner {
  margin: 0 10px -40px;
  padding: 40px 48px;
  background-color: var(--primary);
}

.cta__panel-inner .widget + .widget { margin-top: 40px; }

.cta__mark { display: block; width: 40px; height: auto; }

.cta__title { color: var(--white); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 180px 0 100px;
  background-color: var(--dark);
}

.site-footer .section__overlay { background-color: #000000; opacity: .2; }

.site-footer__col { align-items: center; justify-content: center; }

.site-footer__col .widget + .widget { margin-top: 40px; }

.site-footer__logo-widget { width: 100%; text-align: center; }

.site-footer__logo { display: inline-block; width: 120px; height: auto; vertical-align: top; }

.site-footer__about {
  width: 380px;
  max-width: 100%;
  padding-bottom: 40px;
  text-align: center;
}

.site-footer__col .site-footer__about + .widget { margin-top: 0; }

.site-footer__about p {
  font-size: var(--p-size);
  line-height: 1.6;
  color: var(--white);
}

.site-footer__copyright { width: 100%; text-align: center; }

.site-footer__copyright p {
  font-size: var(--p-size);
  line-height: 1.6;
  color: #707070;
}

/* --------------------------------------------------------------------------
   Back to top
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: 2em;
  bottom: 2em;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 15px;
  color: var(--headline);
  background: var(--white);
  border-radius: 4px;
  box-shadow: 1px 0 22px -9px rgba(0, 0, 0, .4);
  transform: scale(1);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.back-to-top svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  transform: rotate(-90deg);
}

.back-to-top:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px -9px rgba(0, 0, 0, .2);
}

.back-to-top:not(.is-visible) {
  opacity: 0;
  pointer-events: none;
  transform: scale(.3);
}

/* --------------------------------------------------------------------------
   Entrance animations
   -------------------------------------------------------------------------- */
.animate { visibility: hidden; }

.animate.is-animated {
  visibility: visible;
  animation-name: fadeInUp;
  animation-duration: 1.25s;
  animation-fill-mode: both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 100%, 0); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Tablet — max 1024px
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --h1-size: 56px;
    --h2-size: 36px;
    --h3-size: 26px;
    --h4-size: 21px;
    --h5-size: 19px;
    --h6-size: 13px;
    --p-size: 17px;

    --btn-size: 15px;
    --btn-padding: 16px 30px;
  }

  .hero { padding: 140px 0 60px; }
  .widget--narrow { width: 700px; }

  .notice { padding: 90px 0; }
  .notice .widget + .widget { margin-top: 16px; }
  .notice__lead { width: 471.594px; max-width: 100%; padding-bottom: 16px; }
  .card { padding: 32px; }
  .card__icon { margin-bottom: 14px; }
  .card__icon svg { width: 26px; height: 26px; }

  .cta { padding: 140px 0 0; }
  .cta__panel-inner { padding: 32px 40px; }
  .cta__panel-inner .widget + .widget { margin-top: 32px; }
  .cta__mark { width: 36px; }

  .site-footer { padding: 140px 0 75px; }
  .site-footer__col .widget + .widget { margin-top: 32px; }
  .site-footer__logo { width: 115px; }
  .site-footer__about { width: 350px; font-size: 17px; padding-bottom: 32px; }
  .site-footer__about p { font-size: 17px; }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .cta__spacer { flex-basis: 35%; }
  .cta__panel { flex-basis: 65%; }
}

/* --------------------------------------------------------------------------
   Mobile — max 767px
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  :root {
    --h1-size: 40px;
    --h2-size: 26px;
    --h3-size: 22px;
    --h4-size: 19px;
    --h5-size: 18px;
    --h6-size: 12px;
    --p-size: 16px;

    --btn-size: 14px;
    --btn-padding: 15px 28px;
  }

  .hero { padding: 100px 0 20px; }
  .widget--narrow { width: 100%; }
  .hero__title { font-size: 19px; }
  .hero__title-widget { padding-bottom: 24px; }

  .notice { padding: 64px 0; }
  .notice__lead { width: 100%; font-size: 17px; padding-bottom: 4px; }
  .notice__lead p { font-size: 17px; }
  .cards { padding-top: 20px; }
  .card { padding: 24px; }
  .card__icon { margin-bottom: 12px; }
  .card__icon svg { width: 24px; height: 24px; }

  .cta { padding: 60px 0 0; }
  .cta .container { flex-direction: column; }
  .cta__spacer { display: none; }
  .cta__panel { flex: 1 1 auto; width: 100%; }
  .cta__panel-inner { padding: 32px; }
  .cta__panel-inner .widget + .widget { margin-top: 24px; }

  .site-footer { padding: 100px 0 50px; }
  .site-footer__col { margin-bottom: 20px; }
  .site-footer__col .widget + .widget { margin-top: 24px; }
  .site-footer__logo { width: 110px; }
  .site-footer__about { width: 100%; font-size: 16px; padding-bottom: 24px; }
  .site-footer__about p { font-size: 16px; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate { visibility: visible; }
  .animate.is-animated { animation: none !important; }
  .back-to-top { transition: opacity .3s; }
}
