@import 'tailwindcss';

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';

@theme {
    --font-sans: 'Inter', 'IBM Plex Sans Arabic', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',
        'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}

/* ─── Reset & Base ─── */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

#services,
#contact,
#consultation-form {
    scroll-margin-top: 96px;
}

/* ─── Reveal Animations ─── */
.reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 700ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
        transform 700ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
}

.reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Global Site Styles ─── */
.almaha-site {
    margin: 0;
    background: #fafafa;
    color: #111;
    font-family: 'IBM Plex Sans Arabic', 'Inter', Tahoma, Arial, sans-serif;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html[lang="en"] .almaha-site {
    font-family: 'Inter', 'IBM Plex Sans Arabic', Tahoma, Arial, sans-serif;
}

.container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

/* ─── Links ─── */
a {
    color: inherit;
    text-decoration: none;
    transition: color 200ms ease;
}

/* ─── Top Bar ─── */
.topbar {
    background: #0a0a0a;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    letter-spacing: 0.01em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar__inner,
.header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar__inner {
    min-height: 40px;
    justify-content: flex-start;
}

.topbar__inner a:hover {
    color: #fff;
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    margin-inline-start: auto;
    padding: 3px 14px;
    color: #0a0a0a;
    background: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.02em;
    transition: background 200ms ease, transform 150ms ease;
}

.language-switch:hover {
    background: #e8e8e8;
    transform: scale(1.03);
}

.language-switch svg {
    width: 15px;
    height: 15px;
}

/* ─── Header ─── */
.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.header__inner {
    min-height: 80px;
}

.header__actions {
    display: flex;
    gap: 10px;
}

/* ─── Brand ─── */
.brand {
    display: inline-flex;
    align-items: center;
    width: 220px;
    margin-inline-start: auto;
    transition: opacity 200ms ease;
}

.brand:hover {
    opacity: 0.8;
}

.brand img {
    display: block;
    width: 100%;
    height: auto;
    clip-path: inset(0 2px 0 0);
}

.brand--footer {
    width: 200px;
    margin: 0 0 18px;
}

.brand--footer img,
.nav__logo {
    filter: invert(1) grayscale(1);
    mix-blend-mode: screen;
}

/* ─── Navigation ─── */
.nav {
    display: flex;
    gap: clamp(18px, 3vw, 44px);
    margin-inline: auto;
    font-weight: 600;
    font-size: 15px;
    scrollbar-width: none;
}

.nav::-webkit-scrollbar {
    display: none;
}

.nav--mobile {
    display: none;
}

.nav a {
    position: relative;
    padding: 28px 0;
    border-bottom: none;
    transition: color 200ms ease;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background: linear-gradient(90deg, #111, #444);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav a:hover::after,
.nav a:first-child::after {
    transform: scaleX(1);
}

.nav a:hover {
    color: #000;
}

.nav__mobile-head,
.mobile-menu-toggle,
.nav-backdrop {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    border: 1.5px solid #111;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.01em;
}

.btn::before {
    content: "‹";
    margin-inline-end: 10px;
    font-size: 22px;
    line-height: 0;
    transition: transform 250ms ease;
}

.btn:hover::before {
    transform: translateX(-3px);
}

html[dir="ltr"] .btn:hover::before {
    transform: translateX(3px);
}

.btn--dark {
    background: #0a0a0a;
    color: #fff;
    border-color: #0a0a0a;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn--dark:hover {
    background: #222;
    border-color: #222;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.btn--outline {
    background: #fff;
    color: #111;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn--outline:hover {
    background: #111;
    color: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.btn--light {
    background: #fff;
    color: #111;
    border-color: #fff;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
}

.btn--light:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 255, 255, 0.2);
}

/* ─── Hero Section ─── */
.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hero__image {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.85) 50%, #fff 72%),
        url("/images/almaha-hero.png") left center / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset-block: 0;
    left: 22%;
    width: 240px;
    background: linear-gradient(
        135deg,
        transparent 0 32%,
        rgba(10, 10, 10, 0.88) 32% 40%,
        transparent 40% 54%,
        rgba(10, 10, 10, 0.12) 54% 62%,
        transparent 62%
    );
    opacity: 0.85;
}

.hero__content {
    position: relative;
    z-index: 2;
    display: grid;
    align-content: center;
    min-height: 620px;
    padding: 72px 0 36px;
}

.hero__text {
    width: min(660px, 56%);
    margin-inline-start: 0;
    margin-inline-end: auto;
    text-align: right;
}

html[dir="ltr"] .hero__text {
    text-align: left;
}

.eyebrow {
    margin: 0 0 10px;
    font-weight: 700;
    color: #555;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.hero h1 {
    margin: 0;
    font-size: clamp(32px, 4.2vw, 56px);
    line-height: 1.35;
    letter-spacing: -0.01em;
    font-weight: 800;
    background: linear-gradient(135deg, #0a0a0a, #333);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p:not(.eyebrow) {
    color: #555;
    font-size: 17px;
    max-width: 600px;
    line-height: 1.85;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

/* ─── Trust Strip ─── */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: min(650px, 56%);
    margin: 42px 0 0 auto;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(250, 250, 250, 0.6);
    border-radius: 0 0 12px 12px;
}

.trust-strip div {
    padding: 20px;
    text-align: center;
    border-inline-start: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 250ms ease;
}

.trust-strip div:hover {
    background: rgba(0, 0, 0, 0.02);
}

.trust-strip div:last-child {
    border-inline-start: 0;
}

.trust-strip strong,
.trust-strip span {
    display: block;
}

.trust-strip strong {
    font-size: 14px;
    font-weight: 700;
}

.trust-strip span {
    font-size: 13px;
    color: #777;
    margin-top: 2px;
}

/* ─── Stats Counters ─── */
.stats-section {
    padding: 0;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat-item {
    position: relative;
    text-align: center;
    padding: 40px 20px;
    border-inline-start: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 300ms ease;
}

.stat-item:first-child {
    border-inline-start: none;
}

.stat-item:hover {
    background: rgba(0, 0, 0, 0.015);
}

.stat-number {
    display: block;
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #0a0a0a, #444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* ─── Sections ─── */
.section {
    padding: 64px 0;
    background: #fff;
}

.section--compact {
    padding-top: 48px;
    background: #fafafa;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
}

.section-title span {
    width: min(100px, 14vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);
}

.section-title h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* ─── Services Grid ─── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.service-card {
    position: relative;
    min-height: 230px;
    padding: 28px 24px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 350ms cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0a0a0a, #555, #0a0a0a);
    opacity: 0.8;
    transition: opacity 300ms ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
}

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

.service-card__icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    color: #0a0a0a;
    background: linear-gradient(135deg, #f5f5f5, #eaeaea);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    place-items: center;
    transition: all 300ms ease;
}

.service-card:hover .service-card__icon {
    background: #0a0a0a;
    color: #fff;
    transform: scale(1.05);
}

.service-card__icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 1.7;
}

.service-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 700;
}

.service-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

/* ─── Benefits ─── */
.benefits {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.benefit {
    position: relative;
    padding: 24px;
    padding-inline-start: 28px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    background: #fff;
    transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    border-inline-start: none;
}

.benefit::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: 3px;
    background: linear-gradient(180deg, #0a0a0a, #888);
    border-radius: 3px;
    transition: width 300ms ease;
}

.benefit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.benefit:hover::before {
    width: 4px;
}

.benefit-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: #0a0a0a;
    border-radius: 8px;
}

.benefit strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.benefit p {
    margin: 8px 0 0;
    color: #777;
    font-size: 13.5px;
    line-height: 1.7;
}

/* ─── CTA Section ─── */
.cta {
    position: relative;
    padding: 80px 0;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(10, 10, 10, 0.97), rgba(20, 20, 20, 0.92)),
        url("/images/almaha-hero.png") center / cover no-repeat;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03), transparent 60%);
    border-radius: 50%;
}

