/* ==========================================================================
   EAZYESIGN SAAS THEME & PUBLIC WEBSITE COMMON STYLES
   Clean, modern, premium typography, responsive layouts, cards, accordions,
   and interactive SaaS elements.
   ========================================================================== */

:root {
    --ez-primary: #2563EB;
    --ez-primary-hover: #1D4ED8;
    --ez-primary-soft: #EFF6FF;
    --ez-navy: #0F172A;
    --ez-navy-dark: #0B0F19;
    --ez-slate: #1E293B;
    --ez-muted: #64748B;
    --ez-light-slate: #F8FAFC;
    --ez-border: #E2E8F0;
    --ez-border-subtle: #EDF2F7;
    --ez-blue: #2563EB;
    --ez-blue-soft: rgba(37, 99, 235, 0.08);
    --ez-shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
    --ez-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --ez-shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
    --ez-radius: 12px;
}

/* Page Wrapper */
.ez-saas-page {
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ez-slate);
    background: #ffffff;
    overflow-x: clip;
}

.ez-saas-page h1,
.ez-saas-page h2,
.ez-saas-page h3,
.ez-saas-page h4 {
    font-family: "Cabin", "Open Sans", sans-serif;
    color: var(--ez-navy);
    font-weight: 700;
    line-height: 1.25;
}

/* Container */
.ez-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Hero Section */
.ez-page-hero {
    padding: 72px 0 56px;
    background: linear-gradient(180deg, #F8FBFC 0%, #FFFFFF 100%);
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--ez-border-subtle);
}

.ez-page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ez-primary-soft);
    color: var(--ez-primary);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ez-page-hero h1 {
    font-size: 46px;
    letter-spacing: -0.025em;
    margin: 0 auto 18px;
    max-width: 860px;
}

.ez-page-hero h1 span.highlight {
    color: var(--ez-primary);
}

.ez-page-hero p.subtitle {
    font-size: 19px;
    color: var(--ez-muted);
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto 32px;
}

.ez-page-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Buttons */
.ez-btn-primary {
    background-color: var(--ez-primary) !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: 8px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.ez-btn-primary:hover {
    background-color: var(--ez-primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.ez-btn-secondary {
    background-color: #ffffff !important;
    color: var(--ez-navy) !important;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--ez-border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ez-btn-secondary:hover {
    background-color: var(--ez-light-slate) !important;
    border-color: #CBD5E1;
    transform: translateY(-2px);
}

/* Sections */
.ez-section {
    padding: 80px 0;
}

.ez-section-alt {
    padding: 80px 0;
    background-color: var(--ez-light-slate);
}

.ez-section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 52px;
}

.ez-section-header .section-badge {
    color: var(--ez-primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 10px;
}

.ez-section-header h2 {
    font-size: 36px;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.ez-section-header p {
    font-size: 17px;
    color: var(--ez-muted);
    line-height: 1.6;
    margin: 0;
}

/* Cards & Grid */
.ez-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.ez-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ez-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.ez-feature-card {
    background: #ffffff;
    border: 1px solid var(--ez-border);
    border-radius: var(--ez-radius);
    padding: 32px 28px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.ez-feature-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--ez-shadow-md);
    transform: translateY(-4px);
}

.ez-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--ez-primary-soft);
    color: var(--ez-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.ez-icon-wrap.teal {
    background: var(--ez-teal-soft);
    color: var(--ez-teal);
}

.ez-feature-card h3 {
    font-size: 20px;
    margin: 0 0 12px;
}

.ez-feature-card p {
    font-size: 15px;
    color: var(--ez-muted);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* Interactive Steps */
.ez-steps-container {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-top: 40px;
}

.ez-step-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.ez-step-row.reverse {
    direction: rtl;
}

.ez-step-row.reverse > * {
    direction: ltr;
}

.ez-step-visual {
    background: #ffffff;
    border: 1px solid var(--ez-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--ez-shadow-md);
    position: relative;
    overflow: hidden;
}

.ez-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ez-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 16px;
}

.ez-step-content h3 {
    font-size: 28px;
    margin: 0 0 14px;
}

.ez-step-content p {
    font-size: 16px;
    color: var(--ez-muted);
    line-height: 1.6;
    margin: 0 0 20px;
}

.ez-step-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ez-step-content ul li {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ez-slate);
}

.ez-step-content ul li i {
    color: #10B981;
    font-size: 14px;
}

/* Interactive Accordion */
.ez-accordion {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ez-accordion-item {
    border: 1px solid var(--ez-border);
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ez-accordion-item.active {
    border-color: #CBD5E1;
    box-shadow: var(--ez-shadow-sm);
}

.ez-accordion-header {
    padding: 20px 24px;
    font-size: 17px;
    font-weight: 700;
    color: var(--ez-navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.ez-accordion-header:hover {
    color: var(--ez-primary);
}

.ez-accordion-header .icon {
    transition: transform 0.25s ease;
    font-size: 14px;
    color: var(--ez-muted);
}

.ez-accordion-item.active .ez-accordion-header .icon {
    transform: rotate(180deg);
    color: var(--ez-primary);
}

.ez-accordion-body {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--ez-muted);
    line-height: 1.65;
    display: none;
}

.ez-accordion-item.active .ez-accordion-body {
    display: block;
}

/* CTA Banner */
.ez-cta-banner {
    background: linear-gradient(135deg, var(--ez-navy) 0%, #1e2d48 100%);
    border-radius: 20px;
    padding: 64px 40px;
    text-align: center;
    color: #ffffff;
    margin: 60px 0 80px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--ez-shadow-lg);
}

.ez-cta-banner h2 {
    color: #ffffff;
    font-size: 38px;
    margin: 0 auto 16px;
    max-width: 760px;
}

.ez-cta-banner p {
    color: #CBD5E1;
    font-size: 18px;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto 32px;
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
    .ez-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .ez-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .ez-step-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .ez-step-row.reverse {
        direction: ltr;
    }
    .ez-page-hero h1 {
        font-size: 36px;
    }
    .ez-section-header h2 {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .ez-grid-4,
    .ez-grid-3,
    .ez-grid-2 {
        grid-template-columns: 1fr;
    }
    .ez-page-hero {
        padding: 48px 0 40px;
    }
    .ez-page-hero h1 {
        font-size: 30px;
    }
    .ez-page-hero p.subtitle {
        font-size: 16px;
    }
    .ez-cta-banner {
        padding: 40px 24px;
        margin: 40px 0 60px;
    }
    .ez-cta-banner h2 {
        font-size: 28px;
    }
}

/* Progressive Scroll Reveal (Graceful fallback: visible if JS disabled) */
.ez-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-reveal-ready .ez-reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(20px);
}

.js-reveal-ready .ez-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility: Respect Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .ez-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
