/* ==========================================================================
   Majarrah - main stylesheet
   Rules for the pricing / blog / team / payment-partners sections were removed
   along with that markup. Add them back only if the sections return.
   ========================================================================== */

:root {
    --brand: #218035;
    --brand-dark: #1a662a;
    --brand-tint: #f2f8f3;
    --ink: #23282b;
    --muted: #5c666b;
    --line: #e2e8e3;
    --footer-dark: #555743;
}

body {
    font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
    color: var(--ink);
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
}

/* Keyboard focus - visible on every interactive element */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid #ffb703;
    outline-offset: 3px;
    border-radius: 2px;
}

/* ============================= Header / nav ============================= */

.bg-first-color {
    background-color: var(--brand);
}

.topBar {
    background-color: var(--brand-dark);
}

.contactTop a {
    color: #ffffffe6;
    text-decoration: none;
    margin-inline-end: 20px;
    font-size: 15px;
}

.contactTop a:hover {
    color: #fff;
    text-decoration: underline;
}

.contactTop span {
    margin-inline-end: 4px;
}

#navbar li a {
    color: white;
}

#logo {
    font-weight: bold;
}

.mainMenu {
    margin-left: auto;
}

.mainMenu li a {
    margin-right: 10px;
    margin-left: 10px;
    text-transform: capitalize;
    position: relative;
    font-size: 18px;
}

.mainMenu li a:after {
    content: "";
    position: absolute;
    transition: width 400ms ease;
    left: 0px;
    right: 0px;
    border-top: 2px solid white;
    margin: 0 auto;
    width: 0px;
    bottom: -1px;
}

.mainMenu li a:hover:after,
.mainMenu li.active a:after {
    width: 30px;
}

.mainMenu li:last-child a {
    margin-right: 0px;
}

/* ================================ Hero ================================= */

.s-home {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(88vh, 760px);
    overflow: hidden;
}

.heroMedia {
    position: absolute;
    inset: 0;
    background-image: url("../img/cover.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Layered scrim instead of the old flat rgba(0,0,0,.6) wash: heaviest on the
   start (right) side where the copy sits and along the bottom, so the text stays
   readable while the photograph still reads as a photograph. The directions are
   physical because this page is RTL-only. */
.heroMedia::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to left, rgba(9, 30, 16, 0.94) 0%, rgba(9, 30, 16, 0.74) 45%, rgba(9, 30, 16, 0.28) 100%),
        linear-gradient(to top, rgba(9, 30, 16, 0.72) 0%, rgba(9, 30, 16, 0) 55%);
}

.heroInner {
    position: relative;
    z-index: 2;
    padding-top: 90px;
    padding-bottom: 100px;
}

/* Fluid type - one rule replaces the old fixed 64px plus two breakpoint overrides */
.heroTitle {
    color: white;
    font-weight: 700;
    font-size: clamp(34px, 5.6vw, 66px);
    line-height: 1.3;
    width: fit-content;
    margin-bottom: 18px;
    text-align: start;
}

/* Rotating phrase. Every word sits in the SAME inline-grid cell, so the grid
   sizes itself to the widest one and the heading's width never changes as the
   phrase cycles - no reflow, and only opacity/transform animate, both of which
   the compositor handles without repainting. */
.heroRotator {
    display: inline-grid;
    vertical-align: bottom;
}

.heroWord {
    grid-area: 1 / 1;
    color: #7ee08f;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(0.28em);
    transition: opacity 550ms ease, transform 550ms ease;
}

.heroWord.is-active {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .heroWord {
        transition: opacity 200ms linear;
        transform: none;
    }
}

.heroLead {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(16px, 1.55vw, 20px);
    line-height: 2;
    max-width: 660px;
    margin-bottom: 0;
    text-align: start;
}

