/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    background-color: #f3f4f6;
    color: #333;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style-position: inside;
}

/* Header styles */
header {
    background-color: #000;
    color: #fff;
    width: 100%;
}

.header-container {
    max-width: 70rem;
    margin: 0 auto;
    padding: 0 1rem;
    height: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    font-weight: bold;
    font-size: 1.5rem;
}

.header-contact {
    text-align: right;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.header-name {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.header-phone {
    color: #fcd34d;
    font-weight: bold;
}

/* Hamburger Menu */
.hamburger-menu {
    position: relative;
    z-index: 100;
}

#menu-toggle {
    display: none;
}

.menu-button {
    cursor: pointer;
    font-size: 1.5rem;
    color: #fcd34d;
}

.menu-content {
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    background-color: #000;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 1rem;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#menu-toggle:checked ~ .menu-content {
    display: block;
}

.menu-content nav ul {
    list-style: none;
}

.menu-content nav ul li {
    margin-bottom: 0.75rem;
}

.menu-content nav ul li a {
    color: #fff;
    display: block;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.menu-content nav ul li a:hover {
    background-color: #333;
    border-radius: 4px;
    color: #fcd34d;
}

/* Logo section */
.header-bg {
    background-image: url('../Images/bg-header.jpg');
    background-size: cover;
    background-position: bottom;
    width: 100%;
}

.logo-container {
    max-width: 55rem;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    text-align: center;
}

.logo img {
    max-width: 100%;
    height: auto;
}

.sign-in {
    text-align: center;
    width: 100%;
}

.sign-in p, .sign-in a {
    color: #ffffff;
    font-weight: bold;
}

.sign-in a:hover {
    text-decoration: underline;
}

/* Main content */
main {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Catalog section */
.catalog-section {
    margin-bottom: 2rem;
}

.catalog-container {
    background: linear-gradient(to bottom, #1e3a8a, #1e40af);
    color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.catalog-info {
    width: 100%;
}

.catalog-title {
    color: #fcd34d;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.catalog-text {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.catalog-button {
    background-color: #fcd34d;
    color: black;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.catalog-button:hover {
    background-color: #f59e0b;
}

/* Navigation buttons */
.nav-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.custom-button {
    background-color: #000000;
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    transition: background-color 0.3s;
}

.custom-button:hover {
    background-color: #333333;
}

/* Product categories */
.category-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: black;
    margin-bottom: 2rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto 2rem;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-image {
    width: 6rem;
    height: 6rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    transition: border-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9fafb;
}

.category-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    display: block;
}

.category-item:hover .category-image {
    border-color: #3b82f6;
}

.category-name {
    font-size: 0.875rem;
    text-align: center;
    transition: color 0.3s;
}

.category-item:hover .category-name {
    color: #2563eb;
}

/* Business opportunities section */
.business-section {
    background-color: #f3f4f6;
    padding: 3rem 0;
}

.business-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.business-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    color: black;
    margin-bottom: 3rem;
}

.business-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.business-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.business-card img {
    width: 100%;
    height: 9.5rem;
    object-fit: cover;
}

.business-content {
    padding: 1.5rem;
}

.business-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.business-card-text {
    color: #4b5563;
    margin-bottom: 1rem;
}

.business-button {
    width: 100%;
    background-color: #2563eb;
    color: white;
    font-weight: bold;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    border: none;
    cursor: pointer;
}

.business-button:hover {
    background-color: #1d4ed8;
}

/* Preferred customer section */
.preferred-section {
    background-image: url('../Images/savebig-mobile.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    width: 100%;
    overflow: hidden;
}

.preferred-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.preferred-container {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem 2rem;
    position: relative;
    z-index: 2;
}

.preferred-content {
    max-width: 100%;
    padding: 1rem;
    text-align: center;
}

.preferred-list {
    list-style-type: disc;
    margin-bottom: 1.2rem;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    padding-left: 1rem;
    white-space: nowrap;
    text-align: left;
}

.preferred-list li {
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.preferred-button {
    background-color: #fcd34d;
    color: black;
    font-weight: bold;
    padding: 0.75rem 2rem;
    border-radius: 0.25rem;
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
    display: inline-block;
}

.preferred-button:hover {
    background-color: #f59e0b;
}

/* Why AMSOIL section */
.why-section {
    background-color: white;
    padding: 4rem 0;
}

.why-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.why-image {
    width: 100%;
    max-width: 500px;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.why-image img {
    width: 100%;
    height: auto;
    display: block;
}

.why-content {
    text-align: center;
    width: 100%;
}

.why-title {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.why-list {
    list-style-type: disc;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    display: inline-block;
    text-align: left;
}

.why-list li {
    margin-bottom: 0.5rem;
}

.why-button-container {
    text-align: center;
}

.why-button {
    background-color: #2563eb;
    color: white;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.why-button:hover {
    background-color: #1d4ed8;
}

/* Footer */
footer {
    background: linear-gradient(to bottom, #cfcdce, #000000); /* Grey gradient background */
    color: white;
    padding: 1.5rem 0; /* Reduced padding */
}

.footer-container {
    max-width: 68rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Updated footer layout */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-left {
    text-align: center;
}

.footer-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.footer-logo img {
    max-width: 250px; /* Slightly smaller logo */
    height: auto;
    border-radius: 5px; /* Slightly rounded corners for the logo */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

.footer-header {
    margin-bottom: 1rem;
}

.footer-title {
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.footer-contact {
    margin-bottom: 0.5rem;
}

.footer-name {
    margin-bottom: 0.25rem;
}

.footer-phone {
    color: #fcd34d;
    font-weight: bold;
}

.business-info {
    text-align: center;
    margin-top: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.6;
}

.business-info p {
    margin: 0.25rem 0;
}

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

/* Content page styles */
.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #03346e;
}

.content-text {
    line-height: 1.8;
}

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

.content-text h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #03346e;
}

.content-text ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Media queries */
@media (min-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-image {
        width: 7rem;
        height: 7rem;
    }
    
    .preferred-content {
        max-width: 80%;
    }
    
    .preferred-list {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .header-title {
        font-size: 1.8rem;
    }
    
    .logo-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .logo {
        text-align: left;
    }
    
    .sign-in {
        text-align: right;
        width: auto;
    }
    
    .nav-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 3rem;
    }
    
    .catalog-container {
        flex-direction: row;
        text-align: left;
    }
    
    .catalog-info {
        width: auto;
    }
    
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .business-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .preferred-section {
        background-image: url('../Images/savebig.jpg');
        background-repeat: no-repeat;
        min-height: 510px;
    }
    
    .preferred-container {
        display: flex;
        justify-content: flex-start;
    }
    
    .preferred-content {
        max-width: 500px;
        margin-left: 2rem;
        text-align: left;
    }
    
    .preferred-list {
        font-size: 1.1rem;
    }
    
    .why-container {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 3rem;
    }
    
    .why-image {
        width: 40%;
        max-width: none;
    }
    
    .why-content {
        width: 60%;
        text-align: left;
    }
    
    .why-button-container {
        text-align: left;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .footer-left {
        text-align: left;
        flex: 1;
    }
    
    .footer-logo {
        text-align: right;
        margin-bottom: 0;
    }
    
    .business-info {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .preferred-content {
        max-width: 450px;
    }
    
    .preferred-list {
        font-size: 1.2rem;
    }
    
    .category-image {
        width: 7.5rem;
        height: 7.5rem;
    }
}