/* ─── Web Development Public Page Styles ─── */

/* ─── Reasons Grid ─── */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.reason-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    transition: border-color 0.3s, background 0.3s;
}

.reason-card:hover {
    background: rgba(10, 10, 15, 0.9);
    border-color: var(--border-red);
}

.reason-card .reason-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 0.75rem;
    line-height: 1;
    opacity: 0.8;
}

.reason-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text);
    font-weight: 600;
}

.reason-card p {
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.7;
}

/* ─── Services Grid ─── */
.services-grid-webdev {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .services-grid-webdev {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid-webdev {
        grid-template-columns: 1fr;
    }
}

.service-card-webdev {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: border-color 0.3s, transform 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card-webdev:hover {
    transform: translateY(-4px);
    border-color: var(--border-red);
    background: rgba(10, 10, 15, 0.9);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.service-card-webdev::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card-webdev:hover::before {
    opacity: 1;
}

.service-card-webdev h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text);
    font-weight: 600;
}

.service-card-webdev .service-desc {
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.7;
}

/* ─── Chooses Grid ─── */
.chooses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .chooses-grid {
        grid-template-columns: 1fr;
    }
}

.choose-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: border-color 0.3s, background 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.choose-card:hover {
    background: rgba(10, 10, 15, 0.9);
    border-color: var(--border-red);
}

.choose-card h3 {
    font-size: 1rem;
    color: var(--text);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.choose-card h3::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
}

.choose-card p {
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.7;
    padding-right: 1.1rem;
}

/* ─── WhatsApp CTA ─── */
.whatsapp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2.5rem;
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #25d366;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    margin-bottom: 2rem;
}

.whatsapp-cta:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.5);
    transform: translateY(-2px);
}

.whatsapp-cta svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ─── Contact Form ─── */
.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.webdev-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-sub);
}

.form-group input,
.form-group textarea {
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: var(--font);
    transition: border-color 0.2s, background 0.2s;
    width: 100%;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    margin-top: 0.5rem;
}

.form-actions .button {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.contact-success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem 2rem;
    background: rgba(80, 250, 123, 0.08);
    border: 1px solid rgba(80, 250, 123, 0.25);
    border-radius: var(--radius);
    text-align: center;
    color: #50fa7b;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-success-message svg {
    width: 48px;
    height: 48px;
    fill: currentColor;
}

.contact-error {
    padding: 0.75rem 1rem;
    background: var(--red-dim);
    border: 1px solid var(--border-red);
    border-radius: 8px;
    color: var(--red-bright);
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-sub);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    direction: ltr;
}

.contact-link:hover {
    color: var(--text);
}

.contact-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ─── Section Background helpers ─── */
.bg-gray {
    background: rgba(255, 255, 255, 0.018);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ─── Alignment overrides for RTL/LTR ─── */
:lang(he), :lang(ar) {
    direction: rtl;
    text-align: right;
}

:lang(en), :lang(ru) {
    direction: ltr;
    text-align: left;
}
