/* =================================================================
File: style.css
Description: Stylesheet for Wajib Livestock Management Website.
=================================================================
*/

/* -----------------------------------------------------------------
1. Global Styles & Variables
-----------------------------------------------------------------
*/

:root {
    --color-blue: #08ADFD;
    --color-yellow: #FDE350;
    --color-brown: #84643C;
    --color-red: #ff0000;
    --color-dark: #111827;
}

body {
    font-family: 'Inter', sans-serif;
}

/* -----------------------------------------------------------------
2. Brand Color Utility Classes
-----------------------------------------------------------------
*/

.bg-brand-blue { background-color: var(--color-blue); }
.bg-brand-yellow { background-color: var(--color-yellow); }
.bg-brand-brown { background-color: var(--color-brown); }
.bg-brand-red { background-color: var(--color-red); }

.text-brand-blue { color: var(--color-blue); }
.text-brand-yellow { color: var(--color-yellow); }
.text-brand-brown { color: var(--color-brown); }
.text-brand-red { color: var(--color-red); }
.text-brand-dark { color: var(--color-dark); }

.border-brand-blue { border-color: var(--color-blue); }
.border-brand-yellow { border-color: var(--color-yellow); }
.border-brand-brown { border-color: var(--color-brown); }
.border-brand-red { border-color: var(--color-red); }

.hover-text-brand-yellow:hover { color: var(--color-yellow); }

/* -----------------------------------------------------------------
3. Hero & Dynamic Height Sections
-----------------------------------------------------------------
*/
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end; /* Aligns content to the bottom */
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio for vertical coverage */
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

/* Style for making sections adapt to screen height */
.dynamic-height-section {
    min-height: 90vh;
    display: flex;
    flex-direction: column; /* Ensure vertical alignment works */
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem; /* py-24 px-6 */
}
/* Ensure the container inside takes full width */
.dynamic-height-section .container {
    width: 100%;
}


/* -----------------------------------------------------------------
4. Reusable Component Styles
-----------------------------------------------------------------
*/

.section-title {
    color: var(--color-dark);
}

.section-subtitle {
    color: var(--color-brown);
}

.trust-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    border: 1px solid #e5e7eb;
}

.trust-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.1);
}

.trust-icon-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem; /* w-16 */
    height: 4rem; /* h-16 */
    border-radius: 50%;
    background-color: var(--color-brown);
    color: white;
    margin-right: 1.5rem; /* mr-6 */
}

.testimonial-card {
    background-color: white;
    border-radius: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.07);
}

.gallery-image {
    overflow: hidden;
    border-radius: 1rem;
}

.gallery-image img {
    transition: transform 0.4s ease-out;
}

.gallery-image:hover img {
    transform: scale(1.05);
}

/* -----------------------------------------------------------------
5. Venture & Team Sections
-----------------------------------------------------------------
*/
.venture-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-out;
    height: 400px;
}

.venture-card:hover {
    transform: translateY(-10px);
}

.venture-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.4s ease-out;
}

.venture-card:hover .venture-card-bg {
    transform: scale(1.05);
}

.venture-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.1));
    z-index: 2;
}

.venture-card-content {
    position: relative;
    z-index: 3;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.team-card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.1);
}

.team-card-image-container {
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.team-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -----------------------------------------------------------------
6. Accordion (FAQ Section)
-----------------------------------------------------------------
*/

.accordion-item:last-child {
    border-bottom: 0;
}

.accordion-header {
    cursor: pointer;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}


/* -----------------------------------------------------------------
7. Creative Contact Section
-----------------------------------------------------------------
*/

.contact-item {
    display: flex;
    align-items: center;
    background-color: #f9fafb; /* gray-50 */
    padding: 1rem;
    border-radius: 0.75rem; /* rounded-xl */
    border: 1px solid #e5e7eb; /* gray-200 */
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, opacity 0.5s ease-out;
    opacity: 0;
    transform: translateY(20px);
}

.is-visible .contact-item {
    opacity: 1;
    transform: translateY(0);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.07);
}

.contact-icon-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem; /* w-14 */
    height: 3.5rem; /* h-14 */
    border-radius: 50%;
    background-color: var(--color-brown);
    color: white;
    margin-right: 1rem;
}


/* -----------------------------------------------------------------
8. Animations & Transitions
-----------------------------------------------------------------
*/

.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

#top-ribbon {
    transition: transform 0.3s ease-out;
}

#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

/* -----------------------------------------------------------------
9. Miscellaneous
-----------------------------------------------------------------
*/

#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}