/* ==========================================================================
   The shared header (templates/navbar.html, every page) and the company website's pages (website app).
   The look is the old sirmersan.com's: white, charcoal, gold, Akrobat for all text (but the hero's lines, Roboto, as
   there), underlined text links instead of buttons.
   ========================================================================== */
@font-face {
    font-family: 'Akrobat';
    src: url('../fonts/Akrobat-Bold.woff') format('woff');
    font-weight: 600 900;
    font-display: swap;
}

@font-face {
    font-family: 'Akrobat';
    src: url('../fonts/Akrobat-Regular.woff') format('woff');
    font-weight: 100 500;
    font-display: swap;
}

/* Design Elements' own type on Products (its band under the stand): Merriweather Sans (one variable file for 300
   and 400) and Montserrat 400, self-hosted like Akrobat so no visitor's address goes to Google, split by character
   set as Google serves them */
@font-face {
    font-family: 'Merriweather Sans';
    src: url('../fonts/MerriweatherSans-latin.woff2') format('woff2');
    font-weight: 300 400;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Merriweather Sans';
    src: url('../fonts/MerriweatherSans-latin-ext.woff2') format('woff2');
    font-weight: 300 400;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-latin.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-latin-ext.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Roboto only for the hero's lines on the photos, as the old site's carousel set them; self-hosted, like Akrobat
   (one variable file for both weights, split by character set) */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-latin.woff2') format('woff2');
    font-weight: 400 700;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-latin-ext.woff2') format('woff2');
    font-weight: 400 700;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --site-charcoal: #37373A;
    --site-gold: #ECAA1F;
    --site-gold-text: #8a6300;   /* gold dark enough for text on white */
    --site-text: #51555B;
    --site-line: #ececec;
    --site-head-font: 'Akrobat', system-ui, sans-serif;
    --site-body-font: 'Akrobat', system-ui, sans-serif;   /* the old site sets Akrobat on all its text */
    --site-header-height: 80px;   /* the header, its gold line included */
}

/* ---- Header ---- */
/* Charcoal with a gold line under it, see-through, kept at the top of every page (the website and the app); fainter
   over the photo or video a website page opens with (.site-cover, below). A plain colour, no blur: blurring what
   moves under it (videos, the spheres) shows odd things */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: 80px;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;  /* room for the gold line (::after) */
    background-color: rgba(30, 30, 32, 0.86);
    transition: background-color 0.3s ease;
    font-family: var(--site-head-font);
}

/* The gold line under the header and over the footer: a gradient of the gold drifting slowly along it. The
   gradient ends as it starts, so the 200% wide image repeats without a seam */
.site-header::after,
.site-footer-full::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #b47d0c, var(--site-gold) 25%, #f6d488 50%, var(--site-gold) 75%, #b47d0c) 0 0 / 200% 100% repeat-x;
    animation: site-gold-drift 18s linear infinite;
    pointer-events: none;
}

.site-header::after {
    bottom: -2px;
}

.site-footer-full::before {
    top: 0;
}

@keyframes site-gold-drift {
    to { background-position: 200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .site-header::after,
    .site-footer-full::before {
        animation: none;
    }
}

/* A page opening with a photo or video starts under the header, which stays fainter over it until the page
   scrolls (static/js/site.js) or the phone menu opens */
.site-main > .site-cover:first-child {
    margin-top: calc(-1 * var(--site-header-height));
}

body:has(.site-main > .site-cover:first-child) .site-header:not(.is-scrolled):not(:has(.navbar-collapse.show, .navbar-collapse.collapsing)) {
    background-color: rgba(0, 0, 0, 0.3);
}

/* The scroll-down reminder (website/base_site.html, site.js): a thin gold line over a small chevron at the foot of
   the screen, gently moving down, gone once the page is scrolled. No circle: the site's lines, not a button's */
.site-scroll-cue {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 1020;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 14px;
    border: 0;
    background: none;
    color: var(--site-gold);
    font-size: 16px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
    transform: translateX(-50%);
    transition: opacity 0.4s ease, visibility 0.4s;
    animation: site-scroll-cue 2.2s ease-in-out infinite;
}

.site-scroll-cue::before {
    content: "";
    width: 1px;
    height: 26px;
    background: linear-gradient(to bottom, rgba(236, 170, 31, 0), var(--site-gold));
}

.site-scroll-cue:hover {
    color: #f6d488;
}

.site-scroll-cue.is-gone {
    opacity: 0;
    visibility: hidden;
}

@keyframes site-scroll-cue {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 6px); }
}

@media (prefers-reduced-motion: reduce) {
    .site-scroll-cue {
        animation: none;
    }
}

/* Links to a section (#corporate, #contact) stop below the header */
html {
    scroll-padding-top: var(--site-header-height);
}

.site-header .container-xxl,
.site-main .container-xxl,
.site-footer-full .container-xxl {
    padding-inline: clamp(16px, 4vw, 48px);
}

.site-header-logo img {
    display: block;
    height: 44px;
    width: auto;
}

.site-header-toggler {
    color: #ffffff;
    border: 0;
    font-size: 1.9rem;
    padding: 0.25rem 0.5rem;
}

.site-header-toggler:focus {
    box-shadow: 0 0 0 2px var(--site-gold);
}

.site-nav .nav-link {
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.5rem 0.9rem;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
    color: var(--site-gold);
}

.site-nav .site-nav-inventory {
    color: var(--site-gold);
}

.site-nav .nav-link.active {
    color: var(--site-gold);
    box-shadow: inset 0 -2px 0 var(--site-gold);
}

.site-nav-divider {
    width: 1px;
    height: 20px;
    background: #5c5c60;
    align-self: center;
    margin: 0 0.5rem;
}

.site-header-tools {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: 1.5rem;
}

.site-lang {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    color: #8f8f93;
}

.site-lang button {
    background: none;
    border: 0;
    padding: 0.25rem;
    color: #b9b9bc;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.1em;
}

.site-lang button.active,
.site-lang button:hover {
    color: #ffffff;
}

.site-signin {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-signin:hover {
    color: var(--site-gold);
}

.site-user-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #2e2e30;
    border: 1px solid var(--site-gold);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    font-family: var(--site-body-font);
    font-size: 15px;
}

