/* WCTLGM Theme Custom Styles */

/* Import Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* General Styling */
body {
    font-family: var(--wp--preset--font-family--sf-pro);
    color: var(--wp--preset--color--dark);
    background-color: var(--wp--preset--color--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Section styling */
.wctlgm-section {
    padding: var(--wp--custom--spacing--large) 0;
    overflow: hidden;
}

.wctlgm-section-hero {
    background: var(--wp--preset--gradient--primary-to-secondary);
    color: var(--wp--preset--color--white);
    position: relative;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
}

.wctlgm-section-features {
    background-color: var(--wp--preset--color--light);
}

.wctlgm-section-problem {
    background-color: var(--wp--preset--color--light);
    padding: 4rem 0;
}

.wctlgm-section-cta {
    background: var(--wp--preset--gradient--dark-to-primary);
    color: var(--wp--preset--color--white);
    text-align: center;
    padding: var(--wp--custom--spacing--large) 0;
}

/* Problem section styling */
.wctlgm-problem-box {
    background-color: var(--wp--preset--color--white);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    height: 100%;
}

.wctlgm-problem-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.1);
}

/* Benefit section styling */
.wctlgm-benefit-box {
    background-color: var(--wp--preset--color--white);
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.wctlgm-benefit-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(74, 111, 227, 0.12);
}

.wctlgm-benefit-image {
    margin-top: 2rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.wctlgm-benefit-box:hover .wctlgm-benefit-image {
    opacity: 1;
}

/* Button variations */
.wp-element-button.is-style-outline {
    background-color: transparent;
    color: var(--wp--preset--color--primary);
    border: 2px solid var(--wp--preset--color--primary);
}

.wp-element-button.is-style-outline:hover {
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
}

.wp-element-button.is-style-accent {
    background-color: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--white);
}

.wp-element-button.is-style-accent:hover {
    background-color: #2ea84c; /* Darker accent color */
}

