/* SERVICES GLOBAL STYLES */

/* Features Grid (e.g. Beneficii, Caracteristici) */
.service-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem 0;
}
@media (min-width: 768px) {
    .service-features {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .service-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-box {
    display: grid;
    grid-template-columns: min-content 1fr;
    grid-template-rows: min-content 1fr;
    grid-template-areas: 
        "icon title"
        ". desc";
    gap: 0.5rem 1.5rem;
    background: var(--bg-color, #ffffff);
    padding: 2rem;
    border-radius: var(--border-radius-md, 8px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color, #e5e7eb);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}
.feature-box__icon {
    grid-area: icon;
    color: var(--primary-color, #010ED0);
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-box__title {
    grid-area: title;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text-color, #111313);
    align-self: center;
}
.feature-box__desc {
    grid-area: desc;
    color: var(--text-muted, #4b5563);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 4rem 0;
}
@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--border-radius-lg, 12px);
    padding: 2.5rem 2rem;
    text-align: left;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.pricing-card--popular {
    border-color: var(--primary-color, #010ED0);
    position: relative;
    box-shadow: 0 10px 15px rgba(1, 14, 208, 0.1);
}
.pricing-card__badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color, #010ED0);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}
.pricing-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.pricing-card__price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color, #010ED0);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: baseline;
}
.pricing-card__currency {
    font-size: 1.25rem;
    margin-right: 0.25rem;
}
.pricing-card__period {
    font-size: 1rem;
    color: var(--text-muted, #4b5563);
    font-weight: 400;
    margin-left: 0.25rem;
}
.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
    flex-grow: 1;
}
.pricing-card__features li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #4b5563;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pricing-card__features li:last-child {
    border-bottom: none;
}
.pricing-card__features li::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
}
.pricing-card__features li.disabled {
    color: #9ca3af;
}
.pricing-card__features li.disabled::before {
    content: "✕";
    color: #ef4444;
}
.pricing-card__btn {
    margin-top: 1.5rem;
}

/* FAQ Accordion */
.faq-section {
    margin: 4rem 0;
}
.faq-item {
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    padding: 1.5rem 0;
}
.faq-item__question {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color, #111313);
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item__question::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color, #010ED0);
    transition: transform 0.3s;
}
.faq-item.active .faq-item__question::after {
    transform: rotate(45deg);
}
.faq-item__answer {
    margin-top: 1rem;
    color: var(--text-muted, #4b5563);
    line-height: 1.6;
    display: none;
}
.faq-item.active .faq-item__answer {
    display: block;
}

.faq-item--static .faq-item__answer {
    display: block;
}
.faq-item--static .faq-item__question {
    cursor: default;
}
.faq-item--static .faq-item__question::after {
    display: none;
}

/* Content Blocks */
.content-block {
    margin: 3rem 0;
}
.content-block h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color, #111313);
}
.content-block h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color, #111313);
}
.content-block p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-muted, #4b5563);
}
.content-block ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.content-block ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Service Detail Hero Styling */
.service-hero {
    padding: var(--space-20) 0;
    background: var(--nws-gradient-hero, #010ED0);
    text-align: left;
}
.service-hero__content {
    max-width: 900px;
    
}
.service-hero__label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-4);
}
.service-hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: #FFFFFF !important;
}
.service-hero__subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: var(--space-10);
    max-width: 800px;
    
    
}
.service-hero__actions {
    margin-top: var(--space-8);
}


