:root {
    --bg: #fffafa;
    --surface: #ffffff;
    --surface-soft: #fbfbfb;
    --text: #000000;
    --muted: #4a4a4a;
    --accent: #111111;
    --accent-soft: #f4f4f4;
    --leaf: #e0e0e0;
    --border: rgba(34, 34, 34, 0.16);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #ffffff 0%, #fffaf9 45%, #fdfcfc 100%);
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px;
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--text);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--muted);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.btn {
    border-radius: 999px;
    padding: 0.85rem 1.6rem;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #111111, #333333);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border);
    color: var(--muted);
}

.btn-ghost:hover {
    background: #fff;
}

.section-header p {
    color: var(--muted);
}

.text-link {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1.5px;
    background-repeat: no-repeat;
    background-position: left bottom;
    padding-bottom: 1px;
    transition: background-size 0.3s ease;
}

.text-link:hover {
    background-size: 100% 1.5px;
}

.section-block {
    padding: 2.5rem 1.5rem;
}

.card-base {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
}

.card-interactive {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-interactive:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.1);
}

.media-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-caption {
    position: absolute;
    left: 0.85rem;
    bottom: 0.85rem;
    color: #111111;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
    font-size: 0.8rem;
}

/* Index page specific */
.page-index .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
    padding: 3rem 1.5rem;
}

.page-index .hero-text h1 {
    font-size: clamp(2.6rem, 5vw, 3.6rem);
    margin-bottom: 1rem;
    line-height: 1.05;
}

.page-index .hero-text p {
    max-width: 36rem;
    color: var(--muted);
    margin-bottom: 1.8rem;
}

.page-index .hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.page-index .hero-photo {
    display: grid;
    gap: 1rem;
}

.page-index .hero-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, #fffaf0 0%, #faecdb 100%);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
    min-height: 420px;
}

.page-index .hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-index .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--muted);
}

.page-index .section-header {
    margin-bottom: 1.8rem;
}

.page-index .section-header h2 {
    font-size: 1.65rem;
    margin-bottom: 0.5rem;
}

.page-index .section-header p {
    font-size: 0.95rem;
    max-width: 36rem;
}

.page-index .services-grid,
.page-index .preview-grid {
    display: grid;
    gap: 1.5rem;
}

.page-index .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-index .service-card {
    padding: 1.6rem;
}

.page-index .service-label {
    display: inline-flex;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: #f5f5f4;
    color: var(--text);
    margin-bottom: 0.9rem;
}

.page-index .service-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.55rem;
}

.page-index .service-card p,
.page-index .service-meta,
.page-index .section-text {
    color: var(--muted);
}

.page-index .service-meta {
    font-size: 0.85rem;
}

.page-index .gallery-preview {
    display: grid;
    gap: 1rem;
}

.page-index .gallery-preview p {
    color: var(--muted);
    max-width: 44rem;
}

.page-index .preview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-index .preview-card {
    min-height: 240px;
    background: linear-gradient(135deg, #fffaf0, #f9ead8);
}

.page-index .gallery-actions {
    margin-top: 1.4rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-index .about {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.page-index .about-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.page-index .about p {
    color: var(--muted);
    margin-bottom: 0.9rem;
}

.page-index .about-list {
    list-style: none;
    margin-top: 0.6rem;
    padding-left: 0;
}

.page-index .about-list li {
    font-size: 0.92rem;
    color: var(--muted);
    margin-bottom: 0.45rem;
}

.page-index .about-photo {
    width: 100%;
    border-radius: 24px;
    background: linear-gradient(180deg, #fffaf0 0%, #faead7 100%);
    min-height: 420px;
    overflow: hidden;
    position: relative;
}

.page-index .about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-index .contact {
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem 1.6rem;
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.page-index .contact h2 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.page-index .contact-info {
    font-size: 0.9rem;
    color: var(--muted);
}

.page-index .contact-info div {
    margin-bottom: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.page-index .contact-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.page-index .contact-form {
    display: grid;
    gap: 0.9rem;
}

.page-index .field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.page-index .field label {
    font-size: 0.85rem;
    color: var(--muted);
}

.page-index .field input,
.page-index .field textarea {
    border-radius: 999px;
    border: 1px solid var(--border);
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    background: #ffffff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.page-index .field textarea {
    border-radius: 18px;
    min-height: 110px;
    resize: vertical;
}

.page-index .field input:focus,
.page-index .field textarea:focus {
    border-color: var(--text);
    box-shadow: 0 0 0 3px rgba(31, 31, 31, 0.16);
}

.form-feedback {
    font-size: 0.88rem;
    border-radius: 12px;
    padding: 0;
    min-height: 0;
    transition: all 0.2s ease;
}

.form-feedback--success {
    padding: 0.75rem 1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    border-radius: 12px;
}

.form-feedback--error {
    padding: 0.75rem 1rem;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
    border-radius: 12px;
}

.page-index footer {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.8rem 1.5rem 2.2rem;
    font-size: 0.85rem;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.page-index footer a {
    color: var(--muted);
}

/* Gallery page specific */
.page-gallery .intro {
    padding: 2.6rem 1.5rem 1.2rem;
}

.page-gallery .intro h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    margin-bottom: 0.8rem;
}

.page-gallery .intro p {
    max-width: 42rem;
    color: var(--muted);
}

.page-gallery .gallery-section {
    margin-bottom: 1.7rem;
    padding: 1.7rem;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.07);
}

.page-gallery .gallery-section:last-of-type {
    margin-bottom: 1rem;
}

.page-gallery .section-header {
    margin-bottom: 1.25rem;
}

.page-gallery .section-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}

.page-gallery .section-header p {
    max-width: 38rem;
}

.page-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.page-gallery .gallery-item {
    min-height: 280px;
    background: linear-gradient(145deg, #fffaf9, #fdf3e9);
}

.page-gallery .back-button {
    margin-top: 1.5rem;
}

@media (max-width: 900px) {
    .page-index .hero,
    .page-index .about,
    .page-index .contact {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-index .services-grid,
    .page-gallery .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-index .preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        width: 100%;
        justify-content: start;
    }

    .page-index .hero {
        padding-top: 2rem;
    }

    .page-index .services-grid,
    .page-index .preview-grid,
    .page-gallery .gallery-grid {
        grid-template-columns: 1fr;
    }

    .page-index footer {
        flex-direction: column;
    }

    .page-gallery .intro {
        padding-top: 2rem;
    }
}
