/* Custom Styles for Perfect Innovation */

/* Centered layout wrapper to give a modern, centered look */
.centered-layout {
    display: block;
}

/* Center content containers and limit width for readable line-length */
.centered-layout .container {
    margin-left: auto;
    margin-right: auto;
    max-width: 1100px; /* modern readable width */
}

/* Color variables (use a slightly darker green as the primary accent) */
:root {
    --green-500:  #1A7F64; /* new primary green requested by user */
    --green-600:  #166F56; /* darker variant */
    --accent: 164 66% 30%; /* HSL for accent used in inline SVG (h s% l%) */
}

/* Override common Tailwind green utility classes to use our custom green */
.text-green-500 { color: var(--green-500) !important; }
.text-green-600 { color: var(--green-600) !important; }
.bg-green-100 { background-color: rgba(26,127,100,0.06) !important; }
.bg-green-50 { background-color: rgba(26,127,100,0.03) !important; }
.from-green-50 { --tw-gradient-from: rgba(26,127,100,0.04) !important; }
.to-green-600 { --tw-gradient-to: var(--green-600) !important; }

/* Modern default: center headings and primary sections */
.centered-layout section > .container > h2,
.centered-layout section > .container > p,
.centered-layout section .text-center {
    text-align: center;
}

.centered-layout section {
    display: block;
}

/* Apply the same centered container to header and footer so they align with main content */
header .container,
footer .container {
    margin-left: auto;
    margin-right: auto;
    max-width: 1100px;
    padding-left: 1.5rem; /* match existing px-6 */
    padding-right: 1.5rem;
}

/* Footer: center content on small screens while keeping desktop layout */
@media (max-width: 768px) {
    header .flex.justify-between {
        justify-content: center; /* center header items on mobile */
    }

    footer .flex.flex-col.md\\:flex-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    footer .flex.space-x-6 {
        margin-top: 0.75rem;
    }
}

/* Navigation */
.nav-link {
    color: #4b5563; /* gray-600 */
    font-weight: 500;
    text-decoration: none;
    transition: color 100ms ease-in-out, background-color 100ms ease-in-out, transform 100ms ease-in-out;
    padding: 0.45rem 0.6rem; /* make hover target easier to hit */
    border-radius: 0.5rem;
}
.nav-link:hover {
    color: var(--green-500);
    background: rgba(15,154,99,0.08);
}

/* Buttons */
.btn-primary {
    background: var(--green-500);
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(16,185,129,0.12);
    transition: transform 180ms ease, background-color 160ms ease, box-shadow 180ms ease;
}
.btn-primary:hover { background: var(--green-600); transform: scale(1.03); box-shadow: 0 10px 28px rgba(11,138,83,0.12); }

.btn-secondary {
    background: transparent;
    color: var(--green-500);
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid #10b981;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.btn-secondary:hover { background: var(--green-500); color: #fff; }

.btn-outline {
    background: transparent;
    color: var(--green-500);
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #10b981;
    width: 100%;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease;
}
.btn-outline:hover { background: var(--green-500); color: #fff; }

.btn-white {
    background: #fff;
    color: var(--green-500);
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(15,23,42,0.06);
}
.btn-white:hover { background: #f3f4f6; }

.btn-transparent {
    background: transparent;
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid #fff;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease;
}
.btn-transparent:hover { background: #fff; color: var(--green-500); }

/* Hero Section */
.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image i {
    font-size: 6rem;
    opacity: 0.18;
    line-height: 1;
}
.hero-image i { color: var(--green-500); }
@media (min-width: 768px) {
    .hero-image i { font-size: 12rem; }
}

/* Hero section extra vertical spacing for better visual breathing room */
#home {
    padding-top: 6rem; /* default: 96px */
    padding-bottom: 6rem;
}

@media (min-width: 768px) {
    #home {
        padding-top: 8rem; /* larger gap on desktop */
        padding-bottom: 8rem;
    }
}

/* Header button (mobile hamburger) hover/focus styling */
header button {
    padding: 0.35rem 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 160ms ease, transform 160ms ease;
}
header button:hover,
header button:focus {
    background: rgba(15,23,42,0.04);
    transform: translateY(-1px);
}

/* About Section */
.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image i {
    font-size: 5rem;
    opacity: 0.18;
}
.about-image i { color: var(--green-500); }
@media (min-width: 768px) {
    .about-image i { font-size: 6rem; }
}

/* Add gap between the two main columns in the About section */
#about > .container > .flex {
    gap: 1.25rem; /* reasonable gap on small screens */
}

@media (min-width: 768px) {
    #about > .container > .flex {
        gap: 3rem; /* larger horizontal gap on desktop */
    }
}

