/* Color Palette */
:root {
    --darkest: #504B38;
    --medium: #B9B28A;
    --light: #EBE5C2;
    --lightest: #F8F3D9;
    --nude: #D2B48C; /* Added nude color (tan/beige) */
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Universal Padding for Content */
.container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 100px; /* Minimum 100px padding on both sides */
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: var(--darkest);
    background-color: var(--lightest);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 4.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

h1.bold-heading {
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 8rem 0;
    position: relative;
    overflow: visible;
}

button {
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

ul {
    list-style: none;
}


/* Navbar Styles */
#navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

#main-header {
    width: 100%;
    background-color: transparent;
    transition: all 0.3s ease;
    position: relative;
}

#main-header.scrolled {
    background-color: #FFFFFF !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Ensure navbar is white when scrolled */
#main-header.scrolled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    z-index: -1;
}

.navbar {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    font-family: Didot, "Didot LT STD", "Hoefler Text", Garamond, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: #fff; /* Light color for transparent navbar */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Show white logo when at top (transparent navbar) */
.logo-white {
    display: block;
    margin-left: -16px;
}

.logo-black {
    display: none;
}

/* When scrolled, show black logo */
#main-header.scrolled .logo-white {
    display: none;
}

#main-header.scrolled .logo-black {
    display: block;
}

.nav-menu ul {
    display: flex;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    list-style: none;
}

.nav-menu a {
    color: #fff; /* Light color for transparent navbar */
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding: 0.5rem 0;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* When scrolled, revert to dark color */
#main-header.scrolled .nav-menu a {
    color: var(--darkest);
    text-shadow: none;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #fff; /* Light underline for transparent navbar */
    transition: width 0.3s ease;
}

/* When scrolled, revert to dark underline */
#main-header.scrolled .nav-menu a::after {
    background-color: var(--darkest);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: #fff; /* Light color for transparent navbar */
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* When scrolled, revert to dark color */
#main-header.scrolled .bar {
    background-color: var(--darkest);
    box-shadow: none;
}