/* The header's menus: Corporate and the user menu */
.site-menu {
    min-width: 15rem;
    border-radius: 0;
    border: 0;
    box-shadow: 0 12px 28px rgba(40, 32, 20, 0.18);
    font-family: var(--site-body-font);
}

.site-menu .dropdown-item.active,
.site-menu .dropdown-item:active {
    background: #f4efe3;
    color: #000000;
}

@media (max-width: 1199.98px) {
    .site-nav {
        padding-top: 0.75rem;
    }

    .site-nav-divider {
        display: none;
    }

    .site-header-tools {
        margin: 0.75rem 0 0.5rem;
        padding-left: 0.9rem;
        flex-wrap: wrap;
    }
}

/* ---- Website pages ---- */
/* overflow-x: clip, not hidden: nothing wider than the screen (a stone page's canvas spreads past its stage) moves
   the page sideways on phones, and the sticky parts keep working */
.site-main {
    font-family: var(--site-body-font);
    color: var(--site-charcoal);
    background: #ffffff;
    overflow-x: clip;
}

.site-eyebrow {
    margin: 0 0 14px;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--site-gold-text);
}

.site-eyebrow-light {
    color: var(--site-gold);
}

.site-title {
    margin: 0 0 28px;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: clamp(30px, 4vw, 40px);
    letter-spacing: 0.04em;
    color: #000000;
}

.site-subtitle {
    margin: 0 0 16px;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: 30px;
    letter-spacing: 0.04em;
    color: #000000;
}

.site-card-title {
    margin: 22px 0 10px;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 0.06em;
    color: #000000;
}

.site-text,
.site-story-text p {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--site-text);
}

.site-section {
    padding-top: 96px;
}

#contact.site-section {
    padding-bottom: 96px;
}

/* Underlined text links (the old site's buttons) */
.site-links {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
}

.site-link {
    padding-bottom: 6px;
    border-bottom: 1px solid #c9c9cb;
    color: var(--site-charcoal);
    text-decoration: none;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.site-link-strong {
    border-bottom: 2px solid var(--site-gold);
    color: #000000;
}

.site-link-light {
    color: #ffffff;
    border-bottom-color: #8d8a85;
}

.site-link-light.site-link-strong {
    color: #ffffff;
    border-bottom-color: var(--site-gold);
}

.site-link:hover {
    color: var(--site-gold-text);
}

/* A button that looks like the underlined links (opens a pop-up rather than a page) */
.site-link-button {
    background: none;
    border-top: 0;
    border-right: 0;
    border-left: 0;
    padding: 0 0 6px;
    line-height: inherit;
    cursor: pointer;
}

.site-link-button .bi {
    margin-right: 4px;
}

.site-link-light:hover {
    color: var(--site-gold);
}

/* Hero: the old site's carousel (static/js/site.js). The slides lie on top of each other and fade in turn */
/* The whole screen's height (the header lies over it), on a 1080p display too; the photos and the video fill it by
   object-fit: cover, cut at the edges, never stretched. svh: the phone's toolbars don't make it jump */
.site-hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 520px;
    overflow: hidden;
    background: #1f1d1b;
}

.site-hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease, visibility 0s linear 1.2s;
}

.site-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 1.2s ease, visibility 0s;
}

.site-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.18) 60%, rgba(0, 0, 0, 0.08) 100%);
}

.site-hero-text {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 120px;
    padding-bottom: 150px;
    color: #ffffff;
}

.site-hero-title {
    margin: 0;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: clamp(46px, 7vw, 72px);
    line-height: 1;
    letter-spacing: 0.04em;
}

/* A slide's line, as the old slider showed it */
/* The lines on the photo slides, as the old site's carousel set them: Roboto 35/40, on the right, halfway up */
.site-hero-slide:has(.site-hero-line) {
    align-items: center;
}

.site-hero-slide:has(.site-hero-line) .site-hero-text {
    display: flex;
    justify-content: flex-end;
    padding-top: 0;
    padding-bottom: 0;
}

.site-hero-line {
    margin: 0;
    font-family: 'Roboto', var(--site-body-font);
    font-weight: 400;
    font-size: 35px;
    line-height: 40px;
    color: #ffffff;
}

.site-hero-line strong {
    font-weight: 700;
}

/* On the light photo */
.site-hero-line-dark {
    color: #58505b;
}

@media (max-width: 767.98px) {
    .site-hero-line {
        font-size: 20px;
        line-height: 28px;
    }
}

.site-hero-sub {
    margin: 22px 0 0;
    font-size: 14px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #ddd8d0;
}

/* The links, dots and pause button stay at the bottom while the slides change */
.site-hero-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    padding-bottom: 44px;
}

.site-hero-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-hero-dot {
    position: relative;
    width: 40px;
    height: 32px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.site-hero-dot::before {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    top: 50%;
    height: 3px;
    margin-top: -1.5px;
    background: rgba(255, 255, 255, 0.45);
}

.site-hero-dot[aria-current="true"]::before {
    background: var(--site-gold);
}

.site-hero-pause {
    width: 36px;
    height: 36px;
    margin-left: 8px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    line-height: 1;
}

.site-hero-dot:focus-visible,
.site-hero-pause:focus-visible {
    outline: 2px solid var(--site-gold);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .site-hero-slide,
    .site-hero-slide.is-active {
        transition: none;
    }
}

/* Our story: the photo edge to edge on one half, the text on the other */
.site-story {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.site-story-photo {
    flex: 1 1 560px;
    min-width: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.site-story-text {
    flex: 1 1 560px;
    min-width: 0;
    padding: 96px 8vw 96px 88px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 767.98px) {
    .site-story-text {
        padding: 56px 20px;
    }
}

/* Figures on the dark marble band */
.site-figures {
    background: linear-gradient(rgba(30, 30, 32, 0.74), rgba(30, 30, 32, 0.74)), url('../images/website/marble-band.jpg') center / cover;
    color: #ffffff;
}

.site-figures-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    padding-top: 72px;
    padding-bottom: 72px;
    text-align: center;
}

.site-figure {
    display: block;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: clamp(36px, 5vw, 50px);
    color: #ffffff;
}

.site-figure small {
    font-size: 0.52em;
}

.site-figure-label {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #d6d6d8;
}

@media (max-width: 767.98px) {
    .site-figures-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Production and quarries, side by side */
.site-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
}

.site-pair-photo {
    height: 340px;
    margin-bottom: 28px;
    overflow: hidden;
    background: #f6f6f6;
}

.site-pair-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-pair-photo-light img {
    object-fit: contain;
    padding: 28px;
}

@media (max-width: 767.98px) {
    .site-pair {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-pair-photo {
        height: 240px;
    }
}

.site-pair-item .site-links {
    margin-top: 24px;
}

/* Contact */
.site-contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--site-text);
}

.site-contact-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-contact-col a {
    color: var(--site-charcoal);
    text-decoration: none;
}

.site-contact-col a:hover {
    color: var(--site-gold-text);
}

.site-contact-col a.site-contact-more {
    margin-top: 4px;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--site-gold-text);
}

