:root {
    --bg: #f6f1e8;
    --bg-soft: #fbf8f3;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --surface-dark: #152131;
    --line: rgba(25, 44, 68, 0.12);
    --line-strong: rgba(25, 44, 68, 0.2);
    --text: #152131;
    --muted: #64748b;
    --accent: #0f766e;
    --accent-strong: #0b5f59;
    --accent-soft: #d9f2ee;
    --warm: #b7791f;
    --success: #18794e;
    --danger: #c24141;
    --shadow-lg: 0 28px 80px rgba(21, 33, 49, 0.12);
    --shadow-md: 0 18px 42px rgba(21, 33, 49, 0.08);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --container: 1180px;
    --font-body: "Manrope", sans-serif;
    --font-display: "Sora", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.1), transparent 30%),
        radial-gradient(circle at bottom right, rgba(183, 121, 31, 0.1), transparent 24%),
        linear-gradient(180deg, #f8f3ea 0%, #f3f6f7 48%, #fbf8f2 100%);
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
    border: 0;
    background: none;
}

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

.hidden {
    display: none !important;
}

.flex {
    display: flex !important;
}

.container {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

.page-orb {
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.55;
    pointer-events: none;
}

.page-orb--teal {
    top: 80px;
    right: -120px;
    width: 320px;
    height: 320px;
    background: rgba(15, 118, 110, 0.22);
}

.page-orb--sand {
    left: -80px;
    bottom: 140px;
    width: 260px;
    height: 260px;
    background: rgba(183, 121, 31, 0.18);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: rgba(248, 244, 238, 0.75);
    border-bottom: 1px solid rgba(21, 33, 49, 0.08);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
}

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

.brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 36px rgba(15, 118, 110, 0.18);
}

.brand__logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand__text {
    display: flex;
    flex-direction: column;
}

.brand__eyebrow {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
}

.brand__name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    position: relative;
    color: rgba(21, 33, 49, 0.7);
    font-size: 0.95rem;
    font-weight: 700;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--accent);
    transition: transform 0.22s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    transform: scaleX(1);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button--compact {
    min-height: 46px;
    padding: 0 20px;
}

.button--block {
    width: 100%;
}

.button--primary {
    color: #fff;
    background: linear-gradient(135deg, #17324a 0%, #0f766e 100%);
    box-shadow: 0 16px 36px rgba(15, 118, 110, 0.22);
}

.button--accent {
    color: #fff;
    background: linear-gradient(135deg, #b7791f 0%, #d29a2f 100%);
    box-shadow: 0 16px 32px rgba(183, 121, 31, 0.22);
}

.button--secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.button--ghost {
    color: var(--text);
    border: 1px solid rgba(21, 33, 49, 0.12);
    background: rgba(255, 255, 255, 0.55);
}

.button--outline {
    color: var(--text);
    border: 1px solid rgba(21, 33, 49, 0.12);
    background: rgba(255, 255, 255, 0.78);
}

.button--light {
    color: var(--text);
    background: #fff;
}

.button--success {
    color: #fff;
    background: linear-gradient(135deg, #18794e 0%, #20a464 100%);
}

.button.is-loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 0 0 18px;
}

.hero-section .container {
    width: 100%;
    max-width: none;
}

.hero-section__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
}

.hero-copy {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    width: 100%;
    max-width: none;
    padding: 56px clamp(24px, 6vw, 120px);
    border-radius: 0 0 36px 36px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 28%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.1), transparent 24%),
        linear-gradient(145deg, #142132 0%, #17324a 44%, #0f766e 100%);
    box-shadow: var(--shadow-lg);
}

.hero-copy::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -50px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%);
}

.hero-copy h1,
.hero-panel h2,
.section-heading h2,
.contact-panel h2,
.modal-card h2,
.category-card h3,
.artisan-card h3,
.search-card h3 {
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}

.hero-copy h1 {
    max-width: 10ch;
    margin-top: 18px;
    font-size: clamp(2.8rem, 5.8vw, 5rem);
    line-height: 0.96;
}

.hero-copy__lead {
    max-width: 820px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.9;
}