.home-cta {
    margin-top: 34px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-readmore,
.btn-getstarted {
    font-size: 16px;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 10px;
    transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease, transform 250ms ease, box-shadow 250ms ease;
}

.btn-getstarted {
    color: white;
    background: var(--brand);
    border: 1px solid var(--brand);
    box-shadow: 0 10px 24px rgba(33, 128, 53, 0.35);
}

.btn-getstarted:hover {
    color: white !important;
    background: var(--brand-dark) !important;
    border-color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(33, 128, 53, 0.45);
}

.btn-readmore {
    background: rgba(255, 255, 255, 0.10);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-readmore:hover {
    color: var(--brand) !important;
    background: white !important;
    border-color: white;
    transform: translateY(-2px);
}

.heroScroll {
    position: absolute;
    bottom: 26px;
    left: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    /* base transform matches the keyframes so it stays centred even if the
       animation never runs */
    transform: translateX(-50%);
    animation: heroBob 2.2s ease-in-out infinite;
}

.heroScroll:hover {
    background: rgba(255, 255, 255, 0.16);
    color: white;
    text-decoration: none;
}

@keyframes heroBob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(7px); }
}

@media (prefers-reduced-motion: reduce) {
    .heroScroll { animation: none; transform: translateX(-50%); }
}

/* =============================== About ================================= */

.s-about {
    margin-top: 80px;
}

/* The logo is far shorter than the About copy (roughly 300px against 600px+),
   so on its own the two columns end badly out of balance. It sits in a panel
   that stretches to the text column and centres the mark inside it. */
.aboutPanel {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-tint);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 40px 34px;
    margin-bottom: 25px;
}

/* This is a logo, not a photograph - it must never be cropped or stretched.
   A forced height with object-fit:cover cut the wordmark off the sides (filling
   a 500px-tall box with this 1684x1191 image needs 707px of width, more than the
   column has). Sizing by width with height:auto keeps the whole logo visible.
   multiply drops the JPEG's white box into the panel tint so it has no seam. */
.aboutImg {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    mix-blend-mode: multiply;
}

.aboutContent {
    padding-inline-start: 12px;
}

.title-about {
    font-weight: bold;
    font-size: 36px;
    text-align: start;
    margin-bottom: 20px;
}

.p-about {
    font-size: 19px;
    line-height: 2;
    text-align: justify;
    color: var(--muted);
}

.p-about:last-child {
    margin-bottom: 0;
}

/* The four highlights used to sit inside the text column, which is what made it
   tower over the logo. As a full-width row they balance the section and read
   better than a bullet list. */
.aboutHighlights {
    margin-top: 45px;
}

.aboutHighlight {
    height: 100%;
    text-align: center;
    padding: 26px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    margin-bottom: 24px;
    transition: border-color 300ms ease, transform 300ms ease, box-shadow 300ms ease;
}

.aboutHighlight:hover {
    border-color: var(--brand);
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(33, 128, 53, 0.12);
}

.aboutHighlight > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand);
    font-size: 24px;
    margin-bottom: 12px;
}

.aboutHighlight p {
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
}

/* ============================== Services =============================== */

.feature-content {
    border: 1px solid var(--line);
    box-shadow: inset 0em 0em var(--brand), 0px 0px 10px #c0c0c033;
    border-radius: 6px;
    padding: 30px 20px;
    height: 100%;
    transition: box-shadow 700ms ease-in, color 700ms ease-in;
}

.feature-content span {
    font-size: 60px;
    color: var(--brand);
    padding: 10px;
}

.feature-title {
    font-weight: bold;
    font-size: 22px;
    margin-top: 10px;
    text-align: start;
}

.feature-content p {
    color: var(--muted);
    line-height: 1.9;
    text-align: justify;
}

.feature-content:hover {
    color: white;
    box-shadow: inset 50em 0em var(--brand);
}

.feature-content:hover span,
.feature-content:hover p {
    color: white;
}

/* =============================== Gallery =============================== */

.s-work {
    margin-top: 50px;
}

.content-work {
    overflow: hidden;
    position: relative;
    border-radius: 6px;
}

.content-work div {
    background: rgba(0, 0, 0, 0.5);
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 10;
    opacity: 0;
    transition: opacity 400ms ease;
}