/* New Service Content Styling */
.intro-block {
    text-align: left;
    max-width: 800px;
    margin: 0 0 3rem 0;
}
.intro-block .content-block__title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.text-gradient {
    background: var(--nws-gradient-primary, linear-gradient(135deg, #010ED0 0%, #00d2ff 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.intro-block .content-block__lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-color, #111313);
    margin-bottom: 1rem;
    font-weight: 500;
}
.highlight-box {
    background-color: rgba(1, 14, 208, 0.05);
    border-left: 4px solid var(--primary-color, #010ED0);
    padding: 2.5rem;
    border-radius: 0 8px 8px 0;
}
.highlight-box__title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-color, #010ED0);
}
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--bg-color, #fff);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color, #e5e7eb);
}
.benefit-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color, #010ED0);
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.benefit-item__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.benefit-item__content p {
    margin: 0;
    color: var(--text-muted, #4b5563);
    line-height: 1.5;
}

/* Utils */
.mt-12 { margin-top: 3rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-16 { margin-top: 4rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.font-bold { font-weight: 700; }
.text-primary { color: var(--primary-color, #010ED0); }

/* Services Grid for related services and listing */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--grid-gap, 24px);
    margin-top: 2rem;
}
@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}



/* Service layout with narrow sidebar */
.service-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .service-layout {
        grid-template-columns: 1fr 340px;
        gap: 4rem;
        align-items: start;
    }
}



/* ============================================================
   CONTACT FORM SECTION PENTRU SERVICII
   ============================================================ */
.hp-contact-sec {
    padding: 80px 0;
    background: var(--nws-surface);
}
.hp-contact-wrapper {
    display: flex;
    gap: 0; 
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center; /* Centrat vertical! */
}
.hp-contact-left {
    width: 60%;
    position: relative;
    z-index: 1;
}
.hp-contact-label {
    display: inline-block;
    background: var(--nws-surface-2);
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.hp-contact-title {
    font-family: 'Inter', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--nws-text);
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -1px;
}
.hp-contact-left-bg {
    background: #d6e2f1; /* Light pastel blue bg from image */
    padding: 60px 60px 60px 0; 
    padding-left: 40px;
    margin-left: -40px; 
    border-radius: 8px 0 0 8px;
    width: 115%; 
    position: relative;
    z-index: 0;
}
.hp-contact-desc {
    font-size: 16px;
    color: #334155;
    margin-bottom: 25px;
    max-width: 80%;
}
.hp-contact-email {
    font-size: 16px;
    color: #0f172a;
    margin-bottom: 30px;
}
.hp-contact-list-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
}
.hp-contact-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 10px;
}
.hp-contact-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #0f172a;
    font-weight: 500;
}
.hp-contact-steps {
    display: flex;
    align-items: center;
    gap: 15px;
}
.hp-contact-steps .step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #0f172a;
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
}
.hp-contact-steps .step span {
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}
.hp-contact-steps .step-arrow {
    display: flex;
    align-items: center;
    color: #94a3b8;
}

/* Dreapta Formular */
.hp-contact-right {
    width: 40%;
    position: relative;
    z-index: 2; /* Suprapus peste fundalul albastru */
    display: flex;
    align-items: center; /* Centrat in dreapta */
    justify-content: flex-end;
}
.hp-contact-form-card {
    background: var(--nws-surface-2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    margin-top: 0; /* Fara margin top deoarece e centrat vertical */
}
.hp-form .form-row {
    display: flex;
    gap: 15px;
}
.hp-form .form-group {
    margin-bottom: 15px;
    flex: 1;
}
.hp-form label {
    display: block;
    font-size: 12px;
    color: #475569;
    margin-bottom: 5px;
}
.hp-form input,
.hp-form select,
.hp-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}
.hp-form input:focus,
.hp-form select:focus,
.hp-form textarea:focus {
    border-color: #3b82f6;
}
.form-header-wrapper {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 25px;
    margin-bottom: 25px;
    position: relative;
}
.hp-contact-form-card .form-title {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    margin: 0;
}
.form-arrow-down {
    position: absolute;
    bottom: -10px;
    left: 20%;
    background: var(--nws-surface-2);
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    margin: 0;
}
.btn-submit {
    display: block;
    width: 100%;
    background: #010ED0;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 20px;
}
.btn-submit:hover {
    background: #010ab0;
}

@media (max-width: 1024px) {
    .hp-contact-wrapper {
        flex-direction: column;
    }
    .hp-contact-left, .hp-contact-right {
        width: 100%;
    }
    .hp-contact-left-bg {
        width: 100%;
        margin-left: 0;
        padding-left: 20px;
        padding-right: 20px;
        border-radius: 8px;
    }
    .hp-contact-form-card {
        margin-top: 30px;
        max-width: 100%;
    }
}

/* ============================================================
   BENTO GRID LAYOUT (SERVICES)
   ============================================================ */
.services-bento {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .services-bento {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-bento {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: minmax(280px, auto);
    }
    
    /* Bento Assymetry using nth-child */
    /* 1st card: Large Square (spans 2x2) */
    .services-bento .service-card:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }
    /* 4th card: Wide Rectangle */
    .services-bento .service-card:nth-child(4) {
        grid-column: span 2;
    }
    /* 5th card: Wide Rectangle */
    .services-bento .service-card:nth-child(5) {
        grid-column: span 2;
    }
}

/* Glassmorphism adjustments for Bento Cards */
.services-bento .service-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.services-bento .service-card:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.services-bento .service-card__icon {
    margin-bottom: auto; /* Pushes content down */
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 1rem;
    border-radius: var(--radius-lg, 12px);
}

