/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/* Global Styles */
:root {
	--main-gb: #525b51;
	--links-hover: #8b9d83;
    --text-color: #3e3e3e;
    --background: #ded4ca;
	--header-bg: #a99f96;
    --footer-bg: #3e3e3e;
	--footer-text: #ded4ca;
}

* {
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", sans-serif;
    line-height: 1.4;
    color: var(--text-color);
    background: var(--main-gb);
}

.container {
	margin: 0 auto;
	max-width: 1200px;
	box-shadow: 0 0 12px 0px;
}

/* Header Styles */
header {
    background-color: var(--header-bg);
    padding: 2rem 0;
    text-align: center;
    color: white;
	box-shadow: 0 4px 7px -4px #000000;
	position: relative;
    z-index: 2;
	background-image: url('logoimage.png');
	background-size: cover;
    background-position: center;
}

.main-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 400;
	text-shadow: 3px 3px 7px rgba(0, 0, 0, 0.5);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0; /* Add this to ensure no padding on mobile */
}
nav a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 8px 4px;
    position: relative;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 6px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

nav a:hover {
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

nav a:hover:after {
    width: 100%;
}


/* Add Responsive Menu Styles */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        padding: 0;
    }
    
    .main-title {
        font-size: 2.5rem; /* Smaller title on mobile */
    }
    
    /* Optional: Add a hamburger menu */
    .mobile-menu-toggle {
        display: none; /* Hidden by default, enable if implementing JS toggle */
        cursor: pointer;
        padding: 10px;
    }
}

/* For even smaller screens */
@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    nav a {
        font-size: 1.1rem;
    }
}

/* Background Images Setup */
.section {
    position: relative;
    overflow: hidden;
    min-height: 100%;
}

.background-left,
.background-right {
    position: fixed; /* Back to fixed */
    top: 0;
    height: 100vh; /* Back to viewport height */
    width: 300px;
    z-index: -1;
    background-size: cover;
    background-repeat: no-repeat;
}

.background-left {
    left: calc(50% - 600px); /* Centers based on max-width of section (1000px) */
    background-position: left center;
    mask-image: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
	background-image: url('background_image_1.jpg');
}

.background-right {
    right: calc(50% - 600px); /* Centers based on max-width of section (1000px) */
    background-position: right center;
    mask-image: linear-gradient(to left, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
	background-image: url('background_image_1.jpg');
}

#about .background-left {
    background-image: url('background_image_1.jpg');
}
#about .background-right {
    background-image: url('background_image_1.jpg');
}

#uses .background-left {
    background-image: url('background_image_2.jpg');
}
#uses .background-right {
    background-image: url('background_image_2.jpg');
}
#contact .background-left {
    background-image: url('background_image_3.jpg');
}
#contact .background-right {
    background-image: url('background_image_3.jpg');
}
#process .background-left {
    background-image: url('background_image_6.jpg');
}
#process .background-right {
    background-image: url('background_image_4.jpg');
}
#products .background-left {
    background-image: url('background_image_5.jpg');
}
#products .background-right {
    background-image: url('background_image_5.jpg');
}

/* Main Section */
.section {
    padding: 20px 320px;
    position: relative;
    z-index: 1; /* Ensures content stays above the background images */
	background: var(--background);
}

.content {
    margin-top: 1rem;
    overflow: hidden; /* Ensures proper clearing of float */
}

.paragraph-image-right {
    float: right;
    width: 300px;
    height: auto; 
    margin: 0 0 20px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}
.paragraph-image-left {
    float: left;
    width: 300px;
    height: auto; 
    margin: 0 20px 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}
