/* ==========================================================
   Safe Side - Modern Pest Control Website
   ========================================================== */

:root {
    --green-900: #0f4d24;
    --green-800: #14672f;
    --green-700: #1f7a3a;
    --green-600: #2e8b46;
    --green-500: #3aa055;
    --green-400: #6dc486;
    --green-100: #e8f5ec;
    --green-50:  #f3faf5;

    --accent-red: #e63946;
    --accent-red-dark: #c62836;

    --whats: #25d366;
    --whats-dark: #128c7e;

    --ink-900: #0d1b16;
    --ink-700: #2a3f33;
    --ink-500: #56685e;
    --ink-300: #96a59d;
    --ink-200: #c5d0c9;
    --ink-100: #e6ebe8;
    --ink-50:  #f6f8f7;

    --bg: #eef2ec;
    --bg-soft: #e6ebe5;
    --bg-alt: #e2e8e0;
    --surface: #ffffff;
    --surface-alt: #f4f7f3;

    --shadow-sm: 0 2px 6px rgba(15, 77, 36, .06);
    --shadow:    0 8px 24px rgba(15, 77, 36, .08);
    --shadow-lg: 0 24px 60px rgba(15, 77, 36, .14);

    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 22px;

    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4.5rem;
    --space-9: 6rem;

    --t-fast: .18s cubic-bezier(.4,.2,.2,1);
    --t-base: .3s cubic-bezier(.4,.2,.2,1);
    --t-slow: .55s cubic-bezier(.4,.2,.2,1);

    --container: 1200px;
    --header-h: 76px;
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Cairo', 'Tajawal', -apple-system, system-ui, sans-serif;
    color: var(--ink-700);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body[dir="ltr"] {
    font-family: 'Inter', 'Cairo', -apple-system, system-ui, sans-serif;
}

/* Phone numbers: keep digits LTR even inside RTL paragraphs */
.ltr {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}

img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--green-500); }

h1, h2, h3, h4, h5 {
    color: var(--ink-900);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 .5em;
    font-family: 'Cairo', sans-serif;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 900; letter-spacing: -.5px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }

ul { padding: 0; margin: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-5); }

.skip-link {
    position: absolute; top: -40px; right: 8px;
    background: var(--green-700); color: #fff;
    padding: 8px 16px; border-radius: 6px;
    z-index: 9999; transition: top var(--t-fast);
}
.skip-link:focus { top: 8px; color: #fff; }

/* ----- Buttons ----- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .55rem;
    padding: .8rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-family: inherit;
    font-size: .95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--t-base);
    white-space: nowrap;
    text-align: center;
}
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-primary {
    background: linear-gradient(135deg, var(--green-700), var(--green-500));
    color: #fff;
    box-shadow: 0 8px 18px rgba(31, 122, 58, .3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(31, 122, 58, .4);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: var(--green-800);
    border-color: var(--green-700);
}
.btn-outline:hover {
    background: var(--green-700);
    color: #fff;
}
.btn-whats {
    background: linear-gradient(135deg, var(--whats), var(--whats-dark));
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 211, 102, .35);
}
.btn-whats:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(37, 211, 102, .45);
    color: #fff;
}

/* ----- Header ----- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: all var(--t-base);
}
.site-header.scrolled {
    background: rgba(255, 255, 255, .95);
    border-bottom-color: var(--ink-100);
    box-shadow: var(--shadow-sm);
}
.header-inner {
    height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-5);
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-mark svg { display: block; }

.nav { display: flex; align-items: center; }
.nav-list {
    display: flex; gap: var(--space-5); align-items: center;
}
.nav-list a {
    color: var(--ink-700);
    font-weight: 600;
    font-size: .95rem;
    padding: .5rem .25rem;
    position: relative;
}
.nav-list a::after {
    content: '';
    position: absolute; bottom: -2px; right: 0;
    height: 2px; width: 0;
    background: var(--green-600);
    transition: width var(--t-base);
}
.nav-list a:hover, .nav-list a.active {
    color: var(--green-700);
}
.nav-list a:hover::after, .nav-list a.active::after { width: 100%; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: space-around;
}
.nav-toggle span {
    height: 2px; background: var(--ink-700); border-radius: 2px;
    transition: all var(--t-base);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.header-cta { font-size: .9rem; padding: .65rem 1.2rem; }

.lang-toggle {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .5rem .85rem;
    border-radius: 999px;
    border: 1.5px solid var(--ink-200);
    background: transparent;
    color: var(--ink-700);
    font-weight: 600; font-size: .85rem;
    text-decoration: none;
    transition: all var(--t-fast);
    font-family: inherit;
    cursor: pointer;
}
.lang-toggle:hover {
    border-color: var(--green-500);
    color: var(--green-700);
    background: rgba(255,255,255,.5);
}
.lang-toggle i { font-size: .85rem; opacity: .7; }
.brand img { display: block; max-height: 40px; width: auto; object-fit: contain; }

/* ----- Hero ----- */
.hero {
    position: relative;
    padding: calc(var(--header-h) + 4rem) 0 var(--space-9);
    overflow: hidden;
    isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .55;
    animation: blob 18s ease-in-out infinite;
}
.hero-blob-1 {
    width: 540px; height: 540px;
    background: radial-gradient(circle, var(--green-400), transparent 65%);
    top: -120px; right: -120px;
}
.hero-blob-2 {
    width: 460px; height: 460px;
    background: radial-gradient(circle, #b9e8c6, transparent 65%);
    bottom: -100px; left: -80px;
    animation-delay: -6s;
}
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--green-100) 1px, transparent 1px),
        linear-gradient(90deg, var(--green-100) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
    opacity: .5;
}

