/*
Theme Name: Almahwar Theme
Author: Mustafa Elfituri
Version: 1.0
*/


:root {
    --dark-blue: #0B2E59;
    --yellow: #FFC107;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --card-bg: #f2f4f8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--white);
    color: #1a1a1a;
    line-height: 1.8;
}

/* Header - White background */
header {
    background: var(--white);
    color: var(--dark-blue);
    padding: 5px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Logo styling - larger image inside */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    width: 100px;
    height: 100px;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.logo-text-main {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark-blue);
    letter-spacing: 0.5px;
}

.logo-text-sub {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;  /* Slightly darker than before for better contrast */
    margin-top: 2px;
    letter-spacing: 0.3px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

nav a {
    color: #1a3b5c;  /* Darker blue for navigation text - slightly darker than --dark-blue */
    text-decoration: none;
    margin-right: 22px;
    font-weight: 600;
    transition: 0.3s;
    white-space: nowrap;
    font-size: 16px;
    position: relative;
    padding-bottom: 3px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--yellow);
    transition: width 0.3s ease;
}

nav a:hover {
    color: #0a1e33;  /* Even darker on hover for better interaction feedback */
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section - adjusted with less white in gradient */
.hero {
    background: linear-gradient(
        135deg,
        #0B2E59 0%,
        #1a4a7a 60%,
        #e6f0ff 150%
    );
    color: var(--white);
    padding: 150px 8%;
    text-align: center;
    position: relative;
}

.hero h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.95;
}

/* Buttons */
.btn {
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    margin: 6px;
    transition: 0.3s;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-primary {
    background: var(--yellow);
    color: var(--dark-blue);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: #e6ae06;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--yellow);
    color: var(--yellow);
}

.btn-outline:hover {
    background: var(--yellow);
    color: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Sections */
section {
    padding: 100px 8%;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: "";
    width: 80px;
    height: 4px;
    background: var(--yellow);
    display: block;
    margin: 15px auto 0;
    border-radius: 2px;
}

.about, .compliance {
    background: var(--card-bg);
    text-align: center;
    border-radius: 20px;
    padding: 100px 8%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.about p, .compliance p {
    font-size: 18px;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.9;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid #e3e8ef;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.card:hover {
    background: #e9eef5;
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card h4 {
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 700;
}

.card p {
    color: #1a1a1a;
    line-height: 1.8;
    font-size: 16px;
}

/* Footer */
footer {
    background: var(--dark-blue);
    color: var(--white);
    text-align: center;
    padding: 70px 8%;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--yellow), transparent);
}

footer h3 {
    margin-bottom: 20px;
    font-size: 32px;
    color: var(--yellow);
}

footer p {
    margin: 15px 0;
    opacity: 0.9;
    font-size: 18px;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--yellow);
}

.highlight {
    color: var(--yellow);
    font-weight: 700;
}

@media(max-width:768px){
    .hero h2 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
    .hero {
        padding: 100px 5%;
        background-attachment: scroll;
    }
    header {
        flex-direction: column;
        text-align: center;
        padding: 10px 5%;
    }
    nav a {
        margin: 0 10px;
        font-size: 14px;
        color: #1a3b5c;  /* Consistent darker color on mobile */
    }
    .logo-container {
        flex-direction: row;
        text-align: center;
        justify-content: center;
    }
    .logo-image {
        width: 85px;
        height: 85px;
    }
    .logo-text-main {
        font-size: 20px;
    }
    .logo-text-sub {
        font-size: 11px;
        color: #4a5568;  /* Consistent darker color on mobile */
    }
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    section {
        padding: 70px 5%;
    }
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
}

@media(max-width:480px){
    .hero h2 {
        font-size: 28px;
    }
    .hero p {
        font-size: 14px;
    }
    .hero {
        padding: 80px 5%;
    }
    header {
        padding: 10px 5%;
    }
    nav a {
        margin: 0 5px;
        font-size: 12px;
    }
    .logo-container {
        flex-direction: column;
        gap: 10px;
    }
    .logo-image {
        width: 70px;
        height: 70px;
    }
    .logo-text-main {
        font-size: 18px;
    }
    .logo-text-sub {
        font-size: 10px;
    }
    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    section {
        padding: 50px 5%;
    }
    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    footer {
        padding: 50px 5%;
    }
    footer h3 {
        font-size: 28px;
    }
    footer p {
        font-size: 16px;
    }
}

