/* Theme tokens and mode-specific surface treatment.
   Dark remains the default; the visitor can switch modes in the header.
   Image captions, the indigo music strip, and photographic booking section
   retain their intentional dark treatment in both themes. */

.theme-toggle {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-grid;
    place-items: center;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: color 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease);
    order: 3;
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}
.theme-icon { width: 21px; height: 21px; }
.theme-moon { display: none; }
[data-theme="light"] .theme-moon { display: block; }
[data-theme="light"] .theme-sun { display: none; }
html:not(.js) .theme-toggle { display: none; }
.header .navwrap { gap: clamp(10px, 1.2vw, 22px); }
.header nav { gap: clamp(9px, 1.2vw, 23px); }
@media (max-width: 900px) {
    .header .navwrap { justify-content: flex-start; }
    .header .wordmark { margin-right: auto; }
    .theme-toggle { order: 0; }
    .header .menu-toggle { order: 1; flex-shrink: 0; }
    .header nav { gap: 0; }
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f7f7fa;
    --panel: #ffffff;
    --ink: #191b28;
    --muted: #42465a;
    --accent: #3d4478;
    --gold: #3d4478;
    --line: #22263830;
    --paper: #ffffff;
    --charcoal: #171923;
    --music-primary: #191b28;
    --music-secondary: #3d4478;
    --text: #191b28;
}
[data-theme="light"] body,
[data-theme="light"] .artist-hero,
[data-theme="light"] .subhero { background: var(--bg); color: var(--ink); }
[data-theme="light"] .header { background: #f7f7faf5; border-bottom: 1px solid var(--line); }
[data-theme="light"] .header nav .nav-submenu { background: #fff; border-color: var(--line); }
[data-theme="light"] .header nav .nav-submenu a { color: var(--ink); }
[data-theme="light"] .header nav .nav-submenu a:hover { background: #e8e9f2; }
[data-theme="light"] .hero-topline,
[data-theme="light"] .artist-hero .hero-sub,
[data-theme="light"] .hero-since { color: var(--muted); }
[data-theme="light"] .artist-hero .hero-name { color: var(--ink); }
[data-theme="light"] .btn:not(.outline),
[data-theme="light"] .btn.outline:hover,
[data-theme="light"] .btn.outline:focus-visible { color: #fff !important; }
[data-theme="light"] .btn:hover:not(.outline) { background: #292e50; border-color: #292e50; }
[data-theme="light"] .btn.outline { color: var(--ink) !important; }
[data-theme="light"] .sound-link:hover,
[data-theme="light"] .sound-link:focus-visible,
[data-theme="light"] .sound-link.is-active,
[data-theme="light"] .package-section .package:hover,
[data-theme="light"] .package-section .package:focus-within { background: #e8e9f2; }
[data-theme="light"] .about-section { background: #fff; }
[data-theme="light"] #services { background: #e9eaf1; }
[data-theme="light"] .service:hover { background: #f7f7fa; }
[data-theme="light"] .special-grid .special,
[data-theme="light"] .special-grid .special:first-child,
[data-theme="light"] .special-grid .special:last-child { background: #fff; border-color: var(--line); color: var(--ink); }
[data-theme="light"] .special-grid .special:hover { background: #e8e9f2; border-color: var(--accent); }
[data-theme="light"] .faq-dark { background: #e9eaf1; border-color: var(--line); }
[data-theme="light"] .faq .plus { border-color: var(--accent); }
[data-theme="light"] .review-shell { background: #fff; }
[data-theme="light"] .review-avatar { background: #e8e9f2; border-color: var(--line); }
[data-theme="light"] .review-dots button { border-color: var(--accent); }
[data-theme="light"] .review-cta { background: #e9eaf1; border-color: var(--line); }
[data-theme="light"] .footer { background: #f7f7fa; border-color: var(--line); }
[data-theme="light"] .package-section .package-info .tag { color: #fff; }
[data-theme="light"] .gallery-more-wrap .btn:hover { background: #3d4478; color: #fff !important; border-color: #3d4478; }
/* Contrast-preserving dark islands for media-focused sections. */
[data-theme="light"] :is(.music-band,.arabic-section,.closing,.lightbox) {
    color-scheme: dark;
    --bg: #101114;
    --ink: #f8f8fc;
    --muted: #c9cce0;
    --accent: #bbc3ff;
    --gold: #bbc3ff;
    --line: #ffffff29;
    --text: #f8f8fc;
    color: var(--ink);
}
[data-theme="light"] .closing { background: #101114; }
[data-theme="light"] :is(.music-band,.arabic-section,.closing) .btn:not(.outline),
[data-theme="light"] :is(.music-band,.arabic-section,.closing) .btn.outline:hover,
[data-theme="light"] :is(.music-band,.arabic-section,.closing) .btn.outline:focus-visible { color: #101114 !important; background: #bbc3ff; }
[data-theme="light"] .sound-frame figcaption span:last-child { color: #bbc3ff; }
[data-theme="light"] .photo-gallery .gallery-item>span,
[data-theme="light"] .photo-gallery .gallery-item>span .arrow { color: #fff; }
@media (max-width: 900px) {
    [data-theme="light"] .header nav { background: #f7f7fa; }
}
@media (prefers-reduced-motion: reduce) {
    .theme-toggle { transition: none; }
}

/* Keep the brand legible at every breakpoint, including the mobile header. */
[data-theme="light"] .header .wordmark,
[data-theme="light"] .header .wordmark .brand-art,
[data-theme="light"] .footer .wordmark,
[data-theme="light"] .footer .wordmark .brand-art { color: #191b28; }
[data-theme="light"] #services { box-shadow: 0 0 0 100vmax #e9eaf1; }
[data-theme="light"] .review-controls .circle { border-color: var(--line); }

/* Phase 3 / Design3: brand gradient, bounded sticky image, editorial review carousel.
   The master switches and palette live in settings.js or Astro settings.json. */
.brand-gradient-text {
    background-image: linear-gradient(110deg,var(--heading-colors));
    background-size: 240% 100%;
    background-position: var(--heading-position, 50%) 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
@supports not ((background-clip: text) or (-webkit-background-clip: text)) { .brand-gradient-text { background: none; color: inherit !important; -webkit-text-fill-color: currentColor; } }
/* Keep a real sticky frame, with enough space to pin within the six-link list. */
@media (min-width: 761px) {
    html[data-specialty-sticky="true"] .sound-layout { align-items: start; }
    html[data-specialty-sticky="true"] .sound-display {
        position: sticky; top: clamp(92px, 12vh, 124px);
        align-self: start; justify-self: start;
        width: min(100%, 490px, 56vh); height: auto;
        aspect-ratio: 1.04; max-height: none; translate: none !important;
    }
    html[data-specialty-sticky="true"] .sound-list .sound-link { min-height: 98px; }
    html[data-specialty-sticky="false"] .sound-display { position: relative; top: auto; }
}
/* Entrance effects use the existing reveal class; only elements queued by JS are hidden. */
.motion .reveal.pending:not(.entered) { opacity: 0; transform: translateY(16px); }
.motion .reveal.pending:focus-within { opacity: 1; transform: none; }
.motion .reveal.entered { opacity: 1; }
/* Reviews: full-width horizontal editorial cards, native swipe and a progress rail. */
.reviews-section { display: block; }
.reviews-section > .section-head { max-width: 920px; margin-bottom: clamp(26px,4vw,54px); }
.reviews-section .review-shell { padding: 0; border: 0; background: transparent; min-width: 0; }
.reviews-section .review-window { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; }
.reviews-section .review-window::-webkit-scrollbar { display: none; }
.reviews-section .review-track { display: flex; gap: clamp(12px,1.8vw,26px); align-items: stretch; transition: none; transform: none !important; }
.reviews-section .review {
    flex: 0 0 43%; min-width: 0; display: flex; flex-direction: column;
    min-height: 320px; padding: clamp(22px,3.2vw,44px);
    border: 1px solid var(--line); border-radius: clamp(16px,2.2vw,28px);
    background: #191b21; scroll-snap-align: start;
}
.reviews-section .review .quote-mark { font-size: clamp(52px,6vw,76px); line-height: .85; margin-bottom: 14px; }
.reviews-section .review blockquote { font-size: clamp(20px,2.1vw,31px); line-height: 1.34; min-height: 0; overflow-wrap: anywhere; margin-bottom: 28px; }
.reviews-section .review-person { margin-top: auto; }
.reviews-section .review-avatar { flex: 0 0 42px; width: 42px; height: 42px; }
.reviews-section .review-controls { border: 0; padding-top: 0; margin-top: 22px; display: grid; grid-template-columns: auto auto minmax(50px,1fr) auto; gap: 10px; align-items: center; }
.reviews-section .review-controls [data-prev] { grid-column: 1; grid-row: 1; }
.reviews-section .review-controls [data-next] { grid-column: 2; grid-row: 1; }
.reviews-section .review-controls .review-count { grid-column: 4; grid-row: 1; }
.reviews-section .review-dots { grid-column: 3; grid-row: 1; display: flex; gap: 3px; margin: 0 10px; align-items: center; min-width: 0; }
.reviews-section .review-dots button { flex: 1 1 0; width: auto; min-width: 0; height: 24px; border: 0; border-radius: 0; background: transparent; position: relative; transform: none; }
.reviews-section .review-dots button::after { content: ''; height: 3px; left: 0; right: 0; top: 50%; position: absolute; background: var(--line); border-radius: 3px; }
.reviews-section .review-dots button[aria-current="true"] { background: transparent; transform: none; }
.reviews-section .review-dots button[aria-current="true"]::after { background: var(--accent); }
.reviews-section .review-controls .circle { border-radius: 50%; width: 46px; height: 46px; min-width: 46px; }
.reviews-section .review-controls .circle:disabled { opacity: .35; cursor: default; }
[data-theme="light"] .reviews-section .review-shell { background: transparent; }
[data-theme="light"] .reviews-section .review { background: #fff; border-color: var(--line); }
@media (max-width: 900px) { .reviews-section .review { flex-basis: 66%; } }
@media (max-width: 600px) {
    .reviews-section .review { flex-basis: 86%; min-height: 290px; padding: 23px; }
    .reviews-section .review-controls { gap: 7px; }
    .reviews-section .review-dots { gap: 2px; margin: 0 3px; }
    .reviews-section .review-controls .circle { width: 42px; height: 42px; min-width: 42px; }
}
html:not(.js) .reviews-section .review-track { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); }
@media (prefers-reduced-motion: reduce) {
    .motion .reveal.pending:not(.entered), .heading-motion .heading-pending .line-content, .heading-motion .block-pending { opacity: 1; transform: none; }
    .reviews-section .review-window { scroll-behavior: auto; }
}

/* Design 4: editorial refinements. */
.hero-audience{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:12px;font-size:12px;color:var(--muted);line-height:1.5}.hero-audience strong{color:var(--ink);font-variant-numeric:tabular-nums;font-size:15px}.artist-roles{font-size:clamp(13px,1.4vw,17px)!important;letter-spacing:.03em}.artist-roles span{color:var(--accent)}
.artist-hero .hero-sub{max-width:none;font-size:clamp(31px,4.4vw,70px)}.artist-hero .hero-sub>span{display:block;overflow:hidden;padding-bottom:.07em}.artist-hero .hero-sub em{white-space:nowrap}
.section.wrap.editorial.market-intro{border:0;padding-block:clamp(34px,5vw,76px);align-items:center;gap:clamp(20px,4vw,64px)}.market-intro h2,.market-intro p{margin-top:0}.market-intro .actions{margin-bottom:0}.package-section .includes{margin:0 0 28px}
.reviews-section .review-window{cursor:grab;touch-action:pan-x pan-y}.reviews-section .review-window.is-dragging{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto;user-select:none}.review-window.is-dragging *{user-select:none}
.mobile-booking{display:none}.audience-stats strong{font-variant-numeric:tabular-nums}
@media(max-width:760px){.artist-hero .hero-sub{font-size:clamp(32px,7.8vw,56px)}.mobile-booking{position:fixed;bottom:0;left:0;right:0;z-index:90;padding:10px max(16px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:var(--bg);border-top:1px solid var(--line);transform:translateY(110%);visibility:hidden;transition:transform .3s var(--ease),visibility .3s;display:block}.mobile-booking.is-visible{transform:translateY(0);visibility:visible}.mobile-booking .btn{width:100%;justify-content:center;min-height:46px}body.has-mobile-booking{padding-bottom:calc(68px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.mobile-booking{transition:none!important}}

.coordinated-entry .editorial-hero .mask>span,.coordinated-entry .editorial-hero .hero-desc,.coordinated-entry .editorial-hero .actions{animation:none!important}.coordinated-entry .hero-visual{transform-origin:center bottom}

@media(max-width:760px){.mobile-booking{top:auto;height:auto;min-height:0;max-height:100px;box-sizing:border-box}.artist-hero .hero-sub{font-size:clamp(30px,7.5vw,56px)}}

/* Design 4.1: interaction polish */
.reviews-section .review-window { padding: 2px; scroll-padding-inline: 2px; scroll-behavior: auto; }
.reviews-section .review-window.momentum-ready { scroll-snap-type: none; }
.reviews-section .review-track { padding: 0; }
.faq.includes, .about-section .faq.bio { border-bottom: 0; }
.review-cta p { max-width: 43ch; text-wrap: balance; }
.footer a, .footer .wordmark .brand-art, .footer .backtop, .hero-audience a, .hero-audience a strong { transition: color .28s var(--ease), opacity .28s var(--ease), background-color .28s var(--ease), border-color .28s var(--ease); }
.footer a:hover, .footer a:focus-visible, .footer-grid>div:not(:first-child) a:hover, .footer-grid>div:not(:first-child) a:focus-visible, .footer .wordmark:hover .brand-art, .footer .wordmark:focus-visible .brand-art { color: var(--accent); }
.hero-audience a { color: inherit; text-decoration: none; }
.hero-audience a:hover, .hero-audience a:focus-visible, .hero-audience a:hover strong, .hero-audience a:focus-visible strong { color: var(--accent); }
.faq summary { transition: color .28s var(--ease); }
.faq .plus { transition: color .28s var(--ease), background-color .28s var(--ease), border-color .28s var(--ease); }
.faq .plus:before,.faq .plus:after { transition: transform .35s var(--ease),opacity .3s,background-color .28s var(--ease); }
.faq summary:hover .plus,.faq summary:focus-visible .plus { background: var(--accent); border-color: var(--accent); }
.faq summary:hover .plus:before,.faq summary:hover .plus:after,.faq summary:focus-visible .plus:before,.faq summary:focus-visible .plus:after { background: var(--bg, #111); }
@media(prefers-reduced-motion:reduce){.footer a,.footer .wordmark .brand-art,.hero-audience a,.hero-audience a strong,.faq summary,.faq .plus,.faq .plus:before,.faq .plus:after{transition:none!important}}

/* Design 4.3: uniform editorial spacing, single footer separator and portrait crop */
body .footer {border-top:1px solid var(--line);}
main > .section.editorial:not(.market-intro):not(.about-grid) {padding-block:clamp(34px,5vw,76px);}
main > .section.editorial:last-child {border-bottom:0;}
main > .area-cta {border-bottom:0;}
main > .area-editorial .actions {gap:12px;align-items:center;flex-wrap:wrap;}
img[src$="/djeddie11-wedding-dj.jpg"],img[src$="/djeddie11-wedding-dj.webp"] {object-position:50% 0%;}

.market-photo img[src$="/djeddie11-wedding-dj.jpg"][style="object-position:center"] {object-position:50% 0%!important;}

/* Keep the focal point across every use of this specific portrait, including the gallery. */
body img[src$="/djeddie11-wedding-dj.jpg"],body img[src$="/djeddie11-wedding-dj.webp"] {object-position:50% 0%!important;}
.area-region + .area-region {margin-top:clamp(32px,5vw,72px);}
.area-region > h3 {margin:0 0 20px;font-size:clamp(1.5rem,3vw,2.3rem);}
