:root {
    --bg: #f7f5ef;
    --surface: #fff;
    --surface-soft: #f1eee5;
    --text: #181818;
    --muted: #747474;
    --line: #e7e3da;
    --brand: #202020;
    --brand-dark: #111;
    --accent: #ebe7db;
    --success: #1d8b5b;
    --teal: #597d78;
    --teal-soft: #eaf1ef;
    --radius: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, "Noto Sans Arabic", sans-serif;
    background: #fafafa;
    color: var(--text);
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #ececec;
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-wordmark {
    gap: 11px;
}

.brand-symbol {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: var(--teal);
}

.brand-symbol svg {
    width: 100%;
    height: 100%;
    display: block;
}

.brand-symbol-m,
.brand-symbol-plus {
    vector-effect: non-scaling-stroke;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-name {
    direction: ltr;
    unicode-bidi: isolate;
    font-family: "Inter", Arial, sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand small {
    display: block;
    margin-top: 5px;
    color: #7d817e;
    font-size: 0.72rem;
    font-weight: 500;
}

.main-nav {
    display: flex;
    gap: 24px;
    font-size: 0.9rem;
}

.main-nav a:hover {
    opacity: 0.6;
}

/* Home hero */
.hero-editorial {
    padding: 24px 0 18px;
}

.hero-editorial-card {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    padding: 54px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 24px;
    background-image:
        linear-gradient(
            90deg,
            rgba(246, 242, 232, 0.68) 0%,
            rgba(246, 242, 232, 0.52) 44%,
            rgba(246, 242, 232, 0.28) 100%
        ),
        url("../images/hero-lake.0a3a99b379fd.jpg");
    background-size: cover;
    background-position: center center;
}

.hero-editorial-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.08));
    pointer-events: none;
}

.hero-copy,
.editorial-search {
    position: relative;
    z-index: 1;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    color: #4c4a43;
}

.hero-copy h1 {
    font-size: clamp(1.95rem, 3.8vw, 3.45rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 12px 0 16px;
    max-width: 760px;
}

.hero-copy p {
    font-size: 1rem;
    color: #524f48;
    max-width: 760px;
}

.editorial-search {
    margin-top: 28px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(226,220,207,.95);
    border-radius: 16px;
    padding: 8px;
    display: grid;
    grid-template-columns: minmax(240px,2fr) repeat(3,minmax(130px,1fr)) auto;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.07);
    backdrop-filter: blur(3px);
}

.editorial-search > * {
    min-height: 48px;
}

.search-main-field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-left: 1px solid #eee;
}

.search-main-field input {
    border: 0;
    outline: 0;
    width: 100%;
    font: inherit;
    background: transparent;
}

.search-icon {
    font-size: 1.15rem;
}

.editorial-search select {
    border: 0;
    border-left: 1px solid #eee;
    padding: 0 12px;
    background: transparent;
    font: inherit;
    color: #444;
    outline: 0;
}

.editorial-search-btn {
    border: 0;
    border-radius: 12px;
    background: #1c1c1c;
    color: #fff;
    padding: 0 22px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.editorial-section {
    padding: 42px 0;
}

.editorial-section-alt {
    background: #f7f4ec;
}

.compact-head {
    margin-bottom: 22px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
}

.section-head h2 {
    font-size: 1.7rem;
    margin: 0;
}

.section-head p {
    margin: 5px 0 0;
    color: var(--muted);
}

.text-link {
    font-weight: 700;
    font-size: 0.9rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
}

.editorial-category {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 16px;
}

.category-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f0eee7;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.editorial-category h3 {
    margin: 0;
    font-size: 1rem;
}

.editorial-category p {
    margin: 2px 0 0;
    color: #888;
    font-size: 0.82rem;
}

.editorial-provider-list {
    display: grid;
    gap: 12px;
}

.editorial-provider-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 14px;
    display: grid;
    grid-template-columns: 72px 1fr 42px;
    gap: 16px;
    align-items: center;
}

.editorial-provider-image-wrap img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    background: #f1f1f1;
}

.editorial-provider-topline,
.result-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
}

.provider-type-text {
    color: #666;
}

.verified {
    color: var(--success);
    font-weight: 700;
}

.editorial-provider-card h3 {
    margin: 5px 0 2px;
    font-size: 1.08rem;
}

.meta {
    margin: 2px 0;
    color: #777;
    font-size: 0.9rem;
}

.circle-link {
    width: 36px;
    height: 36px;
    border: 1px solid #d9d9d9;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.search-page {
    padding: 34px 0 70px;
}

.editorial-search-header {
    margin-bottom: 18px;
}

.editorial-search-header h1 {
    font-size: 2rem;
    margin: 6px 0 0;
}

.subtle {
    color: #888;
}

.editorial-search-bar-wrap {
    margin-bottom: 24px;
}

.compact-search {
    margin-top: 0;
    grid-template-columns: minmax(260px,2fr) minmax(140px,1fr) minmax(140px,1fr) auto;
}