.site-contact-title {
    align-self: flex-start;
    margin: 0 0 6px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--site-gold);
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #000000;
}

/* Factories and quarries pages: the intro, then the map beside the numbered list */
.site-places {
    padding-bottom: 96px;
}

.site-places-intro {
    max-width: 820px;
    margin-bottom: 48px;
}

.site-places-body {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    align-items: flex-start;
}

/* The map: Turkey as a field of dots (website/_turkey_map.html) on the page itself, no box behind it */
.site-map {
    flex: 999 1 560px;
    min-width: 0;
    margin: 0;
}

.site-map svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.site-map-dot {
    fill: #cfc9bf;
}

.site-map-outline {
    fill: none;
    stroke: #e4dfd7;
    stroke-width: 1.2;
    stroke-linejoin: round;
}

.site-map-mark circle {
    fill: var(--site-gold);
    stroke: #ffffff;
    stroke-width: 3;
}

.site-map-mark .site-map-halo {
    fill: rgba(236, 170, 31, 0.18);
    stroke: none;
}

.site-map-mark text {
    fill: #000000;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: 20px;
    text-anchor: middle;
}

.site-places-list {
    flex: 1 1 280px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* The number beside the name, the town under the name */
.site-places-list li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: center;
    gap: 2px 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--site-line);
}

.site-places-number {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--site-gold);
    color: #000000;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: 14px;
    align-self: center;
}

.site-places-name {
    grid-column: 2;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.06em;
    color: #000000;
}

.site-places-town {
    grid-column: 2;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--site-text);
}

.site-places-empty {
    color: var(--site-text);
}

.site-places-links {
    margin-top: 48px;
}

/* A wide photo across the top of a page (the old site's banners) */
.site-banner {
    display: block;
    width: 100%;
    height: clamp(220px, 32vw, 420px);
    object-fit: cover;
}

/* Under the header: taller by the header's height, so as much of it shows */
.site-cover.site-banner,
.site-cover .site-banner {
    height: calc(clamp(220px, 32vw, 420px) + var(--site-header-height));
}

/* A video banner: the pause button sits on its bottom right corner */
.site-banner-video {
    position: relative;
}

.site-banner-video video {
    background: #1f1d1b;
}

.site-banner-pause {
    position: absolute;
    right: clamp(16px, 4vw, 48px);
    bottom: 20px;
    background: rgba(0, 0, 0, 0.25);
}

/* The promotion film's button and its pop-up player (website/_film.html) */
.site-film-links {
    margin-top: 16px;
}

.site-film .modal-content {
    background: #000000;
    border: 0;
    border-radius: 0;
}

.site-film .modal-header {
    border: 0;
}

.site-film .modal-title {
    color: #ffffff;
}

.site-film video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #000000;
}

/* The inquiry pop-up (templates/inquirymodal.html, on every page): square, white, a gold line on top, Akrobat;
   fields with a line under them, flat charcoal buttons */
.site-inquiry .modal-content {
    border: 0;
    border-top: 3px solid var(--site-gold);
    border-radius: 0;
    font-family: var(--site-body-font);
    color: var(--site-text);
}

.site-inquiry .modal-header,
.site-inquiry .modal-footer {
    border: 0;
    padding: 20px 28px 0;
}

.site-inquiry .modal-body {
    padding: 10px 28px 4px;
}

.site-inquiry .modal-footer {
    padding-top: 12px;
    padding-bottom: 20px;
    gap: 12px 20px;
}

.site-inquiry-title {
    font-family: var(--site-head-font);
    font-weight: 700;
    font-size: 26px;
    letter-spacing: 0.03em;
    color: #000000;
}

.site-inquiry-label {
    margin: 0 0 6px;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--site-gold-text);
}

.site-inquiry-label .bi {
    margin-right: 6px;
    letter-spacing: 0;
}

.site-inquiry-note {
    margin: 0;
    font-size: 15px;
}

.site-inquiry-field-label {
    display: block;
    margin-top: 12px;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--site-charcoal);
}

.site-inquiry-input {
    display: block;
    width: 100%;
    padding: 5px 0;
    border: 0;
    border-bottom: 1px solid #c9c9cb;
    border-radius: 0;
    background: transparent;
    font-family: var(--site-body-font);
    font-size: 17px;
    color: #000000;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.site-inquiry-input:focus {
    outline: 0;
    border-bottom-color: var(--site-gold);
    box-shadow: 0 1px 0 var(--site-gold);
}

.site-inquiry-input::placeholder {
    color: #a3a3a7;
}

.site-inquiry-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border: 0;
    border-radius: 0;
    background: var(--site-charcoal);
    color: #ffffff;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-inquiry-button:hover,
.site-inquiry-button:focus-visible {
    background: var(--site-gold);
    color: #000000;
}

.site-inquiry-button:disabled {
    opacity: 0.6;
}

.site-inquiry-whatsapp {
    white-space: nowrap;
}

/* Two fields side by side (Name, Email), or the phone beside its button; stacked on phones */
.site-inquiry-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 24px;
}

.site-inquiry-row-action {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

@media (max-width: 575.98px) {
    .site-inquiry-row,
    .site-inquiry-row-action {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-inquiry-whatsapp {
        margin-top: 14px;
    }
}

.site-inquiry-or {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 18px 0 14px;
    font-family: var(--site-head-font);
    font-size: 13px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #8a8a8e;
}

.site-inquiry-or::before,
.site-inquiry-or::after {
    content: "";
    flex: 1;
    border-top: 1px solid #e2e2e4;
}

.site-inquiry-button[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.7;
}

.site-inquiry-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #8a8a8e;
    cursor: pointer;
}

.site-inquiry-consent input {
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    accent-color: var(--site-gold);
}

.site-inquiry-consent a {
    color: var(--site-charcoal);
}

/* The material download (website/_material_modal.html): its bot trap kept off screen, its error, and the line
   under the stone's links when the visitor is remembered */
.site-material-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
}

