/* =========================
   CSS Variables
   ========================= */
:root {
    /* Color Palette */
    --brown: #5b4d44;
    --light-brown: #a26733;
    --cream: #FFF8F1;
    --caramel: #D2B48C;
    --black: #000;
    --dark-brown: #8b4b2c;
	--grey: #888;

    /* Font Families */
    --sans-serif: Arial, sans-serif;
    --serif: "Georgia", "Times New Roman", serif;
	
	/* Font Sizes */
	--font-size-small: 1.1em;
    --font-size-medium: 1.3em;
    --font-size-large: 1.5em;
    --font-size-xlarge: 2em;
    --font-size-xxlarge: 2.4em;
    --font-size-huge: 6em;

	/* Font Size Variables */
	--font14: 0.875em; /* 14px */
	--font16: 1em;      /* 16px */
	--font18: 1.125em; /* 18px */
	--font20: 1.25em;   /* 20px */
	--font24: 1.5em;    /* 24px */
	--font28: 1.75em;   /* 28px */
	--font30: 1.875em;  /* 30px */

    /* Other Variables */
    --transition-speed: 0.3s;
    --border-radius-small: 4px;
    --border-radius-medium: 8px;
    --border-radius-large: 10px;
    --border-radius-xlarge: 14px;
    --border-width: 3px;
}

/* Overlay for all links and buttons */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Ensure it's on top */
}

.spinner {
    border: 12px solid #a26733; /* light-brown */
    border-top: 12px solid #5b4d44; /* brown */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

/* Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Font global */
html {
  font-size: 1.0em;
}	
/* =========================
   Accessibility Base Styles
   ========================= */
/* Skip Navigation */
.skip-nav {
    position: absolute;
    left: -999px;
    width: 1px;
    height: 1px;
    top: auto;
}

.skip-nav:focus {
    display: inline-block;
    height: auto;
    width: auto;
    position: static;
    padding: 10px 20px;
    background: var(--cream);
    color: var(--brown);
    z-index: 100;
}

/* Focus States */
a:focus,
button:focus,
[role="button"]:focus {
    outline: 3px solid var(--light-brown);
    outline-offset: 2px;
}

/* ARIA Role Styles */
[role="banner"],
[role="navigation"],
[role="main"],
[role="contentinfo"],
[role="region"] {
    width: 100%;
    margin: 0 auto;
}

/* =========================
   General Styles
   ========================= */
body {
    background-color: var(--cream);
    font-family: var(--sans-serif);
    color: #333;
    margin: 0;
    padding: 0;
}

/* =========================
   Header Styles
   ========================= */
.header-container {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 5px;
    position: relative;
}

.logo-container {
    flex: 0 0 auto;
}

.header-title {
    font-size: 1.6em;
    font-weight: bold;
    color: var(--brown);
    font-family: var(--serif);
}

.header-content {
    flex: 1 1 60%;
    font-size: 1.9em;
    color: var(--brown);
    font-family: var(--serif);
    text-align: left;
    line-height: 1.4;
    padding-left: 10px;
}

.logo {
    width: 10vw;
    height: auto;
}

/* =========================
   Navigation Styles
   ========================= */
.navbar {
    display: flex;
    justify-content: space-evenly;
    padding: 10px;
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--cream);
    transition: max-height var(--transition-speed) ease-out;
    overflow: hidden;
}
.nav-item {
    width: auto;
    text-align: center;
    font-size: 1.2em;
    font-family: var(--sans-serif);
    font-weight: bold;
    background-color: transparent;
    padding: 10px 0;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}
.nav-item a {
    color: var(--light-brown);
    text-decoration: none;
    display: block;
}
.active-tab {
	background-color: var(--cream);
	border-top: solid 4px var(--black);
}
.active-tab a {
	color: var(--black);
}
.inactive-tab {
	background-color: var(--cream);
	border-top: solid 1px var(--caramel);
}
.nav-item a:hover {
	color: var(--black);
}
.inactive-tab:hover {
    border-top: solid 4px var(--black)
}
/* Show menu icon only on small screens */
.menu-icon {
    display: none; /* Hide by default */
}

/* =========================
   Text Styles
   ========================= */
.big-letter {
    font-weight: bold;
    font-size: 2em;
    line-height: 1;
}

/* =========================
   Background Section Styles
   ========================= */
.background-section {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.background-video:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--light-brown);
}

.foreground-text {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 248, 241, 0.8);
    padding: 20px;
    border-radius: var(--border-radius-large);
    color: var(--black);
    text-align: center;
    font-family: var(--serif);
    line-height: 1.6;
    z-index: 1;
}