@keyframes blob {
    0%, 100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(40px, -30px) scale(1.08); }
    66%      { transform: translate(-30px, 30px) scale(.94); }
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: var(--space-7);
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--green-100);
    color: var(--green-800);
    font-weight: 700; font-size: .85rem;
    padding: .45rem 1rem;
    border-radius: 999px;
    margin-bottom: var(--space-5);
}
.hero-title { margin-bottom: var(--space-4); }
.grad-text {
    background: linear-gradient(120deg, var(--green-700), var(--green-500));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.hero-sub {
    font-size: 1.1rem;
    color: var(--ink-500);
    max-width: 560px;
    margin-bottom: var(--space-6);
}
.hero-sub strong { color: var(--green-800); font-weight: 700; }

.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-6); }

.hero-trust {
    display: flex; flex-wrap: wrap; gap: var(--space-5);
    color: var(--ink-500); font-size: .9rem; font-weight: 500;
}
.hero-trust li { display: inline-flex; align-items: center; gap: .35rem; }
.hero-trust i { color: var(--green-600); }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-card {
    position: relative; z-index: 2;
    width: min(420px, 100%);
    background: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--ink-100);
    animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
.hero-card-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
    color: #fff; font-weight: 700; font-size: .8rem;
    padding: .35rem .9rem; border-radius: 999px;
    margin-bottom: var(--space-4);
}
.hero-card-body {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    padding: var(--space-3) 0;
    border-top: 1px solid var(--ink-100);
    border-bottom: 1px solid var(--ink-100);
}
.hero-stat { text-align: center; }
.hero-stat .num {
    display: block;
    font-size: 1.6rem; font-weight: 900;
    color: var(--green-700);
    line-height: 1.1;
}
.hero-stat .lbl { font-size: .8rem; color: var(--ink-500); }
.hero-card-foot {
    display: flex; flex-wrap: wrap; gap: .5rem;
    padding-top: var(--space-4);
}
.hero-card-foot span {
    background: var(--green-50);
    color: var(--green-800);
    font-size: .75rem; font-weight: 700;
    padding: .3rem .7rem;
    border-radius: 6px;
}
.hero-pulse {
    position: absolute; z-index: 1;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(58, 160, 85, .25), transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

/* ----- Hero photo (uploaded portrait/field shot) ----- */
.hero-visual.has-photo .hero-card-overlay {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    width: min(360px, 90%);
    padding: var(--space-4);
    animation: none;
}
.hero-visual.has-photo .hero-card-overlay .hero-card-body {
    border-top: 0;
    padding-top: 0;
}
.hero-photo-wrap {
    position: relative; z-index: 3;
    width: min(460px, 100%);
    aspect-ratio: 1 / 1.05;
    display: flex; align-items: flex-end; justify-content: center;
    overflow: hidden;
    animation: floaty 6s ease-in-out infinite;
}
.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 25px 35px rgba(15, 77, 36, .25));
    transition: transform .45s cubic-bezier(.4,.2,.2,1), filter .35s ease;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}