.site-material-error {
    margin: 12px 0 0;
    font-size: 13px;
    color: #b02a37;
}

.site-material-remembered {
    margin: 10px 0 0;
    font-size: 13px;
    color: #8a8a8e;
}

.site-material-forget {
    font-size: inherit;
    color: var(--site-charcoal);
    text-decoration: underline;
}

.site-inquiry-cancel {
    padding: 0 0 4px;
    border: 0;
    border-bottom: 1px solid #c9c9cb;
    background: none;
    color: var(--site-charcoal);
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.site-inquiry-cancel:hover {
    border-bottom-color: var(--site-gold);
}

/* The quarries' photos (black and white on the old site) */
.site-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 72px;
}

.site-gallery img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

@media (max-width: 767.98px) {
    .site-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---- Products, stone pages and projects ---- */

/* A section's title with a link or tabs on its right */
/* The home page's band to the products: the title and its link, beside a few stones as spheres on a stand (the
   Products page's, flat here), on the light grey of the stock band */
.site-products-band {
    background: #f6f6f6;
}

.site-products-band-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 28px 48px;
    padding-top: 48px;
    padding-bottom: 48px;
}

.site-products-band .site-title {
    margin-bottom: 18px;
}

.site-products-band-stones {
    display: flex;
    gap: 8px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-products-band-stones .site-stand-item {
    --sphere: 84px;
}

.site-products-band-stones .site-stand-item:hover .site-sphere {
    transform: translateY(-4px);
}

.site-products-band-stones .site-sphere {
    transition: transform 0.3s ease;
}

/* Phones: the spheres in a row to swipe */
@media (max-width: 767.98px) {
    .site-products-band-stones {
        width: calc(100% + var(--bs-gutter-x));
        margin: 0 calc(var(--bs-gutter-x) * -0.5);
        padding: 0 calc(var(--bs-gutter-x) * 0.5) 4px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .site-products-band-stones .site-stand-item {
        --sphere: 72px;
    }
}

.site-section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px 32px;
    margin-bottom: 36px;
}

.site-section-head .site-title {
    margin-bottom: 0;
}

/* Tabs that filter a page (stone groups, project categories): links, the current one underlined in gold */
.site-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
}

.site-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    color: #6b6e73;
    text-decoration: none;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-tab:hover {
    color: #000000;
}

.site-tab[aria-current="page"] {
    color: #000000;
    border-bottom-color: var(--site-gold);
}

.site-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6b6e73;
}

.site-crumbs a {
    color: #6b6e73;
    text-decoration: none;
}

.site-crumbs a:hover,
.site-crumbs [aria-current] {
    color: #000000;
}

.site-rule {
    display: block;
    width: 48px;
    height: 2px;
    margin: 26px 0;
    background: var(--site-gold);
}

.site-empty {
    padding: 24px 0 96px;
}

/* Solid buttons, only on the stone card: Discover (charcoal) and Ask for price (gold) */
.site-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 15px 18px;
    border: 0;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: left;
}

.site-cta-dark {
    background: var(--site-charcoal);
    color: #ffffff;
}

.site-cta-dark .bi {
    color: var(--site-gold);
}

.site-cta-dark:hover {
    background: #000000;
    color: #ffffff;
}

.site-cta-gold {
    background: var(--site-gold);
    color: #000000;
}

.site-cta-gold:hover {
    background: #f3bb45;
}

.site-cta:focus-visible,
.site-stand-item:focus-visible {
    outline: 2px solid var(--site-gold);
    outline-offset: 3px;
}

/* A stone sphere: the texture drawn flat with light and shade, until static/js/stone_spheres.js covers it with
   the 3D one (.is-3d). Sized by --sphere, which its shadow follows too */
.site-sphere {
    position: relative;
    display: block;
    width: var(--sphere, 92px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background-image:
        radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.6) 0, rgba(255, 255, 255, 0) 28%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 56%, rgba(0, 0, 0, 0.3) 100%),
        var(--texture, linear-gradient(140deg, #ece7df, #bdb3a5));
    background-size: 100% 100%, 100% 100%, 200% auto;
    background-position: center, center, 0 50%;
    transition: width 0.25s ease;
}

.site-sphere.is-3d {
    background: none;
}

/* Until a sphere turns 3D (stone_spheres.js): a soft light sweeping across it */
.site-sphere.is-loading {
    overflow: hidden;
}

.site-sphere.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%) 0 0 / 250% 100%;
    animation: site-sphere-shimmer 1.6s ease-in-out infinite;
}

@keyframes site-sphere-shimmer {
    from { background-position: 120% 0; }
    to { background-position: -120% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .site-sphere.is-loading::after {
        animation: none;
        background: rgba(255, 255, 255, 0.25);
    }
}

.site-sphere canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.site-sphere-shadow {
    display: block;
    width: calc(var(--sphere, 92px) * 0.8);
    height: 12px;
    margin-top: 5px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0) 70%);
    transition: width 0.25s ease;
}

.site-sphere-tiny {
    display: inline-block;
    width: 22px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Products: the stand of spheres and the selected stone's card. The stand scrolls with the page; on wide screens the
   title and tabs stay under the header and the card under them (--stones-head-height is set by stone_spheres.js) */
.site-stones {
    padding-bottom: 40px;
}

.site-stones-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    padding-top: 56px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--site-line);
}

.site-stones-head .site-title {
    margin-bottom: 0;
}

.site-stones-body {
    display: flex;
    gap: 56px;
    align-items: flex-start;
}

.site-stand {
    flex: 1 1 auto;
    min-width: 0;
    padding: 32px 8px 64px 0;
}

.site-stand:focus-visible {
    outline: none;
}

