/*
Theme Name: רפואה שלמה
Theme URI: https://myrights.org.il
Author: רפואה שלמה
Author URI: https://myrights.org.il
Description: תבנית מודרנית למימוש ומיצוי זכויות רפואיות
Version: 1.0
Text Domain: myrights
Tags: rtl-language, medical, rights, blue, modern
*/

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue-dark:    #0d3b6e;
    --blue-main:    #1565a8;
    --blue-mid:     #1e88e5;
    --blue-light:   #bbdefb;
    --blue-pale:    #e8f4fd;
    --white:        #ffffff;
    --gray-100:     #f5f7fa;
    --gray-200:     #eaecef;
    --gray-500:     #9aa5b4;
    --gray-700:     #4a5568;
    --gray-900:     #1a202c;
    --shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:    0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg:    0 8px 32px rgba(0,0,0,0.14);
    --radius:       10px;
    --radius-lg:    18px;
    --transition:   0.25s ease;
}

html {
    direction: rtl;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Heebo', Arial, sans-serif;
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--blue-main);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--blue-dark); }

img { max-width: 100%; height: auto; display: block; }

.container {
    width: 90%;
    max-width: 1160px;
    margin: 0 auto;
}

/* ===========================
   GOOGLE FONT IMPORT (Heebo)
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800&display=swap');

/* ===========================
   HEADER & NAVIGATION
=========================== */
#site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--blue-main);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--blue-main), var(--blue-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
}

.site-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--blue-dark);
    line-height: 1.2;
}

.site-subtitle {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 400;
}

/* Nav */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0.25rem;
}

.main-nav a {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.main-nav a:hover,
.main-nav .current-menu-item a {
    background: var(--blue-pale);
    color: var(--blue-main);
}

/* CTA in nav */
.nav-cta a {
    background: var(--blue-main) !important;
    color: var(--white) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 50px !important;
}
.nav-cta a:hover {
    background: var(--blue-dark) !important;
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    border: none;
    background: transparent;
}
.menu-toggle span {
    width: 26px;
    height: 2px;
    background: var(--blue-dark);
    border-radius: 2px;
    transition: all var(--transition);
    display: block;
}

/* ===========================
   HERO
=========================== */
.hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-main) 60%, var(--blue-mid) 100%);
    color: var(--white);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(8px);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.hero h1 span {
    color: var(--blue-light);
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--white);
    color: var(--blue-dark);
}
.btn-primary:hover {
    background: var(--blue-pale);
    color: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border-color: var(--white);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(12px);
    width: 100%;
    max-width: 340px;
}

.hero-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

.stat-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
}

.stat-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-label { font-size: 0.8rem; opacity: 0.75; }
.stat-value { font-size: 1.2rem; font-weight: 800; }

/* ===========================
   TRUST BAR
=========================== */
.trust-bar {
    background: var(--blue-pale);
    border-bottom: 1px solid var(--blue-light);
    padding: 1rem 0;
}

.trust-bar-inner {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--blue-dark);
    font-weight: 600;
}

.trust-icon { font-size: 1.1rem; }

/* ===========================
   SECTIONS GENERAL
=========================== */
section { padding: 4.5rem 0; }

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    background: var(--blue-pale);
    color: var(--blue-main);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--blue-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-700);
    max-width: 560px;
    margin: 0 auto;
}

/* ===========================
   SERVICES
=========================== */
.services { background: var(--gray-100); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--blue-main);
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-light);
}

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

.service-icon-wrap {
    width: 56px;
    height: 56px;
    background: var(--blue-pale);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    transition: background var(--transition);
}

.service-card:hover .service-icon-wrap {
    background: var(--blue-main);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.6;
}

/* ===========================
   WHY US
=========================== */
.why-us-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-text .section-header {
    text-align: right;
    margin-bottom: 2rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-check {
    width: 32px;
    height: 32px;
    background: var(--blue-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-main);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item h4 {
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 0.2rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--gray-700);
}

.why-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.why-stat-box {
    background: var(--blue-pale);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--blue-light);
}

.why-stat-box:first-child {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-main));
    color: white;
}

.why-stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--blue-main);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.why-stat-box:first-child .why-stat-num { color: white; }

.why-stat-label {
    font-size: 0.85rem;
    color: var(--gray-700);
    font-weight: 600;
}

