/* --- CSS Variables for Colors --- */
:root {
    --primary-color: #c79388; 
    --accent-gold: #c79388; 
    --dark-text: #333333;
    --light-text: #ffffff;
    --bg-light: #ffffff;
    --bg-off-white: #f9f9f9;
}

/* --- General & Body Styles --- */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background-color: var(--bg-light);
    color: var(--dark-text);
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: 700;
}

/* --- Announcement Bar --- */
.announcement-bar {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 0.75rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-bar p {
    margin: 0;
    font-weight: 500;
    padding-right: 40px; 
}

.announcement-bar a {
    color: var(--light-text);
    font-weight: 700;
    text-decoration: underline;
}

.announcement-bar .close-btn {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    position: absolute;
    right: 20px; 
}

/* --- Header & Navigation --- */
#main-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: padding 0.4s ease;
    /* FIX: Header is now always white and has a shadow */
    background-color: var(--bg-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav .logo img {
    max-height: 50px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

nav .logo:hover img {
    transform: scale(1.05);
}

.logo-social-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social-icons-left a {
    font-size: 1.4rem;
    margin: 0 0.5rem;
    /* FIX: Color is now always dark to show on the white background */
    color: var(--dark-text); 
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons-left a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    /* FIX: Explicitly setting font family to ensure consistency */
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    /* FIX: Color is now always dark */
    color: var(--dark-text); 
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--accent-gold);
}

/* --- Main Content Sections --- */
main {
    /* This rule will be applied via JS to push content below fixed bars */
    padding-top: 100px; /* A default value */
}

/* Generic Section Styles */
.content-section, 
.offers-section,
.board-section,
.story-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(/media/OstelBanner.jpg);
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    text-align: center;
    padding: 6rem 2rem 4rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-button {
    background-color: var(--accent-gold);
    color: var(--light-text);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}


.cta-button:hover {
    background-color: #c5a230;
    color: var(--light-text) !important;
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* Services Section */
.services-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.service-item {
    flex-basis: 300px;
    text-align: center;
}

.service-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Story Section */
.story-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 3rem;
    background-color: var(--bg-off-white);
    border-radius: 8px;
}

/* Interior Page Headers */
.page-header {
    background-color: var(--primary-color);
    color: var(--light-text);
    text-align: center;
    padding: 4rem 2rem;
}

.page-header h1 {
    font-size: 3rem;
    margin: 0;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-text);
    color: var(--light-text);
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 4rem;
}

/* --- Media Queries (for Responsiveness) --- */
@media (max-width: 820px) {
    .story-section {
        flex-direction: column;
        padding: 2rem;
    }
}


/* --- Hamburger & Mobile Nav --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1101;
}
.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--dark-text);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100vw;
    width: 80vw;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-light);
    box-shadow: -2px 0 16px rgba(0,0,0,0.15);
    z-index: 1200;
    transition: right 0.35s cubic-bezier(.77,0,.18,1);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
}
.mobile-nav.open {
    right: 0;
}
.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.mobile-nav li a {
    font-size: 1.2rem;
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
}
.mobile-nav .cta-button {
    font-size: 1.1rem;
    padding: 12px 30px;
    text-align: center;
    display: inline-block;
    border-radius: 5px;
}
.close-mobile-nav {
    background: none;
    border: none;
    font-size: 2.2rem;
    color: var(--dark-text);
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    cursor: pointer;
    z-index: 1201;
}

@media (max-width: 820px) {
    .logo-social-group {
        gap: 0.7rem;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }
    .hamburger {
        display: flex;
        position: absolute;
        top: 50%;
        right: 24px;
        transform: translateY(-50%);
        margin: 0;
    }
    nav {
        position: relative;
    }
    .mobile-nav {
        display: flex;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* --- Gallery Page --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* --- Foundation Page: Board Members --- */
.board-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.board-member {
    text-align: center;
}

.board-member img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 50%; /* Creates circular images */
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.board-member h3 {
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.board-member p {
    margin-top: 0;
    font-style: italic;
    color: #666;
}

.text-content-section {
    max-width: 800px; /* Narrows the text for better readability */
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;

}

.book-cover {
    max-width: 900px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 600px) {
  .book-cover {
    max-width: 90vw;
  }

}