.site-stand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 32px 8px;
    /* Rows line up by the top, and every sphere sits on the same line (see .site-stand-item .site-sphere), so a name
       on two lines only pushes the space under it */
    align-items: start;
    --sphere-max: 124px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-stand-item {
    --sphere: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.site-stand-item.is-selected {
    --sphere: 124px;
}

.site-stand-name {
    max-width: 128px;
    margin-top: 10px;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-align: center;
    text-transform: uppercase;
    color: #6b6e73;
}

.site-stand-item:hover .site-stand-name {
    color: #000000;
}

.site-stand-item.is-selected .site-stand-name {
    color: #000000;
    border-bottom-color: var(--site-gold);
}

.site-stand-item .site-sphere {
    margin-top: calc(var(--sphere-max) - var(--sphere));
    transition: width 0.25s ease, margin-top 0.25s ease;
}

/* Under the selected sphere: a second click opens its page */
.site-stand-open {
    visibility: hidden;
    opacity: 0;
    margin-top: 4px;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--site-gold);
    transition: opacity 0.25s ease;
}

.site-stand-open .bi {
    margin-left: 4px;
}

.site-stand-item.is-selected .site-stand-open {
    visibility: visible;
    opacity: 1;
}

/* The card's change shows: its text fades in and Discover's arrow nudges (stone_spheres.js sets .is-updated) */
.site-stone-card.is-updated > * {
    animation: site-card-in 0.4s ease;
}

.site-stone-card.is-updated [data-card="discover"] .bi,
.site-stand-item.is-selected .site-stand-open .bi {
    animation: site-nudge 1.2s ease-in-out 2;
}

