/* Existing source-homepage interaction states, keyboard and responsive repairs. */

.section-note { margin: 24px 0 0; font-size: .95rem; color: var(--text-muted); }
.section-note a { text-decoration: underline; }
.img-wrapper[role="button"] { cursor: pointer; }
button.img-wrapper { border: 0; padding: 0; width: 100%; font: inherit; color: inherit; text-align: inherit; }
.lightbox-overlay .lb-close, .lightbox-overlay .lb-nav { border: 0; background: transparent; color: var(--white) !important; cursor: pointer; }
.lightbox-overlay .lb-close { padding: 0; font-size: 3rem; }
.lightbox-overlay .lb-nav { padding: 20px; font-size: 3.5rem; }
.nav-links.is-open { display: flex; }
.mobile-menu-btn[aria-expanded="true"] .ph-list::before { content: "\e136"; }
.widget-chat.is-open { width: 450px; height: 600px; box-shadow: var(--shadow-xl); background: var(--white); border-radius: var(--radius-global); }
.widget-chat.is-open .icon-wrapper { display: none; }
.widget-chat.is-open .chat-window { opacity: 1; pointer-events: auto; }
.widget-chat.is-dismissed, .widget-chat.is-dismissed:hover { width: 60px; height: 60px; background: var(--brand); }
.widget-chat.is-dismissed:hover .icon-wrapper { display: flex; }
.widget-chat.is-dismissed:hover .chat-window { opacity: 0; pointer-events: none; }
.widget-phone.is-form-obscured, .widget-chat.is-form-obscured:not(.is-open) { visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(12px); }
.chat-close { position: absolute; top: 22px; right: 24px; z-index: 2; border: 0; background: transparent; color: var(--white); font-size: 2rem; cursor: pointer; }
.chat-body .input-group { margin-bottom: 0; }
.chat-body { min-height: 0; overflow-y: auto; }
.chat-body .form-status { margin: 10px 0 0; color: var(--brand-dark); }
.form-status { min-height: 1.5em; margin: 14px 0 0; font-size: .95rem; font-weight: 700; }
.form-status.error { color: #9d2929; }
.form-status.success { color: var(--brand); }
.email-fallback { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--gray-200); }
.email-fallback textarea { min-height: 120px; margin-bottom: 15px; }
.email-fallback strong { color: var(--brand-dark); }
.draft-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.draft-actions .btn { flex: 1 1 180px; text-align: center; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { display: block; width: 100%; font-size: .95rem; color: var(--brand-dark); font-weight: 700; margin-bottom: 12px; font-family: 'Lato', sans-serif; text-transform: uppercase; letter-spacing: .05em; }
.sd2-expand-btn { pointer-events: auto; }
.accordion-panel:hover, .accordion-panel.is-expanded { flex: 4; box-shadow: var(--shadow-xl); border-color: var(--accent); }
.accordion-panel:hover::before, .accordion-panel.is-expanded::before { opacity: 0.95; }
.accordion-panel:hover img, .accordion-panel.is-expanded img { transform: scale(1.05); }
.accordion-panel:hover .accordion-content, .accordion-panel.is-expanded .accordion-content { opacity: 1; }
.accordion-panel:hover .vertical-title, .accordion-panel.is-expanded .vertical-title { opacity: 0; transform: translate(-50%, -50%) rotate(270deg) scale(0.5); }
.accordion-panel:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@media (max-width: 992px) {
    .accordion-panel:hover, .accordion-panel.is-expanded { flex: 0 0 350px; height: 350px; }
    .accordion-panel:hover .vertical-title, .accordion-panel.is-expanded .vertical-title { transform: translate(-50%, -50%) rotate(0deg) scale(0.5); }
}
@media (max-width: 768px) {
    .nav-links.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; padding: 25px 24px; flex-direction: column; align-items: stretch; gap: 20px; background: rgba(10,15,11,.98); border-top: 1px solid rgba(168,134,85,.35); }
    .nav-links.is-open a { color: var(--white); font-size: 1rem; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
    .widget-chat.is-open { width: calc(100vw - 40px); height: calc(100vh - 40px); right: 20px; bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .gallery-motion-v2, .gallery-motion-v5 { height: auto; min-height: 0; }
    .v2-sticky, .v5-sticky { position: relative; height: auto; min-height: 640px; padding: 80px 24px; }
    .v5-inner { position: relative; height: auto; padding: 60px 0; grid-template-columns: repeat(3, minmax(0, 1fr)); opacity: 1 !important; transform: none !important; }
    .v5-gate-panel, .v5-header { display: none; }
    .v2-sticky { align-items: stretch; padding: 80px 24px; }
    .v2-header { position: relative; top: auto; left: auto; transform: none; }
    .v2-carousel { width: 100%; height: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; transform: none !important; }
    .v2-item { position: relative; inset: auto; height: 340px; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 768px) {
    .v5-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 30vw; }
    .v2-carousel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .v2-item { height: 300px; }
}

/* Scoped mobile containment and touch affordances. */
.v5-gate-panel { pointer-events: none; }
@media (max-width: 768px) {
    .about-grid { grid-template-columns: minmax(0, 1fr); }
    .about-grid > * { min-width: 0; }
    .about-img img { width: 100%; max-width: 100%; }
    .about-content > div[style*="display: flex"] { flex-wrap: wrap; }
    .about-content > div[style*="display: flex"] .btn { min-width: 0; flex: 1 1 140px; }
    .stats-grid, .stats-grid > * { min-width: 0; }
    .stats-grid .no-break-headline { white-space: normal; }
    .accordion-content { padding: 24px; }
    .accordion-content .no-break-headline { white-space: normal; }
    .gallery-motion-v2, .gallery-motion-v2 .v2-sticky { overflow: hidden; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-grid > .footer-col[style*="grid-column"] { grid-column: 1 / -1 !important; }
    .footer-grid > .footer-col { min-width: 0; }
    .footer-links a { min-width: 0; overflow-wrap: anywhere; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-bottom > * { max-width: 100%; min-width: 0; }
    .footer-bottom .d-flex { flex-wrap: wrap; gap: 12px; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-delay: 0s !important; }
    .gallery-motion-v2, .gallery-motion-v2 .v2-sticky { overflow: hidden; }
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
/* Catalog continuation uses source image wrappers, spacing and corners. */
.exact-photo-gallery { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; }
.exact-photo-gallery .img-wrapper { margin:0; height:250px; border-radius:var(--radius-global); overflow:hidden; }
.exact-photo-gallery img { width:100%; height:100%; object-fit:cover; }
@media(max-width:992px) { .exact-photo-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:576px) { .exact-photo-gallery { grid-template-columns:1fr; } }
@media(max-width:576px) {
    .lightbox-overlay .lb-nav { padding: 10px; font-size: 2rem; }
    .lightbox-overlay .lb-close { top: 15px; right: 15px; font-size: 2rem; }
}
