/* EarthDome Hubs - Main Stylesheet */

/* ========== RESET & BASE STYLES ========== */
:root {
    --primary-color: #3d8c40;
    --primary-dark: #2c6a2e;
    --primary-light: #6bae6e;
    --secondary-color: #796449;
    --accent-color: #d98a25;
    --text-color: #333333;
    --text-light: #666666;
    --background-color: #ffffff;
    --background-alt: #f9f9f9;
    --background-earth: #f5f5f0;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --error-color: #f44336;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 6px;
    --max-width: 1200px;
    --section-spacing: 5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-earth);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Roboto Slab", serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

p {
    margin-bottom: 1.2rem;
}

ul {
    list-style: none;
}

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

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

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

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.img-placeholder {
    background-color: #e1e1e1;
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border-radius: var(--border-radius);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: "Poppins", sans-serif;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

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

.btn-secondary:hover {
    background-color: #5d4037;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ========== HEADER & NAVIGATION ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--primary-dark);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo span {
    color: var(--secondary-color);
    font-weight: 700;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-list li {
    margin-left: 2rem;
}

.nav-list a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* ========== HERO SECTION ========== */
.hero {
    background:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("assets/hero-bg.jpg") no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-bottom: var(--section-spacing);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ========== ABOUT SECTION ========== */
.about {
    padding: var(--section-spacing) 0;
    background-color: var(--background-color);
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-text,
.about-image {
    flex: 1;
}

.about-image .img-placeholder {
    height: 400px;
}

/* ========== PRODUCTS SECTION ========== */
.products {
    padding: var(--section-spacing) 0;
    background-color: var(--background-earth);
}

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

.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-details {
    padding: 1.5rem;
}

.product-details h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.product-features {
    margin-top: 1rem;
}

.product-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ========== EXAMPLES SECTION ========== */
.examples {
    padding: var(--section-spacing) 0;
    background-color: var(--background-color);
}

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

.example-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.example-item img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.example-item h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    margin: 0;
    padding: 1rem;
    font-size: 1.2rem;
}

/* ========== PRICING SECTION ========== */
.pricing {
    padding: var(--section-spacing) 0;
    background-color: var(--background-earth);
}

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

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

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.pricing-card h3 {
    color: var(--primary-dark);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 1rem 0;
}

.pricing-features {
    text-align: left;
    margin: 1.5rem 0;
}

.pricing-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.7rem;
}

.pricing-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
    z-index: 1;
}

.featured-label {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 0 var(--border-radius) 0 var(--border-radius);
}

.custom-pricing {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.custom-pricing h3,
.vision-mission h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* ========== VISION & MISSION SECTION ========== */
.vision-mission {
    background-color: var(--background-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    margin-top: 4rem;
    box-shadow: var(--box-shadow);
}

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

.vision-item {
    padding: 1.5rem;
    background-color: var(--background-earth);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.vision-item h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.vision-item p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}

/* ========== INSTRUCTIONS SECTION ========== */
.instructions {
    padding: var(--section-spacing) 0;
    background-color: var(--background-color);
}

.instructions-content {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.instructions-text,
.video-container {
    flex: 1;
}

.instruction-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.instruction-tips {
    background-color: var(--background-earth);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.instruction-tips h4 {
    color: var(--secondary-color);
    margin-bottom: 0.7rem;
}

.instruction-tips ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.video-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.video-placeholder {
    background-color: #f5f5f5;
    height: 200px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.video-placeholder:hover {
    background-color: #e8e8e8;
}

.video-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.resources {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--background-earth);
    border-radius: var(--border-radius);
}

.resources h3 {
    color: var(--secondary-color);
}

/* ========== CONTACT SECTION ========== */
.contact {
    padding: var(--section-spacing) 0;
    background-color: var(--background-earth);
}

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

.contact-info {
    background-color: var(--secondary-color);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
}

.contact-info h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.contact-details li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-details i {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: white;
    color: var(--secondary-color);
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
}

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

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 2rem auto;
    max-width: 700px;
    width: 90%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2rem;
    cursor: pointer;
}

.modal h2 {
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.payment-info {
    background-color: var(--background-earth);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.payment-placeholder {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

.card-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 2rem;
    color: var(--text-light);
}

.order-summary {
    background-color: var(--background-earth);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.free-shipping {
    color: var(--success-color);
    font-weight: 700;
}

.total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.secure-info {
    text-align: center;
    color: var(--text-light);
    margin-top: 1rem;
}

/* ========== FOOTER ========== */
.footer {
    background-color: #333;
    color: #fff;
    padding: 4rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2rem;
    letter-spacing: 0.5px;
}

.footer-logo span {
    color: var(--primary-light);
    font-weight: 700;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-section {
    min-width: 150px;
}

.footer-section h3 {
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #ccc;
}

.footer-section ul li a:hover {
    color: white;
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: #aaa;
}

.footer-legal a:hover {
    color: white;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .instructions-content {
        flex-direction: column;
    }

    .vision-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-list {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        z-index: 999;
    }

    .nav-list.active {
        left: 0;
    }

    .nav-list li {
        margin: 1.5rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card.featured {
        transform: none;
    }

    .vision-mission {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }

    .hero {
        height: 90vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.3rem;
    }

    .product-grid,
    .examples-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}