.why-stat-box:first-child .why-stat-label { color: rgba(255,255,255,0.8); }

/* ===========================
   TESTIMONIALS
=========================== */
.testimonials { background: var(--gray-100); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.stars {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-main), var(--blue-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.author-name { font-weight: 700; color: var(--blue-dark); font-size: 0.9rem; }
.author-title { font-size: 0.8rem; color: var(--gray-500); }

/* ===========================
   CTA BAND
=========================== */
.cta-band {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-main));
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.cta-band h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-band p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-white {
    background: white;
    color: var(--blue-dark);
}
.btn-white:hover {
    background: var(--blue-pale);
    color: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ===========================
   CONTACT PAGE
=========================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contact-info-box {
    background: linear-gradient(160deg, var(--blue-dark), var(--blue-main));
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    color: white;
}

.contact-info-box h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.contact-info-box .lead {
    opacity: 0.85;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.contact-detail-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-detail-text strong {
    display: block;
    font-size: 0.8rem;
    opacity: 0.75;
    margin-bottom: 0.15rem;
}

.contact-detail-text span { font-weight: 600; }

/* Contact Form */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.contact-form-wrap h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
}

.contact-form-wrap .lead {
    color: var(--gray-700);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--gray-900);
    transition: border-color var(--transition);
    direction: rtl;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-main);
    box-shadow: 0 0 0 3px rgba(21, 101, 168, 0.12);
}

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

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

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--blue-main);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}
.btn-submit:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===========================
   ABOUT PAGE
=========================== */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
}

.about-image-block {
    position: relative;
}

.about-img-placeholder {
    background: linear-gradient(135deg, var(--blue-pale), var(--blue-light));
    border-radius: var(--radius-lg);
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--blue-main);
}

.about-badge {
    position: absolute;
    bottom: -1rem;
    left: -1rem;
    background: var(--blue-main);
    color: white;
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.about-badge-num { font-size: 2rem; line-height: 1; }
.about-badge-label { font-size: 0.8rem; opacity: 0.85; }

.about-text h2 { font-size: 2rem; font-weight: 800; color: var(--blue-dark); margin-bottom: 1rem; }
.about-text p { color: var(--gray-700); margin-bottom: 1rem; line-height: 1.8; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
}

.value-card {
    text-align: center;
    padding: 1.75rem 1.25rem;
    background: var(--blue-pale);
    border-radius: var(--radius-lg);
    border: 1px solid var(--blue-light);
}

.value-card .icon { font-size: 2.25rem; margin-bottom: 0.75rem; }
.value-card h4 { font-weight: 700; color: var(--blue-dark); margin-bottom: 0.35rem; }
.value-card p { font-size: 0.875rem; color: var(--gray-700); }

/* ===========================
   FOOTER
=========================== */
#site-footer {
    background: var(--blue-dark);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand .site-title { color: white; }
.footer-brand .site-subtitle { color: rgba(255,255,255,0.55); }

.footer-desc {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-top: 0.75rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h5 {
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a {
    color: rgba(255,255,255,0.65);
    font-size: 0.875rem;
    transition: color var(--transition);
}
.footer-col ul a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.6;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ===========================
   PAGE BANNER
=========================== */
.page-banner {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-main));
    color: white;
    padding: 3.5rem 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-banner p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 500px;
    margin: 0 auto;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
    .hero-inner, .why-us-inner, .about-intro, .contact-layout {
        grid-template-columns: 1fr;
    }
    .hero { padding: 3rem 0; }
    .hero h1 { font-size: 2rem; }
    .hero-visual { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .why-us-inner { gap: 2rem; }
    .why-text .section-header { text-align: center; }
    .contact-layout { gap: 2rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .main-nav { display: none; }
    .main-nav.open { display: block; }
    .main-nav.open ul { flex-direction: column; padding: 1rem 0; }
    .menu-toggle { display: flex; }
    .header-inner { flex-wrap: wrap; }
    .section-title { font-size: 1.6rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .why-visual { grid-template-columns: 1fr; }
    .why-stat-box:first-child { grid-column: span 1; }
    .trust-bar-inner { gap: 1rem; }
    .about-badge { left: 0; bottom: -0.5rem; }
    .services-grid { grid-template-columns: 1fr; }
}
