/* AstraStone Worktops | Main stylesheet. Edit this file directly. */

/* ===== SECTION: tokens.css ===== */
/*
 * Astrastone Worktops
 * File: assets/css/tokens.css
 *
 */

:root {
    /* Hero colors */
    --hero-overlay-dark: 0 35 25;
    --hero-heading-accent: #E7D4AC;
    --hero-description: #F2F2ED;
    --hero-index-muted: #DDDDDD;

    /* Brand colors */
    --green: #006A4D;
    --dark: #003D2B;
    --gold: #C5A059;
    --ivory: #FAF8F3;

    /* Additional header colors */
    --white: #FFFFFF;
    --gold-light: #E8D8B5;
    --gold-hover: #E0BB76;

    /* Text colors */
    --ink: #202824;
    --muted: #65716b;

    /* Borders */
    --border: #e4e8e3;

    /* Elementor responsive ranges: mobile <=767px; tablet 768-1024px; desktop >=1025px. */
    /* Layout */
    --container: 1240px;

    /* Header dimensions */
    --header-height-desktop: 110px;
    --header-height-mobile: 85px;

    /* Logo dimensions */
    --logo-width-desktop: 200px;
    --logo-width-mobile: 150px;

    /* Navigation typography */
    --menu-font-desktop: 16px;
    --menu-font-mobile: 16px;

    /* Header compact dimensions */
    --header-height-scrolled-desktop: 64px;
    --header-height-scrolled-mobile: 60px;

    --logo-width-scrolled-desktop: 145px;
    --logo-width-scrolled-mobile: 115px;

    /* Header surface colors */
    --header-surface: rgb(250 248 243 / 96%);
    --header-glass: rgb(255 255 255 / 78%);
    --header-border: rgb(197 160 89 / 22%);
    --header-shadow: 0 8px 30px rgb(0 35 25 / 8%);

    /* Slab component palette */
    --slab-close-hover: #eee9dd;
    --slab-navigation-hover: #edf3ef;
    --slab-favourite-hover: #fffaf0;
    --slab-favourite-active: #fff8e8;
    --slab-rgb-shadow: 0 30 20;
    --slab-rgb-backdrop: 0 24 17;
    --slab-rgb-dark: 0 61 43;
    --slab-rgb-gold: 197 160 89;
    --slab-rgb-ivory: 250 248 243;
    --slab-rgb-white: 255 255 255;
    --slab-rgb-black: 0 0 0;

    /* Typography */
    --font-body: "DM Sans", Arial, sans-serif;
    --font-display: "Playfair Display", Georgia, serif;
}

/* ===== SECTION: base.css ===== */
/*
 * Astrastone Worktops
 * File: assets/css/base.css
 * Global reset, typography, layout, buttons and accessibility.
 */

/* Reset */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font: 16px/1.7 "DM Sans", Arial, sans-serif;
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

/* Typography */
h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -.03em;
}

h1 em,
h2 em {
    font-weight: 400;
}

h2 {
    font-size: clamp(34px, 4.3vw, 58px);
}

h3 {
    line-height: 1.3;
}

/* Layout */
.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.section {
    padding: 110px 0;
}

/* Shared labels and links */
.eyebrow {
    display: block;
    color: var(--green);
    font-size: 11px;
    letter-spacing: .22em;
    font-weight: 700;
    margin-bottom: 6px;
}

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

.text-link {
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 7px;
}

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

/* Buttons: shared foundation */
.button,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 48px;
    padding: 14px 24px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition:
        background .2s,
        color .2s,
        border-color .2s;
}

/* Theme button */
.button {
    border: 1px solid transparent;
    border-radius: 0;
}

/* Theme button variants */
.button-green {
    background: var(--green);
    color: var(--white);
}

.button-green:hover {
    background: var(--dark);
}

.button-gold {
    background: var(--gold);
    color: var(--dark);
}

.button-gold:hover {
    background: var(--gold-hover);
}

.button-outline {
    border-color: var(--white);
    color: var(--white);
}

.button-outline:hover {
    background: var(--white);
    color: var(--dark);
}

/* WordPress buttons retain their own colors and radius. */

/* Button groups */
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Disabled states */
.button:disabled,
.button[aria-disabled="true"],
.wp-block-button__link[aria-disabled="true"] {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
}

/* Active states */
.button:active,
.wp-block-button__link:active {
    transform: translateY(1px);
}

/* Accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 12px;
    background: var(--white);
    padding: 12px;
    z-index: 999;
}

.skip-link:focus {
    left: 12px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* Elementor: mobile and tablet (up to 1024px) */
@media (max-width: 1024px) {
    .section {
        padding: 75px 0;
    }

    .button,
    .wp-block-button__link {
        font-size: 14px;
    }
}

/* Elementor: mobile only (up to 767px) */
@media (max-width: 767px) {
    .container {
        width: min(calc(100% - 36px), var(--container));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* ===== SECTION: header.css ===== */
/*
 * AstraStone Worktops
 * File: assets/css/header.css
 *
 * Header, branding, desktop navigation,
 * mobile navigation and scroll states.
 *
 * Mobile: 0 - 767px
 * Tablet: 768px - 1024px
 * Desktop: 1025px and above
 */

/* ========================================
   1. Header Foundation
======================================== */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    width: 100%;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition:
        background .35s ease,
        box-shadow .35s ease,
        backdrop-filter .35s ease;
}

body:not(.home) {
    padding-top: var(--header-height-desktop);
}

body:not(.home) .site-header:not(.is-scrolled) {
    background: var(--header-surface);
    border-bottom: 1px solid var(--header-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-header.is-scrolled {
    background: var(--header-glass);
    border-bottom: 1px solid var(--header-border);
    box-shadow: var(--header-shadow);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}

/* ========================================
   2. Header Layout
======================================== */

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: var(--header-height-desktop);
    transition: min-height .35s ease;
}

.site-header.is-scrolled .header-inner {
    min-height: var(--header-height-scrolled-desktop);
}

/* ========================================
   3. Branding
======================================== */

.branding {
    flex-shrink: 0;
}

.brand-link {
    display: grid;
    align-items: center;
}

.brand-link .brand-image {
    grid-area: 1 / 1;
    display: block;
    width: auto;
    height: auto;
    max-width: var(--logo-width-desktop);
    max-height: 90px;
    object-fit: contain;
    transition:
        opacity .3s ease,
        max-width .35s ease,
        max-height .35s ease;
}

.brand-link .logo-white {
    opacity: 1;
}

.brand-link .logo-green {
    opacity: 0;
}

body:not(.home) .logo-white,
.site-header.is-scrolled .logo-white {
    opacity: 0;
}

body:not(.home) .logo-green,
.site-header.is-scrolled .logo-green {
    opacity: 1;
}

.site-header.is-scrolled .brand-image {
    max-width: var(--logo-width-scrolled-desktop);
    max-height: 52px;
}

/* ========================================
   4. Desktop Navigation
======================================== */

.desktop-nav {
    display: block;
    margin-left: auto;
    min-width: 0;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav .nav-list {
    gap: 24px;
}

.desktop-nav .nav-list a {
    font-size: var(--menu-font-desktop);
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    transition:
        color .2s ease,
        font-size .3s ease;
}

.desktop-nav .nav-list a:hover,
.desktop-nav .current-menu-item > a {
    color: var(--green);
}

.home .site-header:not(.is-scrolled) .desktop-nav .nav-list a {
    color: var(--white);
}

.home .site-header:not(.is-scrolled) .desktop-nav .nav-list a:hover,
.home .site-header:not(.is-scrolled) .desktop-nav .current-menu-item > a {
    color: var(--gold-light);
}

body:not(.home) .site-header:not(.is-scrolled) .desktop-nav .nav-list a {
    color: var(--dark);
}

body:not(.home) .site-header:not(.is-scrolled) .desktop-nav .nav-list a:hover,
body:not(.home) .site-header:not(.is-scrolled) .desktop-nav .current-menu-item > a {
    color: var(--green);
}

.site-header.is-scrolled .desktop-nav .nav-list {
    gap: 20px;
}

.site-header.is-scrolled .desktop-nav .nav-list a {
    color: var(--dark);
    font-size: 15px;
}

.site-header.is-scrolled .desktop-nav .nav-list a:hover,
.site-header.is-scrolled .desktop-nav .current-menu-item > a {
    color: var(--green);
}

/* ========================================
   5. Header Actions
======================================== */

.site-header .header-phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    margin: 0;
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color .3s ease,
        font-size .3s ease;
}

.site-header .header-phone-icon {
    color: var(--gold);
    font-size: 19px;
}

.site-header.is-scrolled .header-phone,
body:not(.home) .site-header .header-phone {
    color: var(--green);
}

.desktop-quote {
    flex: 0 0 auto;
    min-height: 44px;
    margin: 0;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.site-header.is-scrolled .desktop-quote {
    min-height: 40px;
    padding: 10px 16px;
    font-size: 13px;
}

/* ========================================
   6. Hamburger Foundation
======================================== */

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--dark);
}

/* ========================================
   7. Mobile Navigation Overlay
======================================== */

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 1998;
    background: rgb(0 25 18 / 65%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.mobile-nav-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ========================================
   8. Mobile Sidebar
======================================== */

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1999;
    width: min(360px, 88vw);
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    background: var(--ivory);
    padding: 28px;
    transform: translateX(105%);
    visibility: hidden;
    box-shadow: -15px 0 40px rgb(0 0 0 / 12%);
    transition:
        transform .3s ease,
        visibility .3s ease;
}

.mobile-sidebar.is-open {
    transform: translateX(0);
    visibility: visible;
}

.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--gold-light);
}

