/* Page-specific styles */

.section-logo {
    display: flex;
    justify-content: center;
    margin-top: var(--space-sm);
}

.section-logo__img {
    width: min(100%, 30rem);
    height: auto;
    max-width: 100%;
}

.why-list {
    list-style: none;
    margin-top: var(--space-md);
    max-width: 760px;
}

.why-split {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.why-split__photo {
    display: none;
    margin: 0;
    line-height: 0;
}

@media (min-width: 1024px) {
    .why-split {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
        align-items: center;
        margin-top: var(--space-md);
    }

    .why-split__photo {
        display: block;
    }

    .why-split__photo img {
        width: 100%;
        height: auto;
        max-height: 420px;
        object-fit: contain;
        object-position: left center;
        display: block;
        border-radius: var(--radius-md);
    }

    .why-split .why-list {
        margin-top: 0;
        max-width: none;
    }
}

.why-list li {
    padding: var(--space-sm) 0;
    padding-left: var(--space-md);
    position: relative;
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    border-bottom: 1px solid #e5e5e0;
}

.why-list li:last-child {
    border-bottom: none;
}

.why-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--brass-hover);
    font-weight: 700;
}

.why-list strong {
    color: var(--text-color);
}

.gallery-grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(2, 1fr);
    margin-top: var(--space-lg);
    width: 100%;
}

.gallery-grid--hero {
    margin-top: var(--space-lg);
}

