/*
Theme Name: Bead
Description: A lightweight child theme built on Bootstrap.
Author: Lardi
Author URI: https://lardhi.info
Template: blankslate
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bootstrap-child
*/

/* Import Parent Theme Styles */
@import url("../blankslate/style.css");
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@100;200;300;400;500;600;700&family=Outfit:wght@100..900&family=Rubik:ital,wght@0,300..900;1,300..900&family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400..900&display=swap');
@font-face {
    font-family: 'BentonSans';
    src: url('fonts/BentonSans-Book.woff2') format('woff2'),
        url('fonts/BentonSans-Book.woff') format('woff'),
        url('fonts/BentonSans-Book.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'BentonSans';
    src: url('fonts/BentonSans-ExtraLight.woff2') format('woff2'),
        url('fonts/BentonSans-ExtraLight.woff') format('woff'),
        url('fonts/BentonSans-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'BentonSans';
    src: url('fonts/BentonSans-Light.woff2') format('woff2'),
        url('fonts/BentonSans-Light.woff') format('woff'),
        url('fonts/BentonSans-Light.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
body {
    font-family: 
    'IBM Plex Sans Arabic', 
    sans-serif;
    color: #fff;
    line-height: 4;
    background-color: #2b3a33;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.875rem;
}

/* --- Apply Playfair Display to English Text Only --- */

/* * Apply to all main headings (h1, h2, h3, etc.) 
 * when the language is English (`:lang(en)`)
 */
:lang(en) h1,
:lang(en) h2,
:lang(en) h3,
:lang(en) h4,
:lang(en) h5,
:lang(en) h6 {
    font-family: 'Playfair Display', serif;
}

:lang(en) body,
:lang(en) p,
:lang(en) li,
:lang(en) input,
:lang(en) select{
    font-family: 'BentonSans', serif!important; /* Raleway is another great font we discussed */
    font-weight: 400;
}


a {
    color: #fff;
    text-decoration: none;
}

p {
    line-height: 2;
}

strong {
    font-weight: 600;
}

h2 {
    font-size: 30px;
    /* font-weight: 500; */
    color: #e8cdbb;
    margin: 45px 0 20px 0;
    line-height: 2;
    transition: all 0.3s ease;
}

h2:hover {
    color: #b6957d;
}

img {
    transition: all 0.3s ease;
}

a img:hover {
    filter: brightness(0.8);
}

h3 {
    font-size: 20px;
    /* font-weight: 400; */
    color: #e8cdbb;
}

.word-wrapper {
    display: inline-block;
    overflow: hidden;
    padding: 9px 4px;
}

.text-showup {
    overflow: hidden;
}

.border-solid {
    border-style: solid;
}


/* preloading */

#transition-logo .logo-obj,
#overlay-transition-logo .logo-obj {
    fill: #e8cebb;
    stroke: #e8cebb;
    stroke-width: 0.5;
}

/* layout */

.max-700 {
    max-width: 700px;
    margin: 0 auto;
}

.wp-block-columns {
    padding: 60px 0;
}

.single .wp-block-columns {
    padding:0;
}

.fixed-top {
    z-index: 1500!important;
}

/* index */

.acf-description{
    max-width: 65%;
    margin: 20px auto;
    font-size: 30px;
    font-weight: 300;
    overflow: hidden;
    text-shadow: 2px 1px 5px rgba(0,0,0,0.3);
    line-height: 2;
}

.post-title {
    color: #e8cebb;
    margin: 0 auto;
    max-width: 65%;
}

#transition-screen {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    background-color: #24302b;
    z-index: 1000;
} 

#header-home {
    height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#header-home .post-title {
    display: inline-block; /* This is the key! It makes the width fit the text. */
    max-width: 100%;       /* A safety measure for small screens. */

    /* You can keep these from before for a clean look */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#header-home:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to top, rgba(43, 58, 51, 1), rgba(43, 58, 51, 0), rgba(43, 58, 51, 0));
    z-index: 1000;
}

.header-image-container {
    width: 20%;
    height: 0;
    position: absolute;
    z-index: 100;
    background-color: rgb(43, 58, 51);
}

.post-info {
    font-size: 1.5em;
    font-weight: 300;
    color: #fff;
    text-align: center;
    margin-top: 20px;
    z-index: 111;
}

.header-image-container:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
    z-index: 1;
}