.mobile-sidebar-title {
    color: var(--dark);
    font-size: 18px;
    font-weight: 700;
}

.mobile-menu-close {
    border: 0;
    background: transparent;
    color: var(--dark);
    font-size: 36px;
    line-height: 1;
    padding: 5px;
}

.mobile-nav-list {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid var(--gold-light);
}

.mobile-nav-list a {
    display: block;
    padding: 12px 0;
    color: var(--dark);
    font-size: var(--menu-font-mobile);
    font-weight: 600;
}

.mobile-nav-list a:hover,
.mobile-nav-list .current-menu-item > a {
    color: var(--green);
}

.mobile-sidebar-quote {
    width: 100%;
}

.mobile-menu-open {
    overflow: hidden;
}

/* ========================================
   9. Desktop
======================================== */

@media (min-width: 1025px) {
    .menu-toggle,
    .mobile-sidebar,
    .mobile-nav-overlay {
        display: none;
    }
}

/* ========================================
   10. Compact Desktop
======================================== */

@media (min-width: 1025px) and (max-width: 1199px) {
    .header-inner {
        gap: 14px;
    }

    .desktop-nav .nav-list {
        gap: 14px;
    }

    .brand-link .brand-image {
        max-width: min(var(--logo-width-desktop), 160px);
    }

    .site-header.is-scrolled .brand-image {
        max-width: var(--logo-width-scrolled-desktop);
    }

    .site-header .header-phone {
        gap: 5px;
        font-size: 13px;
    }

    .desktop-quote {
        padding-inline: 12px;
        font-size: 13px;
    }
}

/* ========================================
   11. Tablet and Mobile
======================================== */

@media (max-width: 1024px) {
    body:not(.home) {
        padding-top: var(--header-height-mobile);
    }

    .desktop-nav,
    .desktop-quote {
        display: none;
    }

    .site-header .header-inner {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 12px;
        min-height: var(--header-height-mobile);
    }

    .site-header .branding {
        flex: 0 1 auto;
        min-width: 0;
        margin-right: auto;
    }

    .site-header .brand-link {
        min-width: 0;
    }

    .site-header .brand-image {
        max-width: min(var(--logo-width-mobile), 100%);
        max-height: 70px;
    }

    .site-header .header-phone {
        flex: 0 0 auto;
        margin: 0;
        font-size: 13px;
    }

    .site-header .header-phone-icon {
        font-size: 16px;
    }

    /* Original hamburger design */
    .site-header .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        margin: 0;
        padding: 6px;
        background: transparent;
        border-color: rgb(197 160 89 / 50%);
        transition:
            width .3s ease,
            height .3s ease,
            flex-basis .3s ease,
            padding .3s ease;
    }

    .site-header .menu-toggle span {
        width: 22px;
        transition: width .3s ease;
    }

    .home .site-header:not(.is-scrolled) .menu-toggle span {
        background: var(--white);
    }

    body:not(.home) .site-header:not(.is-scrolled) .menu-toggle span {
        background: var(--dark);
    }

    /* Scrolled mobile header */
    .site-header.is-scrolled .header-inner {
        min-height: var(--header-height-scrolled-mobile);
    }

    .site-header.is-scrolled .brand-image {
        max-width: min(var(--logo-width-scrolled-mobile), 100%);
        max-height: 45px;
    }

    /* Original compact hamburger */
    .site-header.is-scrolled .menu-toggle {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        padding: 4px;
        background: rgb(255 255 255 / 55%);
        border-color: rgb(0 61 43 / 15%);
    }

    .site-header.is-scrolled .menu-toggle span {
        width: 18px;
        background: var(--dark);
    }

    .site-header.is-scrolled .header-phone {
        font-size: 12px;
    }
}

/* ========================================
   12. Reduced Motion
======================================== */

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .header-inner,
    .brand-link .brand-image,
    .menu-toggle,
    .menu-toggle span,
    .mobile-sidebar,
    .mobile-nav-overlay {
        transition: none;
    }
}

/* ===== SECTION: footer.css ===== */
/*
 * AstraStone Worktops — Footer
 * Original visual identity, refined typography and responsive layout.
 */

.site-footer {
    padding: 76px 0 24px;
    background: #002e21;
    color: #dce8df;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
    gap: clamp(24px, 4vw, 55px);
    padding-bottom: 60px;
}

.footer-grid > div {
    min-width: 0;
}

.footer-brand img {
    display: block;
    width: 205px;
    max-height: 80px;
    height: auto;
    object-fit: contain;
    margin-bottom: 22px;
}

.footer-brand p {
    max-width: 340px;
    margin: 0;
    color: #c4d5cb;
    font-size: 15px;
    line-height: 1.8;
}

.footer-grid h2 {
    margin: 0 0 20px;
    color: #fff;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .03em;
}

.footer-grid a:not(.footer-contact) {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 12px;
    color: #dce8df;
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
    transition: color .2s ease;
}

.footer-grid > div:not(.footer-brand) p {
    margin: 0 0 12px;
    color: #c4d5cb;
    font-size: 15px;
    line-height: 1.75;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
    color: var(--gold);
}

.footer-grid .footer-contact {
    display: inline-block;
    margin-top: 8px;
    color: var(--gold);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    transition: color .2s ease;
}