/* Fix SVG sizing inside the cards */
.services-bento .service-card__icon svg {
    width: 3.5rem;
    height: 3.5rem;
    stroke: var(--card-accent, #010ED0);
    stroke-width: 1.5;
}

.services-bento .service-card__content {
    position: relative;
    z-index: 2;
    margin-top: 2rem;
}

.services-bento .service-card:nth-child(1) .service-card__icon svg {
    width: 6rem;
    height: 6rem;
}
.services-bento .service-card:nth-child(1) .service-card__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Dark Mode Overrides for Bento Cards */
[data-theme="dark"] .services-bento .service-card {
  background: var(--nws-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .services-bento .service-card:hover {
  background: var(--nws-surface-3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================================
   DARK MODE OVERRIDES FOR SERVICES DETAIL PAGE
   ============================================================ */
[data-theme="dark"] .feature-box {
    background: var(--nws-surface) !important;
    border-color: var(--nws-border) !important;
}
[data-theme="dark"] .feature-box__title {
    color: var(--nws-text) !important;
}
[data-theme="dark"] .feature-box__desc {
    color: var(--nws-text-soft) !important;
}

[data-theme="dark"] .benefit-item {
    background: var(--nws-surface) !important;
    border-color: var(--nws-border) !important;
}
[data-theme="dark"] .benefit-item__title {
    color: var(--nws-text) !important;
}
[data-theme="dark"] .benefit-item__desc {
    color: var(--nws-text-soft) !important;
}

[data-theme="dark"] .pricing-card {
    background: var(--nws-surface) !important;
    border-color: var(--nws-border) !important;
}
[data-theme="dark"] .pricing-card--popular {
    background: var(--nws-surface-3) !important;
}
[data-theme="dark"] .pricing-plan,
[data-theme="dark"] .pricing-price,
[data-theme="dark"] .pricing-card__title,
[data-theme="dark"] .pricing-card__price,
[data-theme="dark"] .pricing-card__feature {
    color: var(--nws-text) !important;
}
[data-theme="dark"] .pricing-period,
[data-theme="dark"] .pricing-card__desc,
[data-theme="dark"] .pricing-card__period {
    color: var(--nws-text-soft) !important;
}
[data-theme="dark"] .pricing-card__features li {
    color: var(--nws-text) !important;
}

[data-theme="dark"] .hp-contact-sec {
    background: var(--nws-bg) !important;
}
[data-theme="dark"] .hp-contact-left-bg {
    background: var(--nws-surface-2) !important;
}
[data-theme="dark"] .hp-contact-form-card {
    background: var(--nws-surface) !important;
    border-color: var(--nws-border) !important;
}
[data-theme="dark"] .hp-contact-title,
[data-theme="dark"] .hp-contact-list-title,
[data-theme="dark"] .hp-contact-benefits li,
[data-theme="dark"] .hp-contact-email,
[data-theme="dark"] .form-label {
    color: var(--nws-text) !important;
}
[data-theme="dark"] .hp-contact-desc {
    color: var(--nws-text-soft) !important;
}
[data-theme="dark"] .hp-contact-form-group input,
[data-theme="dark"] .hp-contact-form-group textarea {
    background: var(--nws-surface-3) !important;
    border-color: var(--nws-border) !important;
    color: var(--nws-text) !important;
}

[data-theme="dark"] .faq-item {
    border-color: var(--nws-border) !important;
}
[data-theme="dark"] .faq-item__question {
    color: var(--nws-text) !important;
}
[data-theme="dark"] .faq-item__answer {
    color: var(--nws-text-soft) !important;
}
[data-theme="dark"] .faq-item__question::after {
    color: var(--nws-primary-light) !important;
}

/* ============================================================
   EXTRA DARK MODE OVERRIDES (CONTENT & LABELS & BUTTONS)
   ============================================================ */
[data-theme="dark"] .content-block h2,
[data-theme="dark"] .content-block h3,
[data-theme="dark"] .intro-block .content-block__lead,
[data-theme="dark"] .form-title {
    color: var(--nws-text) !important;
}

[data-theme="dark"] .content-block p,
[data-theme="dark"] .content-block ul li,
[data-theme="dark"] .hp-contact-sec label,
[data-theme="dark"] .form-group label {
    color: var(--nws-text-soft) !important;
}

/* Procedura rapida steps */
[data-theme="dark"] .hp-contact-steps .step {
    color: var(--nws-text-soft) !important;
}
[data-theme="dark"] .hp-contact-steps .step span,
[data-theme="dark"] .hp-contact-steps .step-title {
    color: var(--nws-text) !important;
}

/* Pricing Buttons */
[data-theme="dark"] .pricing-card .btn-outline-primary {
    border-color: var(--nws-primary-light) !important;
    color: var(--nws-primary-light) !important;
    background: transparent !important;
}
[data-theme="dark"] .pricing-card .btn-outline-primary:hover {
    background: rgba(255,255,255,0.1) !important;
    color: var(--nws-text) !important;
}

/* Fix for .text-primary and .text-gradient in Dark Mode */
[data-theme="dark"] .text-primary {
    color: var(--nws-primary-light) !important;
}
[data-theme="dark"] .text-gradient {
    background: linear-gradient(135deg, var(--nws-primary-light) 0%, #a78bfa 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