.main-title {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--brown);
}

.main-paragraph {
    font-size: var(--font-size-medium);
}

/* =========================
   Center Main Content Styles
   ========================= */
.center-main {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.announce {
    font-size: var(--font-size-xxlarge);
    font-weight: bold;
    color: var(--brown);
    margin-bottom: 20px;
}

.main-text {
    font-size: var(--font-size-medium);
    letter-spacing: 0.11em;
    text-align: justify;
}

/* =========================
   Button Styles
   ========================= */
.brown_btn {
    background-color: var(--light-brown);
    color: var(--cream);
    border: none;
    border-radius: var(--border-radius-xlarge);
    padding: 10px 20px;
    font-size: var(--font-size-xlarge);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color var(--transition-speed) ease;
}

.brown_btn:hover {
    background-color: var(--dark-brown);
}

.center-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 6vh;
}

/* =========================
   Tease Section Styles
   ========================= */
.tease-main {
    width: 100%;
    background-color: var(--caramel);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    box-sizing: border-box;
    height: 60vh;
}

.tease-item {
    width: 280px;
    height: 320px;
    margin: 0 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tease-item img {
    width: 280px;
    height: 320px;
    object-fit: cover;
    border-radius: var(--border-radius-medium);
}

.tease-text {
    background-color: var(--cream);
    color: var(--black);
    padding: 10px;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
    font-weight: bold;
    border-radius: var(--border-radius-small);
}

/* =========================
   Story Section Styles
   ========================= */
.story {
    width: 100%;
    padding: 40px 20px;
    box-sizing: border-box;
    text-align: center;
}

.story-header-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8vh;
    margin-bottom: 8vh;
}

.story-header {
    text-align: right;
    font-size: var(--font-size-huge);
    font-weight: bold;
    color: var(--brown);
}

.story-header-container img {
    width: 40vw;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius-medium);
}

.story-top {
    font-size: var(--font-size-xlarge);
    font-weight: bold;
    color: var(--brown);
    margin-top: 20px;
}

.story-us {
    font-size: var(--font-size-medium);
    color: var(--black);
    margin-bottom: 20vh;
    line-height: 1.6;
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    text-align: justify;
}

.hr-brown {
    border: none;
    height: 4px;
    background-color: var(--brown);
    max-width: 80vw;
    margin: 20px auto;
}

.brown-link {
    color: var(--dark-brown);
    font-size: var(--font-size-small);
    cursor: pointer;
    text-decoration: none;
}

.brown-link:hover {
    color: var(--brown);
    text-decoration: underline;
}

/* =========================
   Footer Section Styles
   ========================= */