.footer-grid .footer-contact:hover,
.footer-grid .footer-contact:focus-visible {
    color: var(--gold-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-top: 24px;
    border-top: 1px solid #34584a;
    color: #b4c5ba;
    font-size: 13px;
    line-height: 1.6;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .site-footer {
        padding-top: 65px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 44px 36px;
        padding-bottom: 48px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .site-footer {
        padding: 54px 0 22px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 22px;
        padding-bottom: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand img {
        width: 185px;
        margin-bottom: 18px;
    }

    .footer-grid > div:last-child {
        grid-column: 1 / -1;
    }

    .footer-grid h2 {
        margin-bottom: 16px;
        font-size: 16px;
    }

    .footer-grid a:not(.footer-contact) {
        margin-bottom: 10px;
        font-size: 15px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        font-size: 12px;
    }
}

@media (max-width: 390px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand,
    .footer-grid > div:last-child {
        grid-column: auto;
    }
}

/* ===== SECTION: hero.css ===== */
/* AstraStone Homepage Hero */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 580px;
    background: var(--dark);
    color: var(--white);
}

.hero-image,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-image {
    background-position: center;
    background-size: cover;
}

.hero-overlay {
    background: linear-gradient(
        90deg,
        rgb(var(--hero-overlay-dark) / 90%) 0%,
        rgb(var(--hero-overlay-dark) / 72%) 55%,
        rgb(var(--hero-overlay-dark) / 40%) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-block: 65px;
}

.hero h1 {
    max-width: 770px;
    margin: 0 0 22px;
    font-size: clamp(34px, 8.5vw, 42px);
    line-height: 1.16;
    letter-spacing: -.025em;
}

.hero h1 em {
    color: var(--hero-heading-accent);
}

.hero .eyebrow,
.hero .hero-eyebrow {
    display: block;
    margin-bottom: 18px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .14em;
}

.hero p,
.hero .hero-description,
.hero .hero-subtitle,
.hero .hero-text {
    max-width: 490px;
    margin: 0 0 60px;
    color: var(--hero-description);
    font-size: 15px;
    line-height: 1.7;
}

.hero-index {
    position: absolute;
    right: 24px;
    bottom: 20px;
    color: var(--white);
    font-size: 10px;
    letter-spacing: .13em;
}

.hero-index span {
    color: var(--hero-index-muted);
}

/* Mobile */
@media (max-width: 767px) {
    .hero {
        min-height: 580px;
    }

    .hero-content {
        padding-top: 100px;
        padding-bottom: 85px;
    }

    .hero h1 {
        max-width: 520px;
    }

    .hero-index {
        right: 18px;
        bottom: 18px;
        font-size: 9px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero {
        min-height: 620px;
    }

    .hero-overlay {
        background: linear-gradient(
            90deg,
            rgb(var(--hero-overlay-dark) / 86%) 0%,
            rgb(var(--hero-overlay-dark) / 62%) 55%,
            rgb(var(--hero-overlay-dark) / 12%) 100%
        );
    }

    .hero-content {
        padding-block: 80px;
    }

    .hero h1 {
        font-size: clamp(46px, 5.8vw, 58px);
    }

    .hero .eyebrow,
    .hero .hero-eyebrow {
        font-size: 12px;
    }

    .hero p,
    .hero .hero-description,
    .hero .hero-subtitle,
    .hero .hero-text {
        font-size: 17px;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .hero {
        min-height: 680px;
    }

    .hero-overlay {
        background: linear-gradient(
            90deg,
            rgb(var(--hero-overlay-dark) / 86%) 0%,
            rgb(var(--hero-overlay-dark) / 62%) 44%,
            rgb(var(--hero-overlay-dark) / 8%) 100%
        );
    }

    .hero-content {
        padding-block: 95px;
    }

    .hero h1 {
        font-size: clamp(56px, 5.3vw, 76px);
    }

    .hero .eyebrow,
    .hero .hero-eyebrow {
        font-size: 13px;
    }

    .hero p,
    .hero .hero-description,
    .hero .hero-subtitle,
    .hero .hero-text {
        font-size: 18px;
        line-height: 1.7;
    }

    .hero-index {
        right: max(24px, calc((100% - var(--container)) / 2));
        bottom: 25px;
    }
}

/* Short mobile screens */
@media (max-width: 767px) and (max-height: 700px) {
    .hero-content {
        padding-top: 75px;
        padding-bottom: 65px;
    }
}

/* ===== SECTION: hero-pages.css ===== */
/*
 * AstraStone Worktops
 * File: assets/css/hero-pages.css
 *
 * Inner page banner styles.
 * Header spacing is managed by header.css.
 */

/* ========================================
   Desktop — 1025px and above
======================================== */

.page-banner {
    background: var(--ivory);
    padding: 90px 0 95px;
}

.page-banner h1 {
    max-width: 900px;
    margin: 0 0 24px;
    color: var(--dark);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(45px, 5.5vw, 76px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.03em;
    overflow-wrap: break-word;
}

.page-banner h1 em {
    color: var(--green);
    font-weight: 400;
}

.page-banner p {
    max-width: 610px;
    margin: 0;
    color: var(--muted);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.75;
}

/* ========================================
   Tablet — 768px to 1024px
======================================== */

@media (min-width: 768px) and (max-width: 1024px) {
    .page-banner {
        padding: 75px 0 80px;
    }

    .page-banner h1 {
        font-size: clamp(44px, 5.5vw, 60px);
        margin-bottom: 22px;
    }

    .page-banner p {
        font-size: 17px;
        line-height: 1.7;
    }
}

/* ========================================
   Mobile — Up to 767px
======================================== */

@media (max-width: 767px) {
    .page-banner {
        padding: 55px 0 65px;
    }

    .page-banner h1 {
        font-size: clamp(36px, 9vw, 48px);
        line-height: 1.17;
        margin-bottom: 20px;
    }

    .page-banner p {
        font-size: 16px;
        line-height: 1.7;
    }
}

/* ===== SECTION: sections.css ===== */
/*
 * AstraStone Worktops
 * File: assets/css/sections.css
 * Homepage sections excluding hero and gallery.
 * Shared typography, buttons and containers live in base.css.
 */

/* Section headings */
.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 42px;
}
.section-heading h2,
.center-heading h2 { color: var(--dark); }
.section-heading h2 { margin: 0; }
.section-heading > p {
    max-width: 310px;
    margin: 0 0 5px;
    color: var(--muted);
}
.center-heading {
    max-width: 660px;
    margin: 0 auto 60px;
    text-align: center;
}
.center-heading p { color: var(--muted); }
.section-link { margin-top: 43px; text-align: center; }

/* Trust strip */
.trust-strip {
    background: var(--ivory);
    border-bottom: 1px solid var(--border);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-block: 24px;
}
.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 0;
    padding: 8px 18px;
}
.trust-item + .trust-item { border-left: 1px solid rgb(0 61 43 / 13%); }
.trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    color: var(--gold);
    background: #fff;
    border: 1px solid rgb(197 160 89 / 38%);
    border-radius: 50%;
}
.trust-icon svg { display: block; width: 26px; height: 26px; }
.trust-label {
    color: var(--dark);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

/* ========================================
   Homepage Quartz Collection
======================================== */

.as-home-collection {
    background: var(--ivory);
}

.as-home-collection .section-heading h2 {
    max-width: 720px;
}

.as-home-collection-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.as-home-collection-card {
    min-width: 0;
}

.as-home-collection-card a {
    display: block;
    overflow: hidden;
    color: var(--dark);
    text-decoration: none;
}

.as-home-collection-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--ivory);
    transition: transform .35s ease;
}

.as-home-collection-card h3 {
    margin: 0;
    padding: 14px 0 4px;
    color: var(--dark);
    font-size: 17px;
    line-height: 1.4;
}

@media (hover: hover) {
    .as-home-collection-card a:hover img {
        transform: scale(1.025);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .as-home-collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 767px) {
    .as-home-collection-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .as-home-collection-card h3 {
        font-size: 16px;
    }
}

/* Material collection */
.material-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.material-card { display: block; min-width: 0; }
.material-image {
    aspect-ratio: 4 / 4.4;
    overflow: hidden;
    background: #e7e7e1;
}
.material-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.material-card:hover .material-image img { transform: scale(1.045); }
.material-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 19px 0;
    border-bottom: 1px solid var(--border);
}
.material-caption h3 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 25px;
    font-weight: 500;
}
.material-caption span { color: var(--green); font-size: 23px; }

/* Craftsmanship */
.feature-section {
    display: grid;
    grid-template-columns: 34% minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 12px;
    padding-right: 24px;
    min-height: 460px;
    background: var(--white);
}

.feature-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: 48px clamp(28px, 4.5vw, 70px);
}

.feature-copy h2 {
    max-width: 430px;
    margin: 0 0 18px;
    color: var(--dark);
    line-height: 1.16;
}

.feature-copy p {
    max-width: 390px;
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.65;
}

.feature-photo {
    min-width: 0;
    min-height: 0;
    height: 360px;
    overflow: hidden;
    border-radius: 6px;
}

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

.feature-photo--fabrication img {
    object-position: 50% 50%;
}

.feature-photo--installation img {
    object-position: 65% 50%;
}

.check-list {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
}

.check-list li {
    position: relative;
    margin: 10px 0;
    padding-left: 27px;
    font-size: 15px;
    line-height: 1.5;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}
/* Services and quote guide */
.as-services { background: var(--ivory); }
.as-guide { background: #fff; }
.as-services-grid,
.as-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 40px);
}
.as-services-grid article {
    min-width: 0;
    padding: clamp(25px, 3vw, 40px);
    background: #fff;
    border-top: 2px solid var(--gold);
}
.as-services-number {
    color: #9a7a3d;
    font-size: 13px;
    letter-spacing: .15em;
}
.as-services-grid h3 {
    margin: 18px 0 12px;
    color: var(--dark);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(23px, 2.2vw, 30px);
    font-weight: 500;
}
.as-services-grid p,
.as-guide-grid p { color: var(--muted); line-height: 1.75; }
.as-guide-grid { margin: 22px 0 35px; }
.as-guide-grid > div {
    min-width: 0;
    padding-top: 22px;
    border-top: 1px solid var(--gold);
}
.as-guide-grid strong { color: var(--dark); }