.content-work div a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.9);
    font-size: 60px;
    text-decoration: none;
}

.content-work img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    transition: transform 400ms ease, filter 400ms ease;
    z-index: 5;
}

.content-work:hover div,
.content-work:focus-within div {
    opacity: 1;
}

.content-work:hover img {
    filter: grayscale(100%);
    transform: scale(1.15);
}

/* ============================ Section titles ============================ */

.mainTitle {
    position: relative;
    font-size: 38px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
}

.mainTitle::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    border-top: 3px solid var(--brand);
    margin: 0 auto;
    width: 60px;
}

/* Standfirst under a section title */
.sectionLead {
    text-align: center;
    font-size: 18px;
    line-height: 1.9;
    color: var(--muted);
    max-width: 760px;
    margin: -30px auto 45px;
}

/* ============================== Stats strip ============================= */

.statsStrip {
    background: var(--brand);
    padding: 40px 0 30px;
    color: white;
}

.statItem {
    text-align: center;
    margin-bottom: 12px;
}

.statItem > span {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.65);
    display: block;
    margin-bottom: 6px;
}

.statNum {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
}

.statLabel {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 4px;
}

/* ========================== Vision and mission ========================== */

.s-vm {
    margin-top: 70px;
}

.vmCard {
    height: 100%;
    background: var(--brand-tint);
    border-radius: 8px;
    border-inline-start: 4px solid var(--brand);
    padding: 32px 28px;
    margin-bottom: 25px;
}

.vmIcon {
    font-size: 42px;
    color: var(--brand);
    display: block;
    margin-bottom: 10px;
}

.vmCard h3 {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 12px;
    text-align: start;
}

.vmCard p {
    color: var(--muted);
    line-height: 2;
    margin-bottom: 0;
    text-align: justify;
}

/* ============================== Containers ============================= */

.s-containers {
    margin-top: 80px;
    padding: 60px 0;
    background: var(--brand-tint);
}

.containerCard {
    display: block;
    height: 100%;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 26px 14px;
    margin-bottom: 25px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: border-color 300ms ease, transform 300ms ease, box-shadow 300ms ease;
}

.containerCard:hover {
    border-color: var(--brand);
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(33, 128, 53, 0.15);
    text-decoration: none;
    color: inherit;
}

.containerSize {
    font-size: 40px;
    font-weight: 700;
    color: var(--brand);
    line-height: 1.1;
}

.containerSize small {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
    margin-top: 2px;
}

.containerName {
    margin-top: 10px;
    font-size: 15px;
    color: var(--ink);
    min-height: 42px;
}

.containerCta {
    background: var(--brand);
    border-color: var(--brand);
}

.containerCta .containerSize,
.containerCta .containerName {
    color: white;
}

/* ============================== What sets us apart ===================== */

.s-why {
    margin-top: 80px;
}

.whyItem {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 26px;
}

.whyItem > span {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whyItem p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.9;
    font-size: 17px;
    text-align: justify;
}

.valuesTitle {
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 22px;
}

.valueChips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.valueChip {
    background: var(--brand);
    color: white;
    border-radius: 40px;
    padding: 9px 20px;
    font-size: 15px;
}

/* ================================ Clients ============================== */

.s-clients {
    margin-top: 80px;
    padding: 60px 0 40px;
    background: var(--brand-tint);
}

.clientGroup {
    margin-bottom: 34px;
}

.clientGroupTitle {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--line);
    text-align: start;
}

.clientGroupTitle span {
    color: var(--brand);
    margin-inline-end: 8px;
}

.clientChips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.clientChip {
    background: white;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 9px 16px;
    font-size: 15px;
    color: var(--ink);
    transition: border-color 250ms ease, color 250ms ease;
}

.clientChip:hover {
    border-color: var(--brand);
    color: var(--brand);
}

/* =============================== Contact =============================== */

#contact {
    margin-top: 80px;
}

.topBarNote {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    margin-inline-start: 10px;
}

.branchRow {
    margin-bottom: 30px;
}

