@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&family=Lato:wght@300;400&display=swap');

/* Reset & Base Styles */
html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Lato', sans-serif;
    background: #000;
    background-attachment: fixed;
    color: #FFF8E7;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

h2 {
    text-transform: uppercase;
}

h1 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease-out forwards;
}

.tagline {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 0.9s;
}

/* Animation keyframes */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#gradient-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.gradient {
    position: fixed;
    z-index: 990;
}

#gradient-1 {
    width: 490px;
    height: 516px;
    border-radius: 590px;
    background-color: rgba(243, 231, 0, 0.50);
    filter: blur(350px);
    bottom: 10;
    left: 20;
}

#gradient-2 {
    width: 524px;
    height: 430px;
    border-radius: 524px;
    background: #FFA800;
    filter: blur(350px);
    top: 0;
    right: 5%;
}

#gradient-3 {
    width: 406px;
    height: 303px;
    border-radius: 406px;
    background: #FF6727;
    filter: blur(350px);
    bottom: -40%;
    left: 45%;
}

@media (max-width: 768px) {

    #gradient-1 {
        width: 300px;
        height: 300px;
        bottom: -100px;
        left: -50px;
    }

    #gradient-2 {
        width: 300px;
        height: 250px;
        top: -50px;
        right: -50px;
    }

    #gradient-3 {
        width: 250px;
        height: 200px;
        bottom: 20%;
        left: 30%;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 996;
}

/* Desktop Nav */
nav {
    display: flex;
    flex-direction: row;
    gap: 56px;
    justify-content: right;
    align-items: center;
    padding: 18px 72px;
    /* have nav go directly over over top of image or give it black bg? */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    background-color: #000000;
    height: 8.5%;
}

nav a {
    text-decoration: none;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    display: inline-block;
    z-index: 999;
}

/* Animated underline */
nav a::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ffa800, #f3e700);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

nav a:hover::after {
    transform: scaleX(1);
}

/* Drip effect */
nav a::before {
    content: '';
    position: absolute;
    bottom: -28px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: linear-gradient(180deg, #ffa800, #f3e700);
    border-radius: 50%;
    opacity: 0;
    transform: translateX(-50%) translateY(0);
}

nav a:hover::before {
    animation: drip 0.7s ease-in forwards;
}

@keyframes drip {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* Mobile Navigation */
#mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 8.5%;
    background-color: #000000;
    z-index: 999;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
}

#mobile-nav.active {
    display: flex;
}

.mobile-nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 1001;
    padding: 0;
    width: 40px;
    height: 40px;
}

.mobile-nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, #ffa800, #f3e700);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-nav-toggle.open span:nth-child(1) {
    transform: translate(0, 6px) rotate(45deg);
}

.mobile-nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.open span:nth-child(3) {
    transform: translate(0, -12px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 8.5%;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.98), rgba(10, 9, 8, 0.95));
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: calc(100vh - 8.5%);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 998;
}

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

.mobile-menu a {
    text-decoration: none;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 500;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(244, 165, 65, 0.1);
    position: relative;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mobile-menu a:hover {
    background-color: rgba(244, 165, 65, 0.1);
    color: #F4A541;
    text-shadow: 0 0 8px rgba(244, 165, 65, 0.4);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu svg {
    width: 32px;
    height: 32px;
    margin: 0;
}

/* Hide desktop nav on mobile */
@media (max-width: 768px) {
    nav {
        display: none;
    }

    #mobile-nav {
        display: flex;
    }

    .hero {
        margin-top: 8.5%;
    }
}

@media (min-width: 769px) {
    #mobile-nav {
        display: none !important;
    }

    .mobile-nav-toggle {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }
}

#cta {
    background: linear-gradient(-90deg, #c99500, #b8471b);
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 2rem 1rem 3rem 1rem;
}

#cta h2 {
    font-size: 3.8rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

#cta>a {
    color: #fff;
    background-color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    text-decoration: none;
    margin-top: 24px;
    transition: transform 0.3s ease-in-out;
    font-size: 1rem;
    display: inline-block;
    position: relative;
    z-index: 995;
}

#cta>a:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {

    #cta h2 {
        font-size: 2rem;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background: #000;
    /* Fallback color while loading */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 997;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/bees-and-honey-comb_january.png') center center/cover no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease-in;
    z-index: -1;
}

.hero.loaded::before {
    opacity: 1;
}

.hero-overlay {
    background: linear-gradient(to bottom, rgba(10, 9, 8, 0.1), rgba(10, 9, 8, 0.85));
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding: 20px;
    padding-bottom: 6rem;
}

.title {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.3rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.7rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #FFF8E7;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: transparent;
    position: relative;
    z-index: 996;
}

.about h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 0.05em;
}

.description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #d4cfc4;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.description em {
    color: #F4A541;
    font-style: italic;
}

/* Process Section */
#process {
    padding: 6rem 0;
    background-color: transparent;
}

#process h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: 0.05em;
}

/* Team Section */
#team {
    padding: 6rem 0;
    background-color: transparent;
    position: relative;
    z-index: 996;
}

#team h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: 0.05em;
}

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

.team-member {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member-image {
    width: 280px;
    height: 280px;
    background-size: cover;
    background-position: center;
    clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(232, 197, 71, 0.2));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.team-member:hover .team-member-image {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(232, 197, 71, 0.4));
}

.team-member-content {
    padding: 0;
}

