/* H4IT Solutions. Refined version of the original blue theme. */
@font-face { font-family: "Raleway"; src: url("../fonts/raleway-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  /* the site's original blue. Text sits on the darker left end; #3498db is the old theme colour */
  --blue: #1f76b8;
  --blue-dark: #185f96;
  --blue-soft: #e8f2fa;
  --gradient: linear-gradient(115deg, #124f85 0%, #1a6aa8 38%, #2a86cc 72%, #4fb0ea 100%);
  --gradient-bar: linear-gradient(115deg, #124f85 0%, #1f76b8 100%);
  --heading: #222;
  --text: #444;
  --soft: #f3f5fa;
  --line: #e3e7ee;
  --shadow: 0 4px 24px rgba(30, 50, 80, .09);
  --bs-body-font-family: "Open Sans", system-ui, sans-serif;
  --bs-body-color: var(--text);
  --bs-link-color-rgb: 31, 118, 184;
  --bs-link-hover-color-rgb: 24, 95, 150;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { font-family: "Open Sans", system-ui, sans-serif; font-size: 1rem; line-height: 1.7; color: var(--text); background: #fff; overflow-x: hidden; }
h1, h2, h3 { font-family: "Raleway", system-ui, sans-serif; color: var(--heading); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 3.8vw, 3rem); margin-bottom: 1rem; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.55rem, 2.5vw, 2rem); }
h3 { font-size: 1.2rem; margin-bottom: .55rem; }
img { max-width: 100%; height: auto; }
picture { display: block; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 2px solid #f2b84b; outline-offset: 2px; }
.container { max-width: 1240px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--heading); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; color: #fff; }

/* Header: logo on the original white angled shape */
.site-header { position: sticky; top: 0; z-index: 1030; background: var(--gradient-bar); box-shadow: 0 2px 14px rgba(20, 50, 80, .18); }
.site-header .navbar { --bs-navbar-padding-y: 0; }
.site-header .container-fluid { padding: 0; align-items: stretch; }
.navbar-brand { margin: 0; padding: .75rem 5rem .75rem max(1.25rem, calc((100vw - 1240px) / 2 + 12px)); background: #fff; clip-path: polygon(0 0, 100% 0, calc(100% - 52px) 100%, 0 100%); display: flex; align-items: center; }
.brand-logo { height: 46px; width: auto; display: block; }
.navbar-toggler { border: 1px solid rgba(255, 255, 255, .6); color: #fff; font-size: 1.5rem; padding: .15rem .6rem; margin: auto 1rem auto 0; }
.navbar-toggler:focus { box-shadow: none; outline: 2px solid #fff; }
.navbar-collapse { padding-right: max(1.25rem, calc((100vw - 1240px) / 2 + 12px)); }
.nav-link { color: #fff; font-weight: 600; font-size: .95rem; padding: .5rem 1rem !important; }
.nav-link:hover, .nav-link:focus, .nav-link.active, .nav-link.show { color: #fff !important; box-shadow: inset 0 -2px 0 #fff; }
.dropdown-menu { border: 0; border-radius: 8px; box-shadow: 0 12px 32px rgba(20, 40, 70, .18); padding: .45rem; min-width: 320px; margin-top: .4rem !important; }
.dropdown-item { border-radius: 6px; padding: .55rem .8rem; white-space: normal; font-size: .95rem; color: var(--heading); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--blue-soft); color: var(--blue-dark); }
.dropdown-item.active, .dropdown-item:active { background: var(--blue); color: #fff; }

/* Buttons */
.btn { --bs-btn-font-weight: 600; font-family: "Raleway", sans-serif; border-radius: 50px; padding: .72rem 2rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; transition: background-color .2s, color .2s, border-color .2s; }
.btn-brand { background: var(--gradient-bar); border: 0; padding: calc(.72rem + 2px) calc(2rem + 2px); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--blue-dark); color: #fff; }
.btn-white { background: #fff; border: 2px solid #fff; color: var(--blue-dark); }
.btn-white:hover, .btn-white:focus { background: transparent; border-color: #fff; color: #fff; }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover, .btn-outline:focus { background: #fff; border-color: #fff; color: var(--blue-dark); }

/* Blue hero */
.hero { background: var(--gradient); color: #fff; padding: clamp(2.8rem, 6vw, 4.8rem) 0; }
.hero h1 { color: #fff; }
.hero-lead { color: #fff; font-family: "Raleway", sans-serif; font-weight: 500; font-size: clamp(1.03rem, 1.4vw, 1.2rem); margin-bottom: .8rem; }
.hero-lead:last-child { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.hero-image img { display: block; width: 100%; border-radius: 12px; aspect-ratio: 16 / 11; object-fit: cover; box-shadow: 0 16px 40px rgba(10, 40, 70, .28); background: #fff; }
.hero-image-contain img { object-fit: contain; aspect-ratio: auto; padding: 1rem; }
.breadcrumb { --bs-breadcrumb-margin-bottom: .9rem; --bs-breadcrumb-divider-color: #fff; --bs-breadcrumb-item-active-color: #fff; font-size: .9rem; }
.breadcrumb a { color: #fff; }
.page-404 { padding: clamp(5rem, 12vw, 9rem) 0; text-align: center; }
.page-404 p { margin-bottom: 1.6rem; }

/* Home hero: white angled panel echoes the logo shape in the header */
.home-hero { position: relative; overflow: hidden; padding: clamp(3rem, 6vw, 5.4rem) 0; background: linear-gradient(115deg, #124f85 0%, #1a6aa8 34%, #2278bb 56%); }
.home-hero::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 50%; background: #fff; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.home-hero .container { position: relative; z-index: 1; }
.home-hero h1 { font-size: clamp(2.1rem, 3.5vw, 2.9rem); line-height: 1.18; max-width: 15em; }
.home-hero .hero-lead { max-width: 34em; }
.home-hero-art { display: flex; justify-content: flex-end; }
.home-hero-art img { display: block; width: 100%; max-width: 500px; }

/* Sections with the original centred title and divider */
.section { padding: clamp(3rem, 6vw, 4.6rem) 0; }
.section-soft { background: var(--soft); }
.section-title { max-width: 900px; margin: 0 auto 2.6rem; text-align: center; }
.section-title h2 { text-transform: uppercase; position: relative; padding-bottom: 1.1rem; margin-bottom: 1.1rem; }
.section-title h2::before { content: ""; position: absolute; left: 50%; bottom: 1px; width: 120px; height: 1px; margin-left: -60px; background: #ccc; }
.section-title h2::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 40px; height: 3px; margin-left: -20px; background: var(--blue); }
.section-title p { margin-bottom: .6rem; }
.section-title p:last-child { margin-bottom: 0; }

/* Moving client logos */
.logo-strip { padding: 1.5rem 0; overflow: hidden; border-bottom: 1px solid var(--line); }
.marquee { display: flex; width: max-content; }
.marquee-track { list-style: none; display: flex; align-items: center; gap: 4.4rem; margin: 0; padding: 0 2.2rem; animation: scroll-logos 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 34px; width: auto; max-width: 130px; object-fit: contain; }
@keyframes scroll-logos { to { transform: translateX(-100%); } }

/* Cards */
.icon-box { position: relative; overflow: hidden; width: 100%; background: #fff; border-radius: 15px; box-shadow: var(--shadow); padding: 2.2rem 1.8rem; transition: transform .25s, box-shadow .25s; }
.icon-box::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gradient); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.icon-box > i { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--blue-soft); color: var(--blue); font-size: 1.6rem; line-height: 1; margin-bottom: 1.1rem; transition: background-color .25s, color .25s; }
.icon-box h2, .icon-box h3 { transition: color .25s; }
@media (hover: hover) {
  .icon-box:hover { transform: translateY(-8px); box-shadow: 0 16px 38px rgba(30, 80, 120, .16); }
  .icon-box:hover::after { transform: scaleX(1); }
  .icon-box:hover > i { background: var(--blue); color: #fff; }
  .icon-box:hover h2, .icon-box:hover h3 { color: var(--blue); }
}
.icon-box h3 a, .icon-box h2 a { color: var(--heading); text-decoration: none; }
.icon-box-link:hover h3 a, .icon-box-link:hover h2 a { color: var(--blue); }
.icon-box h2 { font-size: 1.2rem; margin-bottom: .55rem; }
.icon-box p { margin: 0; font-size: .95rem; }
.photo-box { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.photo-box img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.photo-box-body { padding: 1.5rem 1.6rem 1.7rem; }

/* Home service grid */
.service-card { display: flex; flex-direction: column; border: 1px solid var(--line); box-shadow: none; padding: 1.8rem; }
.service-card p { margin-bottom: 1.1rem; }
.more-link { margin-top: auto; color: var(--blue); font-weight: 600; font-size: .92rem; font-family: "Raleway", sans-serif; }
.more-link i { display: inline; transition: margin-left .2s; }
.service-card:hover .more-link i { margin-left: .3rem; }
.contact-card { width: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .9rem; border-radius: 15px; background: var(--gradient-bar); color: #fff; padding: 1.8rem; }
.contact-card h3 { color: #fff; font-size: 1.45rem; margin: 0; }
.contact-card-phone { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; }
.contact-card-phone:hover { color: #fff; text-decoration: underline; }

/* Partners: equal cards, easy to scan at every width */
.partner-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem; }
.partner { flex: 0 0 calc((100% - 4.4rem) / 5); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem .8rem 1.1rem; text-align: center; font-size: .92rem; font-weight: 600; color: var(--heading); line-height: 1.3; transition: transform .25s, box-shadow .25s, border-color .25s; }
.partner-logo { display: flex; align-items: center; justify-content: center; height: 62px; margin-bottom: .8rem; }
.partner-logo img { max-height: 54px; max-width: 128px; width: auto; object-fit: contain; }
@media (hover: hover) {
  .partner:hover { transform: translateY(-5px); border-color: var(--blue); box-shadow: 0 12px 28px rgba(30, 80, 120, .13); }
}

/* Trust points */
.title-left h2 { text-transform: uppercase; position: relative; padding-bottom: 1rem; margin-bottom: 1.1rem; }
.title-left h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; border-radius: 3px; background: var(--blue); }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.trust-list li { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; color: var(--heading); font-weight: 600; }
.trust-list i { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--gradient-bar); color: #fff; font-size: 1.2rem; }

/* Closing contact panel */
.cta { padding: clamp(2.6rem, 5vw, 4rem) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; background: linear-gradient(115deg, #e8f2fa 0%, #cfe5f6 100%); border-radius: 15px; padding: clamp(1.7rem, 4vw, 2.6rem) clamp(1.5rem, 4vw, 3rem); }
.cta h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin-bottom: .5rem; }
.cta p { margin: 0; max-width: 72ch; }
.cta .btn { flex: none; }

/* Service pages */
.prose-center { max-width: 900px; margin: 0 auto; }
.prose-center p:last-child { margin-bottom: 0; }
.expertise-group h3 { text-transform: uppercase; font-size: 1.02rem; letter-spacing: .04em; padding-bottom: .7rem; border-bottom: 2px solid var(--blue); }
.arrow-list { list-style: none; margin: .8rem 0 0; padding: 0; }
.arrow-list li { position: relative; padding: .32rem 0 .32rem 1.6rem; }
.arrow-list li::before { content: "\F138"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .32rem; color: var(--blue); }
.why-item { display: flex; gap: .9rem; }
.why-item > i { color: var(--blue); font-size: 1.35rem; line-height: 1.35; }
.why-item p { margin: 0 0 .4rem; }
.why-item p:last-child { margin-bottom: 0; }

/* Team */
.team-member { height: 100%; background: #fff; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; text-align: center; padding-bottom: 1.2rem; }
.team-member img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; display: block; margin-bottom: 1rem; }
.team-member h3 { margin-bottom: .1rem; padding: 0 .6rem; }
.team-member p { margin: 0; padding: 0 .6rem; font-size: .95rem; }

/* Contact */
.info-panel { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 1.8rem; height: 100%; }
.info-row { display: flex; gap: 1rem; padding: .9rem 0; }
.info-row i { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 1.2rem; }
.info-row h3 { font-size: 1.05rem; margin-bottom: .1rem; }
.info-row p { margin: 0; overflow-wrap: anywhere; }
.contact-form { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: clamp(1.3rem, 3vw, 2rem); }
.form-label { font-weight: 600; font-size: .94rem; color: var(--heading); margin-bottom: .3rem; }
.form-control { border-radius: 6px; padding: .66rem .85rem; border-color: #c6ced9; }
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(31, 118, 184, .18); }
.field-error { color: #b42318; font-size: .86rem; margin-top: .25rem; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 6px; padding: .75rem 1rem; font-size: .95rem; }
.form-status.ok { background: #e7f6ec; color: #17603a; }
.form-status.err { background: #fdecea; color: #a02317; }

/* Long-form text */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.4rem; margin: 2.1rem 0 .6rem; }
.prose h2:first-child { margin-top: 0; }

/* Footer: the original layout, refined */
.site-footer { background: #fff; font-size: .94rem; }
.site-footer a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; transition: color .2s; }
.site-footer a:hover { color: var(--blue); }
.footer-top { padding: 2.4rem 0 1.5rem; border-top: 1px solid var(--line); }
.footer-logo { display: block; margin-bottom: .7rem; }
.footer-logo img { height: 50px; width: auto; display: block; }
.footer-about { margin: 0; }
.footer-about strong { color: var(--heading); }
.footer-title { position: relative; color: var(--heading); font-size: 1.02rem; padding-bottom: .5rem; margin-bottom: .7rem; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--gradient-bar); }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-links li { position: relative; padding: .14rem 0 .14rem 1.15rem; }
.footer-links li::before { content: "\F285"; font-family: "bootstrap-icons"; font-size: .72rem; position: absolute; left: 0; top: .4rem; color: var(--blue); transition: transform .2s; }
.footer-links li:hover::before { transform: translateX(3px); }
.footer-contact li { display: flex; align-items: center; gap: .6rem; padding: .22rem 0; }
.footer-contact i { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: .9rem; }
.footer-contact strong { color: var(--heading); }
.footer-contact a { white-space: nowrap; }
.footer-bottom { background: var(--gradient-bar); color: #fff; padding: .7rem 0; font-size: .88rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 2rem; }
.footer-bottom a { color: #fff; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 1020; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #1c8c4c; color: #fff; font-size: 1.45rem; box-shadow: 0 6px 16px rgba(0, 0, 0, .22); }
.whatsapp-float:hover { background: #157239; color: #fff; }

@media (max-width: 991.98px) {
  .navbar-brand { padding: .6rem 3.6rem .6rem 1rem; }
  .navbar-collapse { padding: .4rem 1rem .9rem; }
  .nav-link.active, .nav-link:hover, .nav-link:focus, .nav-link.show { box-shadow: none; text-decoration: underline; }
  .dropdown-menu { min-width: 0; box-shadow: none; }
  :root { --gradient: linear-gradient(165deg, #124f85 0%, #1a6aa8 55%, #2078ba 100%); }
  .partner { flex-basis: calc((100% - 2.2rem) / 3); }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 1.3rem; }
  .home-hero { background: var(--gradient); }
  .home-hero::after { display: none; }
  .home-hero-art { justify-content: center; background: #fff; border-radius: 12px; padding: 1rem; }
}
@media (max-width: 479.98px) {
  .brand-logo { height: 36px; }
  .navbar-brand { padding-right: 3rem; clip-path: polygon(0 0, 100% 0, calc(100% - 34px) 100%, 0 100%); }
  .marquee-track { gap: 2.6rem; }
  .marquee-track img { height: 32px; max-width: 112px; }
  .partner-grid { gap: .6rem; }
  .partner { flex-basis: calc((100% - 1.2rem) / 3); padding: .9rem .35rem .7rem; font-size: .76rem; }
  .partner-logo { height: 42px; margin-bottom: .5rem; }
  .partner-logo img { max-width: 84px; max-height: 38px; }
  .member { padding: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .icon-box, .icon-box::after, .icon-box > i, .icon-box h2, .icon-box h3 { transition: none; }
  .icon-box:hover { transform: none; }
  .marquee { width: 100%; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; gap: 1.6rem 2.6rem; }
  .marquee-track[aria-hidden="true"] { display: none; }
}
