
/* =========================================
   1. COLOUR SYSTEM & GLOBAL SETTINGS
========================================= */

:root {
    color-scheme: dark;

    --bg: #24201f;
    --surface: #302927;
    --surface-soft: #352d29;
    --text: #eee5d9;
    --muted: #b4a69a;
    --accent: #920d1b;
    --accent-hover: #b21b2b;
    --border: #51443e;
    --button-text: #fff8f2;
    --shadow: rgba(0, 0, 0, 0.25);
}

body.light-theme {
    color-scheme: light;

    --bg: #f5f0e8;
    --surface: #eae1d6;
    --surface-soft: #e3d8ca;
    --text: #29231f;
    --muted: #81736c;
    --accent: #920d1b;
    --accent-hover: #ad1828;
    --border: #d8ccbd;
    --button-text: #fffaf5;
    --shadow: rgba(50, 35, 25, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    overflow-x: hidden;
    transition: background 0.35s ease, color 0.35s ease;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

::selection {
    background: var(--accent);
    color: white;
}

.eyebrow {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 2.8px;
    line-height: 1.8;
    color: var(--accent);
    margin-bottom: 25px;
}

/* =========================================
   2. NAVIGATION
========================================= */

.navbar {
    min-height: 88px;
    padding: 22px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 10;
    background: var(--bg);
    transition: background 0.35s ease;
}

.logo {
    text-decoration: none;
    color: var(--text);
    font-size: 21px;
    letter-spacing: 4px;
    white-space: nowrap;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.8px;
    transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--accent);
}

.theme-toggle {
    width: 39px;
    height: 39px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: rotate(15deg);
}

/* =========================================
   3. HERO
========================================= */

.hero {
    min-height: 690px;
    padding: 90px 10% 110px;
    display: grid;
    grid-template-columns: 1.05fr 0.85fr;
    align-items: center;
    gap: 75px;
    position: relative;
}

.hero-text {
    max-width: 570px;
}

.hero h1 {
    font-size: clamp(48px, 5.5vw, 75px);
    font-weight: normal;
    line-height: 1.17;
    letter-spacing: -2px;
}

em {
    color: var(--accent);
    font-weight: normal;
}

.hero-text > p {
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 2;
    max-width: 400px;
    margin: 28px 0 32px;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 16px 23px;
    background: var(--accent);
    color: var(--button-text);
    border: 1px solid var(--accent);
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.primary-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
}

.primary-btn span {
    font-size: 15px;
}

.hero-image {
    width: 100%;
}

.hero-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 590px;
    object-fit: contain;
}

.image-caption {
    display: block;
    text-align: right;
    font-size: 12px;
    font-style: italic;
    color: var(--muted);
    margin-top: 14px;
}

.hero-number {
    position: absolute;
    bottom: 35px;
    left: 10%;
    font-family: Arial, sans-serif;
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--muted);
}

/* =========================================
   4. INTRODUCTION
========================================= */

.intro {
    padding: 115px 20px;
    text-align: center;
    background: var(--surface);
    transition: background 0.35s ease;
}

.intro h2 {
    font-size: clamp(35px, 5vw, 55px);
    font-weight: normal;
    line-height: 1.35;
}

.intro > p {
    max-width: 510px;
    margin: 27px auto 0;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 2;
    color: var(--muted);
}

/* =========================================
   5. GALLERY — NATURAL MASONRY
========================================= */

.gallery-section {
    padding: 115px 9%;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 55px;
}

.section-heading h2 {
    font-size: clamp(38px, 5vw, 53px);
    font-weight: normal;
}

.section-heading > p {
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.9;
    color: var(--muted);
}

.gallery-grid {
    columns: 2;
    column-gap: 35px;
}

.artwork {
    display: inline-block;
    width: 100%;
    margin-bottom: 42px;
    break-inside: avoid;
}

.artwork-image {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
}

.artwork-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.artwork-image:hover img {
    transform: scale(1.025);
}

.artwork-info {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding-top: 14px;
}

.artwork-number {
    font-family: Arial, sans-serif;
    font-size: 10px;
    color: var(--accent);
}

.artwork-info h3 {
    font-size: 19px;
    font-weight: normal;
}

/* =========================================
   6. COMMISSIONS
========================================= */

.commission-section {
    padding: 115px 10%;
    background: var(--surface);
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    align-items: center;
    gap: 85px;
    transition: background 0.35s ease;
}

.commission-content h2 {
    font-size: clamp(43px, 5vw, 62px);
    line-height: 1.2;
    font-weight: normal;
}

.commission-content > p {
    font-family: Arial, sans-serif;
    color: var(--muted);
    font-size: 13px;
    line-height: 2;
    margin: 25px 0 33px;
    max-width: 440px;
}

.commission-note {
    border-left: 1px solid var(--border);
    padding-left: 35px;
}

.process-heading {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 35px;
}

.process-step {
    display: flex;
    gap: 20px;
    margin-bottom: 33px;
}