/* Page Banner */
.page-banner {
    height: auto;
    display: flex;
    align-items: center;
    background-image: url('../Photos/Salloni/IMG_6059.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 250px;
    padding-bottom: 170px;
    overflow: visible;
    position: relative;
    margin-bottom: -1px;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.banner-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.banner-content h1 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.subtitle {
    display: inline-block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 3rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.subtitle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 2.5rem;
    height: 1px;
    background-color: #fff;
}

/* Banner bottom arch */
.banner-bottom-arch {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    line-height: 0;
    z-index: 2;
}

.banner-bottom-arch svg {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
}

/* Salon Gallery Section */
.salon-gallery {
    background-color: var(--lightest);
    padding: 6rem 0;
}

.salon-gallery .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.salon-gallery .subtitle {
    color: var(--darkest);
    text-shadow: none;
}

.salon-gallery .subtitle::before {
    background-color: var(--darkest);
}

.gallery-intro {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.gallery-sections {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.gallery-section {
    display: flex;
    gap: 1.5rem;
    width: 100%;
}

.gallery-section.two-images {
    height: 450px;
}

.gallery-section.three-images {
    height: 350px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    flex: 1;
}

.gallery-item.large {
    flex: 1;
    min-height: 450px;
}

.gallery-item.medium {
    flex: 1;
    min-height: 350px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

@media (max-width: 1200px) {
    .gallery-section.two-images {
        height: 400px;
    }
    
    .gallery-section.three-images {
        height: 300px;
    }
    
    .gallery-item.large {
        min-height: 400px;
    }
    
    .gallery-item.medium {
        min-height: 300px;
    }
}

@media (max-width: 992px) {
    .gallery-section.three-images {
        flex-wrap: wrap;
        height: auto;
    }
    
    .gallery-section.three-images .gallery-item {
        flex: 0 0 calc(50% - 0.75rem);
        height: 300px;
    }
    
    .gallery-section.three-images .gallery-item:last-child {
        flex: 0 0 100%;
        margin-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        flex-direction: column;
        height: auto;
    }
    
    .gallery-section.two-images,
    .gallery-section.three-images {
        height: auto;
    }
    
    .gallery-item.large,
    .gallery-item.medium {
        min-height: 350px;
        margin-bottom: 0;
    }
    
    .gallery-section.three-images .gallery-item {
        flex: 1;
        margin-top: 0;
    }
}

/* About History Section */
.about-history {
    background-color: var(--light);
    padding: 6rem 0;
}

.about-history .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-history .subtitle {
    color: var(--darkest);
    text-shadow: none;
}

.about-history .subtitle::before {
    background-color: var(--darkest);
}

/* Team Showcase Section */
.team-showcase {
    background-color: var(--lightest);
    padding: 6rem 0;
}

.team-showcase .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.team-showcase .subtitle {
    color: var(--darkest);
    text-shadow: none;
}

.team-showcase .subtitle::before {
    background-color: var(--darkest);
}

.team-showcase-image {
    max-width: 1200px;
    margin: 0 auto 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-showcase-image.landscape {
    height: 600px;
}

.team-showcase-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 62%; /* Move the image up by focusing lower in the image */
 }

.team-intro {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.7;
    font-weight: 400;
}

.team-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.team-card {
    perspective: 1000px;
    height: 420px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-front {
    background-color: var(--lightest);
    color: var(--darkest);
}

.card-back {
    background-color: var(--darkest);
    color: var(--lightest);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.card-back p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 600;
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 5px solid var(--light);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.team-card p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    opacity: 0.8;
}

.flip-btn {
    background-color: transparent;
    color: var(--darkest);
    border: 2px dashed var(--darkest);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
}

.flip-btn:hover {
    background-color: rgba(80, 75, 56, 0.1);
}

.team-more-container {
    text-align: center;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .team-showcase-image.landscape {
        height: 500px;
    }
}

@media (max-width: 576px) {
    .team-showcase-image.landscape {
        height: 400px;
    }
}

.history-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.history-content.centered {
    justify-content: center;
}

.history-text {
    flex: 1;
    min-width: 300px;
    max-width: 900px;
    margin: 0 auto;
}

.history-content.centered .history-text {
    text-align: center;
}

.history-text p {
    font-size: 1.2rem;
    margin-bottom: 1.8rem;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0.01em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Dividers */
.divider-section {
    position: relative;
    height: 120px;
    width: 100%;
    overflow: hidden;
    padding: 0;
    margin: 0;
    z-index: 10;
}

.asymmetrical-simple-divider {
    height: 100%;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    margin-bottom: -2px;
}

.divider-section svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Philosophy Section */
.philosophy {
    background-color: var(--medium);
    padding: 6rem 0;
}

.philosophy .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.philosophy .subtitle {
    color: var(--darkest);
    text-shadow: none;
}

.philosophy .subtitle::before {
    background-color: var(--darkest);
}

.philosophy-intro {
    font-size: 1.3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.8;
    color: var(--darkest);
}

.philosophy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.philosophy-card {
    background-color: var(--lightest);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.philosophy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.card-icon i {
    color: var(--darkest);
}

.philosophy-card:hover .card-icon {
    background-color: var(--darkest);
}

.philosophy-card:hover .card-icon i {
    color: var(--light);
}

.philosophy-card h3 {
    margin-bottom: 1.2rem;
    color: var(--darkest);
}

.philosophy-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--darkest);
    margin-bottom: 0;
}

/* Team Section */
.team-section {
    background-color: var(--lightest);
    padding: 6rem 0;
}

.team-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.team-section .subtitle {
    color: var(--darkest);
    text-shadow: none;
}

.team-section .subtitle::before {
    background-color: var(--darkest);
}

.team-intro {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.team-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.team-card {
    perspective: 1000px;
    height: 420px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-front {
    background-color: var(--light);
    color: var(--darkest);
}

.card-back {
    background-color: var(--darkest);
    color: var(--lightest);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.card-back p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 600;
}

.member-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 5px solid var(--lightest);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.team-card p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    opacity: 0.8;
}

.flip-btn {
    background-color: transparent;
    color: var(--darkest);
    border: 2px dashed var(--darkest);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
}

.flip-btn:hover {
    background-color: rgba(80, 75, 56, 0.1);
}

.team-more-container {
    text-align: center;
    margin-top: 2rem;
}

/* Values Section */
.values-section {
    background-color: var(--darkest);
    color: var(--lightest);
    padding: 6rem 0;
}

.values-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.values-section .subtitle {
    color: var(--lightest);
}

.values-section .subtitle::before {
    background-color: var(--light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.1);
}

.value-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    color: var(--darkest);
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1);
}

.value-card h3 {
    margin-bottom: 1.2rem;
    color: var(--light);
}

.value-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--lightest);
    opacity: 0.9;
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    background-color: var(--lightest);
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: visible;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    margin-bottom: 1rem;
}

.cta-content p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
}

.cta-button {
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(0, 0, 0, 0.1);
    transition: height 0.3s ease;
    z-index: -1;
}

.cta-button:hover::after {
    height: 100%;
}

.cta-button.primary {
    background-color: var(--medium);
    color: var(--darkest);
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--darkest);
    border: 1px solid var(--darkest);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: var(--medium);
    color: var(--darkest);
    padding: 3rem 0 2rem;
    position: relative;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.footer-branding {
    flex: 1;
    min-width: 300px;
    margin-right: 4rem;
    margin-bottom: 2rem;
}

.footer-branding p {
    margin: 1rem 0 2rem;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--darkest);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--lightest);
}

