﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --sand-050: #f6f0e7;
    --sand-100: #eee3d3;
    --sand-200: #dec8ae;
    --sand-300: #c7a37c;
    --sand-400: #9a6f4a;
    --ink-700: #3a2819;
    --ink-900: #1f140d;
    --ok-700: #2e7d32;
    --error-700: #9d2d2d;
}

body {
    color: #2e241f;
    font-family: 'Manrope', sans-serif;
    line-height: 1.5;
    background: #faf7f2;
}

/* Home layout (scoped) */
.home-page {
    min-height: 100vh;
    color: var(--ink-900);
    background:
        radial-gradient(circle at 5% 10%, #f7efe4 0, transparent 35%),
        radial-gradient(circle at 92% 0%, #eadbc7 0, transparent 30%),
        linear-gradient(140deg, #fdfaf5 0%, #f6ede2 100%);
}

.home-page .landing {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.home-page .client-image-container {
    border: 1px solid #e5d3be;
    border-radius: 28px;
    padding: 0.85rem;
    background: linear-gradient(145deg, #fffaf3, #f0dfcb);
    box-shadow: 0 20px 30px -24px rgba(87, 60, 39, 0.55);
    margin-bottom: 1.2rem;
    animation: riseIn 650ms ease-out;
}

.home-page .client-image {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    border-radius: 20px;
    border: 1px solid #e2c9ac;
    display: block;
}

.home-page .image-caption {
    margin-top: 0.7rem;
    text-align: center;
    color: #65442d;
    font-size: 0.95rem;
    font-weight: 600;
}

.home-page .top-art {
    border: 1px solid #ecdcc9;
    border-radius: 30px;
    padding: 2rem;
    background:
        linear-gradient(120deg, rgba(255, 247, 236, 0.95), rgba(236, 215, 188, 0.88)),
        linear-gradient(20deg, #a87e56 0, transparent 70%);
    box-shadow: 0 18px 40px -24px rgba(98, 70, 42, 0.5);
    animation: riseIn 700ms ease-out;
}

.home-page .top-art-frame {
    border: 2px dashed rgba(108, 74, 44, 0.35);
    border-radius: 20px;
    padding: 1.6rem;
    text-align: center;
}

.home-page .top-art-overline {
    font-size: 0.8rem;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
    color: #744d31;
}

.home-page .top-art h1 {
    margin: 0.7rem 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 7vw, 4.6rem);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4e301a;
}

.home-page .top-art h1 span {
    color: var(--sand-400);
}

.home-page .top-art-subtitle {
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.06rem;
    color: #543623;
}

.home-page .hebrew-direction-tip,
.home-page .hebrew-direction-hint {
    margin: 1.5rem 0 0.8rem;
    text-align: center;
    color: #5d3d28;
    background: rgba(255, 250, 244, 0.8);
    border: 1px solid #e8d7c3;
    border-radius: 999px;
    padding: 0.65rem 1rem;
}

.home-page .hebrew-direction-tip span,
.home-page .hebrew-direction-hint span {
    display: inline-block;
    margin-left: 0.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.home-page .hebrew-direction-hint p + p {
    margin-top: 0.3rem;
}

.home-page .hebrew-direction-hint i {
    color: #8a5f3d;
    margin: 0 0.3rem;
}

.home-page .stone-line,
.home-page .stone-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    margin: 1rem 0 2rem;
}

.home-page .stone-row {
    direction: rtl;
}

.home-page .stone {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 55% 45% 50% 50% / 45% 50% 55% 50%;
    display: grid;
    place-items: center;
    font-size: 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    color: #23180f;
    background: radial-gradient(circle at 35% 22%, #f4e8d8, #c9ad8f 70%);
    box-shadow: 0 6px 0 #8f6f51, 0 9px 14px rgba(0, 0, 0, 0.12);
    transform: rotate(-4deg);
}

.home-page .hebrew-stone {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 55% 45% 50% 50% / 45% 50% 55% 50%;
    display: grid;
    place-items: center;
    font-size: 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    color: #23180f;
    background: radial-gradient(circle at 35% 22%, #f4e8d8, #c9ad8f 70%);
    box-shadow: 0 6px 0 #8f6f51, 0 9px 14px rgba(0, 0, 0, 0.12);
    transform: rotate(-4deg);
}

.home-page .stone:nth-child(even) {
    transform: rotate(5deg) translateY(3px);
}

.home-page .hebrew-stone:nth-child(even) {
    transform: rotate(5deg) translateY(3px);
}

.home-page .event-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0.5rem 0 2rem;
}

.home-page .pillar-card {
    border-radius: 20px;
    border: 1px solid #ead8c4;
    background: rgba(255, 251, 246, 0.9);
    padding: 1.2rem;
    box-shadow: 0 18px 28px -24px rgba(102, 70, 42, 0.8);
    animation: riseIn 640ms ease-out;
}

.home-page .pillar-card i {
    color: #8b5f3a;
    font-size: 1.3rem;
    margin-bottom: 0.55rem;
}

.home-page .pillar-card h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.9rem;
    margin-bottom: 0.4rem;
}

.home-page .pillar-card ul {
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.home-page .pillar-card li {
    padding-left: 0.9rem;
    position: relative;
    color: #443024;
}

.home-page .pillar-card li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a5764f;
    position: absolute;
    top: 0.52rem;
    left: 0;
}

.home-page .hebrew-highlight {
    display: inline-block;
    margin-bottom: 0.7rem;
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    background: #efe1cf;
    color: #5d3d28;
    font-size: 0.92rem;
    font-weight: 700;
}

.home-page .event-info {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.8rem;
    align-items: center;
    background: #ead4bc;
    border: 1px solid #d8baa0;
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.home-page .event-info p {
    color: #4b2f1f;
    font-weight: 600;
}

.home-page .event-info i {
    margin-right: 0.35rem;
}

.home-page .event-badge {
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    background: #8f613d;
    color: #fff6ed;
    justify-self: end;
}

.home-page .cta-block {
    background: linear-gradient(150deg, #fffaf4, #f2e4d4);
    border: 1px solid #e3d0bb;
    border-radius: 24px;
    padding: 1.6rem;
    text-align: center;
    margin-bottom: 1.2rem;
}

.home-page .cta-block h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.home-page .status-copy {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.03rem;
}

.home-page .status-note {
    margin-top: 0.8rem;
    color: #6d4930;
    font-size: 0.95rem;
}

.home-page .signup-section {
    border: 1px solid #e2cfba;
    border-radius: 20px;
    background: rgba(255, 251, 245, 0.92);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.home-page .signup-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.home-page .signup-heading h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
}

.home-page .signup-heading p {
    color: var(--ok-700);
    font-weight: 700;
}

.home-page .registration-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.home-page .registration-form label {
    color: #432f21;
    font-weight: 600;
}

.home-page .registration-form label:nth-child(3),
.home-page .registration-form label:nth-child(4),
.home-page .registration-form button {
    grid-column: 1 / -1;
}

.home-page .registration-submit {
    justify-self: start;
    padding: 0.8rem 1.7rem;
    border-radius: 10px;
    border: 0;
    background: linear-gradient(140deg, #8f6038, #6d4528);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.home-page .registration-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px -12px #5a3821;
}

.home-page .cta-anchor {
    display: inline-block;
    text-decoration: none;
}

.home-page .alef-highlight {
    border: 1px solid #dbc6af;
    border-left: 7px solid #ab7b53;
    border-radius: 20px;
    padding: 1.2rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1rem;
    background: #f5ebdf;
    margin-bottom: 1rem;
}

.home-page .alef-highlight h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
}

.home-page .stones-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    align-content: start;
}

.home-page .tetragram-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    align-content: start;
}

.home-page .stone-large {
    width: 100%;
    min-height: 3.1rem;
    font-size: 1.5rem;
}

.home-page .tetragram-caption {
    margin-top: 0.65rem;
    color: #6d4930;
    font-size: 0.92rem;
}

.home-page .warnings {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.home-page .warnings p {
    border-radius: 10px;
    padding: 0.8rem;
    background: #f2e7d8;
    border: 1px solid #e0ccb5;
    color: #4a301f;
}

.home-page .landing-footer {
    border-top: 1px dashed #c9ac8e;
    padding-top: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.3rem;
    justify-content: center;
    color: #6d4a31;
    font-size: 0.9rem;
}

.home-page .errors {
    margin-bottom: 1rem;
    list-style: disc outside;
    margin-left: 1rem;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .home-page .event-pillars {
        grid-template-columns: 1fr;
    }

    .home-page .event-info {
        grid-template-columns: 1fr;
    }

    .home-page .event-badge {
        justify-self: start;
    }

    .home-page .registration-form {
        grid-template-columns: 1fr;
    }

    .home-page .alef-highlight {
        grid-template-columns: 1fr;
    }

    .home-page .tetragram-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .home-page .landing {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .home-page .top-art {
        padding: 1.1rem;
    }

    .home-page .top-art-frame {
        padding: 1rem;
    }

    .home-page .stone {
        width: 1.95rem;
        height: 1.95rem;
        font-size: 0.92rem;
    }

    .home-page .hebrew-stone {
        width: 1.95rem;
        height: 1.95rem;
        font-size: 0.92rem;
    }
}

/* Shared utility classes */
.mr-1 { margin-right: 0.6rem; }
.mt-1 { margin-top: 1rem; }
.separator { font-weight: 400; margin: 0 0.5rem; }
.icon-arrow { color: #a47148; }
.icon-check { color: var(--ok-700); }
.notice-paragraph {
    margin-top: 2rem;
    font-size: 1rem;
    background: #f0e5da;
    padding: 0.5rem 1rem;
    border-radius: 30px;
}

/* Generic styles preserved for admin and shared pages */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
}

form label {
    display: block;
    margin-bottom: 0.8rem;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="date"],
form select,
form textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #c7ad93;
    border-radius: 8px;
    font-size: 1rem;
    margin-top: 0.2rem;
}

form button {
    background: #a47148;
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 40px;
    font-size: 1.1rem;
    cursor: pointer;
}

form button:hover {
    background: #8c5f3a;
}

.errors {
    color: var(--error-700);
    margin-bottom: 1rem;
    list-style: disc outside;
    margin-left: 1rem;
}

.success {
    color: var(--ok-700);
    margin-bottom: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    border: 1px solid #e7d9cb;
    padding: 0.6rem;
    text-align: left;
}

.table-container {
    overflow-x: auto;
    margin: 1rem 0;
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.responsive-table th,
.responsive-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
}

.responsive-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.responsive-table tbody tr:hover {
    background-color: #f9f9f9;
}

.approve-btn {
    display: inline-block;
    padding: 6px 12px;
    background-color: #4b382a;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.approve-btn:hover {
    background-color: #5f4c3b;
}

@media (max-width: 768px) {
    .responsive-table {
        min-width: 600px;
    }

    .responsive-table th,
    .responsive-table td {
        padding: 10px 6px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .responsive-table th,
    .responsive-table td {
        padding: 8px 4px;
        font-size: 0.8rem;
    }

    .approve-btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
}