/* Process */
.process-section { background: var(--ivory); }
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 35px;
}
.process-grid > div { min-width: 0; padding-top: 24px; border-top: 1px solid var(--gold); }
.process-grid span {
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 24px;
}
.process-grid h3 { margin: 20px 0 10px; color: var(--dark); font-size: 17px; }
.process-grid p { color: var(--muted); font-size: 15px; }

/* Final call to action */
.cta-section {
    overflow: hidden;
    padding: 105px 0;
    background: var(--dark);
    color: #fff;
    text-align: center;
}
.cta-inner { position: relative; }
.cta-inner > img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    object-fit: contain;
    opacity: .08;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.cta-section h2 {
    position: relative;
    font-size: clamp(40px, 5vw, 68px);
}
.cta-section h2 em { color: #e9d4a9; }
.cta-section p {
    position: relative;
    max-width: 480px;
    margin: 0 auto 30px;
    color: #e2e9e4;
}
.cta-section .button { position: relative; }

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
    .trust-item:nth-child(3) { border-left: 0; }
    .feature-section {
        grid-template-columns: 42% 29% 29%;
    }
    .feature-copy { padding: 42px 30px; }
    .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
}

/* Mobile */
@media (max-width: 767px) {
    .section-heading { display: block; margin-bottom: 32px; }
    .section-heading > p { max-width: 100%; margin-top: 18px; }
    .center-heading { margin-bottom: 42px; }
    .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; padding-block: 20px; }
    .trust-item { justify-content: flex-start; gap: 9px; padding: 8px 2px; }
    .trust-item + .trust-item { border-left: 0; }
    .trust-icon { flex-basis: 40px; width: 40px; height: 40px; }
    .trust-icon svg { width: 23px; height: 23px; }
    .trust-label { font-size: 12px; }
    .material-grid,
    .as-services-grid,
    .as-guide-grid { grid-template-columns: 1fr; }
    .material-image { aspect-ratio: 5 / 4; }
    .feature-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .feature-copy {
        grid-column: 1 / -1;
        padding: 48px 24px 40px;
    }
    .feature-photo {
        min-height: 0;
        height: 220px;
    }
    .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .cta-section { padding: 75px 0; }
}

@media (max-width: 390px) {
    .process-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .material-image img { transition: none; }
}

body.home .section:not(.trust-strip):not(.cta-section) {
    padding-block: clamp(40px, 4vw, 64px);
}

/* ========================================
   Homepage Applications
======================================== */
.as-home-applications {
    background: var(--ivory);
}

.as-home-applications-heading {
    max-width: 820px;
    margin: 0 auto clamp(28px, 3.5vw, 52px);
    text-align: center;
}

.as-home-applications-heading .eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    letter-spacing: .24em;
}

.as-home-applications-heading h2 {
    margin: 0 0 12px;
    color: var(--dark);
    font-family: var(--font-display, Georgia, serif);
    font-size: clamp(32px, 3.5vw, 52px);
    line-height: 1.15;
}

.as-home-applications-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.as-home-applications-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
}

.as-home-applications-card {
    min-width: 0;
    text-align: center;
}

.as-home-applications-illustration {
    overflow: hidden;
    border-radius: 150px 150px 6px 6px;
    background: #F3EEE5;
}

.as-home-applications-illustration img {
    display: block;
    width: 100%;
    aspect-ratio: 375 / 335;
    object-fit: cover;
}

.as-home-applications-card h3 {
    margin: 20px 0 0;
    color: var(--dark);
    font-family: var(--font-display, Georgia, serif);
    font-size: clamp(19px, 1.6vw, 24px);
    font-weight: 500;
    line-height: 1.3;
}

.as-home-applications-card h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    margin: 14px auto 0;
    background: #C5A059;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .as-home-applications-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 760px;
        margin-inline: auto;
        gap: 36px 24px;
    }
}

@media (max-width: 767px) {
    .as-home-applications-grid {
        grid-template-columns: 1fr;
        max-width: 390px;
        margin-inline: auto;
        gap: 34px;
    }
}

/* ===== SECTION: gallery.css ===== */
/*
 * AstraStone Worktops
 * File: assets/css/gallery.css
 * Gallery grid, pagination and lightbox.
 */

/* Gallery */
.gallery-section {
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.5vw, 32px);
}

.gallery-card {
    min-width: 0;
    margin: 0;
}

.gallery-open {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #edf0eb;
    cursor: zoom-in;
}

.gallery-open img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .35s ease;
}

.gallery-open:hover img {
    transform: scale(1.035);
}

.gallery-open:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

.gallery-zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ivory);
    color: var(--dark);
    font-size: 20px;
    pointer-events: none;
}

.gallery-caption {
    margin-top: 14px;
    color: var(--dark);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.gallery-empty {
    padding: 56px 24px;
    background: var(--ivory);
    text-align: center;
}

.gallery-empty p {
    margin-bottom: 0;
}

/* Pagination */
.gallery-pagination {
    margin-top: 48px;
}

.gallery-pagination ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gallery-pagination a,
.gallery-pagination span {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 9px 13px;
    border: 1px solid var(--border, #d8dfd8);
    color: var(--dark);
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.gallery-pagination .current {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.gallery-pagination a:hover {
    border-color: var(--green);
    color: var(--green);
}

.gallery-pagination a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* Gallery pagination anchor offset */
#gallery-collection-title {
    scroll-margin-top: calc(var(--header-height-scrolled-desktop) + 24px);
}

@media (max-width: 1024px) {
    #gallery-collection-title {
        scroll-margin-top: calc(var(--header-height-scrolled-mobile) + 24px);
    }
}
/* Gallery grid responsive */
@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .gallery-caption {
        font-size: 19px;
    }

    .gallery-pagination {
        margin-top: 36px;
    }

    .gallery-pagination ul {
        gap: 7px;
    }
}

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

/* ===== SECTION: slabs.css ===== */
/*
* AstraStone Worktops
* File: assets/css/slabs.css
* Stone catalogue, favourites and preview dialogs.
*/

/* Catalogue */
.as-slab-section {
    background: var(--ivory);
}

.as-slab-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 22px;
}

.as-slab-tile {
    position: relative;
    min-width: 0;
}

.as-slab-card {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--dark);
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.as-slab-image {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 641 / 864;
    overflow: hidden;
    background: transparent;
}

.as-slab-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform .3s ease;
}

@media (hover: hover) {
    .as-slab-card:hover .as-slab-image img {
        transform: scale(1.025);
    }
}

.as-slab-name {
    display: block;
    padding: 12px 0 0;
    color: var(--dark);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
}

.as-slab-empty {
    padding: 30px 0;
}
/* Catalogue pagination */
.as-slab-pagination {
    margin-top: 36px;
}
.as-slab-pagination ul {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 8px; list-style: none; padding: 0; margin: 0;
}
.as-slab-pagination a,
.as-slab-pagination span {
    display: block; padding: 10px 14px;
    border: 1px solid rgb(var(--slab-rgb-dark) / 20%); text-decoration: none;
}
.as-slab-pagination .current {
    background: var(--green);
    color: var(--white);
}

/* Favourites toolbar and catalogue controls */
.as-favourites-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin: 0 0 24px;
}
.as-favourites-hint {
    margin: 0;
    color: var(--muted);
    font-size: .84rem;
}
.as-favourites-open {
    border: 1px solid rgb(var(--slab-rgb-dark) / 20%); background: var(--white);
    color: var(--dark); padding: 10px 14px;
    font: inherit; font-size: .85rem; cursor: pointer; white-space: nowrap;
}
.as-favourites-open::first-letter {
    color: var(--gold);
}
.as-slab-favourite {
    position: absolute; top: 10px; right: 10px; z-index: 1;
    display: grid; place-items: center; width: 38px; height: 38px;
    border: 1px solid rgb(var(--slab-rgb-dark) / 12%); border-radius: 50%;
    background: rgb(var(--slab-rgb-white) / 95%); color: var(--dark);
    font-size: 26px; line-height: 1; cursor: pointer;
    box-shadow: 0 2px 8px rgb(var(--slab-rgb-black) / 13%);
}
.as-slab-favourite[aria-pressed="true"] {
    color: var(--gold);
}