.cta__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: clamp(44px, 6vw, 82px);
    align-items: center;
}

.cta__text {
    max-width: 430px;
    padding-inline-end: 16px;
}

.cta__eyebrow {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cta__text h2 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.25;
    font-weight: 800;
}

.cta__text p {
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.9;
}

/* ─── Contact Cards ─── */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.contact-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-width: 0;
    min-height: 112px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    font-style: normal;
    transition: all 350ms cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
}

.contact-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.contact-item > svg {
    width: 24px;
    height: 24px;
    margin: auto;
    color: rgba(255, 255, 255, 0.8);
    stroke-width: 1.6;
}

.contact-item:hover > svg {
    color: #fff;
}

.contact-item span {
    min-width: 0;
}

.contact-item small {
    display: block;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.contact-item strong {
    display: block;
    margin-top: 5px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.cta + .section {
    padding-top: 64px;
}

/* ─── Footer ─── */
.footer {
    background: #0a0a0a;
    color: #fff;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 0.9fr;
    gap: 48px;
    padding: 48px 0;
}

.footer h3 {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 700;
}

.footer p,
.footer span,
.footer a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.7;
}

.footer a {
    padding: 4px 0;
    transition: color 200ms ease, padding-inline-start 200ms ease;
}

.footer a:hover {
    color: #fff;
    padding-inline-start: 6px;
}

.copyright {
    margin: 0;
    padding: 18px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ─── Forms ─── */
.form-page {
    padding: 46px 0 70px;
    background: #fafafa;
}

.form-card {
    padding: 40px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.04);
}

.form-card--light {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03);
}

