/*
    Amigo Juice - Fresh & Vibrant Template
*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Pacifico&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');

:root {
    --primary-color: #FF6347; /* Tomato */
    --secondary-color: #32CD32; /* Lime Green */
    --accent-color: #FFD700; /* Gold */
    --text-color: #4F4F4F;
    --bg-color: #FEFBF6;
    --bg-light: #F8F8E4;
    --dark-blue: #0A2540;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --brand-font: 'Pacifico', cursive;
}

body {
    font-family: var(--body-font);
    background-color: var(--bg-color); /* Fallback */
    background: linear-gradient(135deg, rgba(255, 99, 71, 0.08), rgba(255, 215, 0, 0.08), rgba(50, 205, 50, 0.08)), var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* --- Section Dividers --- */
.section-divider-top, .section-divider-bottom {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.section-divider-top svg, .section-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px; /* Adjust height of the curve */
}
.section-divider-bottom {
    transform: rotate(180deg);
}
.shape-fill-light {
    fill: var(--bg-light);
}
.shape-fill-body {
    fill: var(--bg-color);
}


/* --- Helper Classes & Global Styles --- */
section {
    position: relative;
}
.section-title {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--dark-blue);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    padding-bottom: 10px;
}

.section-title span {
    position: relative;
    z-index: 1;
}

.section-title::after {
    content: '';
    position: absolute;
    height: 8px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    bottom: 0;
    left: 0;
    z-index: 0;
    opacity: 0.3;
    border-radius: 20px;
}


/* --- Header & Navbar --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    padding-top: 10px;
    padding-bottom: 10px;
}

.navbar-brand {
    font-family: var(--brand-font);
    font-size: 2.2rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-blue) !important;
    transition: color 0.3s;
    margin: 0 10px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* --- Buttons --- */
.btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 12px 35px;
    transition: all 0.3s ease;
}
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: #e0553c;
    border-color: #e0553c;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.btn-secondary:hover {
    background-color: #2db82d;
    border-color: #2db82d;
    transform: translateY(-3px);
}


/* --- Hero Section --- */
#hero-carousel .carousel-item {
    height: 90vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}
#hero-carousel .carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}
.carousel-caption-custom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: #fff;
    text-align: center;
    width: 80%;
}

/* --- Products Section V2 --- */
#products {
    background-color: var(--bg-color);
}
.product-card-v2 {
    background: var(--card-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px -15px rgba(0,0,0,0.1);
}
.product-card-v2:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.product-card-v2 .product-image img {
    max-width: 80%;
    transition: transform 0.4s ease;
}
.product-card-v2:hover .product-image img {
    transform: scale(1.15) rotate(-5deg);
}
.product-card-v2 .product-info h3 {
    font-family: var(--heading-font);
    color: var(--dark-blue);
    margin: 1rem 0;
    font-weight: 700;
}
.btn-discover {
    background: #fff;
    color: var(--primary-color);
    padding: 8px 25px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: inline-block;
}

/* --- Why Us Section V2 --- */
#why-us, #contact-location {
    background-color: var(--bg-light);
}
.feature-box-v2 {
    background: #fff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}
.feature-box-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.feature-box-v2 .icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.feature-box-v2 h3 {
    color: var(--dark-blue);
    font-weight: 700;
}

/* --- Clients Section --- */
.client-item {
    flex-basis: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.client-logo-wrapper {
    width: 140px;
    height: 140px;
    background-color: #ffffff;
    border-radius: 20px; /* Softer, more organic corners */
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.15); /* A subtle green shadow on hover */
}

.client-logo-wrapper img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain; /* Ensures logos are scaled correctly without distortion */
}

.client-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #444;
    margin-top: 15px;
}

/* --- Map & Contact Section --- */
.map-responsive {
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}
.form-control {
    border-radius: 10px;
    min-height: calc(1.5em + 1rem + 2px);
    padding: 0.75rem 1.25rem;
}
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 99, 71, 0.25);
}
.form-floating > label {
    padding: 1rem 1.25rem;
}


/* --- Footer --- */
footer {
    background-color: var(--dark-blue);
    color: #a9c4e0;
}
footer .footer-brand {
    font-family: var(--brand-font);
    color: var(--accent-color);
    font-size: 1.8rem;
}
footer h5 {
    color: #fff;
    font-weight: 600;
}
footer a { transition: color 0.3s; }
footer .social-icons-footer a {
    color: #fff;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    transition: background-color 0.3s;
}
footer .social-icons-footer a:hover {
    background-color: var(--primary-color);
}
footer .footer-bottom {
    border-top: 1px solid #29405a;
}

/** preloader **/
.preloader {
	   display: -ms-flexbox;
	   display: flex;
	   background-color: #f4f6f9;
	   height: 100vh;
	   width: 100%;
	   transition: height 200ms linear;
	   position: fixed;
	   left: 0;
	   top: 0;
	   z-index: 9999;
	}
	
.dark-mode .preloader {
	  background-color: #454d55 !important;
	  color: #fff;
    }
	
.loading-img {
		max-width: 500px;
	}

.pre-loader {
	position: fixed;
	z-index: 9999; 
	top: 0;
	left: 0;
	background: #191f26;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
	width: 100%;
}

.pre-loader.hidden {
  animation: shake 2s ease-in-out, fadeOut 1s ease-in-out;
  animation-fill-mode: forwards;
}

/* Shake animation keyframes */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  50% { transform: translateX(10px); }
  75% { transform: translateX(-10px); }
}

/* Fade out animation keyframes */
@keyframes fadeOut {
  100% {
	opacity: 0;
	visibility: hidden;
  }
}

/* ** NEW ** Social Media Section Styles 
    For best practice, move these styles to your /includes/css/style.css file
 */
.social-feed-card {
	background-color: #fff;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 10px 20px rgba(0,0,0,0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}
.social-feed-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}
.social-feed-card .card-img-container {
	position: relative;
	padding-top: 100%; /* 1:1 Aspect Ratio */
}
.social-feed-card .card-img-container img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.social-feed-card .social-icon {
	position: absolute;
	top: 15px;
	right: 15px;
	font-size: 1.8rem;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: #fff;
}
.social-icon.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-icon.facebook { background-color: #4267B2; }

.social-feed-card .card-body-custom {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}
.social-feed-card .card-text-custom {
	font-size: 0.95rem;
	color: #555;
	flex-grow: 1;
	margin-bottom: 20px;
}
.social-feed-card .btn-view-post {
	background-color: var(--bs-primary);
	color: white;
	border-radius: 50px;
	padding: 8px 20px;
	text-transform: uppercase;
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.5px;
	align-self: flex-start;
	transition: background-color 0.3s ease;
}
.social-feed-card .btn-view-post:hover {
	background-color: #e67e22; /* A slightly darker shade of your primary color */
}