/* Page-specific styles */

.page-home .hero { background: var(--black); }

.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(--gold-dim);
    font-weight: 700;
}

.why-list strong {
    color: var(--black);
}

.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(--gold);
    font-weight: 600;
    font-size: 0.9375rem;
}

.gallery-more__link:hover {
    color: var(--gold-bright);
}

.gallery-more__btn {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.8125rem;
}

.gallery-more__btn:hover {
    background: var(--gold-bright);
    border-color: var(--gold-bright);
    color: var(--black);
    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(--black);
    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(--black-soft);
    border: 2px solid var(--gray-dark);
    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(--gold);
    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(--white);
    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(--gold);
}

.about-value__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.about-value__text {
    color: var(--gray);
    font-size: 0.9375rem;
}

.coming-soon {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.coming-soon p {
    color: var(--gray);
    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(--gray);
}

.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(--gold);
}

.related-guides__all {
    margin-top: var(--space-md);
}

.related-guides__all a {
    font-weight: 600;
    color: var(--gold);
}

.blog-card__title a {
    color: inherit;
    text-decoration: none;
}

.blog-card__title a:hover {
    color: var(--gold);
}

.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(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-prose a:hover {
    color: var(--gold-bright);
}

.page-prose strong {
    color: var(--white);
    font-weight: 600;
}

.section--light .page-prose {
    color: #444;
}

.section--light .page-prose strong {
    color: var(--black);
}

.section--light .page-prose ul:not(.why-list) li {
    color: #444;
}
