/* =========================================
   Shamrock Stitchery — Stylesheet
   ========================================= */

:root {
    --green-deep: #0f5132;
    --green: #1a7a44;
    --green-light: #2e9959;
    --gold: #c19a4e;
    --gold-light: #d9b870;
    --cream: #faf6ec;
    --cream-dark: #f0e9d4;
    --ink: #1f2d1f;
    --muted: #5c6b5c;
    --white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(15, 81, 50, 0.08);
    --shadow-md: 0 8px 30px rgba(15, 81, 50, 0.12);
    --shadow-lg: 0 18px 60px rgba(15, 81, 50, 0.18);
    --radius: 14px;
    --radius-lg: 22px;
    --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-script: "Great Vibes", "Snell Roundhand", cursive;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-deep); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--green-deep);
    line-height: 1.2;
    margin: 0 0 0.6em;
    font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; }

.container { width: min(1200px, 92%); margin: 0 auto; }
.container-narrow { width: min(820px, 92%); margin: 0 auto; }

/* ----- Header / Nav ----- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(250, 246, 236, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(15, 81, 50, 0.1);
}
.nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.9rem 0; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand__logo {
    width: 54px; height: 54px; border-radius: 50%;
    background: var(--white); box-shadow: var(--shadow-sm);
    padding: 4px; flex-shrink: 0; object-fit: contain;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-serif); color: var(--green-deep); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.3px; }
.brand__tag { color: var(--gold); font-size: 0.72rem; letter-spacing: 2.4px; text-transform: uppercase; margin-top: 4px; font-weight: 500; }

.nav__links { display: flex; align-items: center; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink); padding: 0.55rem 0.95rem; border-radius: 30px; font-weight: 500; font-size: 0.96rem; transition: all 0.2s ease; }
.nav__links a:hover, .nav__links a.active { background: var(--green-deep); color: var(--white); }

.btn {
    display: inline-block; padding: 0.85rem 1.6rem; border-radius: 30px;
    font-weight: 600; font-size: 0.98rem; letter-spacing: 0.3px; cursor: pointer;
    border: 2px solid transparent; transition: all 0.25s ease;
    font-family: inherit; text-align: center;
}
.btn--primary { background: var(--green-deep); color: var(--white); }
.btn--primary:hover { background: var(--gold); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: var(--green-deep); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; color: var(--green-deep); border-color: var(--green-deep); }
.btn--outline:hover { background: var(--green-deep); color: var(--white); }

.nav__toggle { display: none; background: transparent; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { display: block; width: 26px; height: 2.5px; background: var(--green-deep); margin: 5px 0; transition: all 0.25s ease; border-radius: 2px; }

/* ----- Hero ----- */
.hero {
    position: relative; padding: 6rem 0 5rem; overflow: hidden;
    background:
        radial-gradient(ellipse at top left, rgba(46, 153, 89, 0.08), transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(193, 154, 78, 0.1), transparent 60%),
        var(--cream);
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'><path d='M0 50 Q 25 30, 50 50 T 100 50' stroke='%231a7a44' stroke-width='0.6' fill='none' stroke-dasharray='4 4' opacity='0.25'/></svg>");
    opacity: 0.5; pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; position: relative; }
.hero__eyebrow { display: inline-block; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; font-size: 0.85rem; font-weight: 600; margin-bottom: 1.2rem; }
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 .script, h2 .script { font-family: var(--font-script); color: var(--gold); font-weight: 400; font-size: 1.2em; display: inline-block; line-height: 0.8; }
.hero__lede { font-size: 1.15rem; color: var(--muted); margin-bottom: 2rem; max-width: 520px; }
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__visual { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.hero__logo-plate {
    width: 100%; max-width: 440px; background: var(--white); border-radius: 50%;
    padding: 2.2rem; box-shadow: var(--shadow-lg); position: relative; z-index: 2;
    border: 3px solid var(--cream-dark); object-fit: contain;
}
.hero__ring { position: absolute; border: 2px dashed var(--green-light); border-radius: 50%; opacity: 0.45; }
.hero__ring--1 { width: 85%; height: 85%; animation: slowSpin 40s linear infinite; }
.hero__ring--2 { width: 100%; height: 100%; border-color: var(--gold); opacity: 0.3; animation: slowSpin 60s linear infinite reverse; }
@keyframes slowSpin { to { transform: rotate(360deg); } }

/* ----- Sections ----- */
section { padding: 5rem 0; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head__eyebrow { color: var(--gold); letter-spacing: 3px; text-transform: uppercase; font-size: 0.82rem; font-weight: 600; display: block; margin-bottom: 0.8rem; }
.section-head h2 .script { font-family: var(--font-script); color: var(--gold); font-weight: 400; font-size: 1.25em; }
.section-head p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }
.divider { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1.2rem 0 1.6rem; }
.divider::before, .divider::after { content: ""; width: 50px; height: 1px; background: var(--gold); }
.divider__icon { color: var(--gold); font-size: 1.1rem; }
.bg-forest { background: var(--green-deep); color: var(--cream); }
.bg-forest h1, .bg-forest h2, .bg-forest h3 { color: var(--white); }
.bg-forest .section-head p { color: rgba(250, 246, 236, 0.85); }
.bg-cream-dark { background: var(--cream-dark); }

/* ----- Feature grid ----- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }
.feature { background: var(--white); padding: 2rem 1.7rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid rgba(15, 81, 50, 0.06); transition: transform 0.3s ease, box-shadow 0.3s ease; text-align: center; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature__icon { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--green-light), var(--green-deep)); color: var(--white); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; box-shadow: 0 4px 12px rgba(15, 81, 50, 0.25); }
.feature__icon svg { width: 30px; height: 30px; }
.feature h3 { margin-bottom: 0.6rem; font-size: 1.25rem; }
.feature p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* ----- Specialty ----- */
.specialty { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.specialty--reverse { direction: rtl; }
.specialty--reverse > * { direction: ltr; }
.specialty__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); background: linear-gradient(135deg, var(--green-deep), var(--green-light)); }
.specialty__badge { position: absolute; top: 1.2rem; right: 1.2rem; background: var(--gold); color: var(--white); padding: 0.5rem 1rem; border-radius: 30px; font-size: 0.78rem; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 600; box-shadow: var(--shadow-sm); z-index: 2; }
.specialty__content h2 { margin-bottom: 1rem; }
.specialty__content .divider { justify-content: flex-start; margin-left: 0; }
.specialty__content .divider::before { width: 40px; }
.specialty__list { list-style: none; padding: 0; margin: 1.5rem 0; }
.specialty__list li { padding: 0.6rem 0 0.6rem 2rem; position: relative; color: var(--muted); }
.specialty__list li::before { content: "☘"; position: absolute; left: 0; color: var(--green-light); font-size: 1.2rem; top: 0.55rem; }