.social-icons i {
    font-size: 1.2rem;
    width: 24px;
}

.social-icons span {
    font-size: 0.9rem;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column {
    min-width: 200px;
    margin-bottom: 2rem;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-weight: 600;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 1px;
    background-color: var(--darkest);
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column a:hover {
    opacity: 0.7;
}

.hours-list li,
.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hours-list span {
    font-weight: 500;
}

.contact-list i {
    min-width: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(80, 75, 56, 0.2);
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* Section animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* Card animations */
.fade-in-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Ensure all content is visible even if JS fails */
body:not(:has(.reveal-text.active)) .reveal-text,
body:not(:has(.reveal-image.active)) .reveal-image {
    opacity: 1;
    transform: none;
}

/* Fallback for browsers that don't support :has() */
@media (prefers-reduced-motion) {
    .reveal-text, .reveal-image {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Responsive Styles */
@media (max-width: 1400px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 80px;
    }
}

@media (max-width: 1200px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 60px;
    }
    
    .history-content {
        flex-direction: column;
    }
    
    .history-image {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 40px;
    }
    
    .page-banner {
        padding-top: 150px;
        padding-bottom: 80px;
    }
    
    #main-header {
        background-color: #FFFFFF !important;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    }
    
    #main-header .logo,
    #main-header .nav-menu a {
        color: var(--darkest) !important;
        text-shadow: none !important;
    }
    
    /* Force black logo to show on mobile */
    #main-header .logo-white {
        display: none !important;
    }
    
    #main-header .logo-black {
        display: block !important;
    }
    
    #main-header .bar {
        background-color: var(--darkest) !important;
        box-shadow: none !important;
    }
    
    #main-header .nav-menu a::after {
        background-color: var(--darkest) !important;
    }
    
    .philosophy-cards,
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 13px;
    }
    
    .container {
        padding: 0 30px;
    }
    
    .page-banner {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .navbar {
        height: 80px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: #FFFFFF;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 2rem;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .philosophy-cards,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .team-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-branding {
        margin-right: 0;
        margin-bottom: 3rem;
    }
    
    .footer-links {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }
    
    section {
        padding: 5rem 0;
    }
    
    .page-banner {
        padding-top: 100px;
        padding-bottom: 50px;
    }
    
    .banner-content h1 {
        font-size: 3.5rem;
    }
    
    .subtitle {
        padding-left: 0;
    }
    
    .subtitle::before {
        display: none;
    }
    
    .history-text p {
        font-size: 1rem;
    }
    
    .philosophy-card,
    .value-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .cta-button {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Team Card Styles to match index.html */
.card-front, .card-back {
    justify-content: space-between !important;
}

.card-back {
    background-color: #8B6B4C !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.card-back p {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Content wrapper for front side to push button to bottom */
.card-front .member-photo,
.card-front h3,
.card-front p {
    flex-shrink: 0;
}

.card-front .flip-btn {
    margin-top: auto;
    flex-shrink: 0;
}

/* Back-side flip button styling */
.back-flip-btn {
    background-color: transparent;
    color: var(--lightest);
    border: 2px dashed var(--lightest);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
    margin-top: auto;
    flex-shrink: 0;
}

.back-flip-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile styles for team cards */
@media (max-width: 992px) {
    /* Make flip buttons bigger on mobile */
    .flip-btn, .back-flip-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-height: 48px; /* Minimum touch target size */
        width: 100%;
        max-width: 200px;
    }
    
    /* Make card-back text bigger on mobile */
    .card-back p {
        font-size: 1.1rem;
        line-height: 1.7;
        padding: 0 1rem;
    }
    
    /* Slightly larger member photos on medium screens */
    .member-photo {
        width: 210px;
        height: 210px;
        margin-bottom: 1.6rem;
    }
}

@media (max-width: 576px) {
    /* Even bigger buttons on small mobile screens */
    .flip-btn, .back-flip-btn {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
        min-height: 52px;
        width: 100%;
        max-width: 250px;
    }
    
    /* Larger card-back text on small mobile screens */
    .card-back p {
        font-size: 1.2rem;
        line-height: 1.8;
        padding: 0 0.5rem;
    }
    
    /* Even larger member photos and names on small mobile screens */
    .member-photo {
        width: 220px;
        height: 220px;
        margin-bottom: 1.8rem;
    }
    
    .team-card h3 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .team-card p {
        font-size: 1.1rem;
        margin-bottom: 1.8rem;
    }
}
