/*
Theme Name: Scaffold Brand
Author: Scaffold Brand
Description: Lightweight, enquiry-first catalogue theme for a UAE scaffolding and building-materials supplier.
Version: 1.0.0
Text Domain: scaffold-brand
*/

:root {
	--ink: #10202f;
	--ink-soft: #294052;
	--steel: #6d7d87;
	--line: #d8e0e3;
	--paper: #f7f6f1;
	--white: #fff;
	--amber: #f5b72d;
	--amber-dark: #c68100;
	--shadow: 0 18px 50px rgba(16, 32, 47, .12);
	--radius: 1.2rem;
	--container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 20; padding: .65rem 1rem; color: var(--white); background: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.05; letter-spacing: -.025em; }
h1 { font-size: clamp(2.7rem, 7vw, 6.4rem); max-width: 9ch; margin-bottom: 1.35rem; }
h2 { font-size: clamp(2.1rem, 4vw, 4rem); margin-bottom: 1rem; }
h3 { font-size: 1.45rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: var(--amber-dark); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: currentColor; }
.muted { color: var(--steel); }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(247,246,241,.94); border-bottom: 1px solid rgba(216,224,227,.8); backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 900; letter-spacing: .03em; }
.brand-mark { display: grid; width: 2.6rem; height: 2.6rem; place-items: center; color: var(--ink); background: var(--amber); font-weight: 950; transform: skew(-8deg); }
.brand-copy { max-width: 12rem; font-size: .86rem; line-height: 1.12; text-transform: uppercase; }
.primary-nav ul { display: flex; align-items: center; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.primary-nav a { text-decoration: none; font-size: .9rem; font-weight: 750; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--amber-dark); }
.menu-toggle { display: none; width: 2.9rem; height: 2.9rem; padding: .65rem; border: 1px solid var(--line); border-radius: 50%; background: var(--white); cursor: pointer; }
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 4px 0; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(5, 16, 25, .58); opacity: 0; transition: opacity .28s ease; }
.mobile-menu[hidden], .mobile-menu-backdrop[hidden] { display: none !important; }
.mobile-menu-backdrop.is-open { opacity: 1; }
.mobile-menu { position: fixed; inset: 0; z-index: 30; display: flex; width: 100%; min-width: 100%; min-height: 100dvh; flex-direction: column; overflow-y: auto; overflow-x: hidden; padding: max(1.4rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.4rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left)); color: var(--white); background: var(--ink); transform: translateX(100%); transition: transform .34s cubic-bezier(.22,.8,.28,1); }
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.mobile-menu-head .eyebrow { color: var(--amber); }
.menu-close { width: 2.6rem; height: 2.6rem; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: var(--white); background: transparent; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.mobile-nav { padding-block: 1.4rem; }
.mobile-nav ul { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.mobile-nav a { display: block; padding: .85rem .2rem; color: var(--white); font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; text-decoration: none; }
.mobile-nav a:hover, .mobile-nav a:focus-visible { color: var(--amber); }
.mobile-social-block { margin-bottom: 1rem; }
.mobile-social-label { display: block; margin-bottom: .65rem; color: #9fb3bd; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.mobile-menu-socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.mobile-menu-socials a { width: 100%; height: 3.2rem; justify-content: center; border-color: rgba(255,255,255,.72); border-radius: .8rem; color: var(--white); background: transparent; box-shadow: none; }
.mobile-menu-socials svg { width: 1.2rem; height: 1.2rem; color: #fff; }
.mobile-menu-socials svg path { fill: #fff !important; }
.mobile-menu-socials a:hover, .mobile-menu-socials a:focus-visible { color: var(--ink); border-color: var(--white); background: var(--white); }
.mobile-menu-socials a:hover svg, .mobile-menu-socials a:focus-visible svg { color: var(--ink); }
.mobile-menu-socials a:hover svg path, .mobile-menu-socials a:focus-visible svg path { fill: var(--ink) !important; }
.mobile-menu-cta { margin-top: auto; }
body.menu-open { overflow: hidden; }
body.menu-open .menu-toggle { visibility: hidden; pointer-events: none; }
.header-action, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .72rem 1.15rem; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-size: .88rem; font-weight: 850; transition: transform .2s ease, background .2s ease, color .2s ease; }
.header-tools { display: flex; align-items: center; gap: .9rem; }
.social-links { display: flex; align-items: center; gap: .35rem; }
.social-links a { display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft); text-decoration: none; transition: color .2s ease, background .2s ease, transform .2s ease; }
.social-links a:hover, .social-links a:focus-visible { color: var(--ink); background: var(--amber); transform: translateY(-2px); }
.social-links svg { width: 1rem; height: 1rem; }
.footer-socials { margin-top: 1.1rem; }
.site-footer .social-links a { border-color: rgba(255,255,255,.2); color: #d3dfe3; }
.site-footer .social-links a:hover, .site-footer .social-links a:focus-visible { color: var(--ink); }
.button:hover, .button:focus-visible, .header-action:hover, .header-action:focus-visible { transform: translateY(-2px); }
.button-primary, .header-action { color: var(--ink); background: var(--amber); }
.button-primary:hover, .button-primary:focus-visible, .header-action:hover, .header-action:focus-visible { background: #ffc94e; }
.button-dark { color: var(--white); background: var(--ink); }
.button-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.button-small { min-height: 2.5rem; padding: .55rem .9rem; font-size: .8rem; }

.hero { position: relative; overflow: hidden; color: var(--white); background: var(--ink); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .16; background: linear-gradient(110deg, transparent 20%, var(--amber) 20.2%, transparent 20.6%, transparent 62%, var(--amber) 62.2%, transparent 62.6%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; min-height: min(760px, calc(100vh - 76px)); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding-block: 5rem; }
.hero-copy p { max-width: 38rem; color: #d4e0e5; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.2rem; }
.hero-media { position: relative; min-height: 460px; background: #243b4b; }
.hero-media::after { content: ""; position: absolute; inset: 8%; border: 1px solid rgba(245,183,45,.55); transform: rotate(3deg); pointer-events: none; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .88; mix-blend-mode: screen; }
.hero-stamp { position: absolute; right: 1.5rem; bottom: 1.5rem; z-index: 1; max-width: 9rem; padding: .8rem; color: var(--ink); background: var(--amber); font-size: .72rem; font-weight: 900; line-height: 1.2; text-transform: uppercase; }

.proof-strip { position: relative; z-index: 2; margin-top: -2.2rem; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.proof-item { padding: 1.3rem 1.5rem; background: var(--white); border-right: 1px solid var(--line); }
.proof-item:last-child { border-right: 0; }
.proof-item strong { display: block; margin-bottom: .2rem; font-size: .92rem; }
.proof-item span { color: var(--steel); font-size: .84rem; }

.section { padding-block: 6.5rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.2rem; }
.section-heading > div { max-width: 40rem; }
.section-heading p { color: var(--steel); max-width: 34rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.product-card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-card-media { aspect-ratio: 1 / 1; overflow: hidden; background: #dce2e1; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover img { transform: scale(1.04); }
.product-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.1rem; }
.product-card h3 { margin-bottom: .5rem; font-size: 1.25rem; }
.product-card p { flex: 1; color: var(--steel); font-size: .9rem; }
.product-meta { display: inline-block; margin-bottom: .65rem; color: var(--amber-dark); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.product-price { display: block; margin: .15rem 0 1rem; color: var(--ink); font-size: .95rem; }
.product-price-large { margin: 0 0 1rem; font-size: 1.25rem; }

.split-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: center; }
.image-stack { position: relative; min-height: 450px; }
.image-stack-main, .image-stack-small { position: absolute; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.image-stack-main { inset: 0 12% 8% 0; }
.image-stack-main img, .image-stack-small img { width: 100%; height: 100%; object-fit: cover; }
.image-stack-small { right: 0; bottom: 0; width: 45%; height: 44%; border: 10px solid var(--paper); }
.feature-list { display: grid; gap: 1rem; margin-top: 1.7rem; }
.feature { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.feature-number { display: grid; width: 2.2rem; height: 2.2rem; place-items: center; border-radius: 50%; color: var(--ink); background: var(--amber); font-size: .8rem; font-weight: 900; }
.feature strong { display: block; margin-bottom: .15rem; }
.feature p { margin: 0; color: var(--steel); font-size: .9rem; }

.dark-section { color: var(--white); background: var(--ink); }
.dark-section .muted, .dark-section .section-heading p { color: #b5c6ce; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.category-card { position: relative; min-height: 220px; overflow: hidden; padding: 1.5rem; border-radius: var(--radius); color: var(--white); background: var(--ink-soft); text-decoration: none !important; transition: transform .2s ease, background .2s ease; }
.category-card:hover, .category-card:focus-visible { color: var(--white); background: #34546a; transform: translateY(-3px); }
.category-card::after { content: "↗"; position: absolute; right: 1.2rem; bottom: .8rem; color: var(--amber); font-size: 2rem; }
.category-card h3, .category-card h3 a { max-width: 9ch; color: var(--white); font-size: 1.7rem; text-decoration: none !important; }
.category-card p { max-width: 22rem; color: #d5e1e5; font-size: .88rem; text-decoration: none !important; }

.contact-section { color: var(--white); background: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-panel { padding: 2rem; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.06); }
.contact-details { display: grid; gap: 1rem; margin-top: 1.5rem; }
.contact-detail { display: flex; gap: .8rem; align-items: start; }
.contact-detail span { color: var(--amber); font-size: 1.2rem; }
.contact-detail strong { display: block; }
.contact-detail a { color: #e6eff2; text-decoration: none; }
.contact-detail a:hover { color: var(--amber); }
.contact-detail .location-link { display: block; color: var(--amber); }
.contact-detail .map-link { display: inline-block; margin-top: .25rem; color: #b5c6ce; font-size: .78rem; font-weight: 750; }
.contact-detail .map-link:hover, .contact-detail .map-link:focus-visible { color: var(--white); }
.footer-location-link { color: #d3dfe3; }
.contact-note { margin: 1.5rem 0 0; color: #b5c6ce; font-size: .9rem; }
.whatsapp-qr { display: grid; justify-items: center; gap: .7rem; max-width: 27rem; margin-top: 1.6rem; padding: .85rem; border: 1px solid rgba(255,255,255,.14); border-radius: .9rem; background: rgba(255,255,255,.05); text-align: center; }
.whatsapp-qr img { width: 138px; height: 138px; padding: .55rem; border-radius: .6rem; background: var(--white); object-fit: contain; }
.whatsapp-qr strong { display: block; margin-bottom: .15rem; }
.whatsapp-qr p { max-width: 18rem; margin: 0; color: #b5c6ce; font-size: .82rem; }
.card-arrow { display: inline-block; margin-left: .25rem; transition: transform .2s ease; }
.button:hover .card-arrow, .button:focus-visible .card-arrow { transform: translateX(3px); }
.product-card h3 a, .product-card-media, .site-footer a, .contact-section a, .category-card, .back-link { text-decoration: none; }
.whatsapp-float { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 15; display: inline-flex; align-items: center; gap: .55rem; min-height: 3.2rem; padding: .75rem 1rem; border-radius: 999px; color: var(--white); background: #20b86a; box-shadow: 0 12px 30px rgba(8, 91, 48, .28); font-size: .84rem; font-weight: 850; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.whatsapp-float:hover, .whatsapp-float:focus-visible { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(8, 91, 48, .38); }
.whatsapp-float svg { width: 1.45rem; height: 1.45rem; }
body.menu-open .whatsapp-float { opacity: 0; pointer-events: none; }
.enquiry-form { display: grid; gap: .8rem; margin-top: 1.4rem; }
.enquiry-form label { display: grid; gap: .3rem; color: #dce7ea; font-size: .78rem; font-weight: 750; }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea { width: 100%; padding: .7rem .8rem; border: 1px solid rgba(255,255,255,.2); border-radius: .55rem; background: rgba(255,255,255,.08); color: var(--white); font: inherit; }
.enquiry-form option { color: var(--ink); }
.enquiry-form textarea { min-height: 5.5rem; resize: vertical; }

.site-footer { padding-block: 3rem 1.4rem; color: #d3dfe3; background: #0a1722; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .8fr; gap: 2rem; padding-bottom: 2.4rem; }
.site-footer .brand { color: var(--white); }
.site-footer p, .site-footer li { color: #9fb3bd; font-size: .88rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: .45rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); color: #849aa6; font-size: .78rem; }

.archive-hero { padding-block: 4.5rem 3.2rem; color: var(--white); background: var(--ink); }
.archive-hero h1 { max-width: 12ch; margin-bottom: .8rem; font-size: clamp(3rem, 7vw, 5.4rem); }
.archive-hero p { max-width: 42rem; color: #cad8dc; }
.catalogue-toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin-bottom: 2rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.catalogue-toolbar label { display: grid; flex: 1 1 15rem; gap: .35rem; color: var(--ink-soft); font-size: .78rem; font-weight: 800; }
.catalogue-toolbar input, .catalogue-toolbar select { width: 100%; min-height: 2.9rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--paper); color: var(--ink); font: inherit; }
.empty-state { padding: 3rem; border: 1px dashed var(--steel); border-radius: var(--radius); text-align: center; }
.single-product { padding-block: 4.5rem; }
.single-product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.single-product-image { overflow: hidden; border-radius: var(--radius); background: #dce2e1; }
.single-product-image img { width: 100%; max-height: 700px; object-fit: cover; }
.single-product h1 { max-width: 12ch; font-size: clamp(2.8rem, 5vw, 5.5rem); }
.product-summary { color: var(--steel); font-size: 1.1rem; }
.product-content { margin-top: 2rem; }
.product-specs { margin: 1.5rem 0; padding: 1.2rem 1.4rem; border-left: 3px solid var(--amber); background: var(--white); }
.product-specs p:last-child { margin-bottom: 0; }
.back-link { display: inline-flex; margin-bottom: 1.5rem; color: var(--steel); font-size: .85rem; font-weight: 800; text-decoration: none; }

@media (max-width: 1024px) {
	.hero-grid, .split-section, .contact-grid, .single-product-grid { grid-template-columns: 1fr; }
	.hero-grid { min-height: auto; }
	.hero-copy { padding-block: 4.5rem 3.5rem; }
	.hero-media { min-height: 420px; }
	.product-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 821px) and (max-width: 1024px) {
	.contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
	.contact-panel { padding: 1.35rem; }
}
@media (max-width: 991px) {
	.primary-nav { display: none; }
	.menu-toggle { display: block; }
	.header-tools .header-action, .header-tools .social-links { display: none; }
}
@media (min-width: 992px) {
	.mobile-menu, .mobile-menu-backdrop { display: none !important; }
}
@media (max-width: 620px) {
	.container { width: min(calc(100% - 1.25rem), var(--container)); }
	.header-inner { min-height: 68px; }
	.brand-copy { max-width: 9rem; font-size: .72rem; }
	.header-action { padding-inline: .8rem; font-size: .76rem; }
	.header-tools { gap: .45rem; }
	.header-tools .social-links { display: none; }
	h1 { font-size: clamp(2.7rem, 15vw, 4.4rem); }
	.section { padding-block: 4.5rem; }
	.section-heading { display: block; }
	.section-heading .button { margin-top: .5rem; }
	.proof-grid, .product-grid, .category-grid, .footer-grid { grid-template-columns: 1fr; }
	.proof-item { border-right: 0; border-bottom: 1px solid var(--line); }
	.proof-item:last-child { border-bottom: 0; }
	.image-stack { min-height: 360px; }
	.footer-bottom { display: block; }
	.footer-bottom span { display: block; margin-top: .4rem; }
	.whatsapp-float { right: .85rem; bottom: .85rem; width: 3.25rem; height: 3.25rem; justify-content: center; padding: .75rem; }
	.whatsapp-float span { display: none; }
	.whatsapp-qr img { width: 126px; height: 126px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
