/*
=================================================================
|   LK BEEF RANCHERS - STYLE.CSS
|
|   TABLE OF CONTENTS
|   1.  GLOBAL STYLES & VARIABLES
|   2.  TYPOGRAPHY
|   3.  HELPER CLASSES
|   4.  CUSTOM CURSOR
|   5.  PROGRESS INDICATOR
|   6.  HEADER & NAVIGATION
|   7.  HERO SECTION
|   8.  BUTTONS & LINKS
|   9.  SECTIONS & CARDS
|       - General Section Styling
|       - Info Cards (Vision, Mission, Values)
|       - Approach Section (Timeline)
|       - Service Flip Cards
|       - Commitment Cards (Static)
|       - Product Cards
|   10. CONTACT SECTION
|   11. FOOTER
|   12. BACK TO TOP BUTTON
|   13. ANIMATIONS & KEYFRAMES
|   14. RESPONSIVE DESIGN (MEDIA QUERIES)
=================================================================
*/

/* 1. GLOBAL STYLES & VARIABLES
-------------------------------------------------- */
:root {
    --primary-color: #6b7280; /* Gray-500 */
    --primary-color-dark: #4b5563; /* Gray-600 */
    --secondary-color: #1f2937; /* Gray-800 */
    --text-dark: #111827; /* Gray-900 */
    --text-light: #4b5563; /* Gray-600 */
    --background-light: #f9fafb; /* Gray-50 */
    --background-white: #ffffff;
    --border-color: #e5e7eb; /* Gray-200 */
    
    --font-headline: 'Darker Grotesque', sans-serif;
    --font-body: 'Syne', sans-serif;

    --transition-fast: all 0.2s ease-in-out;
    --transition-medium: all 0.4s ease-in-out;
    --transition-slow: all 0.6s ease-in-out;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-light);
    background-color: var(--background-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevents horizontal scroll */
    cursor: none; /* Hide default cursor */
}

/* 2. TYPOGRAPHY
-------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headline);
    color: var(--text-dark);
    font-weight: 800;
    line-height: 1.2;
}

.font-headline { font-family: var(--font-headline); }
.font-body { font-family: var(--font-body); }

.section-title {
    font-size: 3rem; /* 48px */
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.125rem; /* 18px */
    color: var(--text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 3. HELPER CLASSES
-------------------------------------------------- */
.container {
    max-width: 1200px;
}

/* 4. CUSTOM CURSOR
-------------------------------------------------- */
.custom-cursor {
    position: fixed;
    width: 25px;
    height: 25px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    left: 0;
    top: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
    z-index: 9999;
}

body:hover .custom-cursor {
    opacity: 1;
}

.custom-cursor.hovered {
    width: 50px;
    height: 50px;
    background-color: rgba(107, 114, 128, 0.2);
    border-color: transparent;
}

/* 5. PROGRESS INDICATOR
-------------------------------------------------- */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    background: var(--primary-color);
    width: 0%;
    z-index: 100;
    transition: width 0.1s linear;
}

/* 6. HEADER & NAVIGATION
-------------------------------------------------- */
#header {
    transition: var(--transition-medium);
}

#header.sticky {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.nav-link {
    position: relative;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-medium);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link.active,
.nav-link:hover {
    color: var(--primary-color-dark);
}

#mobile-menu {
    background-color: var(--background-white);
    border-top: 1px solid var(--border-color);
}

/* 7. HERO SECTION
-------------------------------------------------- */
.hero-bg {
    background: url('assets/img/hero-background.jpeg') no-repeat center center/cover;
}

.hero-shape-1, .hero-shape-2 {
    position: absolute;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.hero-shape-1 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    animation: pulse 10s infinite alternate;
}

.hero-shape-2 {
    width: 300px;
    height: 300px;
    top: -80px;
    right: -80px;
    animation: pulse 12s infinite alternate-reverse;
}

/* 8. BUTTONS & LINKS
-------------------------------------------------- */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: white;
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-medium);
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--primary-color-dark);
    transition: var(--transition-medium);
    z-index: -1;
}

.cta-button:hover::before {
    width: 100%;
}