/* Stone preview dialog */
.as-slab-dialog {
    box-sizing: border-box; position: fixed;
    width: min(94vw, 1080px);
    max-height: 92vh; padding: clamp(14px, 2.4vw, 28px);
    border: 1px solid rgb(var(--slab-rgb-gold) / 24%); border-radius: 12px;
    background: var(--ivory); color: var(--dark);
    box-shadow: 0 28px 90px rgb(var(--slab-rgb-shadow) / 34%);
}
.as-slab-dialog::backdrop {
    background: rgb(var(--slab-rgb-backdrop) / 82%);
}
.as-slab-dialog img {
    display: block; max-width: 100%; max-height: 75vh;
    object-fit: contain; margin: auto;
}
.as-slab-dialog-top {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid rgb(var(--slab-rgb-dark) / 12%);
}
.as-slab-dialog-position {
    font: 500 .85rem var(--font-body);
    color: var(--muted); letter-spacing: .08em;
}
.as-slab-dialog-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}
.as-slab-dialog .as-slab-close,
.as-slab-dialog-stage button {
    display: grid; place-items: center;
    border: 1px solid rgb(var(--slab-rgb-dark) / 16%); border-radius: 50%;
    background: var(--white); color: var(--dark); cursor: pointer;
}
.as-slab-dialog .as-slab-close {
    width: 38px; height: 38px; margin: 0;
    font-size: 26px; line-height: 1;
    transition: background .2s ease;
}
.as-slab-dialog .as-slab-close:hover {
    background: var(--slab-close-hover);
}
.as-slab-dialog-stage {
    display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center; gap: 12px;
}
.as-slab-dialog-stage img {
    width: 100%; max-height: min(65vh, 690px);
    min-height: 0; object-fit: contain; border-radius: 3px;
}
.as-slab-dialog-stage button {
    width: 44px; height: 44px; font-size: 36px; line-height: 1;
    box-shadow: 0 2px 10px rgb(var(--slab-rgb-black) / 6%);
    transition: background .2s ease, border-color .2s ease;
}
.as-slab-dialog-stage button:hover:not(:disabled) {
    background: var(--slab-navigation-hover); border-color: var(--green);
}
.as-slab-dialog-stage button:disabled {
    opacity: .22;
    cursor: default;
}
.as-slab-dialog-image-wrap {
    position: relative; min-width: 0; display: grid;
    place-items: center; overflow: hidden;
}
.as-slab-dialog-image-wrap > img {
    display: block;
    width: 100%;
    height: auto;
}
.as-slab-dialog-footer {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 7px; padding-top: 12px;
}
.as-slab-dialog-title {
    margin: 0 0 3px; text-align: center;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2vw, 1.5rem);
}

/* Favourite action within preview image */
.as-slab-dialog-favourite {
    position: static; width: 50px; height: 50px;
    display: grid; place-items: center;
    border: 1px solid rgb(var(--slab-rgb-gold) / 55%); border-radius: 50%;
    background: var(--white); color: var(--dark);
    font-size: 31px; line-height: 1; cursor: pointer;
    box-shadow: 0 3px 14px rgb(var(--slab-rgb-black) / 6%);
    transition: transform .2s ease, background .2s ease;
}
.as-slab-dialog-favourite:hover {
    transform: scale(1.06);
    background: var(--slab-favourite-hover);
}
.as-slab-dialog-favourite[aria-pressed="true"] {
    color: var(--gold);
    background: var(--slab-favourite-hover);
}
.as-slab-dialog-stage .as-slab-dialog-favourite {
    position: absolute; left: 50%; bottom: clamp(10px, 2vw, 22px); z-index: 2;
    transform: translateX(-50%); display: flex;
    align-items: center; justify-content: center; gap: 9px;
    width: auto; min-width: 172px; height: 42px; padding: 0 16px;
    border: 1px solid rgb(var(--slab-rgb-gold) / 70%); border-radius: 999px;
    background: rgb(var(--slab-rgb-ivory) / 96%);
    box-shadow: 0 5px 20px rgb(var(--slab-rgb-black) / 20%);
    color: var(--dark); white-space: nowrap;
    backdrop-filter: blur(8px);
}
.as-slab-dialog-stage .as-slab-dialog-favourite:hover {
    transform: translateX(-50%); background: var(--slab-favourite-active);
}
.as-slab-dialog-stage .as-slab-dialog-favourite[aria-pressed="true"] {
    color: var(--dark); background: var(--slab-favourite-active);
}
.as-slab-favourite-icon {
    font-size: 23px;
    line-height: 1;
    color: var(--gold);
}
.as-slab-dialog-save-hint {
    font-family: var(--font-body);
    font-size: 12px; font-weight: 600;
    letter-spacing: .02em; color: var(--dark);
}

/* Preview actions: preserve the existing save button appearance. */
.as-slab-preview-actions {
    position: absolute;
    left: 50%;
    bottom: clamp(10px, 2vw, 22px);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: calc(100% - 12px);
    transform: translateX(-50%);
}
.as-slab-dialog-stage .as-slab-preview-actions .as-slab-dialog-favourite {
    position: static;
    transform: none;
    flex: 0 1 auto;
    min-width: 0;
    bottom: auto;
}
.as-slab-dialog-stage .as-slab-preview-actions .as-slab-dialog-favourite:hover {
    transform: none;
}
.as-slab-dialog-stage .as-slab-preview-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 42px;
    padding: 0 16px;
    border: 1px solid var(--gold);
    border-radius: 999px;
    background: rgb(var(--slab-rgb-ivory) / 96%);
    color: var(--dark);
    font: 600 12px var(--font-body);
    white-space: nowrap;
    cursor: pointer;
}
.as-slab-dialog-stage .as-slab-preview-list:hover {
    background: var(--slab-favourite-active);
}

/* Saved favourites dialog */
.as-favourites-dialog {
    width: min(92vw, 680px); max-height: 85vh;
    border: 0; padding: 25px;
    background: var(--ivory); color: var(--dark);
    box-shadow: 0 18px 70px rgb(var(--slab-rgb-black) / 33%);
}
.as-favourites-dialog::backdrop {
    background: rgb(var(--slab-rgb-black) / 65%);
}
.as-favourites-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.as-favourites-head h2 {
    margin: 0; font-family: var(--font-display); font-size: 1.6rem;
}
.as-favourites-close {
    border: 0; background: transparent; color: inherit;
    font-size: 30px; cursor: pointer;
}
.as-favourites-description {
    font-size: .9rem;
    color: var(--muted);
    margin: 4px 0 18px;
}
.as-favourites-items {
    display: grid;
    gap: 10px;
    max-height: 45vh;
    overflow: auto;
}
.as-favourites-item {
    display: grid; grid-template-columns: 76px minmax(0, 1fr) auto;
    align-items: center; gap: 12px; padding: 8px;
    background: var(--white); border: 1px solid rgb(var(--slab-rgb-dark) / 10%);
}
.as-favourites-item img {
    width: 76px;
    height: 58px;
    object-fit: contain;
    background: transparent;
}
.as-favourites-item strong,
.as-favourites-item span {
    display: block;
}
.as-favourites-item strong {
    font-size: .9rem;
}
.as-favourites-item span {
    font-size: .75rem;
    color: var(--muted);
    text-transform: capitalize;
}
.as-favourites-item button {
    background: transparent; border: 0; text-decoration: underline;
    color: var(--green); cursor: pointer; font: inherit; font-size: .8rem;
}
.as-favourites-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.as-favourites-copy,
.as-favourites-quote {
    display: inline-block; padding: 12px 16px;
    font: inherit; font-size: .85rem; text-decoration: none;
    cursor: pointer; border: 1px solid var(--green);
}
.as-favourites-copy {
    background: var(--white);
    color: var(--green);
}
.as-favourites-copy:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.as-favourites-quote {
    background: var(--green);
    color: var(--white);
}
.as-favourites-feedback {
    font-size: .8rem;
    margin: 12px 0 0;
}