.hero-copy__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}

.surface-card {
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.surface-card--form {
    background: rgba(255, 255, 255, 0.9);
}

.surface-card h2 {
    margin-top: 18px;
    font-size: 2rem;
    line-height: 1.12;
}

.surface-card p {
    margin: 16px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-tag--light {
    color: #eefcf9;
    background: rgba(255, 255, 255, 0.12);
}

.section-tag--warm {
    color: #9a6517;
    background: rgba(183, 121, 31, 0.14);
}

.section-tag--success {
    color: var(--success);
    background: rgba(24, 121, 78, 0.12);
}

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

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin-top: 14px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.06;
}

.section-heading p {
    max-width: 540px;
    margin: 0;
    color: var(--muted);
    line-height: 1.85;
}

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

.search-card,
.contact-panel,
.category-card,
.artisan-card,
.empty-state {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.search-card {
    padding: 32px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
}

.search-card--dark {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top right, rgba(210, 154, 47, 0.22), transparent 24%),
        linear-gradient(145deg, #142132 0%, #17324a 40%, #0f766e 100%);
}

.search-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 20px;
    background: rgba(15, 118, 110, 0.12);
    font-size: 1.5rem;
}

.search-card__icon--dark {
    background: rgba(255, 255, 255, 0.12);
}

.search-card h3 {
    font-size: 1.7rem;
}

.search-card p {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.search-card--dark p,
.search-card--dark .field-label {
    color: rgba(255, 255, 255, 0.78);
}

.search-card .button {
    margin-top: 18px;
}

.field-label {
    display: block;
    margin: 22px 0 10px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 800;
}

.field-label--light {
    color: rgba(255, 255, 255, 0.82);
}

.form-control {
    width: 100%;
    min-height: 56px;
    padding: 16px 18px;
    border: 1px solid rgba(21, 33, 49, 0.12);
    border-radius: 18px;
    color: var(--text);
    background: rgba(248, 248, 248, 0.95);
    outline: 0;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

textarea.form-control {
    min-height: 132px;
    resize: vertical;
}

.form-control:focus {
    border-color: rgba(15, 118, 110, 0.55);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.form-control--dark {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
}

.form-control--dark::placeholder {
    color: rgba(255, 255, 255, 0.56);
}

.form-control--dark:focus {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

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

.artisan-card {
    padding: 26px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
}

.artisan-card--interactive {
    width: 100%;
    color: inherit;
    text-align: left;
}

.artisan-card:hover {
    transform: translateY(-3px);
}

.artisan-card--interactive:hover,
.artisan-card--interactive:focus-visible {
    border-color: rgba(15, 118, 110, 0.32);
    box-shadow: 0 22px 52px rgba(15, 118, 110, 0.14);
}

.artisan-card--interactive:focus-visible {
    outline: 4px solid rgba(15, 118, 110, 0.16);
    outline-offset: 3px;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 42px 28px;
    border: 1px dashed var(--line-strong);
    color: var(--muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.68);
}

.contact-panel {
    padding: 34px;
    color: #fff;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 25%),
        linear-gradient(145deg, #142132 0%, #17324a 52%, #0b5f59 100%);
}

.contact-panel h2 {
    margin-top: 18px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.06;
}

.contact-panel p {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.9;
}

.contact-highlights {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.contact-highlights div {
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
}

.contact-highlights strong,
.artisan-card__meta strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 800;
}

.contact-highlights span,
.artisan-card__meta span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
    line-height: 1.6;
}

.stack-form {
    display: grid;
    gap: 14px;
}

.stack-form--tight {
    gap: 12px;
    margin-top: 16px;
}

.feedback-message {
    min-height: 24px;
    margin: 14px 0 0;
    font-weight: 700;
}

.feedback-message--success {
    color: var(--success);
}

.feedback-message--error {
    color: var(--danger);
}

.site-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(7, 15, 25, 0.62);
    backdrop-filter: blur(8px);
}

.modal-card {
    position: relative;
    width: min(100%, 880px);
    max-height: min(92vh, 880px);
    overflow: auto;
    padding: 34px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 90px rgba(7, 15, 25, 0.26);
}

.modal-card--small {
    width: min(100%, 520px);
}

.modal-card h2 {
    margin-top: 18px;
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1.06;
}

.modal-intro {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--muted);
    background: rgba(21, 33, 49, 0.06);
    font-size: 1.8rem;
    line-height: 1;
}

.modal-switch {
    margin: 16px 0 0;
    color: var(--muted);
    text-align: center;
}

.modal-switch button {
    color: var(--accent);
    font-weight: 800;
}

.form-note,
.location-banner {
    padding: 20px;
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 22px;
    background: rgba(243, 250, 249, 0.9);
}

.location-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.status-text {
    margin: 12px 0 0;
    color: var(--text);
    font-weight: 700;
}

.status-text.is-error {
    color: var(--danger);
}

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

.artisan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.artisan-card {
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.artisan-card__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.artisan-card__header h3 {
    font-size: 1.42rem;
}

.artisan-card__service {
    margin: 8px 0 0;
    color: var(--accent);
    font-weight: 800;
}

.artisan-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--accent);
    background: rgba(15, 118, 110, 0.1);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.artisan-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.artisan-card__meta div {
    padding: 16px;
    border-radius: 18px;
    background: rgba(21, 33, 49, 0.04);
}

.artisan-card__meta span {
    color: var(--muted);
}

.artisan-card__description {
    margin: 18px 0 0;
    color: var(--muted);
    line-height: 1.82;
}

.artisan-card__login-hint {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin-top: 20px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--accent-strong);
    background: rgba(15, 118, 110, 0.1);
    font-size: 0.82rem;
    font-weight: 800;
}

.artisan-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid rgba(21, 33, 49, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-md);
}

.artisan-pagination__summary {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 800;
}

.artisan-pagination__controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.artisan-pagination__button {
    min-width: 42px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(21, 33, 49, 0.1);
    border-radius: 999px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
    font-weight: 800;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.artisan-pagination__button:hover,
.artisan-pagination__button:focus-visible,
.artisan-pagination__button.is-active {
    color: #fff;
    border-color: var(--accent);
    background: var(--accent);
}

.artisan-pagination__button:hover,
.artisan-pagination__button:focus-visible {
    transform: translateY(-1px);
}

.artisan-pagination__button:disabled {
    cursor: not-allowed;
    color: rgba(100, 116, 139, 0.7);
    border-color: rgba(21, 33, 49, 0.08);
    background: rgba(255, 255, 255, 0.5);
    transform: none;
}

.artisan-pagination__button--wide {
    min-width: 104px;
}

.artisan-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 42px;
    color: var(--muted);
    font-weight: 800;
}

.site-footer {
    padding: 26px 0 36px;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 26px 30px;
    border: 1px solid rgba(21, 33, 49, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.7);
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.site-footer__links a {
    color: rgba(21, 33, 49, 0.68);
    font-weight: 700;
}

@media (max-width: 1100px) {
    .search-grid,
    .contact-grid,
    .artisan-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        max-width: 14ch;
    }
}

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }

    .section-heading,
    .site-footer__inner,
    .artisan-pagination,
    .location-banner,
    .site-header__inner {
        align-items: start;
        flex-direction: column;
    }

    .hero-copy,
    .surface-card,
    .search-card,
    .contact-panel,
    .category-card,
    .artisan-card,
    .modal-card {
        padding: 24px;
    }

    .hero-copy {
        min-height: auto;
        border-radius: 0 0 28px 28px;
        padding: 42px 20px;
    }

    .form-grid,
    .artisan-card__meta {
        grid-template-columns: 1fr;
    }

    .artisan-pagination__controls {
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 20px), var(--container));
    }

    .site-header__actions,
    .hero-copy__actions {
        width: 100%;
    }

    .site-header__actions .button,
    .hero-copy__actions .button {
        width: 100%;
    }

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

    .hero-copy h1 {
        max-width: none;
        font-size: clamp(2.3rem, 12vw, 3.4rem);
    }

    .modal-card {
        padding: 22px 18px;
    }
}
