/* Jewelry Atelier — light theme with gold and jewel accents */
:root {
    --bg: #faf9f7;
    --bg-card: #ffffff;
    --text: #2c2a26;
    --text-muted: #6b6560;
    --gold: #b8860b;
    --gold-light: #d4af37;
    --gold-dark: #8b6914;
    --accent: #c9a227;
    --jewel: #7b68ee;
    --jewel-light: #9d8ef1;
    --border: #e8e4df;
    --success: #2d6a4f;
    --error: #9d0208;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(44, 42, 38, 0.06);
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Outfit', -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
}

/* Header */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
}

.logo-icon {
    color: var(--gold);
    font-size: 1.4rem;
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-main a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-main a:hover {
    color: var(--gold-dark);
}

/* Footer */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    margin-top: auto;
    padding: 2rem 1.5rem;
    text-align: center;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 0 0 0.25rem 0;
}

.footer-address,
.footer-ein,
.footer-contact {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 0.25rem 0;
}

.footer-contact a {
    color: var(--gold-dark);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-tagline {
    color: var(--gold-dark);
    font-size: 0.9rem;
    margin: 0.5rem 0 0.5rem 0;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* Typography */
h1, .page-title {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 1rem 0;
}

h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--gold-dark);
    margin: 1.5rem 0 0.75rem 0;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
}

p {
    margin: 0 0 0.75rem 0;
    color: var(--text-muted);
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.alert-success {
    background: #d8f3dc;
    color: var(--success);
    border: 1px solid #95d5b2;
}

.alert-error {
    background: #ffe5e5;
    color: var(--error);
    border: 1px solid #f4a3a3;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.1s;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--gold-dark);
    border: 1px solid var(--gold);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(184, 134, 11, 0.08);
}

.btn-small {
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--gold-dark);
    margin: 0 0 0.5rem 0;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 400px;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

.form-group .help {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Services grid */
.services-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

.services-hero .page-title {
    margin-bottom: 0.5rem;
}

.services-hero p {
    font-size: 1.1rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.category-block {
    margin-bottom: 2.5rem;
}

.category-block h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-block h2::before {
    content: '◆';
    color: var(--gold);
    font-size: 0.9rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.service-card:hover {
    border-color: var(--gold-light);
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.12);
}

.service-card h3 {
    margin-top: 0;
    color: var(--text);
}

.service-card .price {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--gold-dark);
    margin: 0.5rem 0;
}

.service-card .price.free {
    color: var(--text-muted);
    font-size: 1rem;
}

.service-card .desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Flow steps (consultation → design → …) */
.flow-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem 0.75rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.flow-steps span:not(.logo-icon) {
    color: var(--gold-dark);
}
.flow-steps .logo-icon {
    font-size: 0.5rem;
    color: var(--gold);
    vertical-align: middle;
}

/* Tables */
.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    font-weight: 600;
    color: var(--text);
    background: rgba(184, 134, 11, 0.06);
}

tr:hover td {
    background: rgba(184, 134, 11, 0.03);
}

/* Admin */
.admin-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
}

.admin-nav a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-muted);
    text-decoration: none;
}

.admin-nav a:hover,
.admin-nav a.active {
    color: var(--gold-dark);
    font-weight: 500;
}

.admin-content h1 {
    margin-bottom: 1.5rem;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-pending { background: #fff3cd; color: #856404; }
.badge-paid { background: #d4edda; color: #155724; }
.badge-processing { background: #cce5ff; color: #004085; }
.badge-completed { background: #b8d4e3; color: #0d3d56; }
.badge-cancelled { background: #f8d7da; color: #721c24; }

/* Hero */
.hero {
    text-align: center;
    padding: 2.5rem 1rem 3rem;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.06) 0%, transparent 50%);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}
.hero .page-title {
    letter-spacing: 0.02em;
}
.hero .lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 1rem;
}
.hero .btn {
    margin-top: 0.5rem;
}
.flow-steps .logo-icon {
    margin: 0 0.15rem;
}

.categories-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.empty-state .logo-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Contact page */
.contact-card {
    max-width: 420px;
}

.contact-card .contact-name {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--gold-dark);
    margin-bottom: 0.5rem;
}

.contact-card p {
    margin: 0.35rem 0;
}

.contact-card a {
    color: var(--gold-dark);
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-tagline {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}
