/* Generic CMS Starter — Public Site Styles */

:root {
    --bg: #0d0d10;
    --bg-alt: #14141a;
    --surface: #1b1b22;
    --text: #e8e6e0;
    --text-muted: #a8a59c;
    --accent: #c9a961;
    --accent-soft: rgba(201, 169, 97, 0.15);
    --border: rgba(255, 255, 255, 0.08);
    --radius: 6px;
    --max: 1200px;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: opacity .2s ease; }
a:hover { opacity: .75; }

.site-container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(13, 13, 16, 0.92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.site-header .site-container { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; }
.site-logo { color: var(--text); font-family: var(--serif); font-size: 1.25rem; letter-spacing: .02em; }
.site-logo .logo-icon { color: var(--accent); margin-right: .35rem; }
.site-nav { display: flex; gap: 2rem; align-items: center; }
.site-nav .nav-link { color: var(--text-muted); font-weight: 400; font-size: .95rem; }
.site-nav .nav-link.active, .site-nav .nav-link:hover { color: var(--text); }
.nav-admin { color: var(--accent) !important; border: 1px solid var(--accent); padding: .35rem .75rem; border-radius: var(--radius); }
.menu-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 4px; cursor: pointer; }
.menu-toggle span { width: 24px; height: 2px; background: var(--text); display: block; }

@media (max-width: 768px) {
    .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 1rem 1.5rem; background: var(--bg-alt); border-bottom: 1px solid var(--border); gap: 1rem; }
    .site-nav.is-open { display: flex; }
    .menu-toggle { display: flex; }
}

/* Hero */
.hero {
    position: relative; min-height: 75vh; display: flex; align-items: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,16,.55), rgba(13,13,16,.92)); }
.hero-content { position: relative; padding: 6rem 1.5rem; text-align: center; }
.hero-headline { font-family: var(--serif); font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 500; margin: 1rem 0; line-height: 1.1; }
.hero-headline .highlight { color: var(--accent); font-style: italic; }
.hero-subtitle { color: var(--text-muted); max-width: 640px; margin: 0 auto 2rem; font-size: 1.1rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.accent-label {
    display: inline-block; padding: .35rem .9rem; background: var(--accent-soft);
    color: var(--accent); border-radius: 100px; font-size: .8rem; letter-spacing: .15em;
    text-transform: uppercase; margin-bottom: 1rem;
}
.section-title { font-family: var(--serif); font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 500; margin: 0 0 1rem; }
.section-subtitle { color: var(--text-muted); }

/* Page hero */
.page-hero { padding: 6rem 0 3rem; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.page-hero .site-container { text-align: center; max-width: 720px; }
.page-title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; margin: 1rem 0 .75rem; }
.page-lead { color: var(--text-muted); font-size: 1.1rem; }

/* Features grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.feature-card {
    padding: 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.feature-card h3 { font-family: var(--serif); font-size: 1.4rem; margin-top: 0; color: var(--text); }
.feature-card p { color: var(--text-muted); margin: 0; }

/* Services grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.service-block {
    padding: 2.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.service-block h2 { font-family: var(--serif); margin-top: 0; }
.service-block ul { padding-left: 1.25rem; color: var(--text-muted); }

/* Content grid (about, contact) */
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 768px) { .content-grid { grid-template-columns: 1fr; } }
.content-image img { border-radius: var(--radius); border: 1px solid var(--border); }
.content-text h2 { font-family: var(--serif); }
.content-aside {
    padding: 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.content-aside h3 { font-family: var(--serif); margin-top: 0; }
.content-narrow { max-width: 760px; margin: 0 auto; }
.content-narrow h2 { font-family: var(--serif); margin-top: 2rem; }

/* CTA */
.cta-section { padding: 5rem 0; text-align: center; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.cta-section h2 { font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 0 0 1rem; }
.cta-section p { color: var(--text-muted); max-width: 540px; margin: 0 auto 1.5rem; }

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block; padding: .85rem 2rem; border-radius: var(--radius);
    font-weight: 500; font-size: .95rem; letter-spacing: .03em; cursor: pointer;
    transition: all .2s ease; text-align: center; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #1a1a1a; }
.btn-primary:hover { background: #d4b974; opacity: 1; }
.btn-secondary { border-color: var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }
.btn-large { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* Forms */
.contact-form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group label { display: block; margin-bottom: .35rem; font-size: .9rem; color: var(--text-muted); }
.form-group input, .form-group textarea {
    width: 100%; padding: .75rem 1rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text); font-family: inherit; font-size: .95rem;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-hint { display: block; color: var(--text-muted); font-size: .8rem; margin-top: .35rem; }

.flash { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; border: 1px solid var(--border); }
.flash-success { background: rgba(60, 160, 90, .08); border-color: rgba(60, 160, 90, .3); color: #6fcf80; }
.flash-error   { background: rgba(220, 70, 70, .08); border-color: rgba(220, 70, 70, .3); color: #f08585; }

/* Footer */
.site-footer { padding: 4rem 0 2rem; background: var(--bg-alt); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand .footer-logo { font-family: var(--serif); font-size: 1.2rem; color: var(--text); }
.footer-tagline { color: var(--text-muted); margin-top: .5rem; }
.footer-links h4 { font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-muted); }
.footer-links a, .footer-links span { display: block; padding: .25rem 0; color: var(--text-muted); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--text-muted); font-size: .9rem; }

.text-muted { color: var(--text-muted); }