@keyframes site-card-in {
    from { opacity: 0.2; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

@keyframes site-nudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}

@media (prefers-reduced-motion: reduce) {
    .site-stone-card.is-updated > *,
    .site-stone-card.is-updated [data-card="discover"] .bi,
    .site-stand-item.is-selected .site-stand-open .bi {
        animation: none;
    }
}

.site-stone-card {
    flex: 0 0 360px;
    position: sticky;
    top: calc(var(--site-header-height) + var(--stones-head-height, 0px) + 24px);
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(40, 36, 30, 0.1), 0 2px 6px rgba(40, 36, 30, 0.06);
}

.site-stone-card-texture {
    position: relative;
    display: block;
    height: 190px;
    background: var(--texture, linear-gradient(140deg, #ece7df, #bdb3a5)) 0 50% / 200% auto;
}

.site-stone-card-texture span {
    position: absolute;
    left: 18px;
    bottom: 14px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.site-stone-card-body {
    padding: 26px 28px 22px;
}

.site-stone-card .site-eyebrow {
    margin-bottom: 8px;
    font-size: 12px;
}

.site-stone-card-name {
    margin: 0;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: 0.04em;
}

.site-stone-card-name a {
    color: #000000;
    text-decoration: none;
}

.site-stone-card-tagline {
    margin: 12px 0 0;
    font-size: 17px;
    font-style: italic;
    line-height: 1.5;
    color: var(--site-charcoal);
}

.site-stone-card-text {
    display: -webkit-box;
    margin: 10px 0 0;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.7;
    color: var(--site-text);
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.site-stone-card-projects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
}

.site-stone-card-projects img {
    display: block;
    width: 100%;
    height: 64px;
    object-fit: cover;
}

.site-stone-card-summary {
    margin: 10px 0 0;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b6e73;
}

.site-stone-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 28px 28px;
}

/* On wide screens the buttons come first, over the texture, so they show without scrolling however long the card is */
@media (min-width: 992px) {
    .site-stones-head {
        position: sticky;
        top: var(--site-header-height);
        z-index: 4;
        background: #ffffff;
    }

    .site-stone-card-actions {
        order: -1;
        padding: 16px;
        gap: 8px;
    }

    /* A compact card, as tall as its stone needs, its top always under the header and the tabs: the stand is kept
       at least as tall as the tallest card shown (stone_spheres.js sets --stone-card-height) */
    .site-stone-card {
        flex-basis: 340px;
    }

    .site-stones-body {
        min-height: calc(var(--stone-card-height, 0px) + 48px);
    }

    .site-stone-card .site-cta {
        padding: 12px 14px;
        font-size: 13px;
        letter-spacing: 0.14em;
        white-space: nowrap;
    }

    .site-stone-card-texture {
        flex: none;
        height: 130px;
    }

    .site-stone-card-body {
        padding: 20px 22px;
    }

    .site-stone-card-name {
        font-size: 28px;
    }

    .site-stone-card-tagline {
        margin-top: 8px;
        font-size: 15px;
        line-height: 1.45;
    }

    .site-stone-card-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .site-stone-card-projects {
        margin-top: 14px;
    }

    .site-stone-card-projects img {
        height: 52px;
    }
}

@media (max-width: 991.98px) {
    .site-stones-body {
        display: block;
    }

    .site-stand {
        padding: 28px 0;
    }

    .site-stand-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 24px 4px;
        --sphere-max: 92px;
    }

    .site-stand-item {
        --sphere: 72px;
    }

    .site-stand-item.is-selected {
        --sphere: 92px;
    }

    .site-stand-name {
        font-size: 11px;
    }

    /* On phones the card is a bar along the bottom: the name and the two buttons */
    .site-stone-card {
        position: sticky;
        top: auto;
        bottom: 0;
        z-index: 5;
        margin: 0 calc(var(--bs-gutter-x) * -0.5);
        box-shadow: 0 -10px 30px rgba(40, 36, 30, 0.14);
    }

    .site-stone-card-texture,
    .site-stone-card-tagline,
    .site-stone-card-text,
    .site-stone-card-projects {
        display: none;
    }

    .site-stone-card-body {
        padding: 14px 16px 10px;
    }

    .site-stone-card .site-eyebrow {
        margin-bottom: 2px;
        font-size: 11px;
    }

    .site-stone-card-name {
        font-size: 26px;
    }

    .site-stone-card-summary {
        margin-top: 4px;
        font-size: 11px;
    }

    .site-stone-card-actions {
        padding: 0 16px 14px;
    }

    .site-cta {
        padding: 13px 14px;
        font-size: 13px;
    }
}

@media (max-width: 767.98px) {
    /* The tabs scroll sideways */
    .site-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 calc(var(--bs-gutter-x) * -0.5);
        padding: 0 calc(var(--bs-gutter-x) * 0.5);
        scrollbar-width: none;
    }
}

/* Under the stand: Design Elements, Sirmersan's handcrafted marble objects, on a dark band */
.site-de-wrap {
    padding-bottom: 80px;
}

.site-de {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 40px 56px;
    align-items: center;
    padding: 52px 56px;
    background: #1f1e1c;
    color: #ffffff;
    border-radius: 18px;  /* rounded, unlike the rest of the site: Design Elements is its own brand */
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

/* Design Elements' own pattern over the band (DE_Pattern_Small.svg, one copy covering it, so no seams; its black
   lines turned white), colour-dodged into the charcoal, faintly */
.site-de::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../images/website/design-elements/DE_Pattern_Small.svg') center / cover no-repeat;
    filter: invert(1);
    mix-blend-mode: color-dodge;
    opacity: 0.03;
    pointer-events: none;
}

.site-de > * {
    position: relative;
    z-index: 1;
}

.site-de-logo {
    display: block;
    height: 30px;
    width: auto;
    max-width: 100%;
    margin-bottom: 28px;
}

.site-de-quote {
    margin: 0 0 16px;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;
    letter-spacing: 0.03em;
}

.site-de-line {
    margin: 0 0 28px;
    font-size: 16px;
    line-height: 1.7;
    color: #cfcac2;
}

.site-de-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-de-products a {
    display: block;
    color: #e8e4dd;
    text-decoration: none;
}

.site-de-photo {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: #9e9894;
}

.site-de-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.site-de-products a:hover img,
.site-de-products a:focus-visible img {
    transform: scale(1.05);
}

.site-de-name {
    display: block;
    margin-top: 10px;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.site-de-products a:hover .site-de-name {
    color: var(--site-gold);
}

/* Design Elements' own type, as on its website (self-hosted, the @font-face rules at the top): headings in Merriweather Sans,
   the rest in Montserrat, both at their regular weight, without our letter spacing and capitals */
.site-de,
.site-de .site-link {
    font-family: Montserrat, sans-serif;
    font-weight: 400;
}

.site-de .site-de-quote,
.site-de .site-de-name {
    font-family: "Merriweather Sans", sans-serif;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
}

.site-de .site-de-name {
    font-size: 14px;
}

.site-de .site-de-quote {
    font-size: clamp(20px, 1.8vw, 24px);
    font-weight: 300;  /* the lightest Merriweather Sans has */
}

.site-de .site-link {
    font-size: 12px;
    letter-spacing: 0.12em;
}

.site-de .site-de-line {
    font-size: 14px;
    line-height: 24px;
}

@media (max-width: 991.98px) {
    .site-de {
        grid-template-columns: minmax(0, 1fr);
        padding: 36px 24px;
    }

    .site-de-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* A stone's page, two rows: the 3D stage beside the text (centred on each other), then the stage's controls beside
   the flat texture (starting at one line). Stacked on phones */
.site-stone {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas: "stage text" "controls swatch";
    gap: 8px 72px;
    padding-top: 4px;
    padding-bottom: 32px;
}

/* A square stage: the sphere fills 70% of it (as the 3D one does at no zoom), the canvas all of it */
.site-stone-stage {
    grid-area: stage;
    justify-self: center;
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    touch-action: pan-y;
}

/* Held to turn (stone_spheres.js): no callout or selection on a long press, and the piece comes a little forward */
.site-stone-stage,
.site-stone-controls .site-tile {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.site-stone-stage canvas {
    transition: transform 0.2s ease;
}

.site-stone-stage.is-orbiting canvas {
    transform: scale(1.04);
}

.site-stone-stage .site-sphere {
    --sphere: 70%;
}

.site-stone-stage .site-sphere-shadow {
    position: absolute;
    left: 50%;
    bottom: 9%;
    width: 54%;
    transform: translateX(-50%);
}

.site-stone-stage > canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* A stone page's canvas spreads past its stage (OVERDRAW in stone_spheres.js: 1.6 times, 30% on each side), so a
   piece zoomed in isn't cut at the stage's edges; only the stage itself takes the drags */
.site-stone-stage[data-stage] > canvas {
    inset: -30%;
    width: 160%;
    height: 160%;
    pointer-events: none;
}

.site-stone-stage.is-3d {
    cursor: grab;
}

/* The text and the buttons stay over the canvas where it spreads under them */
.site-stone > :not(.site-stone-stage) {
    position: relative;
    z-index: 1;
}

.site-stone-stage .site-layer-labels {
    overflow: visible;
    transition: opacity 0.3s ease;
}

/* A laminated piece's thickness labels (static/js/stone_spheres.js) */
.site-layer-labels {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.site-layer-labels polyline {
    fill: none;
    stroke: #8a8d91;
    stroke-width: 1;
}

.site-layer-labels text {
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.08em;
    fill: var(--site-charcoal);
    text-anchor: end;
}

.site-stone-stage.is-3d .site-sphere {
    visibility: hidden;
}

/* The hint sits in the stage, under the sphere */
.site-stone-caption.site-stone-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2%;
    z-index: 1;
    justify-content: center;
    margin: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.site-stone-text {
    grid-area: text;
    align-self: center;
    min-width: 0;
}

.site-stone-controls {
    grid-area: controls;
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 460px;
}

/* The viewer's controls: the surface finish and the edge works, each a labelled row of tiles on the same grid */
.site-control-group {
    width: 100%;
}

.site-control-group + .site-control-group {
    margin-top: 12px;
}

.site-control-group[hidden] {
    display: none;
}

.site-control-label {
    margin: 0 0 8px;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--site-gold-text);
}

.site-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 6px;
}

.site-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 7px 4px 6px;
    border: 1px solid var(--site-line);
    background: #ffffff;
    color: #6b6e73;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
}

.site-tile:hover {
    color: #000000;
}

.site-tile[aria-pressed="true"] {
    border-color: var(--site-gold);
    color: #000000;
}

/* A finish an edge piece doesn't come in, while one is shown (stone_spheres.js) */
.site-tile:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Until the sphere is 3D the tiles hold their place, shimmering like a loading sphere, and can't be pressed */
.site-stone-controls.is-loading .site-tile {
    position: relative;
    overflow: hidden;
    pointer-events: none;
    color: transparent;
    background: #f1f1f1;
    border-color: #f1f1f1;
}

.site-stone-controls.is-loading .site-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.7) 50%, transparent 70%) 0 0 / 250% 100%;
    animation: site-sphere-shimmer 1.6s ease-in-out infinite;
}

.site-stone-controls .site-tile {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    .site-stone-controls.is-loading .site-tile::after {
        animation: none;
    }
}

.site-tile-icon svg {
    display: block;
    width: 56px;
    height: 22px;
}