/* Keyboard accessibility */
.as-slab-card:focus-visible,
.as-slab-close:focus-visible,
.as-slab-favourite:focus-visible,
.as-favourites-open:focus-visible,
.as-favourites-dialog button:focus-visible,
.as-favourites-dialog a:focus-visible,
.as-slab-dialog button:focus-visible {
    outline: 3px solid var(--gold); outline-offset: 3px;
}
.as-slab-dialog button:focus-visible {
    outline-offset: 2px;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .as-slab-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .as-slab-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .as-slab-name {
        font-size: 1rem;
        padding: 12px;
    }
    .as-favourites-bar {
        align-items: flex-start;
        gap: 10px;
    }
    .as-favourites-hint {
        font-size: .75rem;
    }
    .as-slab-favourite {
        top: 6px;
        right: 6px;
        width: 32px;
        height: 32px;
        font-size: 23px;
    }
    .as-slab-dialog {
        width: 96vw;
        max-width: 96vw;
        padding: 12px;
        border-radius: 9px;
    }
    .as-slab-dialog-top {
        margin-bottom: 10px;
    }
    .as-slab-dialog-stage {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 4px;
    }
    .as-slab-dialog-stage button {
        width: 34px;
        height: 42px;
        font-size: 30px;
    }
    .as-slab-dialog-stage img {
        max-height: 60vh;
    }
    .as-slab-dialog-favourite {
        width: 46px;
        height: 46px;
    }
    .as-slab-dialog-stage .as-slab-dialog-favourite {
        min-width: 155px; height: 38px; padding: 0 12px; bottom: 9px;
    }
    .as-slab-dialog-save-hint {
        font-size: 11px;
    }
    .as-favourites-dialog {
        padding: 16px;
    }
    .as-favourites-item {
        grid-template-columns: 58px minmax(0, 1fr) auto;
        gap: 8px;
    }
    .as-favourites-item img {
        width: 58px;
        height: 48px;
    }
    .as-slab-preview-actions { bottom: 9px; gap: 5px; }
    .as-slab-dialog-stage .as-slab-preview-actions .as-slab-dialog-favourite {
        height: 38px;
        padding: 0 9px;
    }
    .as-slab-dialog-stage .as-slab-preview-list {
        height: 38px;
        padding: 0 9px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .as-slab-card,
    .as-slab-image img,
    .as-slab-dialog .as-slab-close,
    .as-slab-dialog-stage button,
    .as-slab-dialog-favourite {
        transition: none;
    }
}

/* ===== SECTION: pages.css ===== */
/* Shared inner-page CTA foundation. Page-specific spacing remains below. */
.as-about-cta,
.as-materials-cta,
.as-gallery-cta {
    background: var(--dark);
    color: var(--white);
    text-align: center;
}

/* ===== SECTION: quote.css ===== */
/*
 * AstraStone Worktops
 * File: assets/css/quote.css
 * Request a Quote page.
 */

/* ========================================
   1. Page Introduction
======================================== */

.quote-page {
    background: var(--ivory);
    color: var(--ink);
}

.quote-intro {
    padding: 100px 0 90px;
    background: var(--dark);
    color: var(--white);
}

.quote-intro .eyebrow {
    display: block;
    margin-bottom: 22px;
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
}

.quote-intro h1 {
    max-width: 850px;
    margin: 0 0 25px;
    color: var(--white);
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.12;
}

.quote-intro h1 em {
    color: var(--gold-light);
}

.quote-intro p {
    max-width: 650px;
    margin: 0;
    color: var(--hero-description, #F2F2ED);
    font-size: 18px;
    line-height: 1.75;
}

/* ========================================
   2. Quote Details
======================================== */

.quote-details {
    padding: 100px 0;
}

.quote-details-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 70px;
}

.quote-details-content .eyebrow {
    display: block;
    margin-bottom: 18px;
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
}

.quote-details-content h2 {
    max-width: 500px;
    margin: 0 0 25px;
    color: var(--dark);
    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.2;
}

.quote-details-content p {
    margin: 0 0 30px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.quote-requirements {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.quote-requirements li {
    position: relative;
    padding-left: 30px;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
}

.quote-requirements li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--green);
    font-weight: 700;
}

/* ========================================
   3. Quote Form Area
======================================== */

.quote-form-area {
    padding: 42px;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    box-shadow: 0 16px 50px rgb(0 35 25 / 6%);
}

.quote-form-area h2 {
    margin: 0 0 20px;
    color: var(--dark);
    font-size: 28px;
    line-height: 1.3;
}

.quote-form-area p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.quote-form-area .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   4. Tablet
======================================== */

@media (min-width: 768px) and (max-width: 1024px) {
    .quote-intro {
        padding: 80px 0;
    }

    .quote-details {
        padding: 75px 0;
    }

    .quote-details-inner {
        gap: 35px;
    }

    .quote-form-area {
        padding: 30px;
    }
}

/* ========================================
   5. Mobile
======================================== */

@media (max-width: 767px) {
    .quote-intro {
        padding: 65px 0;
    }

    .quote-intro h1 {
        font-size: clamp(36px, 9vw, 48px);
    }

    .quote-intro p {
        font-size: 16px;
    }

    .quote-details {
        padding: 60px 0;
    }

    .quote-details-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .quote-details-content h2 {
        font-size: 32px;
    }

    .quote-form-area {
        padding: 28px 22px;
    }

    .quote-form-area h2 {
        font-size: 25px;
    }
}

/* ===== SECTION: about.css ===== */
/* AstraStone About page — assets/css/about.css */
.as-about h1, .as-about h2, .as-about h3 { font-family: var(--font-display); }
.as-about-hero { background: var(--ivory); }
.as-about-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 650px; align-items: center; gap: clamp(40px, 6vw, 100px); }
.as-about-hero-copy { padding-block: 95px; }
.as-about-hero h1 { max-width: 680px; margin-bottom: 28px; color: var(--dark); font-size: clamp(45px, 5vw, 76px); }
.as-about-hero h1 em, .as-about h2 em { color: var(--green); font-weight: 400; }
.as-about-hero-copy > p { max-width: 490px; margin-bottom: 35px; color: var(--muted); font-size: 18px; }
.as-about-hero .button-row { align-items: center; }
.as-about-text-link { padding-block: 10px; border-bottom: 1px solid var(--gold); color: var(--dark); font-size: 13px; font-weight: 700; }
.as-about-text-link:hover { color: var(--green); }
.as-about-hero-visual { position: relative; align-self: stretch; min-height: 520px; }
.as-about-hero-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.as-about-image-caption { position: absolute; right: 0; bottom: 0; padding: 16px 22px; background: var(--dark); color: var(--white); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.as-about-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 130px); align-items: start; }
.as-about-intro h2, .as-about-section-heading h2, .as-about-approach h2 { color: var(--dark); }
.as-about-prose { padding-top: 36px; }
.as-about-prose p { color: var(--muted); font-size: 17px; line-height: 1.85; }
.as-about-prose p:first-child { color: var(--ink); font-size: 20px; }
.as-about-materials { background: var(--ivory); }
.as-about-section-heading { max-width: 650px; margin-bottom: 55px; }
.as-about-section-heading > p { max-width: 480px; color: var(--muted); }
.as-about-material-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.as-about-material-card { min-width: 0; min-height: 270px; padding: 35px; background: var(--white); border-top: 2px solid var(--gold); }
.as-about-material-number { color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.as-about-material-card h3 { margin: 35px 0 14px; color: var(--dark); font-size: 31px; font-weight: 500; }
.as-about-material-card p { margin-bottom: 0; color: var(--muted); font-size: 15px; }
.as-about-approach { scroll-margin-top: var(--header-height-desktop); }
.as-about-approach-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(45px, 9vw, 140px); }
.as-about-approach-heading > p { max-width: 390px; color: var(--muted); }
.as-about-steps article { display: grid; grid-template-columns: 45px minmax(0, 1fr); gap: 22px; padding: 27px 0; border-top: 1px solid var(--border); }
.as-about-steps article:last-child { border-bottom: 1px solid var(--border); }
.as-about-steps article > span { color: var(--gold); font-family: var(--font-display); font-size: 25px; }
.as-about-steps h3 { margin: 0 0 8px; color: var(--dark); font-size: 23px; font-weight: 500; }
.as-about-steps p { margin: 0; color: var(--muted); font-size: 15px; }
.as-about-cta { padding: 110px 0; }
.as-about-cta-inner { max-width: 800px; }
.as-about-cta h2 { margin-bottom: 22px; color: var(--white); font-size: clamp(38px, 5vw, 66px); }
.as-about-cta h2 em { color: var(--gold-light); }
.as-about-cta p { max-width: 480px; margin: 0 auto 30px; color: var(--white); opacity: .85; }
@media (min-width: 768px) and (max-width: 1024px) {
    .as-about-hero-inner { gap: 35px; min-height: 570px; }
    .as-about-hero-copy { padding-block: 70px; }
    .as-about-hero h1 { font-size: clamp(40px, 5vw, 58px); }
    .as-about-material-card { padding: 25px; }
    .as-about-approach-grid { gap: 50px; }
}
@media (max-width: 767px) {
    .as-about-hero-inner, .as-about-intro-grid, .as-about-material-grid, .as-about-approach-grid { grid-template-columns: 1fr; }
    .as-about-hero-inner { gap: 0; }
    .as-about-hero-copy { padding-block: 65px 45px; }
    .as-about-hero h1 { font-size: clamp(40px, 9vw, 56px); }
    .as-about-hero-copy > p { font-size: 16px; }
    .as-about-hero-visual { min-height: 0; height: 340px; margin-inline: -18px; }
    .as-about-intro-grid, .as-about-approach-grid { gap: 20px; }
    .as-about-prose { padding-top: 0; }
    .as-about-prose p:first-child { font-size: 18px; }
    .as-about-section-heading { margin-bottom: 35px; }
    .as-about-material-grid { gap: 14px; }
    .as-about-material-card { min-height: 0; padding: 28px; }
    .as-about-material-card h3 { margin-top: 20px; }
    .as-about-approach { scroll-margin-top: var(--header-height-mobile); }
    .as-about-steps article { gap: 14px; }
    .as-about-cta { padding: 75px 0; }
}

