@font-face {
    font-family: 'KFGQPC Uthman Taha Naskh';
    src: url('../../assets/fonts/font_quran.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*:focus {
    outline: none !important;
}

*:focus-visible {
    outline: none !important;
    box-shadow: var(--focus-glow) !important;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--md-bg);
    color: var(--md-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color var(--md-motion-duration-medium) var(--md-motion-easing-standard),
        color var(--md-motion-duration-medium) var(--md-motion-easing-standard);
}

.layout-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background-color: #1B4332; /* Brand green background */
    border-bottom: none;
    z-index: 1000;
    display: flex;
    justify-content: center;
    transition: background-color var(--md-motion-duration-medium) var(--md-motion-easing-standard);
}

.layout-header-container {
    width: 100%;
    max-width: 1140px;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.layout-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #FFFFFF; /* White logo link */
}

.layout-logo-icon {
    width: 34px;
    height: 34px;
    background-color: #FFFFFF; /* White icon container */
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B4332; /* Green text inside logo container */
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.layout-logo-text {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.3px;
    line-height: 1.2;
    color: #FFFFFF; /* White logo text */
}

.layout-logo-subtext {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7); /* Muted white logo subtext */
    font-weight: 500;
    display: block;
}

.layout-home-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #FFFFFF;
    min-width: 0;
}

.layout-home-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    text-decoration: none;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.layout-home-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.layout-home-brand-text {
    font-family: var(--font-family);
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.layout-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.layout-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7); /* Muted white nav links */
    font-size: 10px;
    font-weight: 600;
    gap: 3px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: color var(--md-motion-duration-short) var(--md-motion-easing-standard),
        background-color var(--md-motion-duration-short) var(--md-motion-easing-standard);
    white-space: nowrap;
}

.layout-nav-link .material-symbols-rounded {
    font-size: 20px;
    transition: transform var(--md-motion-duration-short) var(--md-motion-easing-emphasized);
}

.layout-nav-link:hover .material-symbols-rounded {
    transform: translateY(-2px);
}

.layout-nav-link:hover {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.1);
}

.layout-nav-link.active {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.15);
}

.layout-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.layout-header--home .layout-header-container {
    position: relative;
    justify-content: flex-end;
    gap: 12px;
}

.layout-header--home {
    background-color: var(--md-surface);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background-color var(--md-motion-duration-medium) var(--md-motion-easing-standard),
        border-bottom-color var(--md-motion-duration-medium) var(--md-motion-easing-standard),
        top var(--md-motion-duration-medium) var(--md-motion-easing-standard),
        left var(--md-motion-duration-medium) var(--md-motion-easing-standard),
        right var(--md-motion-duration-medium) var(--md-motion-easing-standard),
        height var(--md-motion-duration-medium) var(--md-motion-easing-standard),
        border-radius var(--md-motion-duration-medium) var(--md-motion-easing-standard),
        box-shadow var(--md-motion-duration-medium) var(--md-motion-easing-standard);
}

.layout-header--home.is-scrolled {
    top: 8px;
    left: 16px;
    right: 16px;
    width: auto;
    height: 56px;
    border-bottom: none;
    border-radius: var(--radius-button);
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.layout-header--home .layout-home-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-right: 0;
    width: auto;
    height: auto;
    min-height: 40px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    color: #1B4332;
    text-decoration: none;
}

.layout-header--home .layout-home-logo:hover {
    background: transparent;
    border: none;
}

.layout-header--home .layout-home-logo:active {
    background: transparent;
}

.layout-header--home .layout-home-logo-image {
    width: auto;
    height: 100%;
    max-width: min(48vw, 160px);
    object-fit: contain;
    display: block;
    opacity: 0.94;
    filter: contrast(0.94) saturate(0.92);
}

.layout-header--home .layout-home-logo-text {
    font-family: var(--font-family);
    font-size: clamp(18px, 2.4vw, 24px);
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.25px;
    color: #1B4332;
    white-space: nowrap;
}

.layout-header--home .layout-controls {
    margin-left: auto;
}