.gallery-grid--preview {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-grid--service .gallery-grid__item:only-child {
    max-width: 16rem;
}

.gallery-grid--showcase {
    margin-top: var(--space-lg);
}

@media (min-width: 768px) {
    .gallery-grid--showcase {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery-grid--preview,
    .gallery-grid--service,
    .gallery-grid--showcase {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-more {
    margin-top: var(--space-md);
}

.page-home .hero .gallery-more {
    width: 100%;
}

.gallery-more__link {
    color: var(--brass);
    font-weight: 600;
    font-size: 0.9375rem;
}

.gallery-more__link:hover {
    color: var(--brass);
}

.gallery-more__btn {
    background: var(--brass);
    color: var(--text-color);
    border-color: var(--brass);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.8125rem;
}

.gallery-more__btn:hover {
    background: var(--brass);
    border-color: var(--brass);
    color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(201, 162, 39, 0.3);
}

.gallery-grid__item {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.gallery-grid__frame {
    display: flex;
    flex-direction: column;
    background: #fffdf8;
    padding: 0.55rem 0.55rem 0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transform: rotate(-0.7deg);
    transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-grid__item:nth-child(even) .gallery-grid__frame {
    transform: rotate(0.55deg);
}

.gallery-grid__item:nth-child(3n) .gallery-grid__frame {
    transform: rotate(-0.25deg);
}

.gallery-grid__item:hover .gallery-grid__frame,
.gallery-grid__item:focus-visible .gallery-grid__frame {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 0 14px 28px rgba(201, 162, 39, 0.22);
}

.gallery-grid__photo {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f0f0ec;
}

.gallery-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

.gallery-grid__item:hover img {
    transform: scale(1.04);
}

.gallery-grid__caption {
    display: block;
    padding: 0.7rem 0.35rem 0.85rem;
    font-family: var(--font-display);
    font-size: clamp(0.8rem, 1.8vw, 1.05rem);
    letter-spacing: 0.03em;
    line-height: 1.15;
    color: var(--text-color);
    text-align: center;
}

.gallery-group {
    scroll-margin-top: calc(var(--header-height) + var(--utility-height) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
    .gallery-grid__frame,
    .gallery-grid__item:nth-child(even) .gallery-grid__frame,
    .gallery-grid__item:nth-child(3n) .gallery-grid__frame,
    .gallery-grid__item:hover .gallery-grid__frame,
    .gallery-grid__item:focus-visible .gallery-grid__frame,
    .gallery-grid__item img {
        transform: none;
        transition: none;
    }
}

/* About page */
.about-split {
    display: grid;
    gap: var(--space-xl);
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-split { grid-template-columns: 1fr 1fr; }
}

.about-portrait {
    aspect-ratio: 3/4;
    background: var(--bg-alt);
    border: 2px solid var(--gray-border);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.about-portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-portrait::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border: 2px solid var(--brass);
    transform: rotate(15deg);
    z-index: 1;
}

.about-portrait__text {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--bg-color);
    letter-spacing: 0.1em;
    text-align: center;
    background: linear-gradient(transparent, rgba(10, 10, 10, 0.75));
}

.about-values {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: 1fr;
    margin-top: var(--space-lg);
}

@media (min-width: 640px) {
    .about-values { grid-template-columns: repeat(2, 1fr); }
}

.about-value {
    padding: var(--space-md);
    border-left: 3px solid var(--brass);
}

.about-value__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.about-value__text {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.coming-soon {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.coming-soon p {
    color: var(--text-muted);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.coming-soon__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.section-title--article {
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: var(--space-md);
}

.page-prose {
    max-width: 72ch;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.page-prose--wide {
    max-width: 760px;
}

.related-guides__list {
    list-style: none;
    max-width: 760px;
    display: grid;
    gap: 0.75rem;
}

.related-guides__list a {
    font-weight: 600;
    color: var(--brass);
}

.related-guides__all {
    margin-top: var(--space-md);
}

.related-guides__all a {
    font-weight: 600;
    color: var(--brass);
}

.blog-card__title a {
    color: inherit;
    text-decoration: none;
}

.blog-card__title a:hover {
    color: var(--brass);
}

.page-prose p + p,
.page-prose p + ul,
.page-prose ul + p {
    margin-top: 1rem;
}

.page-prose ul:not(.why-list) {
    padding-left: 1.25rem;
}

.page-prose ul:not(.why-list) li {
    list-style: disc;
    margin-top: 0.4rem;
}

.page-prose a {
    color: var(--brass);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-prose a:hover {
    color: var(--brass);
}

.page-prose strong {
    color: var(--bg-color);
    font-weight: 600;
}

.section--alt .page-prose {
    color: #444;
}

.section--alt .page-prose strong {
    color: var(--text-color);
}

.section--alt .page-prose ul:not(.why-list) li {
    color: #444;
}

/* Staff area */
.staff-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.staff-bar {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--gray-border);
    font-size: 0.875rem;
}

.staff-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xs) var(--space-md);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.staff-bar__user {
    color: var(--text-muted);
}

.staff-bar__user strong {
    color: var(--bg-color);
    font-weight: 600;
}

.staff-bar__links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.staff-bar__links a,
.staff-bar__button {
    color: var(--brass);
    font-weight: 600;
}

.staff-bar__links a:hover,
.staff-bar__button:hover {
    color: var(--brass);
}

.staff-narrow {
    max-width: 520px;
}

.staff-heading {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: var(--space-md);
}

.staff-hint {
    margin-top: 6px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.staff-flash {
    margin-bottom: var(--space-md);
}

.staff-form input[type="file"] {
    padding: 0.6rem;
    cursor: pointer;
}

.staff-tiles {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .staff-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .staff-tiles {
        grid-template-columns: repeat(3, 1fr);
    }
}

.staff-tile {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-lg);
    background: var(--bg-alt);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.staff-tile:hover,
.staff-tile:focus-visible {
    border-color: var(--brass);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.15);
}

.staff-tile--primary {
    border-color: var(--brass-hover);
}

.staff-tile__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-xs);
    border-radius: var(--radius-md);
    background: rgba(201, 162, 39, 0.12);
    color: var(--brass);
}

.staff-tile__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    letter-spacing: 0.03em;
    line-height: 1;
    color: var(--bg-color);
}

.staff-tile__text {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.staff-tile__meta {
    margin-top: auto;
    padding-top: var(--space-xs);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brass);
}

.staff-upload {
    display: grid;
    gap: var(--space-lg);
    align-items: start;
}

@media (min-width: 768px) {
    .staff-upload {
        grid-template-columns: minmax(0, 1fr) 240px;
    }
}

.staff-upload__preview[hidden] {
    display: none;
}

.staff-upload__preview img,
.staff-photo .gallery-grid__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.staff-empty {
    color: #444;
}

.staff-empty a {
    color: var(--brass-hover);
    font-weight: 600;
}

.staff-photo {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.staff-photo:nth-child(even) .gallery-grid__frame {
    transform: rotate(0.55deg);
}

.staff-photo:nth-child(3n) .gallery-grid__frame {
    transform: rotate(-0.25deg);
}

.staff-photo-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
}

.staff-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    color: var(--text-color);
    border: 1px solid rgba(0, 0, 0, 0.14);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.staff-icon-btn:hover,
.staff-icon-btn:focus-visible,
.staff-icon-btn[aria-expanded="true"] {
    background: var(--brass);
    border-color: var(--brass);
}

.staff-icon-btn--danger:hover,
.staff-icon-btn--danger:focus-visible {
    background: #b3261e;
    border-color: #b3261e;
    color: var(--white);
}

.staff-photo-edit {
    display: flex;
    gap: var(--space-xs);
}

.staff-photo-edit[hidden] {
    display: none;
}

.staff-photo-edit input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    background: var(--white);
    color: var(--text-color);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
}

.staff-photo-edit input[type="text"]:focus {
    outline: none;
    border-color: var(--brass-hover);
}

.staff-responses-nav {
    margin-bottom: var(--space-md);
}

.staff-responses-nav a {
    color: var(--brass-hover);
    font-weight: 600;
}

.staff-response-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.staff-response-card {
    position: relative;
    padding: var(--space-md);
    padding-right: calc(var(--space-md) + 44px);
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.staff-response-card__link {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--text-color);
    text-decoration: none;
}

.staff-response-resend {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    margin: 0;
    z-index: 1;
}

.staff-response-card:hover,
.staff-response-card:focus-visible {
    border-color: var(--brass-hover);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.staff-response-card__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-xs);
    align-items: baseline;
}

.staff-response-card__subject {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--brass-hover);
    letter-spacing: 0.02em;
}

.staff-response-card__date {
    font-size: 0.8125rem;
    font-weight: 400;
    color: #555;
}

.staff-response-card__from {
    font-size: 0.9375rem;
    font-weight: 400;
    color: #333;
}

.staff-response-card__phone {
    font-size: 0.875rem;
    font-weight: 400;
    color: #333;
}

.staff-response-card__preview {
    font-size: 0.875rem;
    font-weight: 400;
    color: #333;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.staff-badge {
    display: inline-block;
    align-self: flex-start;
    margin-top: 0.25rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.staff-badge--warn {
    background: #fff3e0;
    color: #8a4b00;
    border: 1px solid #ffcc80;
}

.staff-response-detail {
    margin-top: var(--space-md);
    padding: var(--space-lg);
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-md);
    color: var(--text-color);
}

.staff-response-detail__subject {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--brass-hover);
    margin: 0 0 var(--space-xs);
}

.staff-response-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
    font-size: 0.875rem;
    font-weight: 400;
    color: #555;
    margin: 0 0 var(--space-md);
}

.staff-response-detail__meta .staff-response-resend {
    position: static;
    margin-left: auto;
}

.staff-response-detail__fields {
    display: grid;
    gap: var(--space-sm);
    margin: 0 0 var(--space-md);
}

.staff-response-detail__fields dt {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-color);
}

.staff-response-detail__fields dd {
    margin: 0.15rem 0 0;
    font-size: 1rem;
    font-weight: 400;
    color: #333;
}

.staff-response-detail__fields a {
    color: #333;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.staff-response-detail__fields a:hover,
.staff-response-detail__fields a:focus-visible {
    color: var(--text-color);
}

.staff-response-detail__message {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    font-weight: 400;
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap;
}

@media (prefers-reduced-motion: reduce) {
    .staff-tile,
    .staff-tile:hover,
    .staff-tile:focus-visible,
    .staff-photo:nth-child(even) .gallery-grid__frame,
    .staff-photo:nth-child(3n) .gallery-grid__frame {
        transform: none;
        transition: none;
    }
}

/* Partners page */
.partner-grid {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.partner-card {
    background: var(--white);
    border: 2px solid var(--brass);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform var(--transition), box-shadow var(--transition);
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.15);
}

.partner-card__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    letter-spacing: 0.02em;
    color: var(--brass-hover);
    margin-bottom: var(--space-xs);
}

.partner-card__desc {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
    margin-bottom: var(--space-md);
    flex: 1;
}