.header-image-container img {
    width: 100%;
    height: 100%;   
    object-fit: cover;
    position: absolute;
    opacity: 0.9;
}

.scroll-animation {
    position: absolute;
    z-index: 1000;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
}

.scroll-animation p {
    opacity: 0.5;
}

.featured-section {
    background-color: #2b3a33;
}

.block-scroll {
    padding: 13px 30px 30px 30px;
    margin-left: -200px;
    position: relative;
    z-index: 1;
    margin-right: 40px;
    backdrop-filter: blur(10px);
    background: rgb(5 52 34 / 30%);
    border: 1px solid rgb(101 164 138 / 20%);
    box-shadow: 3px 4px 6px rgb(9 51 34 / 30%);
    border-radius: 12px;
}

.featured-section {
    position: relative;
    margin: 100px 0;
    background-image: url('./assets/images/logo-pattern.png');
    background-size: 60px;
    background-position: bottom;
    background-repeat: repeat;
    border-top: 5px solid #384741;
}

.featured-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, #2a3b34e8, #112a1f);
}

.featured-section > div {
    position: relative;
    z-index: 1;
}

.featured-section h3 {
    font-weight: 500;
}

.featured-section p {
    margin-top: 10px;
    color: #7c948a;
}

/* page */

.post-title-container {
    margin: 65px auto;
    width: 100%;
    text-align: center;
    font-size: 40px;
    max-width: 1100px;
    border: 3px solid #e9cebc;
}


/* header */

.header-container {
    z-index: 10;
}

.single-container {
    position: relative;
    z-index: 7;
}

.single-container .inner {
    margin-top: 50px;
}

#toggle {
    position: relative;
    width: 40px;
    height: 30px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    justify-content: center;
    z-index: 1100;
}

#toggle:before,
#toggle:after {
    content: "";
    display: block;
    height: 4px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

#toggle:before {
    width: 100%;
}

#toggle:after {
    width: 60%;
}

#toggle:hover::after {
    width: 100%;
}

header button {
    background: none;
    border: none;
    color: #fff;
}

header #logo img {
    width: 130px;
    height: auto;
}

.single header #logo {
    transform: none;
}

header a {
    color: #fff;
    text-decoration: none;
}

header nav ul {
    display: flex;
    gap: 30px;
}

header {
    transition: all 0.3s ease;
}

body.scrolled header {
    backdrop-filter: blur(10px);
    box-shadow: 1px 1px 8px rgb(37 55 47 / 57%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(31, 52, 42);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

#overlay .container {
    padding: 90px 60px 0 60px;
}

#overlay .container ul {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 26px;
    margin-top: 40px;
    font-weight: 400;
}

#overlay .container ul li {
    padding: 5px 0;
}

#overlay .main-menu {
    flex-direction: column;
}

.social-names {
    margin-top: 30px;
}

.social-names span {
    font-size: 20px;
    color: #fff;
    padding-left: 10px;
}

.social-names i {
    color: #0cac61;
}

#overlay .svg-logo {
    position: fixed;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    transform: translateX(70px);
    z-index: -1;
}

#overlay-transition-logo {
    width: 230px;
    height: 230px;
}

/* home */

.home-last-article {
    width: 800px;
    margin: 20px auto 5px auto;
    padding: 20px;
    border: 5px solid #384741;
    max-width: 90%;
}

.home-last-article a {
    font-size: 20px;
    color: #e8cebb;
    font-weight: 500;
}

.home-last-article img {
    max-width: 100%!important;
}

.home-last-article .wp-block-buttons {
    display: none;
}

footer {
    padding: 20px 0;
}

footer p, footer a.text-white {
    color: #7b8982!important;
}

@media (min-width: 600px) and (max-width: 900px) {

}

