/* Contact page (resources/views/site/contact.blade.php): navy hero with the head office, three team cards, two maps. */

.ksr-contact {
   --ksr-red: #e30b17;
   --ksr-navy: #04205a;
   position: relative;
   padding: 200px 0 80px;
   overflow: hidden;
   isolation: isolate;
   background: linear-gradient(160deg, #02133c 0%, #052a70 55%, #02133c 100%);
}

/* The red sweeps behind the cards. */
.ksr-contact::before,
.ksr-contact::after {
   content: "";
   position: absolute;
   z-index: -1;
   background: linear-gradient(160deg, #f0101d, #a3000b);
}

.ksr-contact::before { left: 0; bottom: 0; width: 34%; height: 56%; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.ksr-contact::after { right: 0; top: 32%; width: 46%; height: 34%; clip-path: polygon(100% 0, 100% 100%, 0 100%); }

.ksr-contact__top {
   display: grid;
   grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
   align-items: center;
   gap: 32px;
}

.ksr-contact__copy { padding: 10px 0 50px; color: #fff; }

.ksr-contact__eyebrow {
   display: flex;
   align-items: center;
   gap: 14px;
   margin: 0 0 10px;
   font-family: var(--font-family-headings);
   font-size: 24px;
   font-weight: 800;
   text-transform: uppercase;
   color: #ff4b52;
}

.ksr-contact__eyebrow::before,
.ksr-contact__eyebrow::after { content: ""; width: 46px; height: 3px; background: currentColor; }

.ksr-contact__title {
   margin: 0 0 16px;
   font-size: clamp(2.5rem, 4.6vw, 4.1rem);
   font-style: italic;
   font-weight: 800;
   line-height: 1.08;
   color: #fff;
}

.ksr-contact__text { max-width: 560px; margin: 0; font-size: 19px; line-height: 1.55; color: rgba(255, 255, 255, .9); }
.ksr-contact__swoosh { display: block; width: 290px; max-width: 80%; margin-top: 18px; color: var(--ksr-red); }

/* The photo's night sky dissolves into the navy; the cards cover its lower edge. */
.ksr-contact__office {
   align-self: end;
   width: 100%;
   height: auto;
   -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 92%, transparent), linear-gradient(transparent, #000 12%);
   mask-image: linear-gradient(90deg, transparent, #000 10%, #000 92%, transparent), linear-gradient(transparent, #000 12%);
   -webkit-mask-composite: source-in;
   mask-composite: intersect;
}

.ksr-contact__cards {
   position: relative;
   display: grid;
   grid-template-columns: repeat(3, minmax(0, 1fr));
   gap: 24px;
   margin-top: -10px;
}

.ksr-contact-card {
   position: relative;
   display: flex;
   flex-direction: column;
   min-height: 390px;
   padding: 30px 28px 140px;
   overflow: hidden;
   border-radius: 26px;
   background: linear-gradient(170deg, #fff, #e6edf9);
   box-shadow: 0 0 0 2px rgba(255, 255, 255, .5), 0 0 28px rgba(64, 140, 255, .45);
   color: #0c1a33;
}

.ksr-contact-card__icon {
   display: grid;
   place-items: center;
   width: 68px;
   height: 68px;
   margin-bottom: 16px;
   border-radius: 18px;
   font-size: 30px;
   color: var(--ksr-red);
   background: #fff;
   box-shadow: 0 8px 20px rgba(5, 34, 64, .16);
}

.ksr-contact-card h2 { margin: 0 0 14px; font-size: 25px; font-weight: 800; color: var(--ksr-navy); }

.ksr-contact-card ul {
   margin: 0 0 20px;
   padding: 0 0 18px;
   list-style: none;
   border-bottom: 1px solid #8fa0bf;
}

.ksr-contact-card li { margin: 0 0 8px; font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
.ksr-contact-card li i { width: 24px; color: var(--ksr-red); }
.ksr-contact-card li a { color: inherit; }
.ksr-contact-card li a:hover { color: var(--ksr-red); }

.ksr-contact-card__btn {
   position: relative;
   z-index: 1;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 12px;
   padding: 13px 18px;
   border: 2px solid var(--ksr-red);
   border-radius: 40px;
   font-weight: 700;
   font-size: 17px;
   color: #c50a14;
   background: #fff;
   transition: background .2s, color .2s;
}

.ksr-contact-card__btn:hover,
.ksr-contact-card__btn--solid { color: #fff; background: var(--ksr-red); }
.ksr-contact-card__btn--solid:hover { color: #fff; background: #b00711; }
.ksr-contact-card__btn:focus-visible { outline: 3px solid var(--ksr-navy); outline-offset: 3px; }

/* Waving flags in the bottom corner; multiplied so their white ground takes the card's colour. */
.ksr-contact-card--usa::after,
.ksr-contact-card--ghana::after {
   content: "";
   position: absolute;
   left: 0;
   bottom: 0;
   width: 310px;
   height: 131px;
   max-width: 100%;
   background: url("../images/contact/flag-usa.jpg") left bottom / 310px auto no-repeat;
   mix-blend-mode: multiply;
   -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
   mask-image: linear-gradient(90deg, #000 82%, transparent);
   pointer-events: none;
}

.ksr-contact-card--ghana::after { background-image: url("../images/contact/flag-ghana.jpg"); }

.ksr-map { height: 100%; display: flex; flex-direction: column; }
.ksr-map h3 { margin-bottom: 4px; }
.ksr-map iframe { width: 100%; height: 400px; margin-top: auto; border: 0; border-radius: 20px; background: #e8ecf1; }
#locations { scroll-margin-top: 90px; }

@media (max-width: 991.98px) {
   .ksr-contact { padding: 180px 0 60px; }
   .ksr-contact__top { grid-template-columns: 1fr; gap: 0; }
   .ksr-contact__copy { padding-bottom: 20px; }
   .ksr-contact__cards { grid-template-columns: 1fr; }
   .ksr-contact-card { min-height: 0; }
   .ksr-contact-card:last-child { padding-bottom: 30px; }
   .ksr-map iframe { height: 320px; }
}