.hero-photo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 32px 45px rgba(15, 77, 36, .3));
}
@media (max-width: 768px) {
    .hero-photo-wrap { width: min(360px, 100%); }
    .hero-visual.has-photo .hero-card-overlay { bottom: -10px; padding: var(--space-3); }
}

/* ----- Image download protection (best-effort, casual) ----- */
img, picture {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}
img.no-save {
    pointer-events: auto;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: .7; }
    50%      { transform: scale(1.15); opacity: .35; }
}

.hero-scroll {
    position: absolute; bottom: 1.5rem; left: 50%;
    transform: translateX(-50%);
    width: 26px; height: 42px;
    border: 2px solid var(--green-700);
    border-radius: 14px;
    display: flex; justify-content: center;
    padding-top: 6px;
}
.hero-scroll span {
    width: 4px; height: 8px;
    background: var(--green-700);
    border-radius: 2px;
    animation: scrollArrow 1.6s ease-in-out infinite;
}
@keyframes scrollArrow {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}

/* ----- Sections base ----- */
.section { padding: var(--space-9) 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--space-7); }
.kicker {
    display: inline-block;
    color: var(--green-700);
    font-weight: 700; font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: .75rem;
}
.section-head p { color: var(--ink-500); font-size: 1.05rem; }

/* ----- Services ----- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-5);
}
.service-card {
    background: #fff;
    border-radius: var(--radius);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--ink-100);
    transition: all var(--t-base);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute; top: 0; right: 0;
    height: 4px; width: 0;
    background: linear-gradient(90deg, var(--green-500), var(--green-700));
    transition: width var(--t-base);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.service-card:hover::before { width: 100%; }
.service-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--green-100), var(--green-50));
    color: var(--green-700);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.45rem;
    margin-bottom: var(--space-4);
    transition: all var(--t-base);
}
.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--green-700), var(--green-500));
    color: #fff;
    transform: rotate(-6deg);
}
.service-card h3 { color: var(--ink-900); margin-bottom: .35rem; }
.service-card p { color: var(--ink-500); font-size: .95rem; margin: 0; }

/* ----- Pests ----- */
.pests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
}
.pest-card {
    background: #fff;
    border-radius: var(--radius);
    padding: var(--space-5);
    border: 1px solid var(--ink-100);
    transition: all var(--t-base);
}
.pest-card:hover {
    transform: translateY(-4px);
    border-color: var(--green-400);
    box-shadow: var(--shadow);
}
.pest-card-head {
    display: flex; align-items: center; gap: .75rem;
    padding-bottom: var(--space-3);
    border-bottom: 2px dashed var(--ink-100);
    margin-bottom: var(--space-3);
}
.pest-card-head i {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: var(--accent-red);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.pest-card-head h3 { margin: 0; }
.pest-card ul li {
    padding: .45rem 0;
    font-size: .9rem;
    color: var(--ink-700);
    display: flex; align-items: flex-start; gap: .5rem;
}
.pest-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--green-600);
    font-size: .75rem;
    margin-top: .35rem;
}