/* ----- Process ----- */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; position: relative; }
.process__step { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); padding: 2rem 1.5rem; border-radius: var(--radius); text-align: center; backdrop-filter: blur(4px); }
.process__number { font-family: var(--font-serif); font-size: 3rem; color: var(--gold); line-height: 1; margin-bottom: 0.5rem; font-weight: 700; }
.process__step h3 { color: var(--white); margin-bottom: 0.6rem; font-size: 1.2rem; }
.process__step p { color: rgba(250, 246, 236, 0.8); font-size: 0.94rem; margin: 0; }

/* ----- Gallery ----- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.gallery__item { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); transition: transform 0.35s ease, box-shadow 0.35s ease; cursor: pointer; background: linear-gradient(135deg, var(--green-deep), var(--green-light)); background-size: cover; background-position: center; }
.gallery__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.gallery__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 81, 50, 0.92) 0%, rgba(15, 81, 50, 0) 55%); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.4rem; color: var(--white); opacity: 0; transition: opacity 0.3s ease; }
.gallery__item:hover .gallery__overlay { opacity: 1; }
.gallery__overlay h4 { color: var(--white); font-family: var(--font-serif); font-size: 1.2rem; margin: 0 0 0.3rem; }
.gallery__overlay span { color: var(--gold-light); font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; }
.gallery__tag { position: absolute; top: 1rem; left: 1rem; background: rgba(255, 255, 255, 0.95); color: var(--green-deep); padding: 0.35rem 0.8rem; border-radius: 20px; font-size: 0.72rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; z-index: 2; }
.gallery-filter { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.gallery-filter button { padding: 0.6rem 1.3rem; border-radius: 30px; border: 1.5px solid var(--green-deep); background: transparent; color: var(--green-deep); cursor: pointer; font-weight: 500; font-size: 0.92rem; transition: all 0.2s ease; font-family: inherit; }
.gallery-filter button:hover, .gallery-filter button.active { background: var(--green-deep); color: var(--white); }

/* ----- Testimonials / Team ----- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.8rem; }
.testimonial { background: var(--white); padding: 2.2rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid rgba(15, 81, 50, 0.06); position: relative; }
.testimonial__stars { color: var(--gold); margin-bottom: 0.8rem; font-size: 1rem; }
.testimonial__text { color: var(--ink); font-style: italic; margin-bottom: 1.2rem; font-size: 1rem; }
.testimonial__author { display: flex; align-items: center; gap: 0.8rem; padding-top: 1rem; border-top: 1px solid var(--cream-dark); }
.testimonial__avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--green-light), var(--gold)); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-serif); font-size: 1.05rem; }
.testimonial__name { font-weight: 600; color: var(--green-deep); font-size: 0.95rem; }
.testimonial__role { color: var(--muted); font-size: 0.82rem; }

/* ----- Forms / Contact ----- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; }
.contact-info { background: var(--green-deep); color: var(--cream); padding: 2.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.contact-info h3 { color: var(--white); margin-bottom: 0.6rem; }
.contact-info__item { display: flex; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.contact-info__item:last-child { border-bottom: none; }
.contact-info__icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gold-light); }
.contact-info__label { color: var(--gold-light); font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; display: block; margin-bottom: 0.2rem; }
.contact-info__value { color: var(--white); font-size: 1rem; }
.contact-info__value a { color: var(--white); }
.contact-info__value a:hover { color: var(--gold-light); }
.form { background: var(--white); padding: 2.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid rgba(15, 81, 50, 0.06); }
.form-group { margin-bottom: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: block; font-weight: 500; margin-bottom: 0.4rem; color: var(--green-deep); font-size: 0.94rem; }
.form label .req { color: var(--gold); }
.form input, .form select, .form textarea {
    width: 100%; padding: 0.85rem 1rem; border: 1.5px solid var(--cream-dark); border-radius: 10px;
    font-family: inherit; font-size: 1rem; background: var(--cream); color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green-light); box-shadow: 0 0 0 3px rgba(46, 153, 89, 0.15); background: var(--white); }
.form textarea { resize: vertical; min-height: 130px; }
.form-notice { background: var(--cream-dark); padding: 1rem 1.2rem; border-radius: 10px; font-size: 0.92rem; color: var(--muted); margin-bottom: 1.4rem; border-left: 3px solid var(--gold); }
.form-success { display: none; background: rgba(46, 153, 89, 0.12); color: var(--green-deep); padding: 1.2rem; border-radius: 10px; margin-bottom: 1.4rem; border-left: 3px solid var(--green-light); font-weight: 500; }
.form-success.active { display: block; }

/* ----- CTA Band ----- */
.cta-band { background: linear-gradient(135deg, var(--green-deep) 0%, var(--green) 100%); color: var(--white); padding: 4rem 0; position: relative; overflow: hidden; }
.cta-band::before { content: "☘"; position: absolute; font-size: 18rem; color: rgba(255, 255, 255, 0.05); right: -2rem; top: 50%; transform: translateY(-50%); line-height: 1; }
.cta-band__content { position: relative; text-align: center; }
.cta-band h2 { color: var(--white); margin-bottom: 0.8rem; }
.cta-band p { color: rgba(255, 255, 255, 0.9); max-width: 620px; margin: 0 auto 2rem; font-size: 1.1rem; }

