/*
Theme Name: Envention Solutions Theme
Theme URI: https://www.enventionsolutions.com
Description: Custom Gutenberg block theme for Envention Solutions single-page website
Version: 1.0.0
Author: Envention Solutions
Author URI: https://www.enventionsolutions.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: envention-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, block-styles, full-site-editing
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* 
 * This is a block theme that uses theme.json for styling.
 * Most styles should be defined in theme.json or block patterns.
 */

:root {
    --envention-primary: #000000;
    --envention-secondary: #ffffff;
    --envention-accent: #0066cc;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Ensure full-width sections */
.wp-block-group.is-full-width {
    width: 100%;
    max-width: 100%;
}

/* Section styling */
.envention-section {
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Sticky header helper spacing */
.is-position-sticky {
    position: sticky;
    top: 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    z-index: 10;
}

/* Offset for anchor links so content isn't hidden under sticky header */
:target {
    scroll-margin-top: 80px;
}

/* Footer year JS hook */
.envention-year:empty::after {
    content: attr(data-year);
}

/* Header */
.envention-header {
    gap: 32px;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(78, 85, 102, 0.12);
}

.envention-header__brand,
.envention-header__brand a {
    color: #04BFAD;
    text-decoration: none;
}

.envention-header__controls {
    gap: 32px;
}

.envention-header .wp-block-navigation {
    font-size: 16px;
    font-weight: 500;
}

.envention-header .wp-block-navigation-item__content {
    color: #4E5566;
}

.envention-header .wp-block-navigation-item__content:hover,
.envention-header .wp-block-navigation-item__content:focus {
    color: #6C63FF;
}

.envention-header__cta-link .wp-block-navigation-item__content {
    background: #6C63FF;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.25);
    color: #ffffff;
    font-weight: 600;
    padding: 10px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-left: 12px;
}

.envention-header__cta-link .wp-block-navigation-item__content:hover,
.envention-header__cta-link .wp-block-navigation-item__content:focus {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(108, 99, 255, 0.32);
}

.hero-image img {
    border-radius: 32px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.hero-secondary-cta .wp-block-button__link {
    background: transparent;
    border: 2px solid #ffffff;
    border-radius: 999px;
    color: #ffffff;
    padding: 14px 28px;
}

/* Section 2 capability cards */
.capabilities {
    background: radial-gradient(circle at top, rgba(108, 99, 255, 0.08), transparent 65%) #f5f7fb;
}

.capabilities .wp-block-columns {
    flex-wrap: wrap;
}

.capability-card {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.08);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.capability-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.capability-card__icon--mvp {
    background-color: #ede9ff;
}

.capability-card__icon--docs {
    background-color: #fff3df;
}

.capability-card__icon--funding {
    background-color: #e5fbf7;
}

.capability-card__icon-image {
    margin: 0;
}

.capability-card__icon-image img {
    width: 32px;
    height: 32px;
    display: block;
}
.capability-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.capability-card__list li {
    position: relative;
    padding-left: 26px;
    color: #4E5566;
}

.process-section {
    background: #f4f6fb;
}

.process-section__intro p {
    color: #4E5566;
}

.process-steps {
    align-items: stretch;
}

.process-step {
    text-align: center;
    gap: 12px;
    display: flex;
    flex-direction: column;
    color: #4E5566;
}

.process-step__number {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: linear-gradient(180deg, #766BFF 0%, #6254F5 100%);
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 15px 45px rgba(108, 99, 255, 0.35);
}

.process-step h3 {
    color: #101828;
    font-size: 22px;
    font-weight: 600;
}

.process-step p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 220px;
}

/* Temporary: hide Success Stories until real testimonials are ready */
.success-section {
    display: none !important;
}

.success-section__intro p {
    color: #4E5566;
}

.success-cards {
    align-items: stretch;
}

.success-card {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.08);
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.success-card__visual {
    border-radius: 20px;
    height: 220px;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}

.success-card__visual--finance {
    background-image: linear-gradient(135deg, #f8c25a, #f19b2c);
    position: relative;
}

.success-card__visual--finance::after {
    content: "";
    position: absolute;
    inset: 32px;
    border-radius: 16px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="120" viewBox="0 0 160 120"><rect width="160" height="120" rx="18" fill="%23ffffff" opacity="0.9"/><rect x="20" y="24" width="60" height="12" rx="6" fill="%23d0d7e5"/><rect x="20" y="48" width="120" height="12" rx="6" fill="%23d0d7e5"/><rect x="20" y="72" width="90" height="12" rx="6" fill="%23d0d7e5"/></svg>') no-repeat center/contain;
}

.success-card__visual--health {
    background: linear-gradient(135deg, #fdf3f7, #e6f9ff);
    position: relative;
}

.success-card__visual--health::after {
    content: "";
    position: absolute;
    inset: 30px;
    border-radius: 18px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="160" viewBox="0 0 120 160"><rect width="120" height="160" rx="20" fill="%23ffffff" opacity="0.9"/><rect x="20" y="32" width="80" height="80" rx="40" fill="%23fecad9"/><rect x="28" y="122" width="64" height="12" rx="6" fill="%23d0d7e5"/></svg>') no-repeat center/contain;
}

.success-card__visual--eco {
    background: linear-gradient(135deg, #f2e0ff, #ffe9f4);
    position: relative;
}

.success-card__visual--eco::after {
    content: "";
    position: absolute;
    inset: 28px;
    border-radius: 18px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="120" viewBox="0 0 160 120"><rect width="160" height="120" rx="18" fill="%23ffffff" opacity="0.9"/><rect x="22" y="26" width="32" height="32" rx="10" fill="%23cde6ff"/><rect x="62" y="26" width="32" height="32" rx="10" fill="%23ffd9c0"/><rect x="102" y="26" width="32" height="32" rx="10" fill="%23f9c2e2"/><rect x="22" y="72" width="120" height="14" rx="7" fill="%23d0d7e5"/></svg>') no-repeat center/contain;
}

.success-card h3 {
    color: #101828;
    font-size: 20px;
    margin: 0;
}

.success-card p {
    color: #4E5566;
    margin: 0;
}

.success-card__meta {
    margin-top: 24px;
}

.success-card__badge {
    background: #d5f6df;
    color: #067647;
    border-radius: 999px;
    padding: 6px 18px;
    font-weight: 600;
    font-size: 14px;
}

.success-card__timeline {
    color: #98a2b3;
    font-weight: 600;
}

.contact-section {
    background: linear-gradient(180deg, #f8f9ff 0%, #f3f5ff 100%);
}

.contact-section__content p {
    color: #4E5566;
}

.contact-section__details {
    gap: 20px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-detail__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #eee9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.contact-detail__icon--email {
    background: #ece9ff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" stroke="%236c63ff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 6h16v12H4z"/><path d="M4 8l8 5 8-5"/></svg>') no-repeat center;
}

.contact-detail__icon--phone {
    background: #ece9ff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" stroke="%236c63ff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 2h4l2 6-3 2a16 16 0 006 6l2-3 6 2v4a2 2 0 01-2 2A16 16 0 014 6a2 2 0 012-2z"/></svg>') no-repeat center;
}

.contact-detail__icon--time {
    background: #ece9ff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" stroke="%236c63ff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/><path d="M12 7v6l3 2"/></svg>') no-repeat center;
}

.contact-detail__label {
    font-weight: 600;
    color: #101828;
    margin: 0;
}

.contact-detail__value {
    margin: 0;
}

.contact-detail__value a {
    color: #4E5566;
    text-decoration: none;
}

.contact-section__form-wrapper {
    background: #ffffff;
    border-radius: 28px;
    padding: 36px;
    box-shadow: 0 35px 90px rgba(15, 23, 42, 0.08);
}

.contact-section .wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-section .wpcf7-form-control-wrap {
    width: 100%;
}

.contact-section label {
    font-weight: 600;
    color: #101828;
    font-size: 14px;
    line-height: 1.3;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-section input[type="text"],
.contact-section input[type="email"],
.contact-section select,
.contact-section textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #e4e7ec;
    padding: 14px 16px;
    font-size: 16px;
    background: #f7f9fc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-section textarea {
    min-height: 140px;
}

.contact-section input:focus,
.contact-section select:focus,
.contact-section textarea:focus {
    outline: none;
    border-color: #6c63ff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.contact-section .wpcf7-submit {
    background: #6c63ff;
    color: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 20px 45px rgba(108, 99, 255, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-section .wpcf7-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 55px rgba(108, 99, 255, 0.4);
}

.contact-section .wpcf7-not-valid-tip {
    color: #d92d20;
    font-size: 13px;
}

.contact-section .wpcf7-response-output {
    margin: 12px 0 0;
    border-radius: 12px;
    border-width: 1px;
}

.envention-footer {
    background: #0f172a;
    color: #d5dcf2;
    border-radius: 0;
}

.envention-footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.envention-footer a:hover,
.envention-footer a:focus {
    color: #8ba7ff;
}

.envention-footer__columns {
    gap: 32px;
}

.envention-footer__brand-name {
    font-size: 24px;
    font-weight: 700;
    color: #7d82ff;
    margin-bottom: 16px;
}

.envention-footer__description {
    color: #a6b4d0;
    line-height: 1.6;
    margin-bottom: 24px;
}

.envention-footer__heading {
    font-weight: 600;
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 16px;
}

.envention-footer__links {
    gap: 8px !important;
}

.envention-footer__links p {
    margin: 0;
    color: #ccd5eb;
    font-size: 15px;
}

.envention-footer__social {
    gap: 14px;
}

.envention-footer__social .wp-social-link {
    padding: 0;
}

.envention-footer__social .wp-social-link a {
    color: #cfd6ec;
}

.envention-footer__social .wp-social-link a:hover,
.envention-footer__social .wp-social-link a:focus {
    color: #8ba7ff;
}

.envention-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.envention-footer__copyright {
    color: #8693af;
    font-size: 14px;
    margin: 0;
}

@media (max-width: 900px) {
    .envention-footer {
        border-radius: 0;
    }

    .envention-footer__columns {
        flex-wrap: wrap;
    }

    .envention-footer .wp-block-column {
        flex-basis: 100% !important;
    }

    .envention-footer__brand {
        margin-bottom: 24px;
    }
}

@media (max-width: 1024px) {
    .process-steps {
        flex-wrap: wrap;
        gap: 32px !important;
    }

    .process-step {
        flex: 1 1 calc(50% - 32px);
    }

    .success-cards {
        flex-wrap: wrap;
        gap: 28px !important;
    }

    .success-card {
        flex: 1 1 calc(50% - 28px);
    }
}

@media (max-width: 600px) {
    .process-step {
        flex: 1 1 100%;
    }

    .success-card {
        flex: 1 1 100%;
    }

    .contact-section__form-wrapper {
        padding: 28px;
    }
}

.capability-card__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #6C63FF;
    font-weight: 700;
}

@media (max-width: 782px) {
    .envention-header {
        flex-wrap: wrap;
        gap: 16px;
    }

    .envention-header__controls {
        width: 100%;
        justify-content: space-between;
    }

    .envention-header .wp-block-navigation {
        flex: 1;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .envention-header__cta-link {
        margin-left: auto;
    }
}