.editorial-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    align-items: start;
}

.editorial-filters {
    background: transparent;
    border: 0;
    padding: 0;
    position: sticky;
    top: 22px;
}

.filter-title {
    font-weight: 800;
    margin-bottom: 14px;
}

.field {
    margin-bottom: 16px;
}

.field label,
.field-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.control {
    width: 100%;
    border: 1px solid #dedede;
    background: #fff;
    border-radius: 10px;
    padding: 11px 12px;
    font: inherit;
    outline: 0;
}

.check {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.88rem;
    color: #4f4f4f;
    margin: 8px 0;
}

.filter-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 20px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    padding: 11px 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    background: #1c1c1c;
    color: #fff;
}

.full-btn {
    width: 100%;
    margin-top: 8px;
}

.editorial-results {
    display: grid;
    gap: 12px;
}

.editorial-result-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    padding: 14px;
    display: grid;
    grid-template-columns: 92px 1fr 48px;
    gap: 16px;
    align-items: center;
}

.result-img {
    width: 92px;
    height: 92px;
    border-radius: 12px;
    object-fit: cover;
    background: #f1f1f1;
}

.editorial-result-card h2 {
    font-size: 1.15rem;
    margin: 4px 0 3px;
}

.inline-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #595959;
    font-size: 0.84rem;
    margin-top: 8px;
}

.dot {
    color: #aaa;
}

.editorial-result-actions {
    display: flex;
    justify-content: end;
}

.large-circle {
    width: 40px;
    height: 40px;
}

.empty-state {
    background: #fff;
    border: 1px dashed #cfcfcf;
    border-radius: 14px;
    padding: 44px;
    text-align: center;
    color: #777;
}

.profile-page {
    padding: 36px 0 72px;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) 320px;
    gap: 18px;
    align-items: start;
}

.profile-main,
.profile-side-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
}

.profile-main {
    padding: 24px;
}

.profile-hero {
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 22px;
}

.profile-img {
    width: 145px;
    height: 145px;
    border-radius: 16px;
    object-fit: cover;
    background: #f3f3f3;
}

.profile-title h1 {
    font-size: 2rem;
    margin: 6px 0;
}

.profile-description {
    color: #595959;
}

.profile-section {
    border-top: 1px solid #ececec;
    margin-top: 24px;
    padding-top: 22px;
}

.profile-section h2 {
    font-size: 1.2rem;
    margin: 0 0 14px;
}

.location-card {
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}

.hours {
    width: 100%;
    border-collapse: collapse;
}

.hours th,
.hours td {
    padding: 8px 0;
    border-bottom: 1px solid #efefef;
    text-align: right;
}

.hours th {
    width: 100px;
    color: #6d6d6d;
}

.profile-side {
    display: grid;
    gap: 12px;
    position: sticky;
    top: 22px;
}

.profile-side-card {
    padding: 18px;
}

.contact-list {
    display: grid;
    gap: 8px;
}

.site-footer {
    background: #f1ede3;
    color: #333;
    padding: 38px 0;
    margin-top: 30px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.footer-inner p,
.footer-note {
    color: #777;
    max-width: 560px;
}

.footer-note {
    max-width: 420px;
}

@media (max-width: 980px) {
    .editorial-search {
        grid-template-columns: 1fr 1fr;
    }

    .search-main-field {
        grid-column: 1 / -1;
        border-left: 0;
        border-bottom: 1px solid #eee;
    }

    .editorial-search select {
        border-left: 0;
    }

    .editorial-search-btn {
        min-height: 48px;
    }

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

    .editorial-layout,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .editorial-filters,
    .profile-side {
        position: static;
    }

    .profile-side {
        grid-row: auto;
    }

    .hero-editorial-card {
        min-height: 320px;
    }

    .compact-search {
        grid-template-columns: 1fr 1fr;
    }

    .compact-search .search-main-field {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(100% - 22px,1120px);
    }

    .main-nav {
        display: none;
    }

    .brand-symbol {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand small {
        font-size: 0.68rem;
    }

    .hero-editorial {
        padding-top: 18px;
    }

    .hero-editorial-card {
        padding: 34px 20px;
        min-height: 300px;
        background-position: 35% center;
    }

    .hero-copy h1 {
        font-size: 2rem;
        max-width: 560px;
    }

    .editorial-search,
    .compact-search {
        grid-template-columns: 1fr;
    }

    .search-main-field {
        grid-column: auto;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .editorial-provider-card {
        grid-template-columns: 60px 1fr 36px;
    }

    .editorial-provider-image-wrap img {
        width: 60px;
        height: 60px;
    }

    .editorial-result-card {
        grid-template-columns: 68px 1fr 36px;
    }

    .result-img {
        width: 68px;
        height: 68px;
    }

    .profile-hero {
        grid-template-columns: 1fr;
    }

    .profile-img {
        width: 120px;
        height: 120px;
    }

    .section-head,
    .footer-inner {
        flex-direction: column;
        align-items: start;
    }
}