.paragraph-image-center {
    display: block;
    width: 300px;
    height: auto; 
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

h2 {
	font-size: 2rem;
	text-transform: uppercase;
	text-align: center;
}

.text-content p {
    margin-bottom: 1.5rem;
}

/* Product Grid Styles */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 10px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-title {
    font-size: 1.4rem;
    margin: 1rem 1rem 0.5rem;
    color: var(--main-gb);
	text-align: center;
}

.product-description {
    margin: 0 1rem 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 980px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-image {
        height: 180px;
    }
}

/* Responsive Tables */

/* Style for all tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

table th, 
table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

table th {
    background-color: var(--header-bg);
    color: white;
    font-weight: 500;
}

table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Responsive table styles for mobile */
@media (max-width: 768px) {
    /* Option 1: Card-based layout for benefits-table */
    .benefits-table table {
        border: 0;
        box-shadow: none;
    }
    
    .benefits-table table thead {
        display: none; /* Hide headers */
    }
    
    .benefits-table table tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .benefits-table table td {
        display: block;
        text-align: center;
        padding: 10px;
        border: none;
        border-bottom: 1px solid #eee;
    }
    
    .benefits-table table td:last-child {
        border-bottom: 0;
    }
    
    .benefits-table table td:before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        text-transform: uppercase;
        font-size: 0.8rem;
        color: var(--main-gb);
        margin-bottom: 5px;
    }
    
    /* Option 2: Horizontal scroll for safety-table */
    .safety-info {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .safety-table {
        min-width: 600px; /* Ensure table is wide enough for all content */
    }
    
    /* Add visual indicator that table scrolls */
    .safety-info:before {
        content: "← Swipe to view full table →";
        display: block;
        text-align: center;
        font-size: 0.8rem;
        color: #666;
        padding: 5px 0;
    }
}

/* Further optimizations for very small screens */
@media (max-width: 480px) {
    table th, 
    table td {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .benefits-table table td {
        font-size: 0.9rem;
    }
}

.backlink {
    display: inline-block;
    color: var(--main-gb);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    margin-bottom: 20px;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
}

.backlink:hover {
    color: var(--links-hover);
    transform: translateX(-5px);
}

.backlink::before {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 12px;
    width: 0;
    height: 2px;
    background-color: var(--links-hover);
    transition: width 0.3s ease;
}

.backlink:hover::before {
    width: calc(100% - 24px);
}

/* Footer Styles */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 2rem 1rem;
	position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-links, .footer-contact {
	margin: 0 80px;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    line-height: 2;
}

.footer-links a:hover {
    color: var(--links-hover);
}

.footer-contact {
	text-align: right;
	display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.footer-contact address {
    font-style: normal;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cc-tag {
	margin-top: 20px;
	font-size: 0.8rem;
}
.cc-tag a {
	text-decoration: none;
	font-weight: bold;
	color: var(--footer-text);
}
.cc-tag a:hover {
	text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr; /* Change to single column on mobile */
        gap: 1rem; /* Reduce gap between elements */
    }
    
    .footer-links, .footer-contact {
        margin: 0; /* Remove side margins on mobile */
        text-align: center; /* Center text for better mobile appearance */
    }
    
    .footer-contact {
        justify-content: center; /* Center the contact info */
		margin-top: 30px;
		
    }
	
    .instagram-button {
        margin: 20px auto; /* Center the Instagram button */
    }
}

/* Even smaller screens */
@media (max-width: 480px) {
    footer {
        padding: 2rem 1rem 1rem; /* Reduce padding on smaller screens */
    }
    
    .footer-bottom p {
        font-size: 0.9rem; /* Slightly smaller text on very small screens */
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .paragraph-image-left, .paragraph-image-right {
        float: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 20px;
        display: block;
		height: 130px;
        object-fit: cover;
    }
    
    .text-content {
        clear: both;
    }
    .background-left, .background-right {
        width: 100px; /* Smaller width for mobile */
    }
    
    .section {
        padding: 20px 20px; /* Adjust padding for mobile */
    }
	
	ul {
		padding-left: 10px;
		padding-right: 10px;
	}
	
}

/* CONTACT FORM */

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

.submit-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.submit-btn:hover {
    background-color: #45a049;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.instagram-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #E1306C;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    max-width: fit-content;
    margin: 20px 0;
}

.instagram-button:hover {
    background-color: #c13584;
}

.instagram-button svg {
    width: 24px;
    height: 24px;
}