.footer {
    background-color: var(--caramel);
    height: 30vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content {
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text p {
    margin: 5px 0;
    color: var(--black);
    font-size: var(--font-size-xlarge);
    font-family: var(--sans-serif);
}

.footer-header {
    font-size: 2.2em;
    font-weight: bold;
}

.footer-logo img.footer-image {
    max-height: 80%;
    height: auto;
    width: auto;
}

/* =========================
   Responsive Styles
   ========================= */
@media (max-width: 768px) {
	/* Font global */
	html {
	  font-size: 0.8em;
	}	   
	.header-title {
		font-size: 1.4rem;
		font-weight: bold;
	}
	.header-content {
		font-size: 1.2em;
		text-align: center;
		line-height: 1.4;
		padding-top: 10px;
	}	
    .logo {
		width: 70vw;
		height: auto;
	}
    .menu-icon {
        display: block; /* Show on small screens */
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 2em;
		font-weight: bold;
        color: var(--light-brown);
        cursor: pointer;
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
        z-index: 10; /* Ensure it appears above other elements */
    }

    /* Adjust header-container for small screens */
    .header-container {
        display: flex;
        flex-direction: column; /* Stack items */
        align-items: center; /* Center content */
        padding-top: 10vh; /* Add space for the menu icon */
    }

    header {
        order: 1; /* Move header below the menu */
        text-align: center; /* Center header text */
    }

    .navbar {
        flex-direction: column; /* Stack navigation items */
        max-height: 0;
        transition: max-height 0.5s ease-in-out;
        margin-top: auto; /* Space from menu icon */
    }

    .navbar.active {
        max-height: 1000px; /* Allow for navigation to show */
    }

    .nav-item {
        width: 100%;
        padding: 15px 0;
        background-color: var(--cream);
        border-bottom: 1px solid #ddd;
    }

    .nav-item a {
		color: var(--light-brown);
        font-size: 1.1em;
		text-decoration: none;
		display: block;
    }

    .active-tab {
        background-color: var(--cream);
        border-top: solid 4px var(--black);
		border-bottom: solid 4px var(--black)
    }
    .active-tab a {
        color: var(--black);
    }
	.inactive-tab {
        background-color: var(--cream);
        border-top: none;
    }
	
	/* prevent content being hidden behind the expanded navigation menu */
    .navbar.active ~ main {
        margin-top: 30vh;
    }
    
    body.menu-open .logo {
        position: fixed;
        top: 1vh;
        left: 1vw;
        width: 35vw;
        z-index: 9;
        transition: all 0.6s ease;
    }

    /* Add this new rule to shift the header content right */
    body.menu-open .header-content {
        padding-left: 30vw;  /* slightly more than logo width to ensure no overlap */
        transition: all 0.3s ease;
    }

    /* ===================== 
       @media Background Section Styles 
       ===================== */
    .background-section {
        height: 75vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .foreground-text {
        max-width: 90%;
        padding: 15px;
        font-size: 1.1em;
    }

    .main-title {
        font-size: 2.0em;
        line-height: 6vh;
    }

    /* ===================== 
       @media Center Main Content Styles 
       ===================== */
    .center-main {
        max-width: 90%;
        margin: 20px auto;
        padding: 15px;
    }

    .announce {
        font-size: 1.6em;
        margin-bottom: 15px;
    }

    .main-text {
        font-size: 0.9em;
        letter-spacing: 0.1em;
    }

    /* ===================== 
       @media Button Styles 
       ===================== */
    .brown_btn {
        font-size: 1.8em;
        padding: 8px 16px;
    }

    /* ===================== 
       @media Tease Section Styles 
       ===================== */
    .tease-main {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
        align-items: center;
    }

    .tease-item {
        width: 70%;
        margin: 20vw;
    }

    .tease-item img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: var(--border-radius-medium);
        margin-bottom: 10px;
    }

    .tease-text {
        font-size: 1.1em;
        padding: 8px;
        text-align: center; /* Centers the text below each image */
    }

    /* ===================== 
       @media Story Section Styles 
       ===================== */
    .story-header-container {
        flex-direction: column;
        align-items: center;
        margin-top: 5vh;
        margin-bottom: 5vh;
    }

    .story-header {
        font-size: 2.4em;
        text-align: center;
        margin-bottom: 20px;
    }

    .story-header-container img {
        width: 90vw;
        height: auto;
        margin-bottom: 20px;
    }

    .story-top {
        font-size: 1.1em;
        margin-top: 15px;
    }

    .story-us {
        max-width: 90vw;
        font-size: 1.1em;
        margin-bottom: 10vh;
    }

    .hr-brown {
        max-width: 90vw;
    }

    .brown-link {
        font-size: 1.1em;
    }

    /* ===================== 
       @media Footer Styles 
       ===================== */
    .footer {
        height: auto; /* Adjust height for content */
        padding: 20px 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-text p {
        font-size: var(--font-size-large);
    }

    .footer-logo {
        margin-top: 15px;
    }

    .footer-logo img.footer-image {
        
    }
}

/* =========================
   Miscellaneous Styles
   ========================= */
.menu-icon:focus {
    outline: none;
}

/* =========================
   Optional: Hide Video on Very Small Screens and Set Poster as Background
   ========================= */
@media (max-width: 480px) {
    .background-video {
        display: none;
    }

    .background-section {
        height: 90vh;
        background-image: url('img/video-poster.jpg');
        background-size: cover;
        background-position: center;
    }
}
/* =========================
   Social media share icons (Facebook etc)
   ========================= */

.social-share {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9; /* Optional: Background color for the section */
}

.social-share h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.social-button {
    display: flex;
	width: 125px;
    align-items: center;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.social-button img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.social-button.facebook {
    background-color: #D2B48C;
}

.social-button.twitter {
    background-color: #D2B48C;
}

.social-button.linkedin {
    background-color: #D2B48C;
}

.social-button.pinterest {
    background-color: #D2B48C;
}

.social-button.reddit {
    background-color: #D2B48C;
}

.social-button.email {
    background-color: #D2B48C;
}

.social-button.whatsapp {
    background-color: #D2B48C;
}

.social-button.tumblr {
    background-color: #D2B48C;
}

.social-button.telegram {
    background-color: #D2B48C;
}

.social-button:hover {
    opacity: 0.8;
    transform: scale(1.05);
}