#team-leader {
    position: relative;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#team-leader-image {
    width: 280px;
    height: 280px;
    background-size: cover;
    background-position: center;
    clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(232, 197, 71, 0.2));
    transition: transform 0.3s ease, filter 0.3s ease;
}

#team-leader:hover #team-leader-image {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(232, 197, 71, 0.4));
}

#team-leader-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
    width: 100%;
    max-width: 900px;
}


.team-member h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    margin: 0 0 0.5rem 0;
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}

.team-member:hover h3 {
    color: #E8C547;
    text-shadow: 0 0 10px rgba(232, 197, 71, 0.5);
    transform: scale(1.13);
}

.team-member-link {
    font-size: 0.9rem;
    color: #E8C547;
    text-decoration: none;
    margin: 0.5rem 0 0.5rem 0;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.team-member:hover .team-member-link {
    color: #F4A541;
    text-shadow: 0 0 8px rgba(244, 165, 65, 0.4);
}

.role {
    font-size: 1rem;
    color: #d4cfc4;
    font-style: italic;
    margin: 0;
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}

.team-member:hover .role {
    color: #F4A541;
    text-shadow: 0 0 8px rgba(244, 165, 65, 0.4);
    transform: scale(1.1);
}

#team-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#team-member-1 {
    background-image: url(img/andrew-truax-headshot.jpeg);
    background-size: cover;
}

#team-member-2 {
    background-image: url(img/);
    background-size: cover;
}

#team-member-3 {
    background-image: url(img/marilyn-gable-headshot.jpeg);
    background-size: cover;
}

#team-member-4 {
    background-image: url(img/chris-haats-headshot.jpeg);
    background-size: cover;
}

#team-member-5 {
    background-image: url(img/tommy-portrait.jpg);
    background-size: cover;
}

#team-member-6 {
    background-image: url(img/tiffany-duran-headshot.jpeg);
    background-size: cover;
}

/* Photos */

/* Photo Gallery Styles - All styles scoped to avoid conflicts with existing site styles */

/* Gallery Wrapper */
.photo-gallery-wrapper {
    padding: 2.5rem 1.25rem;
    position: relative;
    z-index: 997;
    box-sizing: border-box;
}

.photo-gallery-wrapper .gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 997;
}

.photo-gallery-wrapper .gallery-main-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    letter-spacing: 2px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.photo-gallery-wrapper .gallery-section {
    margin-bottom: 80px;
}

.photo-gallery-wrapper .gallery-section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 400;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
}

/* Masonry Grid */
.photo-gallery-wrapper .photo-grid {
    column-count: 4;
    column-gap: 20px;
}

.photo-gallery-wrapper .photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    break-inside: avoid;
    background-color: #1a1a1a;
}

.photo-gallery-wrapper .photo-item img,
.photo-gallery-wrapper .photo-item video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.photo-gallery-wrapper .photo-item:hover img,
.photo-gallery-wrapper .photo-item:hover video {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Video play icon overlay */
.photo-gallery-wrapper .video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
    z-index: 1;
}

.photo-gallery-wrapper .photo-item:hover .video-play-icon {
    opacity: 0;
}

/* Ensure video elements don't block clicks */
.photo-gallery-wrapper .photo-item video {
    pointer-events: none;
}

/* Modal Styles */
.gallery-image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-image-modal.gallery-active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.gallery-image-modal .gallery-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: galleryZoomIn 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes galleryZoomIn {
    from {
        transform: scale(0.7);
    }

    to {
        transform: scale(1);
    }
}

.gallery-image-modal .gallery-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.gallery-image-modal .gallery-modal-content video {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 4px;
}

.gallery-image-modal .gallery-close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 10px;
    line-height: 1;
}

.gallery-image-modal .gallery-close-modal:hover {
    color: #ccc;
}

.gallery-image-modal .gallery-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 30px;
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 4px;
    z-index: 10001;
}

.gallery-image-modal .gallery-nav-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.gallery-image-modal .gallery-prev-button {
    left: 20px;
}

.gallery-image-modal .gallery-next-button {
    right: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .photo-gallery-wrapper .gallery-main-title {
        font-size: 2rem;
    }

    .photo-gallery-wrapper .gallery-section-title {
        font-size: 1.4rem;
    }

    .photo-gallery-wrapper .photo-grid {
        column-count: 2;
        column-gap: 15px;
    }

    .photo-gallery-wrapper .photo-item {
        margin-bottom: 15px;
    }

    .gallery-image-modal .gallery-close-modal {
        right: 20px;
        font-size: 30px;
    }

    .gallery-image-modal .gallery-nav-button {
        padding: 15px;
        font-size: 24px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .photo-gallery-wrapper .photo-grid {
        column-count: 3;
    }
}

@media (max-width: 480px) {
    .photo-gallery-wrapper .photo-grid {
        column-count: 1;
    }
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(244, 165, 65, 0.2);
    position: relative;
    bottom: 0;
    right: 0;
    width: 100%;
    z-index: 996;
}

footer p {
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-link a {
    color: #F4A541;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link a:hover {
    color: #E8C547;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
        padding-bottom: 3rem;
    }

    .about h2,
    .team h2 {
        font-size: 2rem;
    }

    .description {
        font-size: 1.1rem;
    }

    .about,
    .team {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
        letter-spacing: 0.1em;
    }

    .tagline {
        font-size: 1rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}