* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Open Sans", serif;
}
h1,h2,h3,h4,h5,h6 {
    margin-bottom: 1rem;
}  
body {
    background-color: #f0f2f5;
}
.mt-1 {
    margin-top: 1rem;
}
.mt-2 {
    margin-top: 2rem;
}
.mt-3 {
    margin-top: 3rem;
}
.mt-4 {
    margin-top: 4rem;
}
.mt-5 {
    margin-top: 5rem;
}
.mt-6 {
    margin-top: 6rem;
}
.mt-7 {
    margin-top: 7rem;
}
.mt-8 {
    margin-top: 8rem;
}
.mt-9 {
    margin-top: 9rem;
}
.mb-1 {
    margin-bottom: 1rem;
}
.mb-2 {
    margin-bottom: 2rem;
}
.mb-3 {
    margin-bottom: 3rem;
}
.mb-4 {
    margin-bottom: 4rem;
}
.mb-5 {
    margin-bottom: 5rem;
}
.mb-6 {
    margin-bottom: 6rem;
}
.mb-7 {
    margin-bottom: 7rem;
}
.mb-8 {
    margin-bottom: 8rem;
}
.mb-9 {
    margin-bottom: 9rem;
}   

.text-center {
    text-align: center;
}
.nav {
    background-color: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: none;
}

.nav-logo img {
    height: 24px;
    width: auto;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    justify-content: flex-start;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    animation: slideDown 0.5s ease-out;
}

.nav-menu li {
    margin-right: 2rem;
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #0056b3;
    font-weight: 500;
}

/* Dropdown styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
}

.dropdown-content a {
    padding: 12px 16px;
    display: block;
    white-space: nowrap;
}

.dropdown:hover .dropdown-content {
    display: block;
}

@media screen and (max-width: 768px) {
    .nav {
        padding: 0.8rem 1rem;
    }

    .nav-toggle {
        display: flex;
        order: 1;
    }

    .nav-logo {
        display: block;
        order: 2;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        order: 3;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
    }

    .dropdown-content a {
        padding: 0.5rem 1rem;
    }
}

.hero {
    margin-top: 60px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 80px auto 0;
}

.hero-image {
    animation: fadeIn 1s ease-out;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.logo-section {
    text-align: center;
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.logo-section img {
    max-width: 400px;
    margin-bottom: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    animation: scaleIn 0.5s ease-out;
}
.product-card a{text-decoration: none;}
.product-card img {
    max-width: 200px;
    height: auto;
}

.product-card button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 2rem;
    border-radius: 4px;
    margin-top: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    width: 100%;
    font-size: 1.6rem;
}
.product-card button img.logo {
    height: 32px;
    flex-grow: 1;
    filter: invert(1);
    margin: 0;
}
.product-card button img.logo_yardeco {
    height: 18px !important;
    flex-grow: 1;
    filter: invert(1);
    margin: 0;
    align-self: center;
}

.product-card button.blue {
    background: #0056b3;
}

.content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: slideUp 0.5s ease-out;
}

.brands {
    text-align: center;
    margin-top: 3rem;
}

.brands img {
    max-width: 200px;
    margin: 1rem;
}

.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 185px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}
.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom:solid 1px #e7e7e7;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}
.dropdown-content a:first-child {
    margin-top: 1rem;
}
.dropdown-content a.active {
    background-color: #f1f1f1;
    font-weight: 500;
}

.dropdown .dropbtn.active {
    color: #0056b3;
    font-weight: 500;
}

/* Product Page Styles */
.product-page {
    padding: 2rem;
    max-width: 1200px;
    margin: 5rem auto 0 auto;
}

.product-page h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.product-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-item a{text-decoration: none;}
.product-item:hover {
    transform: translateY(-5px);
}

.product-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.product-item h2 {
    padding: 1rem;
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.product-item p {
    padding: 0 1rem 1rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Contact Form Styles */
.content {
    padding: 2rem;
    max-width: 80% ;
    margin: 5rem auto 0 auto;
}

.content h3 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.content h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #0056b3;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    text-decoration: none;
}

.btn-dark {
    color: #fff;
    background-color: #343a40;
    border: 2px solid #343a40;
}

.btn-dark:hover {
    background-color: #23272b;
    border-color: #1d2124;
    transform: translateY(-1px);
}

.mb-7 {
    margin-bottom: 2.5rem;
}

.mb-10 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.text-xs-center {
    text-align: center;
    margin: 1rem 0;
}

.g-recaptcha {
    display: inline-block;
}

/* Form validation styles */
.form-control.required:invalid {
    border-color:#d3d3d3;
}

.form-control.required:valid {
    border-color: #28a745;
}

#footer{background: #fff; padding: 1rem 3rem;}

.divider {
    padding: 2rem 0;
    border-bottom: 5px solid #c6c6c6;  
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .product-item img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 1rem;
        margin-top: 4rem;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Form validation and notification styles */
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    animation: fadeIn 0.3s ease;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background-color: #28a745;
}

.notification.error {
    background-color: #dc3545;
}

/* Loading state for button */
.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Additional form spacing */
.mb-2 {
    margin-bottom: 1rem;
}