.layout-header--home.is-scrolled .layout-home-logo {
    min-height: 38px;
}

.layout-header--home.is-scrolled .home-header-cta {
    background-color: #1B4332;
    color: #FFFFFF;
}

.layout-header--home.is-scrolled .home-header-cta:hover {
    background-color: #123124;
    color: #FFFFFF;
}

.layout-header--home.is-scrolled .home-header-cta:active {
    background-color: #163829;
}

.layout-header--home .home-header-cta {
    background-color: #1B4332;
    color: #FFFFFF;
    min-height: 40px;
    padding: 0 18px;
    border-radius: var(--radius-button);
    text-decoration: none;
    border: none;
    box-shadow: none;
    line-height: 1;
}

.layout-header--home .home-header-cta:hover {
    background-color: #123124;
    color: #ffffff;
    transform: none;
}

.layout-header--home .home-header-cta:active {
    background-color: #163829;
}

.layout-header--home .home-header-cta .material-symbols-rounded {
    font-size: 18px;
}

.layout-header--home .home-header-cta {
    gap: 0;
}

.layout-header--home .home-header-cta span:last-child {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    margin-top: 0;
}

.layout-main {
    flex: 1;
    margin-top: 72px;
    display: flex;
    flex-direction: column;
}

.layout-section {
    padding: 48px 24px;
    display: flex;
    justify-content: center;
    background-color: var(--md-bg);
    transition: background-color var(--md-motion-duration-medium) var(--md-motion-easing-standard);
}

.layout-section-container {
    width: 100%;
    max-width: 1140px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.layout-section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.layout-section-tag {
    color: #1B4332;                            /* scoped brand color for landing sections */
    font-size: var(--md-type-label-small-size); /* 11px — Label Small */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;                       /* custom kicker spacing */
    line-height: var(--md-type-label-small-lh);
}

.layout-section-title {
    font-size: clamp(22px, 4vw, var(--md-type-headline-large-size));
    font-weight: 600;
    line-height: 1.2;
    color: var(--md-text);
    letter-spacing: -0.5px;
}

.layout-section-subtitle {
    font-family: var(--font-family);
    font-size: var(--md-type-body-medium-size); /* 14px — Body Medium */
    letter-spacing: 0.25px;
    line-height: var(--md-type-body-medium-lh);
    color: var(--md-text-sub);
}

.layout-footer {
    background-color: var(--md-surface-low);
    padding: 32px 24px 40px;
    display: flex;
    justify-content: center;
}

.layout-footer-container {
    width: 100%;
    max-width: 1140px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.layout-footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.layout-footer-title {
    font-size: 13px;
    font-weight: 600;
    color: #E2E4E9;
    letter-spacing: 0.3px;
}

.layout-footer-text {
    font-size: var(--md-type-body-medium-size);
    color: #5C6370;
    line-height: 1.65;
}

.layout-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.layout-footer-link {
    text-decoration: none;
    color: #5C6370;
    font-size: var(--md-type-body-medium-size);
    transition: color var(--md-motion-duration-short) var(--md-motion-easing-standard);
}

.layout-footer-link:hover {
    color: #E2E4E9;
}

.layout-footer-copy {
    font-size: var(--md-type-body-small-size);  /* 12px — Body Small */
    letter-spacing: 0.4px;
    line-height: var(--md-type-body-small-lh);
    color: #3E4246;
}

.layout-footer--home {
    background-color: #1B4332;
    padding: 24px 24px 22px;
}

.layout-footer--home .layout-footer-inner--home {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.layout-footer--home .layout-footer-copy {
    display: block;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--md-surface);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 24px;
    transform: translateX(100%);
    transition: transform var(--md-motion-duration-medium) var(--md-motion-easing-emphasized);
}

.mobile-nav-overlay.open {
    transform: translateX(0);
}

.mobile-nav-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--md-text);
    font-size: 16px;
    font-weight: 500;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    transition: background-color var(--md-motion-duration-short) var(--md-motion-easing-standard);
}

html {
    height: 100%;
}

body {
    background-color: var(--md-bg);
    min-height: 100%;
}