/* The flat texture under the text, its caption beside it */
.site-stone-swatch {
    grid-area: swatch;
    align-self: start;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    align-items: end;
    margin: 0;
    padding-top: 26px;
    border-top: 1px solid var(--site-line);
}

.site-swatch {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--texture) 0 50% / 200% auto;
}

.site-stone-swatch .site-stone-caption {
    flex-direction: column;
    margin: 0;
}

.site-stone-caption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 12px;
    margin-top: 16px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6b6e73;
}

.site-stone-name {
    margin: 0;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: clamp(40px, 5vw, 60px);
    line-height: 1;
    letter-spacing: 0.04em;
    color: #000000;
}

.site-stone-tagline {
    margin: 0 0 18px;
    font-size: 20px;
    font-style: italic;
    line-height: 1.6;
    color: var(--site-charcoal);
}

/* Ask for price, Download material and Slabs in stock on one line (wrapping only where it can't fit) */
.site-stone-text .site-links {
    margin-top: 30px;
    gap: 12px 24px;
    align-items: flex-end;
}

.site-stone-text .site-link {
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .site-stone {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "stage" "controls" "text" "swatch";
        gap: 32px;
    }
}

/* The stone page's sections sit closer than the home page's */
.site-stone-projects {
    padding-top: 40px;
    padding-bottom: 48px;
}

/* Stock now: bundle cards and the blocks, on grey */
.site-stock {
    padding: 44px 0;
    background: #f6f6f6;
}

.site-stock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* A bundle: its first slab whole (slabs are long, and cropping them hides the stone), on white, the details under */
.site-stock-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    padding: 12px 12px 16px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    transition: box-shadow 0.3s ease;
}

.site-stock-card:hover {
    box-shadow: 0 10px 28px rgba(40, 36, 30, 0.1);
}

.site-stock-card img,
.site-stock-photo {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    background: #f1efeb;
}

.site-stock-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.08em;
    color: #000000;
}

.site-stock-info {
    font-size: 14px;
    color: var(--site-text);
}

.site-stock-card:hover .site-stock-title > span:first-child,
.site-stock-blocks a:hover .site-stock-title {
    color: var(--site-gold-text);
}

/* Phones: the bundles in one row to swipe, the next one peeking in, rather than a long column */
@media (max-width: 575.98px) {
    .site-stock-grid {
        grid-auto-flow: column;
        grid-template-columns: none;
        grid-auto-columns: 78%;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin: 0 calc(var(--bs-gutter-x) * -0.5);
        padding: 0 calc(var(--bs-gutter-x) * 0.5) 4px;
        scroll-padding: 0 calc(var(--bs-gutter-x) * 0.5);
        scrollbar-width: none;
    }

    .site-stock-grid::-webkit-scrollbar {
        display: none;
    }

    .site-stock-grid > li {
        scroll-snap-align: start;
    }
}

.site-stock-blocks {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 24px 48px;
}

.site-stock-grid + .site-stock-blocks {
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid #e3e3e3;
}

.site-stock-blocks a:not(.site-link) {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
}

.site-related {
    padding-top: 44px;
    padding-bottom: 56px;
}

/* Projects: cards with the title over the cover photo, a mosaic (one big tile) or an even grid */
.site-project-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 268px;
    overflow: hidden;
    background: #d9d2c7;
    color: #ffffff;
    text-decoration: none;
}

.site-project-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.site-project-card:hover img {
    transform: scale(1.03);
}

.site-project-caption {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 20px 22px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}

.site-project-title {
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.06em;
}

.site-project-meta {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #e6e3de;
}

.site-project-mosaic {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 268px;
    gap: 24px;
}

.site-project-mosaic .is-large {
    grid-column: span 2;
    grid-row: span 2;
}

.site-project-mosaic .is-large .site-project-title {
    font-size: 30px;
}

.site-project-mosaic > :only-child {
    grid-column: 1 / -1;
}

/* Two projects: the second as tall as the first */
.site-project-mosaic > :nth-child(2):last-child {
    grid-row: span 2;
}

.site-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.site-project-grid .site-project-card {
    min-height: 0;
    aspect-ratio: 4 / 3;
}

.site-projects,
.site-more-projects {
    padding-bottom: 96px;
}

@media (max-width: 767.98px) {
    .site-project-mosaic {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: 240px;
    }

    .site-project-mosaic .is-large {
        grid-column: auto;
        grid-row: auto;
    }
}

/* A project's page */
.site-cover.site-project-banner {
    height: calc(clamp(260px, 42vw, 560px) + var(--site-header-height));
}

.site-project {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 72px;
    padding-top: 40px;
    padding-bottom: 56px;
}

.site-project-text {
    flex: 2 1 480px;
    min-width: 0;
}

.site-project-facts {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding-top: 8px;
}

.site-project-facts dt {
    margin-bottom: 6px;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--site-gold-text);
}

.site-project-facts dd {
    margin: 0;
    font-size: 17px;
    color: var(--site-charcoal);
}

.site-project-stones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.site-project-stones a {
    display: inline-flex;
    align-items: center;
    color: #000000;
    text-decoration: none;
}

.site-project-stones a:hover {
    color: var(--site-gold-text);
}

.site-project-photos {
    columns: 3 320px;
    column-gap: 16px;
    padding-bottom: 32px;
}

.site-project-photo {
    display: block;
    margin-bottom: 16px;
    break-inside: avoid;
}

.site-project-photo img {
    display: block;
    width: 100%;
    height: auto;
}

/* A photo shown large (website/_lightbox.html) */
.site-lightbox .modal-content {
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: rgba(12, 12, 12, 0.96);
}

.site-lightbox-image {
    max-width: calc(100% - 140px);
    max-height: calc(100% - 80px);
    object-fit: contain;
}

.site-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}

.site-lightbox-step {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    font-size: 20px;
    transform: translateY(-50%);
}

.site-lightbox-prev {
    left: 20px;
}

.site-lightbox-next {
    right: 20px;
}

@media (max-width: 767.98px) {
    .site-lightbox-image {
        max-width: 100%;
    }

    .site-lightbox-step {
        top: auto;
        bottom: 24px;
        transform: none;
    }
}

/* ---- Footer of the website pages ---- */
.site-footer-full {
    position: relative;
    background: var(--site-charcoal);
    color: #d6d6d8;
    font-family: var(--site-body-font);
    font-size: 16px;
    font-weight: 400;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
    gap: 40px;
    padding-top: 72px;
    padding-bottom: 36px;
}