.feature-item {
    display: flex;
    flex-direction: column; /* stack icon above text */
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(15,23,42,0.04);
    transition: box-shadow 180ms ease, transform 180ms ease;
}
.feature-item:hover { box-shadow: 0 12px 34px rgba(15,23,42,0.07); transform: translateY(-6px); }

.feature-item i { font-size: 1.6rem; color: var(--green-500); }

/* Products Section */
.product-card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(15,23,42,0.06);
    transition: box-shadow 200ms ease, transform 200ms ease;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card:hover { box-shadow: 0 18px 40px rgba(15,23,42,0.08); transform: translateY(-8px); }

.product-icon {
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.product-icon i { font-size: 1.25rem; color: var(--green-500); }

/* Product header: align icon and title inline */
.product-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.product-header .product-icon {
    margin-bottom: 0; /* remove default spacing used for stacked layout */
}

/* Features Section */
.feature-highlight {
    text-align: center;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 8px 28px rgba(15,23,42,0.04);
    transition: box-shadow 180ms ease, transform 180ms ease;
}
.feature-highlight:hover { box-shadow: 0 16px 40px rgba(15,23,42,0.06); transform: translateY(-6px); }

.feature-highlight-icon {
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    background: #ecfdf5; /* green-50 */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}
.feature-highlight-icon i { font-size: 1.25rem; color: var(--green-500); }

/* Form Elements */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.5rem;
    transition: box-shadow 160ms ease, border-color 160ms ease;
}
.form-input:focus { outline: none; box-shadow: 0 0 0 4px rgba(15,154,99,0.12); border-color: var(--green-500); }

/* Social Icons */
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background: #f3f4f6; /* gray-100 */
    color: #4b5563; /* gray-600 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.social-icon:hover { background: var(--green-500); color: #fff; transform: translateY(-3px); }

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Contact form card styles (modern centered form) */
.contact-card {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    padding: 2rem;
}

.contact-card h3 {
    text-align: center;
}

.contact-card .form-row {
    display: flex;
    gap: 1rem;
}

.contact-card .field {
    flex: 1;
}

.contact-card .form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 0.5rem;
    font-size: 1rem;
    color: #111827; /* gray-900 */
}

contact-card .form-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(15,154,99,0.12); /* green ring */
    border-color: var(--green-500); /* green-500 */
}

contact-card .btn-primary {
    display: block;
    width: 100%;
    background: var(--green-500);
    color: white;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
}

contact-card .btn-primary:hover {
    background: var(--green-600); /* green-600 */
}

/* Hero SVG coloring: target paths that use currentColor or hsl(var(--accent)) */
.hero-svg { display: block; width: 100%; max-width: 420px; height: auto; }
.hero-svg path[fill="currentColor"] { fill: var(--green-500); }
.hero-svg path[fill^="hsl"] { fill: hsl(var(--accent)); }


@media (max-width: 768px) {
    .contact-card .form-row {
        flex-direction: column;
    }
}

/* Header scroll effect */
header.scrolled {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-shadow: 0 8px 28px rgba(15,23,42,0.08);
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

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

/* Fix anchors being hidden under the fixed header
   Add scroll-margin so element scrolls into view below the header. */
:root {
    --header-offset-sm: 64px; /* mobile header height approx */
    --header-offset-md: 88px; /* desktop header height approx */
}

section[id], [id] {
    /* default safe offset */
    scroll-margin-top: var(--header-offset-sm);
}

@media (min-width: 768px) {
    section[id], [id] {
        scroll-margin-top: var(--header-offset-md);
    }
}

/* CTA section - clean & minimal, matches site palette */
.cta-section {
    background: linear-gradient(90deg,
        var(--green-600) 0%,
        var(--green-500) 100%
    );
    color: #fff; /* ensure text stands out */
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(15,23,42,0.06);
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background: #fff;
    color: var(--green-600);
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.cta-section .btn-primary:hover {
    background: #f3f4f6;
    color: var(--green-500);
    transform: scale(1.03);
}