/* ----- Videos ----- */
.videos-empty {
    text-align: center;
    padding: var(--space-7);
    background: #fff;
    border-radius: var(--radius);
    border: 1px dashed var(--ink-200);
    color: var(--ink-500);
}
.videos-empty i { font-size: 3rem; color: var(--green-400); margin-bottom: var(--space-3); }

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-5);
}
.video-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--t-base);
    display: flex; flex-direction: column;
}
.video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.video-thumb {
    position: relative;
    width: 100%; aspect-ratio: 16 / 9;
    border: 0; padding: 0;
    background: #000;
    cursor: pointer;
    overflow: hidden;
}
.video-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform var(--t-slow);
}
.video-thumb:hover img { transform: scale(1.07); }
.play-icon {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 70px; height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: var(--accent-red);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.3);
    transition: all var(--t-base);
}
.video-thumb:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--accent-red); color: #fff;
}
.video-meta { padding: var(--space-4) var(--space-5); }
.video-meta h3 { margin-bottom: .35rem; font-size: 1.05rem; }
.video-meta p { color: var(--ink-500); font-size: .9rem; margin: 0; }

.video-modal {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, .85);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: var(--space-5);
    animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.video-modal[hidden] { display: none; }
.video-modal-frame {
    width: min(960px, 100%);
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    animation: zoomIn .25s ease;
}
@keyframes zoomIn { from { transform: scale(.92); opacity: 0 } to { transform: scale(1); opacity: 1 } }
.ratio-16-9 { position: relative; padding-top: 56.25%; }
.ratio-16-9 iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%; border: 0;
}
.video-modal-close {
    position: absolute; top: 1rem; right: 1rem;
    width: 44px; height: 44px;
    background: rgba(255,255,255,.15);
    color: #fff; border: 0;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all var(--t-base);
}
.video-modal-close:hover { background: rgba(255,255,255,.3); transform: rotate(90deg); }