/* ===== SECTION: page-shared.css ===== */
/* Shared page hero for Contact, Materials and Gallery. */
.as-page-hero { background: var(--ivory); }
.as-page-hero-inner { padding-block: clamp(75px, 9vw, 125px); }
.as-page-hero h1 { max-width: 850px; margin-bottom: 24px; color: var(--dark); font: 500 clamp(44px, 5.5vw, 76px)/1.18 var(--font-display); letter-spacing: -.03em; }
.as-page-hero h1 em { color: var(--green); font-weight: 400; }
.as-page-hero-inner > p { max-width: 640px; margin-bottom: 0; color: var(--muted); font-size: 18px; }
@media (max-width: 767px) {
    .as-page-hero-inner { padding-block: 65px; }
    .as-page-hero h1 { font-size: clamp(40px, 9vw, 56px); }
    .as-page-hero-inner > p { font-size: 16px; }
}

/* ===== SECTION: contact-page.css ===== */
/* Contact page: scoped to its template. */
.as-contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.as-contact-intro h2 { max-width: 480px; color: var(--dark); }
.as-contact-intro h2 em { color: var(--green); }
.as-contact-intro > p { max-width: 470px; color: var(--muted); font-size: 17px; }
.as-contact-facts { margin-top: 48px; border-top: 1px solid var(--border); }
.as-contact-facts > div { padding: 23px 0; border-bottom: 1px solid var(--border); }
.as-contact-facts span { display: block; margin-bottom: 9px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.as-contact-facts strong { color: var(--dark); font-size: 16px; font-weight: 600; }
.as-contact-form { padding: clamp(25px, 4vw, 50px); background: var(--ivory); }
.as-contact-form h3 { margin: 0 0 7px; color: var(--dark); font: 500 31px/1.3 var(--font-display); }
.as-contact-required { margin-bottom: 24px; color: var(--muted); font-size: 13px; }
.as-contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
.as-contact-field { min-width: 0; }
.as-contact-field-wide { grid-column: 1 / -1; }
.as-contact-field label { display: block; margin-bottom: 7px; color: var(--dark); font-size: 13px; font-weight: 700; }
.as-contact-field input, .as-contact-field select, .as-contact-field textarea { display: block; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 0; background: var(--white); color: var(--ink); }
.as-contact-field textarea { resize: vertical; }
.as-contact-field input:focus-visible, .as-contact-field select:focus-visible, .as-contact-field textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.as-contact-form > .button { margin-top: 24px; }
.as-contact-privacy { margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.as-contact-form .form-message { padding: 14px; background: var(--white); color: var(--dark); border-left: 3px solid var(--green); }
.as-contact-form .form-error { border-left-color: var(--gold); }
.as-contact .as-honeypot, .quote-page .as-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; }
@media (min-width: 768px) and (max-width: 1024px) {
    .as-contact-grid { gap: 35px; }
    .as-contact-fields { grid-template-columns: 1fr; }
    .as-contact-field { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    .as-contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .as-contact-facts { margin-top: 30px; }
    .as-contact-fields { grid-template-columns: 1fr; }
    .as-contact-field { grid-column: 1 / -1; }
}

/* ===== SECTION: materials-page.css ===== */
/* Materials page. */
.as-materials-jump { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 35px; }
.as-materials-jump a { display: inline-flex; align-items: center; gap: 15px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--gold); color: var(--dark); font-size: 13px; font-weight: 700; }
.as-materials-jump a:hover { background: var(--white); }
.as-materials-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(35px, 8vw, 120px); align-items: end; }
.as-materials-intro h2 { margin-bottom: 0; color: var(--dark); }
.as-materials-intro h2 em { color: var(--green); }
.as-materials-intro-grid > p { max-width: 510px; margin-bottom: 0; color: var(--muted); font-size: 17px; }
.as-materials-detail { padding-block: 75px; scroll-margin-top: var(--header-height-desktop); }
.as-materials-detail:nth-child(odd) { background: var(--ivory); }
.as-materials-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 7vw, 105px); align-items: center; }
.as-materials-photo { aspect-ratio: 5 / 4; overflow: hidden; background: var(--border); }
.as-materials-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.as-materials-copy h2 { margin-bottom: 24px; color: var(--dark); font-size: clamp(40px, 4.5vw, 64px); }
.as-materials-copy p { max-width: 480px; color: var(--muted); font-size: 16px; }
.as-materials-copy .as-materials-lead { color: var(--ink); font-size: 19px; }
.as-materials-copy .button { margin-top: 18px; }
.as-materials-cta { padding: 105px 0; }
.as-materials-cta h2 { color: var(--white); }
.as-materials-cta h2 em { color: var(--gold-light); }
.as-materials-cta p { max-width: 500px; margin: 0 auto 30px; }
@media (min-width: 768px) and (max-width: 1024px) {
    .as-materials-detail-grid { gap: 35px; }
    .as-materials-detail { padding-block: 60px; }
}
@media (max-width: 767px) {
    .as-materials-intro-grid, .as-materials-detail-grid { grid-template-columns: 1fr; gap: 25px; }
    .as-materials-detail { padding-block: 50px; scroll-margin-top: var(--header-height-mobile); }
    .as-materials-photo { aspect-ratio: 5 / 4; }
    .as-materials-cta { padding: 75px 0; }
}

/* ===== SECTION: gallery-page.css ===== */
/* Gallery page ivory background */
.as-gallery-page,
.as-gallery-page .as-gallery-section {
    background-color: var(--ivory);
}

/* Gallery page presentation. Gallery grid, pagination and lightbox retain gallery.css. */
.as-gallery-heading { display: flex; justify-content: space-between; align-items: end; gap: 35px; margin-bottom: 40px; }
.as-gallery-heading h2 { margin: 0; color: var(--dark); }
.as-gallery-heading h2 em { color: var(--green); }
.as-gallery-heading > p { max-width: 280px; margin: 0; color: var(--muted); }
.as-gallery-page .gallery-empty { background: var(--ivory); }
.as-gallery-cta { padding: 105px 0; }
.as-gallery-cta h2 { color: var(--white); }
.as-gallery-cta h2 em { color: var(--gold-light); }
.as-gallery-cta p { max-width: 490px; margin: 0 auto 30px; color: var(--white); opacity: .85; }
@media (max-width: 767px) {
    .as-gallery-heading { display: block; margin-bottom: 30px; }
    .as-gallery-heading > p { margin-top: 15px; }
    .as-gallery-cta { padding: 75px 0; }
}