/* Styles for phones (screens up to 599px wide) */
@media (max-width: 599px) {

    .single h1 {
        font-size: 24px!important;
        line-height: 1.5;
    }

    h2 {
        font-size: 22px;
        font-weight: 600;
        margin: 39px 0 5px 0;
    }

    .single .single-container {
        z-index: 1200;
    }

    .single-container .container {
        padding: 0 20px;
    }

    .acf-description {
        max-width: 90%;
        font-size: 23px;
    }

    .block-scroll {
        margin: 0 20px;
    }

    .scroller-section .image-container {
        margin: -70px 0px;
    }

    .featured-section {
        padding: 40px 0;
    }

    .featured-section .wp-block-columns {
        padding: 5px 30px;
        text-align: center;
    }

    #overlay .container ul {
        font-size: 21px;
        gap: 4px;
    }

    #overlay .social-names {
        gap: 8px;
    }

    #overlay .social-names span {
        font-size: 18px;
    }

    #overlay-transition-logo .logo-obj {
        fill: #e8cebb7a;
        stroke: #e8cebb42;
    }

    #toggle {
        padding: 0 5px;
    }

    header #logo img {
        width: 120px;
    }

    .wp-block-latest-posts__featured-image.alignright {
        float: none;
    }

    .post-info .custom-logo {
        width: 150px!important;
        margin-bottom: 10px;
    }

    #overlay-logo img {
        width: 170px!important;
    }
}


.custom-logo {
    width: 250px;
    height: auto;
}

/* contact page */

.frm-fluent-form input,
.frm-fluent-form textarea {
    background-color: #f8f6f5;
    color: #313131;
    border: 1px solid #cebfb3;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 300;
    width: 100%;
    margin-bottom: 10px;
}

.frm-fluent-form input:focus,
.frm-fluent-form textarea:focus {
    outline: none;
    border: 1px solid #112a1f;
}

.frm-fluent-form input[type="submit"] {
    width: auto;
     margin: 0 auto;
    background-color: #112a1f;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-right-col :before {
    color: #112a1f;
}

.frm-fluent-form label {
    color: #112a1f;
    width: 100%;
}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
    color: #112a1f;
}

.page-id-58 #main-content {
    color: #2b3a33;
}

/* single */

body.single-post {
    color: #000;
    background-color: #fff;
}

.site-header {
    background-color: #2b3a33;
}

.single img {
    width: 100%;
}

.single-post .entry-content .wp-post-image {
    display: none;
}

.single h4,
.single h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #4b705e;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.single h4:after {
    content: "";
    display: block;
    flex: 1;
    height: 1px;
    background-color: #cdae99;
    margin-top: 10px;
}

.single h1 {
    font-size: 40px;
    font-weight: 500;
    color: #895c13;
    line-height: 1.5;
    text-align: center;
}

.single p,
.single li {
    color: #4e4e4e;
}

.single .entry-meta {
    color: #2b3a33;
    margin-bottom: 15px;
}

.author.vcard,.meta-sep {
    display: none;
}

ul.features li::before {
  font-family: 'Font Awesome 6 Free';
  content: '\f058'; /* swimming-pool icon */
  font-weight: 900; /* solid style */
  color: #2da044;
}

:lang(en) ul.features li::before {
  margin-right: 10px;
} 


:lang(ar) ul.features li::before {
  margin-left: 10px;
} 


/* --- Polylang Language Switcher Styling --- */


/* Main container for the language list */
.language-switcher ul {
    list-style: none; /* Remove list bullets */
    margin: 0;
    padding: 0;
    display: flex; /* Make list items horizontal */
    gap: 10px;     /* Space between language items */
}

/* Individual language list items */
.language-switcher li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Language links */
.language-switcher li a {
    color: #ffffff; /* Or whatever your header text color is */
    text-decoration: none;
    font-size: 16px; /* Adjust as needed */
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Make the links less dim on hover */
.language-switcher li a:hover {
    opacity: 1;
}

/* Style for the CURRENT active language */
.language-switcher .current-lang a {
    display: none;
}

.max-w-900 {
    max-width: 900px;
    margin: 0 auto;
}