/* ----- About ----- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
    align-items: center;
}
.about-text h2 { margin-bottom: var(--space-4); }
.about-text p { color: var(--ink-500); font-size: 1rem; }
.about-quote {
    background: var(--green-50);
    border-right: 4px solid var(--green-600);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-sm);
    font-style: italic;
    color: var(--ink-700) !important;
    position: relative;
}
.about-quote i {
    color: var(--green-400);
    font-size: 1.5rem;
    margin-left: .5rem;
}
.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: var(--space-5) 0; }
.badge {
    background: linear-gradient(135deg, var(--green-700), var(--green-500));
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
    padding: .4rem 1rem;
    border-radius: 6px;
    letter-spacing: .5px;
}
.about-media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}
.about-media-grid img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform var(--t-base);
}
.about-media-grid img:nth-child(1) { transform: rotate(-2deg); }
.about-media-grid img:nth-child(4) { transform: rotate(2deg); }
.about-media-grid img:hover { transform: scale(1.04) rotate(0); z-index: 2; box-shadow: var(--shadow-lg); }

/* ----- CTA strip ----- */
.section-cta {
    background:
      radial-gradient(circle at 20% 50%, rgba(255,255,255,.15), transparent 50%),
      linear-gradient(135deg, var(--green-800), var(--green-600));
    color: #fff;
    padding: var(--space-7) 0;
}
.cta-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: var(--space-5);
}
.section-cta h2 { color: #fff; margin-bottom: .25rem; }
.section-cta p { color: rgba(255,255,255,.85); margin: 0; }
.cta-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.section-cta .btn-primary {
    background: #fff;
    color: var(--green-800);
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.section-cta .btn-primary:hover { background: var(--ink-50); color: var(--green-900); }

/* ----- Contact ----- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: var(--space-7);
    align-items: start;
}
.contact-list { margin-top: var(--space-5); }
.contact-list li {
    display: flex; gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--ink-100);
    align-items: center;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list i {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--green-100);
    color: var(--green-700);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.contact-list .lbl {
    display: block; font-size: .8rem; color: var(--ink-500);
    margin-bottom: 2px;
}
.contact-list a, .contact-list span:not(.lbl) {
    color: var(--ink-900); font-weight: 600;
}

.contact-form {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow);
    border: 1px solid var(--ink-100);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}
.field { display: block; margin-bottom: var(--space-4); }
.form-row .field { margin-bottom: 0; }
.field span {
    display: block;
    margin-bottom: .35rem;
    font-weight: 600; font-size: .9rem;
    color: var(--ink-700);
}
.field input, .field textarea {
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    padding: .8rem 1rem;
    border-radius: var(--radius-sm);
    border: 2px solid var(--ink-100);
    background: #fff;
    color: var(--ink-900);
    transition: all var(--t-base);
    resize: vertical;
}
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--green-500);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(58, 160, 85, .12);
}
.field input[dir="ltr"] { text-align: right; }
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important; height: 1px !important;
    opacity: 0 !important; pointer-events: none !important;
}
.form-actions {
    display: flex; align-items: center; gap: var(--space-4);
    flex-wrap: wrap;
    margin-top: var(--space-5);
}
.form-status {
    font-size: .9rem;
    font-weight: 600;
}
.form-status.success { color: var(--green-700); }
.form-status.error   { color: var(--accent-red); }

/* ----- FAQ ----- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--ink-100);
    margin-bottom: var(--space-3);
    overflow: hidden;
    transition: all var(--t-base);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item[open] {
    border-color: var(--green-400);
    box-shadow: var(--shadow);
}
.faq-q {
    cursor: pointer;
    list-style: none;
    padding: var(--space-4) var(--space-5);
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-3);
    font-weight: 700;
    color: var(--ink-900);
    font-size: 1.02rem;
    user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--green-700);
    font-size: .85rem;
    transition: transform var(--t-base);
    flex-shrink: 0;
}
.faq-item[open] .faq-q::after { transform: rotate(180deg); }
.faq-a {
    padding: 0 var(--space-5) var(--space-5);
    color: var(--ink-500);
    line-height: 1.75;
    border-top: 1px solid var(--ink-100);
    padding-top: var(--space-4);
    margin-top: 0;
    animation: faqSlide .25s ease;
}
@keyframes faqSlide { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ----- Footer ----- */
.site-footer {
    background: var(--ink-900);
    color: var(--ink-200);
    padding: var(--space-8) 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--space-6);
    padding-bottom: var(--space-6);
}
.footer-brand {
    font-family: 'Cairo', serif;
    font-size: 1.8rem; font-weight: 900;
    color: #fff;
    margin-bottom: .5rem;
}
.site-footer h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: var(--space-4);
}
.site-footer ul li { margin-bottom: .5rem; }
.site-footer a {
    color: var(--ink-200);
    font-size: .92rem;
    transition: color var(--t-fast);
}
.site-footer a:hover { color: var(--green-400); }
.footer-contact li { display: flex; align-items: center; gap: .5rem; }
.footer-contact i { color: var(--green-400); width: 18px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.footer-badges span {
    background: rgba(255, 255, 255, .07);
    color: var(--green-400);
    padding: .35rem .8rem;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 700;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: var(--space-4) 0;
    font-size: .85rem;
}
.footer-bottom .container {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3);
}

