/* src/styles/main.css */

/* ===========================
   Custom Variables
============================== */

:root {
    --primary-color: #1e40af; /* Tailwind's indigo-800 */
    --secondary-color: #2563eb; /* Tailwind's indigo-600 */
    --accent-color: #60a5fa; /* Tailwind's indigo-400 */
    --background-color: #f0f2f5; /* Tailwind's gray-100 */
    --light-background-color: #ffffff; /* White background for sections */
    --text-color: #111827; /* Tailwind's gray-900 */
    --light-text-color: #6b7280; /* Tailwind's gray-700 */
    --white-color: #ffffff;
    --transition-speed: 0.3s;
    --max-width: 1200px;
    --container-padding: 2rem;
    --font-family-primary: 'Lato', sans-serif;
    --font-family-secondary: 'Proxima Nova', sans-serif;
}

/* ===========================
   Global Styles
============================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-primary);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    position: relative;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover,
a:focus {
    color: var(--accent-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-secondary);
    color: var(--text-color);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--light-text-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===========================
   Header Styles
============================== */

header {
    background-color: var(--white-color);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--container-padding);
}

.site-logo img {
    width: 150px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-navigation a {
    font-weight: 600;
    position: relative;
}

.main-navigation a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-speed) ease;
    position: absolute;
    bottom: -5px;
    left: 0;
}

.main-navigation a.active::after {
    width: 100%;
}

#nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* ===========================
   Tabs Section
============================== */

.tabs-section {
    padding: 2rem 0;
}

.tabs-pills {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1rem;
    justify-content: center;
}

.tab-link {
    background-color: var(--white-color);
    border: 1px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 2rem;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.tab-link.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.tab-content {
    display: none;
    padding: 1rem 0;
}

.tab-content.active {
    display: block;
}

/* ===========================
   Featured Products Section
============================== */

.featured-products {
    padding: 3rem 0;
    background-color: var(--light-background-color);
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--white-color);
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.carousel-button i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.carousel-track-container {
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: calc(100% / 3); /* Updated to 3 items per row */
    box-sizing: border-box;
    padding: 0 10px;
}

.product-card {
    background-color: var(--white-color);
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem; /* Increased padding */
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 200px; /* Increased height */
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem; /* Increased margin */
}

.product-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem; /* Increased font size */
}

.product-card p {
    font-size: 1.1rem; /* Increased font size */
    color: var(--light-text-color);
    margin-bottom: 1.5rem; /* Increased margin */
}

.enquire-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.75rem 1.5rem; /* Increased padding */
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.enquire-button:hover {
    background-color: var(--secondary-color);
}