/* 
* Green Sanctuary - Computer Peripherals and Devices
* Main Stylesheet
*/

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Poppins:wght@400;500;600;700&display=swap');

/* Reset & Base Styles */
:root {
    --primary-color: #3a7c5f;
    --primary-dark: #2a5c44;
    --primary-light: #5a9c7f;
    --secondary-color: #f5f5f5;
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #999999;
    --white: #ffffff;
    --black: #000000;
    --gray-light: #e0e0e0;
    --gray-medium: #b0b0b0;
    --success: #4CAF50;
    --danger: #F44336;
    --warning: #FFC107;
    --info: #2196F3;
    --border-radius: 5px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: J.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style-type: none;
}

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

button {
    cursor: pointer;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-medium);
    font-size: 1.1rem;
}

.section-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--text-dark);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover:after, 
nav ul li a.active:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    width: 30px;
    cursor: pointer;
}

.mobile-menu-btn span {
    height: 3px;
    width: 100%;
    background-color: var(--text-dark);
    margin-bottom: 5px;
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Banner Styles */
.hero-banner {
    padding: 5rem 0;
    background-color: var(--secondary-color);
}

.hero-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

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

/* About Section Styles */
.about-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-features {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
}

.feature i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 10px;
}

/* Services Section Styles */
.services-section {
    padding: 5rem 0;
    background-color: var(--secondary-color);
}

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

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-medium);
}

/* Products Section Styles */
.products-section {
    padding: 5rem 0;
    background-color: var(--white);
}

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

.product-card {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-light);
    transition: var(--transition);
    text-align: center;
}

.product-card:hover {
    box-shadow: var(--shadow);
    border-color: transparent;
}

.product-image {
    margin-bottom: 1.5rem;
}

.product-svg {
    width: 100%;
    height: auto;
}

.product-card h3 {
    margin-bottom: 0.5rem;
}

.product-card p {
    color: var(--text-medium);
}

/* Testimonials Section Styles */
.testimonials-section {
    padding: 5rem 0;
    background-color: var(--secondary-color);
}

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

.testimonial-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-quote {
    color: var(--primary-light);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-author {
    margin-top: 1.5rem;
}

.testimonial-author h4 {
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.testimonial-author p {
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* Blog Preview Section Styles */
.blog-preview-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-preview-card {
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.blog-preview-card:hover {
    box-shadow: var(--shadow);
    border-color: transparent;
}

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

.blog-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-preview-card h3 {
    padding: 1.5rem 1.5rem 0;
    font-size: 1.2rem;
}

.blog-preview-card p {
    padding: 0 1.5rem;
    color: var(--text-medium);
}

.blog-preview-card .btn-secondary {
    margin: 0 1.5rem 1.5rem;
}

.blog-cta {
    text-align: center;
}

/* Contact Section Styles */
.contact-section {
    padding: 5rem 0;
    background-color: var(--secondary-color);
}

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

.contact-info, .subscription-form {
    display: flex;
    flex-direction: column;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.contact-method h4 {
    margin-bottom: 0.3rem;
}

.contact-method p {
    color: var(--text-medium);
}

.social-media {
    margin-top: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.subscription-form h3 {
    margin-bottom: 0.5rem;
}

.subscription-form p {
    margin-bottom: 1.5rem;
    color: var(--text-medium);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--gray-medium);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer Styles */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: var(--gray-medium);
}

.footer-links h4, .footer-legal h4, .footer-contact h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links ul li, .footer-legal ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a, .footer-legal ul li a {
    color: var(--gray-medium);
    transition: var(--transition);
}

.footer-links ul li a:hover, .footer-legal ul li a:hover {
    color: var(--white);
}

.footer-contact p {
    color: var(--gray-medium);
    margin-bottom: 0.8rem;
}

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

.footer-bottom p {
    color: var(--gray-medium);
    margin-bottom: 0;
}

/* Thanks Page Styles */
.thanks-section {
    padding: 6rem 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.thanks-content {
    max-width: 600px;
    margin: 0 auto;
}

.thanks-icon {
    margin-bottom: 2rem;
}

.thanks-content h1 {
    margin-bottom: 1.5rem;
}

.thanks-content p {
    margin-bottom: 2rem;
    color: var(--text-medium);
}

/* Legal Pages Styles */
.legal-section {
    padding: 5rem 0;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-header h1 {
    margin-bottom: 0.5rem;
}

.legal-header p {
    color: var(--text-medium);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-intro {
    margin-bottom: 2rem;
}

.legal-section-item {
    margin-bottom: 3rem;
}

.legal-section-item h2 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-light);
}

.legal-section-item h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-section-item ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-section-item ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
}

.contact-info {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
}

/* Blog Page Styles */
.blog-header {
    padding: 5rem 0 3rem;
    background-color: var(--secondary-color);
}

.blog-header-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.blog-header-content h1 {
    margin-bottom: 1rem;
}

.blog-header-content p {
    font-size: 1.2rem;
    color: var(--text-medium);
}

.blog-articles {
    padding: 5rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.blog-card {
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    box-shadow: var(--shadow);
    border-color: transparent;
}

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

.blog-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.blog-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.blog-card p {
    margin-bottom: 1.5rem;
    color: var(--text-medium);
}

.blog-newsletter {
    padding: 5rem 0;
    background-color: var(--secondary-color);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    margin-bottom: 1rem;
}

.newsletter-content p {
    margin-bottom: 2rem;
    color: var(--text-medium);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form .form-group {
    margin-bottom: 0;
}

.newsletter-form input {
    padding: 12px 20px;
}

.newsletter-form button {
    padding: 12px 20px;
    margin-top: 1rem;
}

/* Article Page Styles */
.article-section {
    padding: 5rem 0;
}

.article-header {
    margin-bottom: 2rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.article-author {
    display: flex;
    align-items: center;
    margin-top: 2rem;
}

.author-img {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
}

.author-info h4 {
    margin-bottom: 0.2rem;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.article-image {
    margin-bottom: 3rem;
}

.article-banner {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.article-content {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-light);
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

.article-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
}

.article-tags {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.article-tags h4 {
    margin-bottom: 0;
    margin-right: 1rem;
}

.article-tags ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-tags li a {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: var(--transition);
}

.article-tags li a:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

.article-share {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.article-share h4 {
    margin-bottom: 0;
    margin-right: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    color: var(--text-medium);
    transition: var(--transition);
}

.share-buttons a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.more-articles h3 {
    margin-bottom: 2rem;
    text-align: center;
}

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

.related-article {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.related-article:hover {
    box-shadow: var(--shadow);
    border-color: transparent;
}

.related-article-img {
    flex: 0 0 100px;
    margin-right: 1rem;
}

.related-svg {
    width: 100%;
    height: auto;
}

.related-article-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.related-article-content p {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 991px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-banner .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 3rem;
        max-width: 100%;
    }
    
    .hero-image {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        display: none;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        padding: 0 20px;
    }
    
    nav ul li {
        margin: 0;
        padding: 0.8rem 0;
    }
    
    .services-grid, .products-grid, .testimonials-grid, .blog-preview-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .hero-banner, .about-section, .services-section, .products-section, .testimonials-section, .blog-preview-section, .contact-section {
        padding: 3rem 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .article-author {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .author-img {
        margin-bottom: 1rem;
    }
    
    .article-tags, .article-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-tags h4, .article-share h4 {
        margin-bottom: 0.5rem;
    }
    
    .related-article {
        flex-direction: column;
    }
    
    .related-article-img {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}