/* ----- Page hero ----- */
.page-hero {
    background: linear-gradient(135deg, rgba(15, 81, 50, 0.92), rgba(26, 122, 68, 0.88)),
                radial-gradient(circle at 20% 40%, var(--gold) 0%, transparent 40%);
    background-size: cover; background-position: center;
    color: var(--white); padding: 5rem 0 4rem; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><circle cx='30' cy='30' r='1.5' fill='%23d9b870' opacity='0.3'/></svg>"); opacity: 0.5; }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; position: relative; }
.page-hero h1 .script { font-family: var(--font-script); color: var(--gold-light); font-weight: 400; font-size: 1.2em; }
.page-hero p { color: rgba(255, 255, 255, 0.92); max-width: 620px; margin: 0 auto; font-size: 1.1rem; position: relative; }
.breadcrumbs { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; margin-bottom: 1rem; position: relative; }
.breadcrumbs a { color: var(--gold-light); }
.breadcrumbs a:hover { color: var(--white); }

/* ----- Service list ----- */
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.service-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(15, 81, 50, 0.06); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.service-card__head { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--green-deep), var(--green-light)); display: flex; align-items: center; justify-content: center; color: var(--white); }
.service-card__head svg { width: 70px; height: 70px; color: var(--gold-light); }
.service-card__body { padding: 1.8rem; flex-grow: 1; display: flex; flex-direction: column; }
.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { color: var(--muted); margin-bottom: 1.2rem; flex-grow: 1; }
.service-card__price { color: var(--gold); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.5px; }