.site-footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    line-height: 1.7;
}

.site-footer-col a {
    color: #d6d6d8;
    text-decoration: none;
}

.site-footer-col a:hover {
    color: #ffffff;
}

/* Design Elements' logo in the footer's Products column, in place of its name */
.site-footer-brand img {
    display: inline-block;
    height: 16px;
    width: auto;
    vertical-align: middle;
    opacity: 0.85;
}

.site-footer-brand:hover img {
    opacity: 1;
}

/* A brand's logo over its office's name in the contact section */
.site-office-logo {
    display: block;
    height: 18px;
    width: auto;
    max-width: 180px;
    margin-bottom: 8px;
    object-fit: contain;
    object-position: left center;
}

.site-footer-title {
    margin-bottom: 6px;
    font-family: var(--site-head-font);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #ffffff;
}

.site-footer-logo {
    align-self: flex-start;
    height: 40px;
    width: auto;
    margin-bottom: 8px;
}

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding-top: 22px;
    padding-bottom: 40px;
    border-top: 1px solid #4d4d51;
    font-size: 13px;
    color: #b4b4b7;
}

.site-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}

/* "Legal" in gold before the links */
.site-footer-legal-label {
    color: #ECAA1F;
}

.site-footer-legal a {
    color: inherit;
    text-decoration: none;
}

.site-footer-legal a:hover {
    color: #ffffff;
}

@media (max-width: 1199.98px) {
    .site-footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Photos in black and white, in colour on hover or tap (the factories gallery, production and quarries, the
   projects) */
.site-gallery img,
.site-pair-photo img,
.site-project-card img,
.site-project-photo img {
    filter: grayscale(1);
    transition: filter 0.5s ease, transform 0.6s ease;
}

.site-gallery img:hover,
.site-pair-item:hover .site-pair-photo img,
.site-project-card:hover img,
.site-project-card:focus-visible img,
.site-project-photo:hover img,
.site-project-photo:focus-visible img {
    filter: none;
}

/* The home page's Production and Quarries photos stay black and white, not even in colour on hover
   (!important over the hover rule above) */
.site-home .site-pair-photo img {
    filter: grayscale(1) !important;
}

/* A text from the admin (website.models.SiteText, {% site_text %}) shown in a template: wrap its body in
   .site-rich-text. The documents number their own items (a., 1., -), so lists have no bullets */
.site-rich-text {
    max-width: 860px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--site-text);
    overflow-wrap: anywhere;
}

.site-rich-text h2,
.site-rich-text h3 {
    margin: 36px 0 14px;
    font-family: var(--site-head-font);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #000000;
}

.site-rich-text h2 {
    font-size: 22px;
}

.site-rich-text h3 {
    font-size: 18px;
}

.site-rich-text > :first-child {
    margin-top: 0;
}

.site-rich-text ul {
    padding-left: 1.2em;
    list-style: none;
}

.site-rich-text li {
    margin-bottom: 6px;
}

.site-rich-text a {
    color: var(--site-gold-text);
}

.site-rich-text table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    margin: 16px 0 24px;
    border-collapse: collapse;
}

.site-rich-text th,
.site-rich-text td {
    padding: 8px 12px;
    border: 1px solid var(--site-line);
    vertical-align: top;
    text-align: left;
}

.site-rich-text th {
    color: #000000;
}

/* The KVKK application form's places to fill in by hand */
.site-rich-text .legal-fill td {
    min-width: 240px;
}

.site-rich-text .legal-checks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    padding-left: 0;
}

.site-rich-text .legal-blank {
    height: 160px;
    border: 1px solid var(--site-line);
}

.site-rich-text .legal-sign {
    margin-top: 28px;
    line-height: 2.4;
}

/* The legal pages (website/legal_page.html): the text, the others beside it, and a printout or PDF of only the
   title and the text */
.site-legal {
    padding-bottom: 96px;
}

.site-legal-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--site-line);
}

.site-legal-head .site-title {
    margin-bottom: 0;
}

.site-legal-print {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: none;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    cursor: pointer;
}

.site-legal-body {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 72px;
    align-items: flex-start;
    padding-top: 40px;
}

.site-legal-text {
    flex: 1 1 560px;
    min-width: 0;
    max-width: 860px;
}

.site-legal-note {
    padding: 12px 16px;
    margin-bottom: 28px;
    border-left: 3px solid var(--site-gold);
    background: #faf7f0;
    font-size: 15px;
    color: var(--site-text);
}

.site-legal-printed {
    display: none;
}

.site-legal-nav {
    flex: 0 1 280px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: calc(var(--site-header-height) + 24px);
}

.site-legal-nav a {
    padding-left: 14px;
    border-left: 2px solid var(--site-line);
    color: var(--site-text);
    text-decoration: none;
    font-size: 15px;
}

.site-legal-nav a:hover,
.site-legal-nav a[aria-current="page"] {
    border-left-color: var(--site-gold);
    color: #000000;
}

@media (max-width: 991.98px) {
    .site-legal-nav {
        position: static;
        flex-basis: 100%;
        order: -1;
    }
}

@media print {
    .site-header,
    .site-footer-full,
    .site-scroll-cue,
    .site-legal-print,
    .site-legal-nav,
    .site-legal-note {
        display: none !important;
    }

    .site-legal.site-section {
        padding: 0;
    }

    .site-legal-head {
        border-bottom-color: #999999;
    }

    .site-legal-text,
    .site-legal-text .site-rich-text {
        max-width: none;
        font-size: 11pt;
        color: #000000;
    }

    .site-rich-text h2,
    .site-rich-text h3 {
        break-after: avoid;
    }

    .site-rich-text tr,
    .site-rich-text li {
        break-inside: avoid;
    }

    .site-rich-text table {
        display: table;
        overflow: visible;
    }

    .site-rich-text th,
    .site-rich-text td,
    .site-rich-text .legal-blank {
        border-color: #999999;
    }

    .site-rich-text a {
        color: #000000;
    }

    .site-legal-printed {
        display: block;
        margin-top: 32px;
        font-size: 9pt;
        color: #555555;
    }
}

/* The stone page's other stones are never selected: no room kept above them for a bigger sphere */
.site-related-grid .site-stand-item {
    --sphere-max: var(--sphere);
}