/* ===== AstraStone | Forms & Leads integration ===== */
/* Scoped to the Contact and Request a Quote templates. */
.as-external-form .lpt-forms-section,
.as-external-form .lpt-forms-section .lpt-container { width: 100%; max-width: none; padding: 0; }
.as-external-form .lpt-forms-card,
.as-external-form .lpt-forms-section--glass .lpt-forms-card {
  padding: 0; border: 0; border-radius: 0; background: transparent;
  box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.as-external-form .lpt-forms-card::before { display: none; }
.as-external-form .lpt-forms-section .lpt-form { gap: 24px; }
.as-external-form .lpt-forms-section .lpt-form-fields { gap: 18px 20px; }
.as-external-form .lpt-forms-section .lpt-form-field { gap: 8px; }
.as-external-form .lpt-forms-section .lpt-form-field label,
.as-external-form .lpt-forms-section .lpt-form-field-label,
.as-external-form .lpt-forms-section--glass .lpt-form-field label,
.as-external-form .lpt-forms-section--glass .lpt-form-field-label {
  color: var(--dark); font-size: 13px; font-weight: 700;
}
.as-external-form .lpt-forms-section .lpt-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.as-external-form .lpt-forms-section .lpt-form select,
.as-external-form .lpt-forms-section .lpt-form textarea {
  min-height: 50px; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 0; background: var(--white); color: var(--ink);
  box-shadow: none; font: inherit; font-size: 15px;
}
.as-external-form .lpt-forms-section .lpt-form textarea { min-height: 140px; resize: vertical; }
.as-external-form .lpt-forms-section .lpt-form input:hover,
.as-external-form .lpt-forms-section .lpt-form select:hover,
.as-external-form .lpt-forms-section .lpt-form textarea:hover { border-color: var(--gold); background: var(--white); }
.as-external-form .lpt-forms-section .lpt-form input:focus-visible,
.as-external-form .lpt-forms-section .lpt-form select:focus-visible,
.as-external-form .lpt-forms-section .lpt-form textarea:focus-visible {
  border-color: var(--green); outline: 2px solid var(--gold);
  outline-offset: 2px; box-shadow: none;
}
.as-external-form .lpt-forms-section .lpt-form input::placeholder,
.as-external-form .lpt-forms-section .lpt-form textarea::placeholder { color: var(--muted); opacity: .75; }
.as-external-form .lpt-forms-section .lpt-form-checkbox,
.as-external-form .lpt-forms-section .lpt-form-radio { color: var(--ink); }
.as-external-form .lpt-forms-section .lpt-form-checkbox input,
.as-external-form .lpt-forms-section .lpt-form-radio input { accent-color: var(--green); }
.as-external-form .lpt-forms-section .lpt-form-field-help,
.as-external-form .lpt-forms-section .lpt-form-section-heading p { color: var(--muted); }
.as-external-form .lpt-forms-section .lpt-form-section-heading h3 { color: var(--dark); font-family: var(--font-display); }
.as-external-form .lpt-forms-section .lpt-form-section-block.is-section-visible:not([hidden]) {
  border-color: var(--border); background: var(--ivory);
}
.as-external-form .lpt-forms-section .lpt-form-field--file input[type="file"]::file-selector-button {
  border-radius: 0; background: var(--ivory); color: var(--dark); font-weight: 700;
}
.as-external-form .lpt-forms-section .lpt-form-file-list { border-color: var(--border); background: var(--ivory); color: var(--ink); }
.as-external-form .lpt-forms-section .lpt-form-button,
.as-external-form .lpt-forms-section .lpt-form-submit {
  min-height: 52px; border-radius: 0; background: var(--green); color: var(--white);
  box-shadow: none; font-weight: 700; letter-spacing: .025em;
}
.as-external-form .lpt-forms-section .lpt-form-button:hover,
.as-external-form .lpt-forms-section .lpt-form-submit:hover { background: var(--dark); color: var(--white); box-shadow: none; }
.as-external-form .lpt-forms-section .lpt-form-button:focus-visible,
.as-external-form .lpt-forms-section .lpt-form-submit:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.as-external-form .lpt-forms-section .lpt-form-message.is-success { color: var(--dark); }
.as-external-form .lpt-forms-section .lpt-form-message.is-error,
.as-external-form .lpt-forms-section .lpt-form-field-error { color: #a52c2c; }
@media (max-width: 767px) {
  .as-external-form .lpt-forms-section .lpt-form-field--width-50,
  .as-external-form .lpt-forms-section .lpt-form-field--width-33,
  .as-external-form .lpt-forms-section .lpt-form-field--width-25 { flex-basis: 100%; max-width: 100%; }
  .as-external-form .lpt-forms-section .lpt-form-fields { gap: 16px; }
  .as-external-form .lpt-forms-section .lpt-form-button,
  .as-external-form .lpt-forms-section .lpt-form-submit { width: 100%; }
}

/* ========================================
   AstraStone Navigation — Gold Active & Hover
   ======================================== */
@media (min-width: 1025px) {
    .desktop-nav .nav-list > li > a {
        position: relative;
        display: inline-block;
        text-decoration: none;
    }

    .desktop-nav .nav-list > li > a::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -7px;
        height: 2px;
        background: var(--gold);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform .25s ease;
        pointer-events: none;
    }

    .desktop-nav .nav-list > li > a:hover::after,
    .desktop-nav .nav-list > li > a:focus-visible::after,
    .desktop-nav .nav-list > li.current-menu-item > a::after,
    .desktop-nav .nav-list > li.current-menu-ancestor > a::after,
    .desktop-nav .nav-list > li.current_page_item > a::after,
    .desktop-nav .nav-list > li > a[aria-current="page"]::after {
        transform: scaleX(1);
    }

    .site-header .desktop-nav .nav-list > li > a:hover,
    .site-header .desktop-nav .nav-list > li > a:focus-visible,
    .site-header .desktop-nav .nav-list > li.current-menu-item > a,
    .site-header .desktop-nav .nav-list > li.current-menu-ancestor > a,
    .site-header .desktop-nav .nav-list > li.current_page_item > a,
    .site-header .desktop-nav .nav-list > li > a[aria-current="page"],
    .home .site-header:not(.is-scrolled) .desktop-nav .nav-list > li > a:hover,
    .home .site-header:not(.is-scrolled) .desktop-nav .nav-list > li.current-menu-item > a {
        color: var(--gold) !important;
    }
}

.mobile-nav-list > li > a {
    transition: color .2s ease, padding-left .2s ease;
}
.mobile-nav-list > li > a:hover,
.mobile-nav-list > li > a:focus-visible,
.mobile-nav-list > li.current-menu-item > a,
.mobile-nav-list > li.current-menu-ancestor > a,
.mobile-nav-list > li.current_page_item > a,
.mobile-nav-list > li > a[aria-current="page"] {
    color: var(--gold);
    padding-left: 10px;
    border-left: 2px solid var(--gold);
}

@media (prefers-reduced-motion: reduce) {
    .desktop-nav .nav-list > li > a::after,
    .mobile-nav-list > li > a {
        transition: none;
    }
}

/* Portrait CQS catalogue pages: preserve the complete image in every view. */
.as-slab-dialog-image-wrap > img {
    width: auto;
    max-width: 100%;
    max-height: min(76dvh, 900px);
    height: auto;
    object-fit: contain;
}
.as-favourites-item img {
    height: 102px;
    object-fit: contain;
}

/* Quartz Range: portrait catalogue pages, never cropped. */
.as-quartz-range .as-slab-image { aspect-ratio: 641 / 864; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.as-quartz-range .as-slab-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.as-quartz-range .as-slab-dialog-image-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Homepage portrait quartz cards: 641:864 original ratio. */
.as-home-collection-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.as-home-collection-card img { aspect-ratio: 641 / 864; height: auto; object-fit: contain; }
@media (min-width: 768px) and (max-width: 1199px) { .as-home-collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .as-home-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* Media Library gallery: landscape-first cards, two columns on mobile. */
@media (max-width: 767px) {
    .as-gallery-page .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* Homepage project gallery: landscape cards, original full image in lightbox. */
.as-home-project-gallery .gallery-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.as-home-project-gallery .gallery-card { margin:0; min-width:0; }
.as-home-project-gallery .gallery-open { display:block; width:100%; aspect-ratio:4 / 3; overflow:hidden; }
.as-home-project-gallery .gallery-open img { width:100%; height:100%; object-fit:cover; }
@media (max-width:767px) {
  .as-home-project-gallery .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
}
