/* style.css */
:root {
    --primary-color: #008060;
    /* Shopify Green */
    --secondary-color: #004c3f;
    /* Darker Shopify Green */
    --accent-color: #ffc220;
    /* Accent Yellow/Gold */
    --text-color: #212326;
    /* Dark Gray for text */
    --text-light: #6d7175;
    /* Lighter Gray for secondary text */
    --light-bg: #f4f6f8;
    /* Very light gray/blue background */
    --white: #ffffff;
    --border-color: #c9cccf;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Slightly increased for all devices to be safe */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav a {
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease;
    font-size: 1rem;
}

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

/* Mobile Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Nav Styles */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        width: 100%;
        display: none;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
        margin-top: 1rem;
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
    }

    .nav li {
        width: 100%;
        text-align: center;
    }

    .nav a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid #eee;
    }

    .nav li:last-child a {
        border-bottom: none;
    }

    /* Hamburger Animation to X */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--white);
    transform: skewY(-2deg);
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero {
        padding: 5rem 0 6rem 0;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: #ffd859;
    /* Lighter yellow on hover */
}

/* Services */
.services {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Product Cards */
.products {
    padding: 5rem 0;
}

.product-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1.5rem;
    background-color: var(--white);
}

.product-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.product-card .app-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-card h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.product-card p {
    color: #4b5563;
    /* Using a specific shade for description */
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.btn-install {
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-top: auto;
    width: 100%;
    display: inline-block;
    /* Ensure it behaves like a block for width */
    border: none;
    /* Remove default button border */
    cursor: pointer;
    /* Indicate it's clickable */
}

.btn-install:hover {
    background-color: #111827;
    transform: none;
    box-shadow: none;
}

/* Reviews */
.reviews {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.review-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card .stars {
    color: #f59e0b;
    /* Amber/gold */
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.review-card p {
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #374151;
}

.review-card h4 {
    font-weight: 600;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* About */
.about {
    padding: 6rem 0;
    text-align: center;
    background-color: var(--white);
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
}

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

.product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e5e7eb;
}

.product-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Contact */
.contact {
    padding: 6rem 0;
    background-color: var(--white);
}

.contact-form-container {
    max-width: 650px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fafbfb;
    /* Very light subtle gray */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 128, 96, 0.1);
    background-color: var(--white);
}

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

/* Responsive Form */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
}

.btn-submit {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
}

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

/* Toast Notification Component */
.toast {
    visibility: hidden;
    min-width: 300px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.5s, bottom 0.5s, visibility 0.5s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

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

.toast.error {
    background-color: #d82c0d;
    /* Shopify Red */
    color: white;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 3rem 0;
    margin-top: 2rem;
}

.footer p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }
}