.form-intro {
    margin-bottom: 28px;
}

.form-intro h1,
.form-intro h2 {
    margin: 0;
    font-size: clamp(28px, 3.8vw, 42px);
    line-height: 1.3;
    font-weight: 800;
}

.form-intro p {
    margin: 10px 0 0;
    color: #666;
    font-size: 15px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-grid--one {
    grid-template-columns: 1fr;
}

.form-grid label,
.record-form label,
.admin-filters label {
    display: grid;
    gap: 8px;
    color: #222;
    font-weight: 700;
    font-size: 14px;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.record-form input,
.record-form select,
.record-form textarea,
.admin-filters input,
.admin-filters select {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    color: #111;
    background: #fafafa;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font: inherit;
    font-size: 15px;
    transition: border-color 250ms ease, box-shadow 250ms ease, background 250ms ease;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.record-form input:focus,
.record-form select:focus,
.record-form textarea:focus {
    outline: none;
    border-color: #0a0a0a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.06);
}

.form-grid textarea,
.record-form textarea {
    resize: vertical;
}

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

.conditional-field[hidden] {
    display: none;
}

.language-fieldset {
    min-width: 0;
    margin: 0;
    padding: 18px;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
}

.language-fieldset legend {
    padding-inline: 10px;
    font-weight: 700;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.check-field {
    display: flex !important;
    align-items: center;
    gap: 10px !important;
    min-height: 48px;
    padding: 14px;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    transition: border-color 200ms ease;
}

.check-field:hover {
    border-color: rgba(0, 0, 0, 0.2);
}

.check-field input {
    width: auto;
    min-height: auto;
}

/* ─── Notices ─── */
.notice {
    margin: 0 0 18px;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
}

.notice--success {
    color: #0a5c2e;
    background: #ecfdf3;
    border: 1px solid #a7e8c0;
}

.notice--error {
    color: #7f1d1d;
    background: #fef2f2;
    border: 1px solid #fca5a5;
}

/* ─── Login Page ─── */
.login-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background: #0a0a0a;
}

.login-card {
    width: min(460px, 100%);
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.login-card .brand {
    display: block;
    margin: 0 0 24px;
    text-align: center;
}

.login-card h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
}

.login-card p {
    color: #555;
}

.login-language {
    display: block;
    margin-top: 18px;
    text-align: center;
    text-decoration: underline;
}

/* ─── Admin Shell ─── */
.admin-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    margin: 0;
    color: #111;
    background: #f4f4f4;
    font-family: 'IBM Plex Sans Arabic', 'Inter', Tahoma, Arial, sans-serif;
}

html[lang="en"] .admin-shell {
    font-family: 'Inter', 'IBM Plex Sans Arabic', Tahoma, Arial, sans-serif;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px;
    color: #fff;
    background: #090909;
}

.admin-sidebar p {
    color: #bbb;
}

.admin-sidebar nav {
    display: grid;
    gap: 10px;
    margin: 28px 0;
}

.admin-sidebar nav a,
.admin-logout {
    display: block;
    width: 100%;
    padding: 12px 14px;
    color: #fff;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 5px;
    text-align: right;
    font: inherit;
    cursor: pointer;
}

.admin-main {
    padding: 28px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-header h1 {
    margin: 0;
    font-size: 34px;
}

.admin-header p {
    margin: 6px 0 0;
    color: #555;
}

.admin-stats,
.admin-grid-two {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.admin-stats a,
.admin-panel,
.admin-record,
.empty-state {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.admin-stats a {
    padding: 20px;
}

.admin-stats strong {
    display: block;
    font-size: 34px;
}

.admin-stats span {
    color: #555;
}

.admin-grid-two {
    grid-template-columns: repeat(2, 1fr);
}

.admin-panel {
    padding: 20px;
}

.admin-panel h2 {
    margin: 0 0 12px;
}

.admin-row {
    display: grid;
    gap: 2px;
    padding: 12px 0;
    border-top: 1px solid #eee;
}

.admin-row span {
    color: #555;
}

.admin-filters {
    display: grid;
    grid-template-columns: repeat(6, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.admin-list {
    display: grid;
    gap: 14px;
}

.admin-record {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
    padding: 20px;
}

.record-summary h2 {
    margin: 0 0 6px;
}

.record-summary p {
    margin: 5px 0;
    color: #444;
}

.record-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.record-form label:has(textarea),
.record-form button {
    grid-column: 1 / -1;
}

.empty-state {
    padding: 22px;
}

nav[role="navigation"] {
    margin-top: 20px;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 980px)
   ═══════════════════════════════════════════════ */
@media (max-width: 980px) {
    #services,
    #contact,
    #consultation-form {
        scroll-margin-top: 76px;
    }

    .header {
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .header__inner {
        min-height: 68px;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 0;
    }

    .header .brand {
        width: 195px;
        margin: 0;
        text-align: center;
    }

    .nav--desktop {
        display: none;
    }

    .nav--mobile {
        position: fixed;
        z-index: 60;
        top: 0;
        bottom: 0;
        inset-inline-start: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: min(320px, 86vw);
        margin: 0;
        padding: 24px;
        color: #fff;
        background: #0a0a0a;
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.4);
        transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav--mobile a {
        padding: 16px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        white-space: nowrap;
        font-size: 16px;
        font-weight: 600;
        transition: padding-inline-start 200ms ease, border-color 200ms ease;
    }

    .nav--mobile a:hover,
    .nav--mobile a:first-of-type {
        border-color: rgba(255, 255, 255, 0.3);
        padding-inline-start: 8px;
    }

    html[dir="rtl"] .nav--mobile {
        transform: translateX(105%);
    }

    html[dir="ltr"] .nav--mobile {
        transform: translateX(-105%);
    }

    html[dir] body.menu-open .nav--mobile {
        transform: translateX(0);
    }

    .nav__mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .nav__logo {
        display: block;
        width: 170px;
        height: auto;
        clip-path: inset(0 2px 0 0);
    }

    .mobile-menu-toggle,
    .mobile-menu-close {
        display: inline-grid;
        width: 44px;
        height: 44px;
        padding: 0;
        color: inherit;
        background: transparent;
        border: 1.5px solid currentColor;
        border-radius: 10px;
        cursor: pointer;
        place-items: center;
        transition: background 200ms ease;
    }

    .mobile-menu-toggle:hover,
    .mobile-menu-close:hover {
        background: rgba(128, 128, 128, 0.1);
    }

    .mobile-menu-toggle svg,
    .mobile-menu-close svg {
        width: 22px;
        height: 22px;
    }

    .nav-backdrop {
        position: fixed;
        z-index: 50;
        inset: 0;
        width: 100%;
        height: 100%;
        padding: 0;
        background: rgba(0, 0, 0, 0.6);
        border: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 280ms ease;
        backdrop-filter: blur(4px);
    }

    .menu-open {
        overflow: hidden;
    }

    .menu-open .nav-backdrop {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .header__actions {
        display: none;
    }

    .hero__text,
    .trust-strip {
        width: 100%;
    }

    .hero__image {
        opacity: 0.18;
    }

    .hero::after {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        padding: 28px 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .stat-item:nth-child(odd) {
        border-inline-start: none;
    }

    .services-grid,
    .benefits,
    .contact-cards,
    .admin-stats,
    .admin-grid-two,
    .admin-record,
    .admin-filters {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta__inner,
    .footer__inner,
    .admin-shell,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .cta__text {
        max-width: 680px;
        padding-inline-end: 0;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .admin-sidebar nav {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
        overflow-x: auto;
    }

    .admin-record {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 640px)
   ═══════════════════════════════════════════════ */
@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, 1200px);
    }

    .topbar__inner {
        flex-wrap: wrap;
        gap: 6px 14px;
        padding: 10px 0;
    }

    .topbar__inner span {
        flex: 1 0 100%;
        font-size: 12px;
    }

    .topbar__inner a[href^="https"] {
        display: none;
    }

    .language-switch {
        margin-inline-start: 0;
    }

    .header .brand {
        width: 180px;
    }

    .hero,
    .hero__content {
        min-height: 580px;
    }

    .hero h1 {
        font-size: 30px;
        line-height: 1.4;
    }

    .hero p:not(.eyebrow) {
        font-size: 15px;
    }

    .section {
        padding: 48px 0;
    }

    .section--compact {
        padding: 40px 0;
    }

    .section-title {
        margin-bottom: 32px;
    }

    .hero__actions,
    .trust-strip,
    .services-grid,
    .benefits,
    .contact-cards,
    .admin-stats,
    .admin-grid-two,
    .admin-filters,
    .record-form {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        padding: 24px 14px;
    }

    .stat-number {
        font-size: 34px;
    }

    .hero__actions {
        display: grid;
    }

    .service-card {
        min-height: auto;
        padding: 24px 20px;
    }

    .benefit {
        padding: 20px;
        padding-inline-start: 24px;
    }

    .cta {
        padding: 56px 0;
    }

    .cta__inner {
        gap: 32px;
    }

    .cta__text h2 {
        font-size: 30px;
    }

    .contact-cards {
        gap: 12px;
    }

    .contact-item {
        min-height: 94px;
        padding: 18px;
        border-radius: 12px;
    }

    .cta + .section {
        padding-top: 40px;
    }

    .trust-strip {
        border-radius: 12px;
        overflow: hidden;
    }

    .trust-strip div {
        border-inline-start: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        padding: 16px;
    }

    .trust-strip div:first-child {
        border-top: none;
    }

    .form-card {
        padding: 24px;
        border-radius: 16px;
    }

    .login-card {
        padding: 28px;
    }

    .admin-main {
        padding: 20px;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        padding: 18px 14px;
    }

    .admin-sidebar .brand {
        font-size: 34px;
    }

    .admin-sidebar nav {
        grid-template-columns: repeat(5, minmax(132px, 1fr));
        margin: 16px 0;
    }

    .admin-header h1 {
        font-size: 28px;
    }

    .admin-record {
        padding: 15px;
    }

    .footer__inner {
        gap: 32px;
        padding: 36px 0;
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Small Mobile (≤ 400px)
   ═══════════════════════════════════════════════ */
@media (max-width: 400px) {
    .container {
        width: min(100% - 20px, 1200px);
    }

    .hero h1 {
        font-size: 26px;
    }

    .section-title h2 {
        font-size: 22px;
    }

    .btn {
        min-height: 46px;
        padding: 0 20px;
        font-size: 14px;
    }

    .stat-item {
        padding: 20px 12px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 12px;
    }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