/* ----- FAQ ----- */
.faq-list { display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(15, 81, 50, 0.06); }
.faq-item summary { padding: 1.2rem 1.5rem; cursor: pointer; font-weight: 600; color: var(--green-deep); font-family: var(--font-serif); font-size: 1.08rem; position: relative; padding-right: 3rem; list-style: none; transition: background 0.2s ease; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.5rem; font-weight: 300; transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item[open] summary { background: var(--cream); }
.faq-item__body { padding: 0 1.5rem 1.4rem; color: var(--muted); }

/* ----- Stats ----- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; text-align: center; }
.stat__number { font-family: var(--font-serif); font-size: clamp(2.5rem, 5vw, 3.5rem); color: var(--gold); font-weight: 700; line-height: 1; }
.stat__label { color: rgba(250, 246, 236, 0.9); letter-spacing: 2px; text-transform: uppercase; font-size: 0.84rem; margin-top: 0.5rem; font-weight: 500; }

/* ----- Footer ----- */
.site-footer { background: #0a2f1e; color: rgba(250, 246, 236, 0.8); padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-col h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 1.1rem; letter-spacing: 0.4px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: rgba(250, 246, 236, 0.75); font-size: 0.95rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--gold-light); }
.footer-brand { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.footer-brand img { width: 54px; height: 54px; background: var(--white); border-radius: 50%; padding: 4px; object-fit: contain; }
.footer-brand-name { font-family: var(--font-serif); color: var(--white); font-size: 1.35rem; font-weight: 700; }
.footer-col p { color: rgba(250, 246, 236, 0.7); font-size: 0.95rem; }
.social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s ease; color: var(--cream); }
.social a:hover { background: var(--gold); transform: translateY(-2px); color: var(--white); }
.social svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.88rem; color: rgba(250, 246, 236, 0.6); }

/* ----- Reveal / misc ----- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ----- Admin CSS ----- */
.admin-body { background: #f3f4f6; margin: 0; font-family: var(--font-sans); color: #111827; line-height: 1.5; }
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar { background: #0a2f1e; color: rgba(250, 246, 236, 0.9); padding: 1.5rem 1.25rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-sidebar h1 { font-family: var(--font-serif); color: var(--white); font-size: 1.15rem; margin-bottom: 1.6rem; display: flex; align-items: center; gap: 0.6rem; }
.admin-sidebar h1 img { width: 36px; height: 36px; background: var(--white); padding: 3px; border-radius: 50%; object-fit: contain; }
.admin-sidebar .label { display: block; color: var(--gold); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; margin: 1.4rem 0.75rem 0.5rem; }
.admin-sidebar nav a { display: block; padding: 0.6rem 0.85rem; border-radius: 8px; color: rgba(250, 246, 236, 0.85); font-size: 0.96rem; margin-bottom: 0.15rem; transition: background 0.15s ease; }
.admin-sidebar nav a:hover { background: rgba(255, 255, 255, 0.07); color: var(--white); }
.admin-sidebar nav a.active { background: var(--green-light); color: var(--white); }
.admin-main { padding: 2rem 2.25rem; max-width: 1200px; width: 100%; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.admin-topbar h1 { font-family: var(--font-serif); margin: 0; color: var(--green-deep); font-size: 1.75rem; }
.admin-topbar a, .admin-topbar form button { font-size: 0.92rem; color: var(--muted); }
.admin-card { background: var(--white); border-radius: 12px; padding: 1.6rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); margin-bottom: 1.4rem; border: 1px solid #e5e7eb; }
.admin-card h3 { font-family: var(--font-serif); font-size: 1.1rem; margin: 0 0 1rem; color: var(--green-deep); }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.admin-stat { background: var(--white); padding: 1.4rem 1.25rem; border-radius: 12px; border: 1px solid #e5e7eb; }
.admin-stat .n { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; color: var(--green-deep); line-height: 1; }
.admin-stat .l { color: var(--muted); font-size: 0.82rem; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 0.4rem; font-weight: 600; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); padding: 0.75rem 0.9rem; border-bottom: 1px solid #e5e7eb; font-weight: 600; }
.admin-table td { padding: 0.85rem 0.9rem; border-bottom: 1px solid #f0f0f0; font-size: 0.94rem; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafafa; }
.admin-table .actions { display: flex; gap: 0.4rem; justify-content: flex-end; }
.badge { display: inline-block; padding: 0.15rem 0.65rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.3px; }
.badge--ok { background: rgba(46, 153, 89, 0.14); color: #15803d; }
.badge--muted { background: #f3f4f6; color: #6b7280; }
.badge--gold { background: rgba(193, 154, 78, 0.18); color: #a67c2c; }

.admin-form .fg { margin-bottom: 1.15rem; }
.admin-form label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.88rem; color: #374151; letter-spacing: 0.2px; }
.admin-form input, .admin-form select, .admin-form textarea {
    width: 100%; padding: 0.65rem 0.85rem; border: 1.5px solid #d1d5db; border-radius: 8px;
    font-family: inherit; font-size: 0.96rem; background: var(--white); color: var(--ink);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { outline: none; border-color: var(--green-light); box-shadow: 0 0 0 3px rgba(46, 153, 89, 0.15); }
.admin-form textarea { min-height: 110px; resize: vertical; font-family: "SF Mono", "Monaco", "Menlo", monospace; font-size: 0.88rem; }
.admin-form textarea.prose { font-family: inherit; font-size: 0.96rem; }
.admin-form .help { color: var(--muted); font-size: 0.82rem; margin-top: 0.3rem; }
.admin-form .fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.admin-form .checkbox-row { display: flex; align-items: center; gap: 0.5rem; }
.admin-form .checkbox-row input { width: auto; }
.admin-form .checkbox-row label { margin: 0; font-weight: 500; }
.btn-admin { display: inline-block; padding: 0.65rem 1.3rem; border-radius: 8px; font-weight: 600; font-size: 0.92rem; border: 1.5px solid transparent; cursor: pointer; transition: all 0.15s; text-decoration: none; font-family: inherit; background: var(--green-deep); color: var(--white); }
.btn-admin:hover { background: var(--green); color: var(--white); }
.btn-admin:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-admin--primary { background: var(--green-deep); color: var(--white); }
.btn-admin--primary:hover { background: var(--green); color: var(--white); }
.btn-admin--danger { background: #fff; color: #dc2626; border-color: #fecaca; }
.btn-admin--danger:hover { background: #fef2f2; }
.btn-admin--ghost { background: transparent; color: var(--muted); border-color: #e5e7eb; }
.btn-admin--ghost:hover { background: #f3f4f6; color: var(--ink); }
.btn-admin--sm { padding: 0.4rem 0.85rem; font-size: 0.84rem; }

.admin-alert { padding: 0.85rem 1.1rem; border-radius: 8px; margin-bottom: 1.4rem; font-size: 0.92rem; }
.admin-alert--ok { background: rgba(46, 153, 89, 0.14); color: #166534; border: 1px solid rgba(46, 153, 89, 0.28); }
.admin-alert--err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--green-deep), var(--green)); padding: 2rem; }
.auth-card { background: var(--white); border-radius: 20px; padding: 2.5rem; max-width: 420px; width: 100%; box-shadow: var(--shadow-lg); }
.auth-card img { width: 80px; height: 80px; margin: 0 auto 1.2rem; display: block; }
.auth-card h2 { text-align: center; margin-bottom: 0.3rem; font-family: var(--font-serif); }
.auth-card p { text-align: center; color: var(--muted); margin-bottom: 1.8rem; font-size: 0.94rem; }

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .admin-shell { grid-template-columns: 220px 1fr; }
    .admin-main { padding: 1.5rem; }
}

@media (max-width: 960px) {
    .hero { padding: 3rem 0; }
    .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero__visual { order: -1; max-width: 360px; margin: 0 auto; }
    .specialty, .specialty--reverse { grid-template-columns: 1fr; gap: 2rem; direction: ltr; }
    .specialty__media { aspect-ratio: 16/10; max-height: 420px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    section { padding: 3.5rem 0; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
    .admin-form .fg-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .nav__links { position: absolute; top: 100%; right: 0; left: 0; background: var(--cream); flex-direction: column; align-items: stretch; padding: 1rem; gap: 0.3rem; border-bottom: 1px solid rgba(15, 81, 50, 0.1); box-shadow: var(--shadow-md); display: none; }
    .nav__links.open { display: flex; }
    .nav__links a { display: block; padding: 0.8rem 1rem; }
    .nav__toggle { display: block; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { justify-content: center; text-align: center; }
    .brand__name { font-size: 1.12rem; }
    .brand__tag { font-size: 0.62rem; letter-spacing: 1.8px; }
    .brand__logo { width: 46px; height: 46px; }
}

/* ----- Admin v2 (new class names used by Blade views) ----- */
[x-cloak] { display: none !important; }

.admin-sidebar__brand { display: flex; align-items: center; gap: 0.7rem; padding: 0.25rem 0.25rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 1rem; }
.admin-sidebar__brand img { width: 42px; height: 42px; border-radius: 50%; background: var(--white); padding: 3px; object-fit: contain; flex-shrink: 0; }
.admin-sidebar__brand strong { display: block; font-family: var(--font-serif); color: var(--white); font-size: 1.05rem; }
.admin-sidebar__brand span { display: block; font-size: 0.7rem; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; }
.admin-nav { display: flex; flex-direction: column; gap: 0.2rem; }
.admin-nav a { display: block; padding: 0.65rem 0.95rem; border-radius: 8px; color: rgba(250, 246, 236, 0.82); font-size: 0.95rem; transition: background 0.15s; }
.admin-nav a:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.admin-nav a.is-active { background: var(--green-light); color: var(--white); }
.admin-sidebar__foot { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; gap: 0.5rem; }
.admin-sidebar__foot a { font-size: 0.85rem; color: rgba(250,246,236,0.7); }
.admin-sidebar__foot a:hover { color: var(--white); }

.admin-topbar__title { font-family: var(--font-serif); margin: 0 0 0.2rem; color: var(--green-deep); font-size: 1.8rem; font-weight: 700; }
.admin-topbar__subtitle { margin: 0; color: var(--muted); font-size: 0.95rem; }
.admin-topbar__meta { color: var(--muted); font-size: 0.88rem; }
.admin-topbar__meta strong { color: var(--ink); }

.admin-content { display: block; }
.admin-flash { padding: 0.9rem 1.1rem; border-radius: 10px; margin-bottom: 1.4rem; font-size: 0.94rem; }
.admin-flash--success { background: rgba(46, 153, 89, 0.12); color: #15803d; border-left: 4px solid #15803d; }
.admin-flash--error { background: rgba(193, 77, 77, 0.1); color: #9a3030; border-left: 4px solid #c14d4d; }
.admin-flash ul { margin: 0.4rem 0 0 1.2rem; }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.admin-stat { background: var(--white); padding: 1.3rem 1.25rem; border-radius: 12px; border: 1px solid #e5e7eb; display: flex; flex-direction: column; gap: 0.3rem; }
.admin-stat__label { color: var(--muted); font-size: 0.75rem; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 600; }
.admin-stat__value { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; color: var(--green-deep); line-height: 1; }
.admin-stat__meta { color: var(--muted); font-size: 0.84rem; }
.admin-stat__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.2rem; }

.admin-panel { background: var(--white); border: 1px solid #e5e7eb; border-radius: 12px; padding: 1.5rem 1.6rem; margin-bottom: 1.3rem; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.admin-panel h2 { font-family: var(--font-serif); color: var(--green-deep); font-size: 1.25rem; margin: 0 0 1rem; }
.admin-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.admin-panel__head h2 { margin: 0; }

.admin-empty { color: var(--muted); font-style: italic; padding: 1rem 0; }
.admin-toolbar { display: flex; gap: 0.6rem; margin-bottom: 1.2rem; align-items: center; }

.admin-badge { display: inline-block; padding: 0.18rem 0.65rem; border-radius: 20px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.5px; margin-left: 0.4rem; }
.admin-badge--ok { background: rgba(46, 153, 89, 0.14); color: #15803d; }
.admin-badge--muted { background: #f3f4f6; color: #6b7280; }
.admin-badge--new { background: #fef3c7; color: #92400e; }

.admin-row-actions { display: flex; gap: 0.35rem; justify-content: flex-end; align-items: center; }
.admin-table tr.is-unread { background: #fffef6; }

.admin-form-grid { display: flex; flex-direction: column; gap: 0; }
.admin-field { margin-bottom: 1rem; }
.admin-field > label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.88rem; color: #374151; }
.admin-field input[type="text"], .admin-field input[type="email"], .admin-field input[type="tel"], .admin-field input[type="url"], .admin-field input[type="number"], .admin-field input[type="password"], .admin-field input[type="file"], .admin-field select, .admin-field textarea {
    width: 100%; padding: 0.6rem 0.85rem; border: 1.5px solid #d1d5db; border-radius: 8px;
    font-family: inherit; font-size: 0.94rem; background: var(--white); color: var(--ink);
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.admin-field input:focus, .admin-field select:focus, .admin-field textarea:focus { outline: none; border-color: var(--green-light); box-shadow: 0 0 0 3px rgba(46, 153, 89, 0.15); }
.admin-field textarea { min-height: 80px; resize: vertical; font-family: inherit; }
.admin-field small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 0.3rem; }
.admin-field small code { background: #f3f4f6; padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.82rem; }
.admin-field-row { display: flex; gap: 1rem; align-items: flex-start; }
.admin-field-row > .admin-field { flex: 1; }
.admin-field--checks { display: flex; flex-direction: column; gap: 0.4rem; align-self: flex-end; padding-bottom: 0.6rem; }
.admin-field--button { display: flex; align-items: flex-end; padding-bottom: 0.3rem; flex-shrink: 0; }
.admin-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.94rem; color: #374151; cursor: pointer; }
.admin-check input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--green-deep); }
.admin-help { color: var(--muted); font-size: 0.9rem; margin: 0 0 1rem; }
.admin-code { font-family: "SF Mono", "Monaco", "Menlo", monospace; font-size: 0.85rem; background: #f9fafb; padding: 0.8rem; border-radius: 8px; white-space: pre-wrap; word-break: break-word; border: 1px solid #e5e7eb; }
textarea.admin-code { font-family: "SF Mono", "Monaco", "Menlo", monospace; }
.admin-details { margin-top: 1rem; }
.admin-details summary { cursor: pointer; font-size: 0.88rem; color: var(--muted); padding: 0.5rem 0; }
.admin-dl { display: grid; grid-template-columns: 140px 1fr; gap: 0.6rem 1.2rem; margin: 0; }
.admin-dl dt { font-weight: 600; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.5px; }
.admin-dl dd { margin: 0; color: var(--ink); }
.admin-pagination { margin-top: 1.2rem; }
.admin-form__actions { display: flex; gap: 0.7rem; align-items: center; padding: 1.4rem 0 0.5rem; border-top: 1px solid #e5e7eb; margin-top: 1rem; flex-wrap: wrap; }

/* ----- Block editor ----- */
.block-editor { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 1.2rem; }
.block-card { border: 1.5px solid #e5e7eb; border-radius: 10px; background: #fafafa; overflow: hidden; transition: box-shadow 0.15s; }
.block-card:hover { box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
.block-card.is-collapsed { background: #f3f4f6; }
.block-card__head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.65rem 0.9rem; background: var(--white); border-bottom: 1px solid #e5e7eb; }
.block-card.is-collapsed .block-card__head { border-bottom: none; }
.block-card__title { display: flex; align-items: center; gap: 0.5rem; flex: 1; min-width: 0; }
.block-card__type { font-weight: 600; color: var(--green-deep); font-size: 0.95rem; white-space: nowrap; }
.block-card__summary { color: var(--muted); font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.block-card__actions { display: flex; gap: 0.3rem; flex-shrink: 0; }
.block-card__body { padding: 1.1rem 1.2rem 0.6rem; background: var(--white); }
.block-toggle { background: transparent; border: none; cursor: pointer; font-size: 0.9rem; color: var(--muted); padding: 0.2rem 0.4rem; border-radius: 4px; }
.block-toggle:hover { background: #f3f4f6; color: var(--ink); }

.block-sub { border: 1px dashed #d1d5db; border-radius: 8px; padding: 0.9rem; margin: 1rem 0; background: #fafbfc; }
.block-sub__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.7rem; }
.block-sub__head h4 { margin: 0; font-family: var(--font-serif); color: var(--green-deep); font-size: 1rem; }
.block-item { background: var(--white); border: 1px solid #e5e7eb; border-radius: 8px; padding: 0.9rem; margin-bottom: 0.7rem; position: relative; }
.block-item__actions { position: absolute; top: 0.5rem; right: 0.5rem; display: flex; gap: 0.25rem; }
.block-item .admin-field:last-child { margin-bottom: 0; }
.bullet-row { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
.bullet-row input { flex: 1; padding: 0.5rem 0.75rem; border: 1.5px solid #d1d5db; border-radius: 6px; font-family: inherit; font-size: 0.92rem; }
.bullet-row input:focus { outline: none; border-color: var(--green-light); }

.block-adder { display: flex; gap: 0.6rem; align-items: center; padding: 0.9rem; background: #f0fdf4; border: 1.5px dashed #86efac; border-radius: 10px; margin-top: 1rem; flex-wrap: wrap; }
.block-adder label { font-weight: 600; font-size: 0.9rem; color: #14532d; margin: 0; }
.block-adder select { padding: 0.5rem 0.75rem; border: 1.5px solid #86efac; border-radius: 6px; background: var(--white); font-size: 0.92rem; flex: 1; min-width: 200px; }

.quill-wrap { border-radius: 8px; overflow: hidden; }
.quill-wrap .ql-toolbar { border-color: #d1d5db; border-top-left-radius: 8px; border-top-right-radius: 8px; background: #f9fafb; }
.quill-wrap .ql-container { border-color: #d1d5db; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; min-height: 140px; font-family: inherit; font-size: 0.96rem; background: var(--white); }
.quill-wrap .ql-editor { min-height: 140px; }

/* Auth shell */
.auth-body { background: linear-gradient(135deg, #0f5132 0%, #1a7a44 100%); min-height: 100vh; margin: 0; font-family: var(--font-sans); display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-shell { width: 100%; max-width: 440px; }
.auth-card { background: var(--white); border-radius: 16px; padding: 2.5rem 2.2rem; box-shadow: 0 20px 50px rgba(0,0,0,0.25); }
.auth-card__brand { text-align: center; margin-bottom: 1.5rem; }
.auth-card__brand img { width: 72px; height: 72px; margin: 0 auto 0.8rem; display: block; }
.auth-card__brand h1 { font-family: var(--font-serif); color: var(--green-deep); margin: 0 0 0.4rem; font-size: 1.5rem; }
.auth-card__brand p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.auth-form { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 1.2rem; }
.auth-error { background: rgba(193, 77, 77, 0.1); color: #9a3030; padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem; border-left: 4px solid #c14d4d; }
.auth-card__foot { text-align: center; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid #e5e7eb; }
.auth-card__foot a { color: var(--muted); font-size: 0.88rem; }
.auth-card__foot a:hover { color: var(--green-deep); }
.btn-admin--block { display: block; width: 100%; padding: 0.85rem; font-size: 1rem; margin-top: 0.8rem; background: var(--green-deep); color: var(--white); border: none; }
.btn-admin--block:hover { background: var(--green); }

@media (max-width: 960px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; padding: 1rem 1.2rem; }
    .admin-sidebar__foot { margin-top: 1rem; padding-top: 0.8rem; flex-direction: row; flex-wrap: wrap; }
    .admin-main { padding: 1.4rem 1rem; }
    .admin-field-row { flex-direction: column; gap: 0; }
    .admin-dl { grid-template-columns: 1fr; gap: 0.2rem 0; }
    .admin-dl dt { margin-top: 0.6rem; }
    .block-card__head { flex-wrap: wrap; }
    .block-card__actions { flex-wrap: wrap; }
}

/* ---------------- Inline editor: split form + live preview ---------------- */
.edit-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.25rem; align-items: start; }
.edit-split__form { min-width: 0; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 0.5rem; }
.edit-split__preview { position: sticky; top: 1rem; display: flex; flex-direction: column; height: calc(100vh - 120px); min-width: 0; background: #0f172a; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

.preview-bar { display: flex; align-items: center; gap: 0.8rem; padding: 0.65rem 0.9rem; background: #1e293b; color: #e5e7eb; border-bottom: 1px solid #334155; flex-wrap: wrap; }
.preview-bar__label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: #cbd5e1; }
.preview-bar__devices { display: flex; gap: 0.3rem; background: #0f172a; padding: 0.2rem; border-radius: 8px; }
.preview-bar__status { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; color: #94a3b8; }

.preview-device { appearance: none; background: transparent; border: none; color: #cbd5e1; font-size: 0.78rem; font-weight: 600; padding: 0.35rem 0.7rem; border-radius: 6px; cursor: pointer; font-family: inherit; }
.preview-device:hover { color: #fff; background: rgba(255,255,255,0.06); }
.preview-device.is-active { background: var(--green); color: #fff; }

.preview-viewport { flex: 1; min-height: 0; display: flex; justify-content: center; align-items: stretch; padding: 0.8rem; background: repeating-linear-gradient(45deg, #111827 0 12px, #0f172a 12px 24px); overflow: auto; }
.preview-viewport--desktop .preview-frame { width: 100%; }
.preview-viewport--tablet .preview-frame { width: 820px; max-width: 100%; }
.preview-viewport--mobile .preview-frame { width: 390px; max-width: 100%; }
.preview-frame { border: 0; background: #fff; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.35); height: 100%; min-height: 600px; align-self: stretch; }

.preview-loading { display: inline-flex; align-items: center; gap: 0.4rem; }
.preview-loading::before { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #94a3b8; border-top-color: transparent; animation: preview-spin 0.8s linear infinite; }
@keyframes preview-spin { to { transform: rotate(360deg); } }

/* ---------------- Media input field + modal ---------------- */
.media-input { display: flex; gap: 0.5rem; align-items: stretch; flex-wrap: wrap; }
.media-input input { flex: 1; min-width: 200px; padding: 0.5rem 0.75rem; border: 1.5px solid #d1d5db; border-radius: 6px; font-family: inherit; font-size: 0.92rem; }
.media-input input:focus { outline: none; border-color: var(--green-light); }
.media-input .btn-admin { white-space: nowrap; }

.media-preview { display: block; margin-top: 0.5rem; max-width: 220px; max-height: 140px; border-radius: 8px; border: 1px solid #e5e7eb; object-fit: cover; background: #f9fafb; }
.media-preview--sm { max-width: 120px; max-height: 80px; }

.media-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.media-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(2px); }
.media-modal__panel { position: relative; background: #fff; border-radius: 14px; width: 100%; max-width: 860px; max-height: 85vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.35); overflow: hidden; }
.media-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 1rem 1.2rem; border-bottom: 1px solid #e5e7eb; flex-wrap: wrap; }
.media-modal__head h3 { margin: 0; font-family: var(--font-serif); color: var(--green-deep); font-size: 1.2rem; }
.media-modal__body { padding: 1rem 1.2rem; overflow-y: auto; flex: 1; }
.media-modal__close { appearance: none; background: transparent; border: none; font-size: 1.6rem; line-height: 1; color: #64748b; cursor: pointer; padding: 0.2rem 0.5rem; border-radius: 6px; }
.media-modal__close:hover { background: #f1f5f9; color: #0f172a; }

.media-upload { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1rem; background: var(--green-deep); color: #fff; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 0.9rem; }
.media-upload:hover { background: var(--green); }
.media-upload input[type="file"] { display: none; }
.media-upload[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }

.media-error { margin-top: 0.6rem; padding: 0.6rem 0.8rem; background: rgba(193, 77, 77, 0.1); color: #9a3030; border-radius: 8px; font-size: 0.88rem; border-left: 3px solid #c14d4d; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.8rem; margin-top: 1rem; }
.media-item { position: relative; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #f9fafb; cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.media-item:hover { border-color: var(--green-light); transform: translateY(-2px); }
.media-item img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.media-item__info { padding: 0.4rem 0.6rem; font-size: 0.75rem; color: #475569; display: flex; justify-content: space-between; align-items: center; gap: 0.4rem; background: #fff; border-top: 1px solid #e5e7eb; }
.media-item__info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.media-item__delete { appearance: none; background: transparent; border: none; color: #9a3030; cursor: pointer; padding: 0.2rem 0.3rem; border-radius: 4px; font-size: 0.8rem; }
.media-item__delete:hover { background: rgba(193, 77, 77, 0.1); }
.media-item__empty { grid-column: 1 / -1; padding: 2rem 1rem; text-align: center; color: #64748b; font-size: 0.9rem; background: #f9fafb; border: 2px dashed #cbd5e1; border-radius: 10px; }

@media (max-width: 1200px) {
    .edit-split { grid-template-columns: 1fr; }
    .edit-split__form { max-height: none; overflow: visible; padding-right: 0; }
    .edit-split__preview { position: static; height: 70vh; }
}

/* ==================== Inline page editor (no iframe) ==================== */

/* Widen the admin main area for the editor so the rendered page has room */
.admin-body:has(.page-editor) .admin-main { max-width: none; padding: 0; }
.admin-body:has(.page-editor) .admin-topbar { padding: 1rem 1.5rem; }
.admin-body:has(.page-editor) .admin-flash { margin: 0.8rem 1.5rem; }
.admin-body:has(.page-editor) .admin-content { padding: 0; }

.inline-editor-bar {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
    padding: 0.7rem 1.2rem;
    background: #0f172a; color: #e5e7eb;
    border-bottom: 1px solid #334155;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.inline-editor-bar__left { display: flex; align-items: center; gap: 0.75rem; min-width: 0; flex-wrap: wrap; }
.inline-editor-bar__left strong { color: #fff; font-size: 1rem; }
.inline-editor-bar__slug { font-family: ui-monospace, Menlo, Monaco, monospace; font-size: 0.82rem; color: #94a3b8; }
.inline-editor-bar__badge { padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.inline-editor-bar__badge.is-published { background: rgba(26,122,68,0.25); color: #86efac; }
.inline-editor-bar__badge.is-draft     { background: rgba(234,179,8,0.18); color: #fde68a; }
.inline-editor-bar__right { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.inline-editor-bar .btn-admin--ghost { background: rgba(255,255,255,0.06); color: #e5e7eb; border-color: rgba(255,255,255,0.12); }
.inline-editor-bar .btn-admin--ghost:hover { background: rgba(255,255,255,0.12); }
.inline-editor-bar a.btn-admin--ghost { text-decoration: none; }

.inline-editor-hint { margin: 0.75rem 1.5rem 0; padding: 0.7rem 1rem; background: #ecfdf5; border-left: 4px solid var(--green); color: #065f46; font-size: 0.88rem; border-radius: 0 8px 8px 0; }

.page-editor-canvas {
    background: #fff;
    margin-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    /* Force any reveal animations off */
}
.page-editor-canvas .reveal { opacity: 1 !important; transform: none !important; }

.page-editor-hero-wrap { position: relative; }

/* Per-block wrapper with hover handle */
.page-editor-block { position: relative; }
.page-editor-block:hover { outline: 2px dashed rgba(26,122,68,0.35); outline-offset: -2px; }
.page-editor-block__handle {
    position: absolute; top: 8px; right: 8px; z-index: 20;
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.3rem 0.45rem;
    background: rgba(15,23,42,0.92); color: #e5e7eb;
    border-radius: 8px; font-size: 0.78rem;
    opacity: 0; transition: opacity 0.15s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
.page-editor-block:hover .page-editor-block__handle,
.page-editor-block:focus-within .page-editor-block__handle { opacity: 1; }
.page-editor-block__type { padding: 0 0.35rem; font-family: ui-monospace, Menlo, Monaco, monospace; color: #cbd5e1; }
.page-editor-block__actions { display: flex; gap: 0.25rem; }
.page-editor-block__actions .btn-admin {
    padding: 0.2rem 0.5rem; font-size: 0.8rem; min-width: 26px;
    background: rgba(255,255,255,0.1); color: #e5e7eb; border: 1px solid rgba(255,255,255,0.15);
}
.page-editor-block__actions .btn-admin:hover { background: rgba(255,255,255,0.18); }
.page-editor-block__actions .btn-admin--danger { background: rgba(193,77,77,0.25); color: #fca5a5; border-color: rgba(193,77,77,0.5); }
.page-editor-block__actions .btn-admin--danger:hover { background: rgba(193,77,77,0.4); color: #fff; }

.page-editor-empty { padding: 3rem 2rem; text-align: center; color: #475569; }
.page-editor-empty p { margin-bottom: 1rem; }

/* Editable element affordances */
[data-edit], [data-edit-html] { transition: outline 0.1s, background 0.1s; border-radius: 3px; }
[data-edit]:hover, [data-edit-html]:hover { outline: 2px dashed rgba(26,122,68,0.5); outline-offset: 2px; cursor: text; }
[data-edit]:focus, [data-edit-html]:focus { outline: 2px solid var(--green); outline-offset: 2px; background: rgba(26,122,68,0.06); }
[data-edit]:empty::before, [data-edit-html]:empty::before {
    content: attr(data-edit-placeholder);
    opacity: 0.4; font-style: italic; pointer-events: none;
}
[data-edit-html] .ql-editor { padding: 0; }
[data-edit-html] .ql-editor.ql-blank::before { font-style: italic; opacity: 0.4; color: inherit; }

[data-edit-image] { position: relative; }
[data-edit-image]:hover { outline: 3px dashed rgba(193,154,78,0.9); outline-offset: -3px; cursor: pointer; }
[data-edit-image]::after {
    content: '📷 Click to change'; position: absolute; top: 8px; left: 8px;
    background: rgba(15,81,50,0.9); color: #fff; font-size: 12px;
    padding: 4px 8px; border-radius: 4px; opacity: 0; transition: opacity 0.15s;
    font-family: system-ui, sans-serif; pointer-events: none; z-index: 10;
}
[data-edit-image]:hover::after { opacity: 1; }

/* Drawer (used for Page Settings / Block Settings / Add Block modal) */
.inline-drawer { position: fixed; inset: 0; z-index: 1500; display: flex; }
.inline-drawer__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(2px); }
.inline-drawer__panel {
    position: relative; margin-left: auto;
    width: 100%; max-width: 520px; height: 100%;
    background: #fff; box-shadow: -10px 0 30px rgba(0,0,0,0.25);
    display: flex; flex-direction: column;
    animation: drawer-in 0.18s ease-out;
}
.inline-drawer--center { align-items: center; justify-content: center; padding: 1.5rem; }
.inline-drawer--center .inline-drawer__panel { margin: 0; height: auto; max-height: 85vh; max-width: 680px; border-radius: 14px; animation: drawer-pop 0.18s ease-out; }
.inline-drawer__panel--narrow { max-width: 560px; }
@keyframes drawer-in { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drawer-pop { from { transform: scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.inline-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid #e5e7eb; }
.inline-drawer__head h3 { margin: 0; font-family: var(--font-serif); color: var(--green-deep); font-size: 1.15rem; }
.inline-drawer__head h3 small { font-family: inherit; font-size: 0.85rem; color: #64748b; }
.inline-drawer__body { padding: 1.25rem; overflow-y: auto; flex: 1; }
.inline-drawer__section { margin: 1.6rem 0 0.75rem; padding-top: 1rem; border-top: 1px solid #f1f5f9; font-family: var(--font-serif); color: var(--green-deep); font-size: 1rem; }

/* Block picker grid */
.block-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.block-picker__tile {
    appearance: none; text-align: left; font-family: inherit;
    padding: 0.8rem 0.9rem; background: #f9fafb; border: 1.5px solid #e5e7eb; border-radius: 10px;
    cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.15s;
    display: flex; flex-direction: column; gap: 0.15rem;
}
.block-picker__tile:hover { border-color: var(--green); background: #ecfdf5; transform: translateY(-1px); }
.block-picker__tile strong { color: var(--green-deep); font-size: 0.92rem; }
.block-picker__tile span { font-family: ui-monospace, Menlo, Monaco, monospace; font-size: 0.72rem; color: #64748b; }

@media (max-width: 820px) {
    .inline-editor-bar { padding: 0.6rem 0.9rem; }
    .inline-drawer__panel { max-width: 100%; }
    .block-picker { grid-template-columns: 1fr; }
}