/* Feature box styling */
.wctlgm-feature-box {
    background-color: var(--wp--preset--color--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wctlgm-feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.wctlgm-feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(74, 111, 227, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Pricing table styling */
.wctlgm-pricing-table {
    background-color: var(--wp--preset--color--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.wctlgm-pricing-table:hover {
    transform: scale(1.02);
}

.wctlgm-pricing-table.featured {
    border: 2px solid var(--wp--preset--color--primary);
    box-shadow: 0 8px 30px rgba(74, 111, 227, 0.15);
}

.wctlgm-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--wp--preset--color--primary);
    margin: 1.5rem 0;
}

.wctlgm-price-period {
    font-size: 1rem;
    color: #6c757d;
}

/* Use Cases styling */
.wctlgm-use-case {
    background-color: var(--wp--preset--color--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.wctlgm-use-case:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.wctlgm-use-case h4 {
    color: var(--wp--preset--color--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.wctlgm-use-case p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.wctlgm-use-case .is-style-checkmark-list {
    margin: 0;
    padding-left: 0;
}

.wctlgm-use-case .is-style-checkmark-list li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #495057;
}

.wctlgm-use-case ul.is-style-checkmark-list li {
    padding-inline-start: 20px;
}

/* Testimonials styling */
.wctlgm-testimonial {
    background-color: var(--wp--preset--color--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.wctlgm-testimonial:before {
    content: "\201C";
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(74, 111, 227, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.wctlgm-testimonial-content {
    padding-top: 1.5rem;
    font-style: italic;
}

.wctlgm-testimonial-author {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
}

.wctlgm-testimonial-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.wctlgm-testimonial-author-name {
    font-weight: 600;
    margin: 0;
}

.wctlgm-testimonial-author-title {
    color: #6c757d;
    font-size: 0.875rem;
    margin: 0;
}

/* FAQ styling */
.wctlgm-faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
}

.wctlgm-faq-question {
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wctlgm-faq-question:after {
    content: "+";
    font-size: 1.5rem;
}

.wctlgm-faq-question.active:after {
    content: "−";
}

.wctlgm-faq-answer {
    margin-top: 1rem;
    display: none;
}

.wctlgm-faq-answer.active {
    display: block;
}

/* Contact form styling */
.wctlgm-contact-form input:not([type="submit"]),
.wctlgm-contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.wctlgm-contact-form textarea {
    min-height: 150px;
}

.wctlgm-contact-form input[type="submit"] {
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wctlgm-contact-form input[type="submit"]:hover {
    background-color: var(--wp--preset--color--secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wctlgm-section-hero {
        padding: var(--wp--custom--spacing--large) 0;
    }
    
    .wctlgm-feature-box,
    .wctlgm-pricing-table,
    .wctlgm-testimonial {
        margin-bottom: 2rem;
    }
}

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

.wctlgm-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.wctlgm-animate.wctlgm-visible {
    opacity: 1;
    transform: translateY(0);
}

.wctlgm-delay-1 {
    transition-delay: 0.1s;
}
.wctlgm-delay-2 {
    transition-delay: 0.2s;
}
.wctlgm-delay-3 {
    transition-delay: 0.3s;
}
.wctlgm-delay-4 {
    animation-delay: 0.8s;
}

/* Buttons */
.wp-block-button.is-style-accent .wp-element-button {
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
}

.wp-block-button.is-style-accent .wp-element-button:hover {
    opacity: 0.9;
}

/* Hero Section */
.wctlgm-hero-text h1 {
    margin-bottom: 15px;
}

.wctlgm-hero-text h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

/* Features Section */
.wctlgm-feature-box {
    padding: 30px;
    border-radius: 8px;
    background-color: var(--wp--preset--color--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wctlgm-feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.wctlgm-feature-box h3 {
    margin-top: 15px;
    margin-bottom: 10px;
}

/* How It Works Section */
.wctlgm-step-box {
    padding: 25px;
    border-radius: 8px;
    background-color: var(--wp--preset--color--white);
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.wctlgm-step-box img {
    margin-bottom: 15px;
    max-width: 80px;
    height: auto;
}

/* Pricing Tables */
.wctlgm-pricing-table {
    padding: 40px 30px;
    border-radius: 8px;
    background-color: var(--wp--preset--color--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wctlgm-pricing-table:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.wctlgm-pricing-table.featured {
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--wp--preset--color--primary);
}

.wctlgm-price {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 20px;
    margin-bottom: 0;
    color: var(--wp--preset--color--primary);
}

.wctlgm-price-period {
    font-size: 14px;
    margin-top: 5px;
    color: var(--wp--preset--color--contrast);
}

.is-style-checkmark-list {
    list-style: none;
    padding-left: 0;
}

.is-style-checkmark-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    list-style: none;
}

.is-style-checkmark-list li::marker {
    display: none;
}

.is-style-checkmark-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--wp--preset--color--primary);
    font-weight: bold;
    font-size: 1em;
    line-height: 1.4;
}

/* Testimonials */
.wctlgm-testimonial {
    position: relative;
    padding: 30px;
    border-radius: 8px;
    background-color: var(--wp--preset--color--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.wctlgm-testimonial:before {
    content: "\201C";
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 60px;
    line-height: 1;
    color: var(--wp--preset--color--primary);
    opacity: 0.2;
}

/* FAQ Styles */
.wctlgm-faqs {
    max-width: 800px;
    margin: 0 auto;
}

.wctlgm-faq-item {
    background-color: var(--wp--preset--color--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.wctlgm-faq-item summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.wctlgm-faq-item summary::-webkit-details-marker {
    display: none;
}

.wctlgm-faq-item summary:after {
    content: "+";
    position: absolute;
    right: 20px;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.wctlgm-faq-item[open] summary:after {
    content: "-";
}

.wctlgm-faq-item p {
    padding: 0 20px 20px;
    margin: 0;
}

.wctlgm-cta-box {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Contact Form Styles */
.wctlgm-form {
    margin-bottom: 20px;
}

.wctlgm-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.wctlgm-form-group {
    width: 100%;
    margin-bottom: 20px;
}

.wctlgm-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.wctlgm-form input[type="text"],
.wctlgm-form input[type="email"],
.wctlgm-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.3s;
}

.wctlgm-form input[type="text"]:focus,
.wctlgm-form input[type="email"]:focus,
.wctlgm-form textarea:focus {
    border-color: var(--wp--preset--color--primary);
    outline: none;
}

.wctlgm-form-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.wctlgm-form-checkbox input {
    margin-top: 5px;
    margin-right: 10px;
}

.wctlgm-submit-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--wp--preset--color--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.wctlgm-submit-button:hover {
    background-color: var(--wp--preset--color--primary-dark, #0056b3);
}

/* Comparison Table Styling */
.wctlgm-comparison-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.wctlgm-comparison-table thead tr {
    background-color: var(--wp--preset--color--primary);
}

.wctlgm-comparison-table thead th {
    color: white;
    font-weight: 700;
    padding: 20px 15px;
    text-align: left;
    border: none;
}

.wctlgm-comparison-table thead th:first-child {
    text-align: left;
}

.wctlgm-comparison-table thead th:not(:first-child) {
    text-align: center;
}

.wctlgm-comparison-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    background-color: white;
}

.wctlgm-comparison-table tbody tr:last-child {
    border-bottom: none;
}

.wctlgm-comparison-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.wctlgm-comparison-table tbody td {
    padding: 15px;
    border: none;
}

.wctlgm-comparison-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
}

.wctlgm-comparison-table tbody td:not(:first-child) {
    text-align: center;
}

.wctlgm-checkmark {
    color: #22c55e;
    font-weight: 900;
    font-size: 1.4em;
    line-height: 1;
}

.wctlgm-cross {
    color: #ef4444;
    font-weight: 900;
    font-size: 1.4em;
    line-height: 1;
}

/* Price row styling - target last row */
.wctlgm-comparison-table table tbody tr:last-child {
    border-top: 2px solid #e0e0e0;
    background-color: #f8f9fa;
}

.wctlgm-comparison-table table tbody tr:last-child td:first-child {
    font-weight: 700;
    font-size: 1.1em;
}

.wctlgm-comparison-table table tbody tr:last-child td:not(:first-child) {
    font-weight: 700;
    font-size: 1.5em;
    color: var(--wp--preset--color--accent);
}

.wctlgm-comparison-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Adjustments */
@media (max-width: 781px) {
    .wctlgm-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .wctlgm-contact-details {
        margin-bottom: 30px;
    }
    
    .wctlgm-comparison-container {
        max-width: 100%;
        margin: 0 15px;
    }
    
    .wctlgm-comparison-table thead th,
    .wctlgm-comparison-table tbody td {
        padding: 12px 8px;
        font-size: 0.9em;
    }
}

/* Core Adjustments */
footer.wp-block-template-part {
    margin-block-start: 0;
}