/* ----- Floating WhatsApp ----- */
.float-whats {
    position: fixed; bottom: 24px; left: 24px;
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--whats), var(--whats-dark));
    color: #fff;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, .45);
    z-index: 999;
    transition: transform var(--t-base);
}
.float-whats:hover { transform: scale(1.1); color: #fff; }
.float-whats-pulse {
    position: absolute; inset: 0;
    border-radius: 50%;
    background: var(--whats);
    opacity: .7;
    animation: floatPulse 2s ease-out infinite;
    z-index: -1;
}
@keyframes floatPulse {
    0% { transform: scale(1); opacity: .6; }
    100% { transform: scale(1.7); opacity: 0; }
}

/* ----- Back to top ----- */
.back-top {
    position: fixed; bottom: 24px; right: 24px;
    width: 44px; height: 44px;
    background: var(--green-700);
    color: #fff;
    border: 0; border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all var(--t-base);
    z-index: 999;
}
.back-top:hover { background: var(--green-800); transform: translateY(-2px); }
.back-top[hidden] { display: none; }

/* ----- Toasts ----- */
.toast-stack {
    position: fixed; top: 90px; left: 24px;
    z-index: 9999;
    display: flex; flex-direction: column;
    gap: .5rem;
}
.toast {
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--green-600);
    font-weight: 600;
    animation: slideIn .3s ease;
}
.toast-error { border-left-color: var(--accent-red); }
@keyframes slideIn { from { transform: translateX(-30px); opacity: 0 } to { transform: translateX(0); opacity: 1 } }

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .about-grid, .contact-grid, .hero-inner {
        grid-template-columns: 1fr;
    }
    .hero-visual { order: -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --header-h: 68px; }
    .nav-toggle { display: flex; }
    .header-cta span { display: none; }
    .header-cta { padding: .65rem .85rem; border-radius: 50%; width: 44px; height: 44px; }

    .nav-list {
        position: fixed; top: var(--header-h); right: 0;
        width: min(320px, 100%); height: calc(100vh - var(--header-h));
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-5);
        gap: 0;
        transform: translateX(100%);
        transition: transform var(--t-base);
        box-shadow: -10px 0 30px rgba(0,0,0,.1);
    }
    .nav-list.open { transform: translateX(0); }
    .nav-list a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid var(--ink-100);
        font-size: 1.05rem;
    }

    .section { padding: var(--space-8) 0; }
    .hero { padding-top: calc(var(--header-h) + 2rem); padding-bottom: var(--space-7); }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .hero-trust { gap: var(--space-3); }

    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-row .field { margin-bottom: var(--space-4); }
    .footer-grid { grid-template-columns: 1fr; gap: var(--space-5); }
    .footer-bottom .container { flex-direction: column; text-align: center; }
    .cta-inner { flex-direction: column; text-align: center; }

    .float-whats { width: 54px; height: 54px; font-size: 1.5rem; bottom: 16px; left: 16px; }
    .back-top { bottom: 16px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* ===== LTR overrides (English mode) ===== */
[dir="ltr"] .about-quote {
    border-right: 0;
    border-left: 4px solid var(--green-600);
}
[dir="ltr"] .toast { border-left: 4px solid var(--green-600); }
[dir="ltr"] .toast-error { border-left-color: var(--accent-red); }
[dir="ltr"] .nav-list a::after { right: auto; left: 0; }
[dir="ltr"] .skip-link { right: auto; left: 8px; }

@media (max-width: 768px) {
    [dir="ltr"] .nav-list {
        right: auto; left: 0;
        transform: translateX(-100%);
        box-shadow: 10px 0 30px rgba(0,0,0,.1);
    }
    [dir="ltr"] .nav-list.open { transform: translateX(0); }
}

/* ===== Admin styles ===== */
body.admin-body {
    background: var(--bg-alt);
    font-family: 'Cairo', sans-serif;
}
.admin-login-wrap {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: var(--space-5);
    background:
      radial-gradient(circle at 20% 20%, rgba(58,160,85,.15), transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(58,160,85,.12), transparent 50%),
      linear-gradient(180deg, #f3faf5 0%, #e8f5ec 100%);
}
.admin-login {
    width: min(420px, 100%);
    background: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-7) var(--space-6);
    box-shadow: var(--shadow-lg);
}
.admin-login h1 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: var(--space-5);
    color: var(--green-800);
}
.admin-login .icon {
    text-align: center;
    margin-bottom: var(--space-4);
}
.admin-login .icon i {
    font-size: 2.5rem;
    width: 70px; height: 70px;
    background: var(--green-100);
    color: var(--green-700);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
}
.admin-error {
    background: rgba(230,57,70,.08);
    color: var(--accent-red-dark);
    padding: .75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(230,57,70,.2);
    margin-bottom: var(--space-4);
    font-size: .9rem;
    font-weight: 600;
}
.admin-success {
    background: rgba(46,139,70,.08);
    color: var(--green-800);
    padding: .75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(46,139,70,.2);
    margin-bottom: var(--space-4);
    font-size: .9rem;
    font-weight: 600;
}