.process-step > span {
    font-family: Arial, sans-serif;
    font-size: 11px;
    color: var(--accent);
    padding-top: 3px;
}

.process-step h3 {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 9px;
}

.process-step p {
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.8;
    color: var(--muted);
}

/* =========================================
   7. ABOUT
========================================= */

.about-section {
    padding: 120px 10%;
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    gap: 90px;
    align-items: center;
}

.about-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.about-content h2 {
    font-size: clamp(40px, 4.5vw, 55px);
    font-weight: normal;
    line-height: 1.3;
}

.about-content p {
    font-family: Arial, sans-serif;
    color: var(--muted);
    font-size: 13px;
    line-height: 2;
    margin-top: 23px;
}

/* =========================================
   8. SHOP
========================================= */

.shop-section {
    text-align: center;
    padding: 110px 20px;
    background: var(--surface);
    transition: background 0.35s ease;
}

.shop-section h2 {
    font-size: clamp(36px, 5vw, 49px);
    font-weight: normal;
    line-height: 1.3;
}

.shop-section > p {
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 2;
    color: var(--muted);
    max-width: 470px;
    margin: 22px auto 32px;
}

.shop-label {
    font-family: Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--accent);
}

/* =========================================
   9. CONTACT FORM
========================================= */

.contact-section {
    padding: 120px 10%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: start;
}

.contact-heading h2 {
    font-size: clamp(43px, 5vw, 60px);
    font-weight: normal;
    line-height: 1.2;
}

.contact-heading > p {
    font-family: Arial, sans-serif;
    color: var(--muted);
    font-size: 13px;
    line-height: 2;
    margin-top: 25px;
    max-width: 360px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.contact-form label {
    font-family: Arial, sans-serif;
    font-size: 11px;
    margin-top: 13px;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 3px;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-family: Arial, sans-serif;
    font-size: 13px;
    outline: none;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--muted);
    opacity: 0.8;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: var(--accent);
}

.contact-form button {
    align-self: flex-start;
    margin-top: 22px;
}

#formStatus {
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.8;
    color: var(--accent);
    min-height: 20px;
}

.contact-form button:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* =========================================
   10. ARTWORK VIEWER
========================================= */

.artwork-viewer {
    width: min(90vw, 1100px);
    max-width: none;
    max-height: 90vh;
    margin: auto;
    padding: 25px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
}

.artwork-viewer::backdrop {
    background: rgba(0, 0, 0, 0.88);
}

.artwork-viewer[open] {
    display: grid;
    place-items: center;
}

.artwork-viewer img {
    display: block;
    max-width: 100%;
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.viewer-close {
    position: absolute;
    top: 8px;
    right: 13px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 30px;
    cursor: pointer;
}

/* =========================================
   11. FOOTER
========================================= */

.footer {
    padding: 55px 9% 25px;
    background: var(--surface);
    text-align: center;
    transition: background 0.35s ease;
}

.footer .logo {
    color: var(--text);
}

.footer > p {
    font-family: Arial, sans-serif;
    font-size: 11px;
    color: var(--muted);
    margin: 20px 0;
}

.back-top {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    margin: 20px 0;
}

.copyright {
    border-top: 1px solid var(--border);
    padding-top: 22px;
    margin-top: 30px;
    font-family: Arial, sans-serif;
    font-size: 10px;
    color: var(--muted);
}

/* =========================================
   12. RESPONSIVE DESIGN
========================================= */

@media (max-width: 900px) {

    .navbar {
        padding: 22px 5%;
        flex-wrap: wrap;
    }

    .nav-links {
        gap: 17px;
    }

    .hero {
        padding: 75px 7% 100px;
        gap: 40px;
    }

    .commission-section,
    .about-section,
    .contact-section {
        gap: 50px;
        padding: 85px 7%;
    }

    .gallery-section {
        padding: 90px 7%;
    }
}

@media (max-width: 650px) {

    .navbar {
        justify-content: space-between;
        gap: 16px;
    }

    .logo {
        font-size: 18px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 17px;
    }

    .nav-links a {
        font-size: 10px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 65px 7% 85px;
        gap: 40px;
    }

    .hero h1 {
        font-size: clamp(43px, 11vw, 57px);
    }

    .hero-number {
        display: none;
    }

    .hero-image img {
        max-height: 550px;
    }

    .intro {
        padding: 85px 22px;
    }

    .intro h2 {
        font-size: 36px;
    }

    .gallery-section {
        padding: 85px 7%;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        margin-top: 17px;
    }

    .gallery-grid {
        columns: 1;
    }

    .commission-section,
    .about-section,
    .contact-section {
        grid-template-columns: 1fr;
        gap: 45px;
        padding: 85px 7%;
    }

    .commission-note {
        padding-left: 23px;
    }

    .about-image {
        max-width: 100%;
    }

    .shop-section {
        padding: 85px 22px;
    }

    .footer {
        padding-left: 7%;
        padding-right: 7%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