.cta-button span {
    margin-right: 0.5rem;
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* 9. SECTIONS & CARDS
-------------------------------------------------- */
/* General Section Styling */
section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Info Cards (Vision, Mission, Values) */
.info-card {
    background-color: #f9fafb; /* Gray-50 */
    padding: 2rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    transition: var(--transition-medium);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(75, 85, 99, 0.15);
    border-color: var(--primary-color);
}

.info-icon {
    font-size: 2rem;
    color: var(--primary-color-dark);
    margin-bottom: 1rem;
}

/* Approach Section (Timeline) */
.approach-timeline {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    position: relative;
}

.approach-item {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition-medium);
}

.approach-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.07);
}

.approach-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-headline);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.approach-title {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.approach-text {
    font-family: var(--font-body);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Connecting lines for desktop */
@media (min-width: 1024px) {
    .approach-timeline {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem 2rem;
    }
    .approach-item:not(:nth-child(3n))::after {
        content: '';
        position: absolute;
        top: 40px;
        left: 100%;
        width: 2rem;
        height: 2px;
        background-color: var(--border-color);
    }
    .approach-item:nth-child(-n+3)::before {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        width: 2px;
        height: 4rem;
        background-color: var(--border-color);
    }
}

/* Service Flip Cards */
.flip-card {
    background-color: transparent;
    height: 300px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.flip-card-front {
    background-color: var(--background-white);
}

.flip-card-back {
    background-color: var(--primary-color-dark);
    color: white;
    transform: rotateY(180deg);
}
.flip-card-back h3 {
    color: white;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    background-color: rgba(107, 114, 128, 0.1);
    color: var(--primary-color-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

/* Commitment Cards (Static) */
.commitment-card-static {
    background-color: var(--background-white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.05);
    transition: var(--transition-medium);
    border: 1px solid var(--border-color);
    text-align: center;
}
.commitment-card-static:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    border-color: var(--primary-color);
}
.commitment-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0 auto 1rem;
}

/* Product Cards */
.product-card {
    background-color: var(--background-white);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: var(--transition-medium);
}
.product-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}
.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-image {
    transform: scale(1.1);
}

/* 10. CONTACT SECTION
-------------------------------------------------- */
.contact-bg-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background-color: var(--primary-color);
    border-radius: 45%;
    transform: translate(-50%, -50%) rotate(15deg);
    opacity: 0.1;
    animation: wave 20s infinite linear;
}

.contact-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.form-group {
    position: relative;
}

.form-label {
    position: absolute;
    top: 0.85rem;
    left: 1rem;
    font-family: var(--font-body);
    color: var(--text-light);
    pointer-events: none;
    transition: var(--transition-fast);
}

.form-input {
    width: 100%;
    padding: 1.5rem 1rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--background-light);
    transition: var(--transition-fast);
    font-family: var(--font-body);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.2);
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: 0.25rem;
    left: 1rem;
    font-size: 0.75rem;
    color: var(--primary-color-dark);
}

/* 11. FOOTER
-------------------------------------------------- */
.footer-link {
    color: #9ca3af; /* Gray-400 */
    transition: var(--transition-fast);
    position: relative;
}

.footer-link:hover {
    color: white;
    padding-left: 10px;
}

.footer-link::before {
    content: '>';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: var(--transition-fast);
}

.footer-link:hover::before {
    opacity: 1;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-medium);
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
}

/* Tabbed Interface for Services Section */
.tab-button {
    @apply px-6 py-3 rounded-full text-base font-semibold font-body transition-colors duration-300;
    @apply text-gray-600 bg-gray-200 hover:bg-gray-300;
}

.tab-button.active {
    @apply bg-primary-color text-white shadow-lg;
    @apply hover:bg-primary-color-dark;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 12. BACK TO TOP BUTTON
-------------------------------------------------- */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 40;
    opacity: 0;
    transform: translateY(20px);
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 13. ANIMATIONS & KEYFRAMES
-------------------------------------------------- */
@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes wave {
    0% { transform: translate(-50%, -50%) rotate(15deg); }
    50% { transform: translate(-50%, -50%) rotate(5deg); }
    100% { transform: translate(-50%, -50%) rotate(15deg); }
}

/* AOS (Animate on Scroll) Overrides if needed */
[data-aos] {
    transition-property: transform, opacity;
}

/* 14. RESPONSIVE DESIGN (MEDIA QUERIES)
-------------------------------------------------- */
@media (max-width: 1023px) {
    .approach-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-bg h1 {
        font-size: 3rem;
    }

    #header {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .approach-timeline {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 640px) {
    body {
        cursor: auto; /* Revert to default cursor on small screens */
    }
    .custom-cursor {
        display: none; /* Hide custom cursor on small screens */
    }
}