.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 260px;
    background: var(--ink-900);
    color: #fff;
    padding: var(--space-5);
    flex-shrink: 0;
}
.admin-sidebar .brand-line {
    font-size: 1.4rem; font-weight: 900;
    color: #fff;
    margin-bottom: .15rem;
}
.admin-sidebar .brand-sub {
    color: var(--green-400);
    font-size: .8rem;
    margin-bottom: var(--space-6);
}
.admin-nav { list-style: none; padding: 0; margin: 0; }
.admin-nav li { margin-bottom: .25rem; }
.admin-nav a {
    display: flex; align-items: center; gap: .75rem;
    padding: .75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--ink-200);
    font-weight: 600;
    font-size: .95rem;
    transition: all var(--t-fast);
}
.admin-nav a i { width: 18px; }
.admin-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.admin-nav a.active {
    background: linear-gradient(135deg, var(--green-700), var(--green-600));
    color: #fff;
}
.admin-nav a .pill {
    margin-inline-start: auto;
    background: var(--accent-red);
    color: #fff;
    font-size: .7rem;
    padding: .15rem .5rem;
    border-radius: 999px;
    font-weight: 700;
}
.admin-logout {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255,255,255,.08);
}

.admin-main {
    flex: 1;
    padding: var(--space-6);
    min-width: 0;
}
.admin-header {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: var(--space-3);
    margin-bottom: var(--space-5);
}
.admin-header h1 { margin: 0; font-size: 1.6rem; color: var(--ink-900); }
.admin-card {
    background: #fff;
    border-radius: var(--radius);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--ink-100);
    margin-bottom: var(--space-5);
}
.admin-card h2 { font-size: 1.15rem; margin-bottom: var(--space-4); }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}
.admin-table th, .admin-table td {
    text-align: right;
    padding: .85rem .75rem;
    border-bottom: 1px solid var(--ink-100);
    vertical-align: top;
}
.admin-table th {
    background: var(--ink-50);
    font-weight: 700;
    color: var(--ink-700);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.admin-table tr:hover td { background: var(--bg-alt); }
.admin-table .row-actions { display: flex; gap: .35rem; }
.btn-icon {
    width: 34px; height: 34px;
    border: 0;
    border-radius: 8px;
    background: var(--ink-100);
    color: var(--ink-700);
    cursor: pointer;
    transition: all var(--t-fast);
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none;
}
.btn-icon:hover { background: var(--green-100); color: var(--green-700); }
.btn-icon.danger:hover { background: rgba(230,57,70,.1); color: var(--accent-red); }

.tag {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
}
.tag-on { background: rgba(46,139,70,.12); color: var(--green-700); }
.tag-off { background: var(--ink-100); color: var(--ink-500); }
.tag-new { background: var(--accent-red); color: #fff; }

.empty-state {
    padding: var(--space-7);
    text-align: center;
    color: var(--ink-500);
}
.empty-state i { font-size: 3rem; color: var(--ink-200); margin-bottom: var(--space-3); }

.admin-form .field { margin-bottom: var(--space-3); }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.admin-form input, .admin-form textarea, .admin-form select {
    width: 100%;
    font-family: inherit;
    font-size: .95rem;
    padding: .65rem .85rem;
    border-radius: var(--radius-sm);
    border: 2px solid var(--ink-100);
    background: #fff;
}
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus {
    outline: none;
    border-color: var(--green-500);
}
.checkbox {
    display: inline-flex; gap: .5rem; align-items: center;
    cursor: pointer; font-weight: 600;
}
.checkbox input { width: 18px; height: 18px; accent-color: var(--green-600); }

.message-row { background: #fff; }
.message-row.unread { background: rgba(58,160,85,.06); }
.message-body {
    background: var(--ink-50);
    padding: var(--space-3);
    border-radius: var(--radius-sm);
    margin-top: .5rem;
    font-size: .9rem;
    color: var(--ink-700);
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 768px) {
    .admin-shell { flex-direction: column; }
    .admin-sidebar { width: 100%; }
    .admin-form-row { grid-template-columns: 1fr; }
    .admin-table { font-size: .85rem; }
    .admin-table th:nth-child(4), .admin-table td:nth-child(4) { display: none; }
}
