:root {
    --bg: #f3ede2;
    --paper: #fffdf8;
    --text: #232323;
    --muted: #6a6258;
    --line: #d8d0c4;
    --accent: #b64026;
    --soft: #f7f1e7;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

.wrapper {
    max-width: 1040px;
    margin: 0 auto;
    padding: 2rem;
}

/* =========================================================
   HEADER
   ========================================================= */

header {
    padding: 1rem 0 2rem;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 7vw, 5rem);
    line-height: 1;
    font-weight: normal;
    letter-spacing: -0.04em;
}

.site-title span {
    color: var(--accent);
}

.site-logo {
    width: 35px;
    height: auto;
    flex-shrink: 0;
}

.example {
    width: 250px;
    height: auto;
    flex-shrink: 0;
}

.tagline {
    max-width: 680px;
    margin: 0.75rem 0 0;
    color: var(--muted);
    font-size: 1.2rem;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

nav {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

nav a {
    margin-right: 1.25rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

nav a:hover {
    color: var(--accent);
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */

main {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

h1,
h2,
h3 {
    line-height: 1.2;
}

h1 {
    margin-top: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

h2 {
    margin-top: 2.5rem;
    font-size: 1.7rem;
}

h3 {
    margin-bottom: 0.4rem;
}

.hero {
    max-width: 760px;
    font-size: 1.25rem;
    color: var(--muted);
}

.intro {
    max-width: 760px;
    font-size: 1.1rem;
}
.home-language-menu {
    text-align: center;
}
/* =========================================================
   BUTTONS
   ========================================================= */

.button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--accent);
    border-radius: 999px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 800;
}

.button:hover {
    background: var(--accent);
    color: var(--paper);
}

/* =========================================================
   GALLERY
   ========================================================= */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.card {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.placeholder {
    height: 190px;
    background:
        linear-gradient(
            135deg,
            #b64026 0%,
            #e5a23a 40%,
            #0f5c74 100%
        );
}

.placeholder.alt1 {
    background:
        linear-gradient(
            135deg,
            #111111 0%,
            #b64026 55%,
            #f3ede2 100%
        );
}

.placeholder.alt2 {
    background:
        linear-gradient(
            135deg,
            #0f5c74 0%,
            #f3ede2 45%,
            #d49a2a 100%
        );
}

.card-content {
    padding: 1rem;
}

.card-content p {
    color: var(--muted);
}

/* =========================================================
   INDEX PAGE
   ========================================================= */

.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
        "left english right"
        "spanish centre german";
    gap: 1.25rem;
    align-items: stretch;
}

.home-image-left {
    grid-area: left;
}

.home-english {
    grid-area: english;
}

.home-image-right {
    grid-area: right;
}

.home-spanish {
    grid-area: spanish;
}

.home-image-centre {
    grid-area: centre;
}

.home-german {
    grid-area: german;
}

/* IMAGE PANELS */

.home-image {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* LANGUAGE PANELS */

.home-language {
    padding: 1rem;
}

.home-language h2 {
    margin-top: 0;
    font-size: 1.7rem;
}

.home-language h3 {
    margin-top: 1.5rem;
}

.home-language p {
    color: var(--muted);
}

.home-language a {
    color: inherit;
}

.home-language h2 a {
    color: #551a8b;
}

.home-email {
    margin-top: 2rem;
}

.home-email a {
    color: #0000ee;
}

.home-hero {
    width: 100%;
    margin: 0 auto 30px auto;
    text-align: center;
}

.home-hero img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}


/* =========================================================
   SERVICE / PRODUCT PAGES
   Used for Harlequin and later similar pages
   ========================================================= */

.service-text {
    max-width: 760px;
}

.process {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: var(--soft);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.price-card {
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.price-title {
    display: block;
    color: var(--muted);
}

.price {
    display: block;
    margin-top: 0.3rem;
    color: var(--accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    line-height: 1.2;
}

/* =========================================================
   NOTES / CALLOUTS
   ========================================================= */

.note {
    margin-top: 2rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent);
    color: var(--muted);
    font-size: 1.1rem;
}

/* =========================================================
   IMAGES
   ========================================================= */

.page-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    border-radius: 12px;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 2rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .wrapper {
        padding: 1rem;
    }

    main {
        padding: 1.25rem;
    }

    .site-header {
        gap: 1rem;
    }

    .site-logo {
        width: 30px;
    }

    nav a {
        display: inline-block;
        margin-bottom: 0.5rem;
    }

    .price-grid {
        grid-template-columns: 1fr;
    }

    .home-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "left"
            "english"
            "right"
            "spanish"
            "centre"
            "german";
    }

    .home-image {
        min-height: 0;
    }

    .home-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .home-language {
        padding: 0.5rem 0;
    }
    
/* =========================================================
   LIGHTBOX GALLERY
   ========================================================= */

.lightbox[hidden],
.lightbox button[hidden] {
    display: none !important;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    padding: 50px 65px;
}

/* Full-size image */

.lightbox-full-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Common button styling */

.lightbox button {
    position: absolute;
    z-index: 1;
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 36px;
    line-height: 1;
    padding: 12px;
}

.lightbox button:hover {
    color: #e5a23a;
}

/* Close button */

.lightbox-close {
    top: 12px;
    right: 20px;
}

/* Previous image */

.lightbox-prev {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Next image */

.lightbox-next {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Keyboard focus */

.lightbox button:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
}

/* Mobile screens */

@media (max-width: 600px) {

    .lightbox {
        padding: 55px 35px;
    }

    .lightbox button {
        font-size: 28px;
        padding: 8px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }

    .lightbox-prev {
        left: 0;
    }

    .lightbox-next {
        right: 0;
    }
}

}