.branchCard {
    height: 100%;
    padding: 28px 22px;
    margin-bottom: 25px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    text-align: center;
    transition: border-color 300ms ease, transform 300ms ease, box-shadow 300ms ease;
}

.branchCard:hover {
    border-color: var(--brand);
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(33, 128, 53, 0.15);
}

/* Jazan is the branch this site has always fronted - keep it visually primary */
.branchCardMain {
    border-color: var(--brand);
    box-shadow: 0 6px 18px rgba(33, 128, 53, 0.12);
}

/* Sits in the branch grid but is a contact channel, not a branch */
.branchCardMail {
    background: var(--brand-tint);
}

.branchName {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.branchName span {
    color: var(--brand);
    margin-inline-end: 6px;
}

.branchPhone {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    margin-bottom: 16px;
    direction: ltr;
}

.branchPhone:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

.branchActions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.branchBtn {
    flex: 1 1 auto;
    padding: 9px 14px;
    border-radius: 4px;
    border: 1px solid var(--brand);
    color: var(--brand);
    background: white;
    font-size: 15px;
    text-decoration: none;
    transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease;
    white-space: nowrap;
}

.branchBtn:hover {
    background: var(--brand);
    color: white;
    text-decoration: none;
}

.branchBtnWa {
    background: var(--brand);
    color: white;
}

.branchBtnWa:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: white;
}

/* ================================ Wave ================================= */

.svgWave {
    margin-top: -100px;
    padding: 0px;
    margin-bottom: -10px;
}

/* =============================== Footer ================================ */

.footerSection {
    background: var(--brand);
}

.footerContentWorld {
    position: relative;
}

/* The image fills the box exactly so the pin below can be placed in
   percentages and stay on target at any container width. */
.footerContentWorld img {
    display: block;
    width: 100%;
    height: auto;
}

/* Location pin over Jazan, Saudi Arabia (16.89N, 42.55E).
   Anchor derived from the map's own dot lattice: the Red Sea coast dot at
   lattice col 77 / row 29 = x 903px, y 508px of the 1600x1067 source.
   Offsets are in em (not transform) because .faa-bounce animates transform
   and would override it - the negative margins put the pin's tip on the anchor. */
.footerContentWorld span {
    color: white;
    position: absolute;
    z-index: 100;
    left: 56.44%;
    top: 47.61%;
    font-size: 30px;
    line-height: 1;
    margin-left: -0.5em;
    margin-top: -1em;
}

.footerContentP h2 {
    color: white;
    font-weight: 700;
    font-size: 28px;
    text-align: start;
}

.footerContentP p {
    color: rgba(255, 255, 255, 0.85);
    padding-top: 10px;
    line-height: 1.9;
    text-align: justify;
}

.footerContentP ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding-inline-start: 0;
}

.footerContentP ul li {
    color: rgba(255, 255, 255, 0.85);
    margin-inline-end: 18px;
}

.footerContentP ul li span {
    color: white;
    margin-inline-end: 4px;
}

.footerContentP ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.footerContentP ul li a:hover {
    color: white;
    text-decoration: underline;
}

.socialNav li a {
    color: #ffffffe6;
    text-decoration: none;
    font-size: 18px;
}

.socialNav li a:hover {
    color: white;
}

/* X logo. icofont ships the pre-2023 Twitter bird and has no X glyph, so this
   one icon is an inline SVG. Sized in em and filled with currentColor so it
   matches its icofont siblings and inherits the same hover colour. */
.socialX {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.socialX svg {
    width: 0.92em;
    height: 0.92em;
    fill: currentColor;
    display: block;
}

.socialNav li {
    padding: .5rem 0.5rem;
}

.contactTop,
.copyRight {
    padding: 10px 0px;
    color: #ffffffe6;
    margin-bottom: 0;
    text-align: start;
}

.copyRight p {
    margin-bottom: 0;
    text-align: start;
}

.lastGrid {
    background: var(--footer-dark) !important;
}

.copyRight a {
    color: white;
    text-decoration: underline;
}
