/* ========================================
   Reef Bakery - Custom Styles
   ======================================== */

/* CSS Variables */
:root {
    --color-primary: #f1e3d2;
    --color-secondary: #8B7355;
    --color-dark: #2C2C2C;
    --color-light: #F5F0E8;
    --color-bg: #FFFFFF;
    --color-text: #333333;
    --color-text-light: #666666;
    --font-family: 'Heebo', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ========================================
   Header Styles
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 1rem 0;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 0;
}

.logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.header.scrolled .logo {
    filter: none;
}

.navbar-nav {
    gap: 2rem;
}

/* The app's Tailwind stylesheet (src/styles.css) has a `.collapse { visibility: collapse }` utility.
   It also matches Bootstrap's `collapse navbar-collapse` class and hid the whole header menu, on
   desktop and in the opened mobile menu. Bootstrap hides the closed mobile menu with display:none. */
.navbar-collapse.collapse {
    visibility: visible;
}

.nav-link {
    color: #fff !important;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0 !important;
    position: relative;
}

.header.scrolled .nav-link {
    color: var(--color-dark) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.header.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 33, 33, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('/images/20250520-Reef-website-Heb_01.pdf-image-000.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.hero-title-main {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 0.5rem;
    margin-bottom: 0.5rem;
}

.hero-title-sub {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.3rem;
}

.hero-dots {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: #fff;
}

/* Scroll-down indicator */
.scroll-down {
    position: absolute;
    bottom:30px;
    left:0px;
    right: 0px;
    display: inline-block;
    color: #fff;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    animation: scroll-bounce 1.6s ease-in-out infinite;
    border: 1px solid #fff;
    width: 60px;
    height: 70px;
    line-height: 80px;
    border-radius: 20px;
    margin: 0 auto;
    text-align: center;
}

.scroll-down:hover {
    opacity: 0.85;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ========================================
   Products Section
   ======================================== */
.products-section {
    padding: 80px 0;
    background-color: var(--color-bg);
}

.products-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}


.products-row:last-child .product-card:nth-child(3)~.product-card {
    display: none;
}





/* ========================================
   About Section
   ======================================== */


.about-image:hover img {
    transform: scale(1.05);
}


.about-content {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.about-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.about-description {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.btn-more {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-more:hover {
    color: var(--color-secondary);
    padding-right: 10px;
}

/* ========================================
   Section Title
   ======================================== */


/* ========================================
   Clients Section
   ======================================== */


/* ========================================
   Who Is This For Section
   ======================================== */
.who-section {
    padding: 80px 0;
    background-color: var(--color-bg);
}

.who-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 15px;
    letter-spacing: 0.1rem;
}

.who-divider {
    width: 60px;
    height: 4px;
    background-color: #D32F2F;
    margin: 0 auto 50px;
}

.who-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.who-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.who-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.who-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.who-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.who-card:hover .who-card-image img {
    transform: scale(1.05);
}

.who-card-content {
    padding: 20px 15px 25px;
    background-color: #E8E0D5;
    text-align: center;
}

.who-card-line {
    width: 40px;
    height: 3px;
    background-color: #D32F2F;
    margin: 0 auto 15px;
}

.who-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 10px;
    letter-spacing: 0.05rem;
    min-height: 40px;
}

.who-card-desc {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
    min-height: 70px;
}

/* ========================================
   CTA Section
   ======================================== */


/* ========================================
   Team Section
   ======================================== */
.team-section {
    padding: 80px 0;
    
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.team-member {
    text-align: center;
}

.team-image {
    width: 180px;
    height: 220px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 8px;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: var(--transition);
}

.team-member:hover .team-image img {
    transform: scale(1.05);
}

.team-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 5px;
}

.team-role {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 60px 0 30px;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-dark);
    color: #fff;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1200px) {
    .products-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .who-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-title-main {
        font-size: 3rem;
    }

    .hero-title-sub {
        font-size: 2rem;
    }

    .products-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-column: span 2;
    }

    .who-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.9);
        padding: 20px;
        margin-top: 10px;
        border-radius: 8px;
    }

    .header.scrolled .navbar-collapse {
        background-color: #fff;
    }
}

@media (max-width: 768px) {
    .hero-title-main {
        font-size: 2.5rem;
        letter-spacing: 0.2rem;
    }

    .hero-title-sub {
        font-size: 1.5rem;
        letter-spacing: 0.1rem;
    }

    .products-section,
    .about-section,
    .clients-section,
    .who-section,
    .cta-section,
    .team-section {
        padding: 60px 0;
    }

    .who-title {
        font-size: 1.8rem;
    }

    .who-card-title {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

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

    .about-content {
        grid-column: span 1;
    }

    .who-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .clients-logos {
        gap: 30px;
    }

    .client-logo {
        max-width: 100px;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .team-image {
        width: 150px;
        height: 180px;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 500px;
    }

    .hero-title-main {
        font-size: 2rem;
    }

    .hero-title-sub {
        font-size: 1.2rem;
    }

    .products-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-image {
        height: 180px;
    }

    .who-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }

    .who-title {
        font-size: 1.5rem;
    }

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

    .btn-cta {
        padding: 12px 40px;
    }
}

/* ========================================
   Owl Carousel Enhancements
   ======================================== */
.clients-logos.owl-carousel .client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.who-carousel.owl-carousel .who-card,
.team-carousel.owl-carousel .team-member {
    margin: 5px 0;
}

.team-carousel .team-member {
    transition: transform 0.3s ease;
}

.team-carousel .owl-item.center .team-member {
    transform: scale(1.08);
}

/* ========================================
   Animation Classes
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========================================
   Utility Classes
   ======================================== */
.text-primary {
    color: var(--color-primary) !important;
}

.bg-primary {
    background-color: var(--color-primary) !important;
}

.bg-light {
    background-color: var(--color-light) !important;
}