/*
Theme Name: Fortis Windows & Doors
Theme URI: https://www.fortiswd.com.au
Author: Fortis Aluminium Pty Ltd
Description: Custom theme for Fortis Windows & Doors, Rosehill NSW. Aluminium windows, doors, Glide-Away Walls and commercial framing. On activation it creates all product pages, the main menu and the home page.
Version: 2.9.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: fortis
*/

:root {
	--orange: #ff6a00;
	--orange-dark: #e25d00;
	--black: #111111;
	--charcoal: #1d1d1f;
	--grey-900: #2a2a2d;
	--grey-600: #6b6b70;
	--grey-300: #d6d6d9;
	--grey-100: #f4f4f5;
	--white: #ffffff;
	--radius: 4px;
	--max: 1200px;
	--font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--charcoal);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); text-decoration: none; }
a:hover { color: var(--orange); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--black); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute; left: -9999px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: .8rem; }

/* Buttons */
.btn, .wp-block-button__link, button[type="submit"] {
	display: inline-block; padding: 14px 26px; border-radius: var(--radius);
	font-weight: 700; font-size: 1rem; line-height: 1; border: 2px solid var(--orange);
	background: var(--orange); color: var(--white); cursor: pointer; transition: .2s;
}
.btn:hover, .wp-block-button__link:hover, button[type="submit"]:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-dark { background: var(--black); border-color: var(--black); }
.btn-dark:hover { background: var(--grey-900); border-color: var(--grey-900); }

/* Top bar + header */
.topbar { background: var(--black); color: #bbb; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--grey-300); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--black); }
.brand img, .custom-logo { max-height: 54px; width: auto; }
.wordmark { font-weight: 900; font-size: 1.6rem; letter-spacing: .06em; color: var(--black); line-height: 1; }
.wordmark span { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .32em; color: var(--orange); margin-top: 4px; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { font-weight: 700; color: var(--black); white-space: nowrap; }

/* Navigation */
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 10px 12px; color: var(--black); font-weight: 600; font-size: .95rem; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--orange); }
.main-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 250px; background: var(--white);
	border-top: 3px solid var(--orange); box-shadow: 0 12px 30px rgba(0,0,0,.12);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { padding: 9px 18px; font-weight: 500; border-bottom: 1px solid var(--grey-100); }
.main-nav .sub-menu .sub-menu { top: 0; left: 100%; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--black); margin: 5px 0; }

@media (max-width: 1080px) {
	.header-phone { display: none; }
	.nav-toggle { display: block; }
	.main-nav { position: fixed; inset: 78px 0 0 0; background: var(--white); overflow-y: auto; display: none; padding: 12px 24px 40px; }
	.main-nav.open { display: block; }
	.main-nav > ul { flex-direction: column; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 14px; }
	.main-nav a { border-bottom: 1px solid var(--grey-100); }
}

/* Hero */
.hero { position: relative; background: var(--black); color: #e8e8e8; overflow: hidden; }
.hero::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(100deg, rgba(17,17,17,.96) 35%, rgba(17,17,17,.55) 100%);
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.lead { font-size: 1.15rem; color: #cfcfd2; max-width: 600px; }
.hero .btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-ticks { list-style: none; padding: 0; margin: 30px 0 0; display: flex; gap: 22px; flex-wrap: wrap; font-size: .95rem; }
.hero-ticks li::before { content: "✓"; color: var(--orange); font-weight: 900; margin-right: 8px; }
.hero-art svg { width: 100%; height: auto; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 64px; } .hero-art { display: none; } }

/* Sections */
.section { padding: 88px 0; }
.section-grey { background: var(--grey-100); }
.section-dark { background: var(--black); color: #d4d4d7; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
	display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--grey-300);
	border-radius: var(--radius); overflow: hidden; color: var(--charcoal); transition: .2s; height: 100%;
}
.card:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.08); color: var(--charcoal); }
.card-media { aspect-ratio: 4/3; background: var(--grey-100); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media svg { width: 46%; height: auto; }
.card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: .35em; }
.card-body p { font-size: .95rem; color: var(--grey-600); margin-bottom: 1em; }
.card-link { margin-top: auto; font-weight: 700; color: var(--orange-dark); font-size: .92rem; }
.card-link::after { content: " →"; }

.feature { padding: 28px; border-left: 3px solid var(--orange); background: var(--white); }
.section-dark .feature { background: var(--grey-900); }
.feature h3 { margin-bottom: .4em; }
.feature p { margin: 0; font-size: .96rem; }

/* Featured product band */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.spotlight-media { background: var(--grey-900); border-radius: var(--radius); aspect-ratio: 5/4; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.spotlight-media img { width: 100%; height: 100%; object-fit: cover; }
.tick-list { list-style: none; padding: 0; margin: 0 0 1.5em; }
.tick-list li { padding-left: 28px; position: relative; margin-bottom: .55em; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg); }
@media (max-width: 900px) { .spotlight { grid-template-columns: 1fr; } }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0; font-size: 2.4rem; font-weight: 900; color: var(--orange); line-height: 1; }

/* CTA band */
.cta-band { background: var(--orange); color: var(--white); padding: 56px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin: 0 0 .2em; }
.cta-band p { margin: 0; font-size: 1.08rem; }

/* Page header + content */
.page-hero { background: var(--black); color: #cfcfd2; padding: 64px 0 56px; border-bottom: 4px solid var(--orange); }
.page-hero h1 { color: var(--white); margin-bottom: .25em; }
.breadcrumbs { font-size: .85rem; margin-bottom: 14px; color: #999; }
.breadcrumbs a { color: #ddd; }
.entry { padding: 64px 0 80px; }
.entry-content { max-width: 860px; }
.entry-content.wide { max-width: none; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content ul { padding-left: 1.2em; }
.entry-content ul li { margin-bottom: .4em; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--grey-300); padding: 10px 14px; text-align: left; vertical-align: top; }
.entry-content th { background: var(--black); color: var(--white); width: 34%; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; }
.product-aside { position: sticky; top: 100px; align-self: start; background: var(--grey-100); padding: 28px; border-top: 4px solid var(--orange); }
.product-aside h3 { margin-bottom: .5em; }
.product-aside ul { list-style: none; padding: 0; margin: 0 0 1em; }
.product-aside li a { display: block; padding: 7px 0; border-bottom: 1px solid var(--grey-300); color: var(--charcoal); font-size: .95rem; }
.product-aside li a:hover, .product-aside li.current a { color: var(--orange-dark); }
@media (max-width: 1000px) { .product-layout { grid-template-columns: 1fr; } .product-aside { position: static; } }

/* Forms */
.fortis-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.fortis-form .full { grid-column: 1 / -1; }
.fortis-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 5px; }
.fortis-form input[type="text"], .fortis-form input[type="email"], .fortis-form input[type="tel"], .fortis-form select, .fortis-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--grey-300); border-radius: var(--radius); font: inherit; font-size: 1rem; background: var(--white);
}
.fortis-form input:focus, .fortis-form select:focus, .fortis-form textarea:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
.fortis-form .checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 16px; font-size: .94rem; }
.fortis-form .checks label { font-weight: 400; display: flex; gap: 8px; align-items: center; margin: 0; }
.fortis-form .hp { position: absolute; left: -9999px; }
.form-note { font-size: .85rem; color: var(--grey-600); }
.notice { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px; font-weight: 600; }
.notice-ok { background: #e9f8ee; border-left: 4px solid #1e9e4a; }
.notice-err { background: #fdecec; border-left: 4px solid #c62828; }
@media (max-width: 700px) { .fortis-form { grid-template-columns: 1fr; } .fortis-form .checks { grid-template-columns: 1fr 1fr; } }

/* Footer */
.site-footer { background: var(--black); color: #a9a9ae; font-size: .94rem; padding-top: 72px; }
.site-footer h4 { color: var(--white); font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1em; }
.site-footer a { color: #d4d4d7; }
.site-footer a:hover { color: var(--orange); }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: .5em; }
.footer-bottom { border-top: 1px solid #2c2c2f; margin-top: 56px; padding: 22px 0; font-size: .84rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer .wordmark { color: var(--white); }
@media (max-width: 900px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr; } }

/* Mobile call bar */
.mobile-cta { display: none; }
@media (max-width: 700px) {
	.mobile-cta { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 99; }
	.mobile-cta a { padding: 15px; text-align: center; font-weight: 700; color: var(--white); background: var(--black); }
	.mobile-cta a + a { background: var(--orange); }
	body { padding-bottom: 52px; }
}

/* Block editor alignment helpers */
.alignwide { max-width: var(--max); margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }
.wp-block-image { margin: 1.5em 0; }

/* Spec tables built with the Table block */
.entry-content .spec-table td:first-child { background: var(--black); color: var(--white); width: 34%; }
.entry-content .spec-table td:first-child strong { color: var(--white); }
.entry-content p.lead { font-size: 1.15rem; color: var(--grey-900); }

/* v1.1 – menu button, photos, gallery */
.main-nav > ul > li.menu-btn > a { background: var(--orange); color: var(--white); border-radius: var(--radius); padding: 10px 18px; margin-left: 6px; }
.main-nav > ul > li.menu-btn > a:hover { background: var(--orange-dark); color: var(--white); }
.main-nav .menu-item-has-children > a::after { content: "▾"; font-size: .75em; margin-left: 6px; color: var(--orange); }
@media (max-width: 1080px) { .main-nav > ul > li.menu-btn > a { margin: 12px 0 0; text-align: center; } }
.product-photo { margin: 0 0 2em; border-radius: var(--radius); overflow: hidden; }
.product-photo img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1em 0 2em; }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
.page-hero.has-photo { background-size: cover; background-position: center; position: relative; }
.page-hero.has-photo::before { content: ""; position: absolute; inset: 0; background: rgba(17,17,17,.72); }
.page-hero.has-photo .container { position: relative; }

/* v1.1 – home page layout */
.hero .container.hero-single { grid-template-columns: 1fr; max-width: var(--max); padding-top: 110px; padding-bottom: 90px; }
.hero .container.hero-single > div { max-width: 760px; }
.trust-bar { position: relative; z-index: 2; background: rgba(0,0,0,.55); border-top: 1px solid rgba(255,255,255,.12); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.trust-item strong { display: block; color: var(--orange); font-size: 1.6rem; font-weight: 900; line-height: 1.1; }
.trust-item span { font-size: .9rem; color: #ddd; }
@media (max-width: 800px) { .trust-grid { grid-template-columns: 1fr 1fr; } }

.range-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--grey-300); border-radius: var(--radius); overflow: hidden; }
.range-card:hover { border-color: var(--orange); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.range-card h3 a { color: var(--black); }
.count-badge { display: inline-block; background: var(--orange); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 9px; border-radius: 20px; margin-bottom: 10px; align-self: flex-start; }
.range-links { list-style: none; padding: 0; margin: 0; }
.range-links li a { display: block; padding: 7px 0; border-top: 1px solid var(--grey-100); color: var(--charcoal); font-weight: 600; font-size: .94rem; }
.range-links li a::after { content: " →"; color: var(--orange); }
.range-links li a:hover { color: var(--orange-dark); }

.measure-band { background: var(--grey-100); border-top: 4px solid var(--orange); padding: 48px 0; }
.measure-band .container { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.measure-band h2 { margin-bottom: .3em; }
.measure-band p { margin: 0; max-width: 720px; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-outline-dark { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline-dark:hover { background: var(--black); color: #fff; border-color: var(--black); }

.why { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.legal-line { font-size: .85rem; color: var(--grey-600); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tile { background: var(--black); color: #ccc; padding: 26px; border-radius: var(--radius); border-bottom: 4px solid var(--orange); }
.tile strong { display: block; color: #fff; font-size: 1.25rem; margin-bottom: 6px; }
.tile span { font-size: .92rem; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }

.faq-wrap { max-width: 900px; }
.faq details { background: var(--white); border: 1px solid var(--grey-300); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; position: relative; padding-right: 50px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--orange); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; margin: 0; }

.cta-checks { list-style: none; padding: 0; margin: 10px 0 0; display: flex; gap: 20px; flex-wrap: wrap; }
.cta-checks li::before { content: "✓ "; font-weight: 900; }

.btn-phone { border: 2px solid var(--black); padding: 10px 16px; border-radius: var(--radius); }
.btn-phone:hover { background: var(--black); color: #fff; }

/* =========================================================
   v1.2 – LIGHT / WHITE DESIGN (overrides earlier dark styles)
   ========================================================= */
body { background: #fff; }
.topbar { background: #f6f6f7; color: var(--grey-600); border-bottom: 1px solid var(--grey-300); }
.topbar a { color: var(--black); }

/* Hero: interior photo with white fade on the left, dark text */
.hero { background: #fff; color: var(--charcoal); }
.hero::after { background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.82) 38%, rgba(255,255,255,.15) 68%, rgba(255,255,255,0) 100%); }
.hero-bg { background-position: center right; }
.hero h1 { color: var(--black); }
.hero p.lead { color: var(--grey-900); }
.hero .container.hero-single { padding-top: 130px; padding-bottom: 130px; }
.trust-bar { background: #fff; border-top: 1px solid var(--grey-300); border-bottom: 1px solid var(--grey-300); }
.trust-item span { color: var(--grey-600); }
@media (max-width: 700px) { .hero::after { background: rgba(255,255,255,.85); } }

/* Inner page headers */
.page-hero { background: #f6f6f7; color: var(--grey-900); border-bottom: 3px solid var(--orange); }
.page-hero h1 { color: var(--black); }
.breadcrumbs, .breadcrumbs span { color: var(--grey-600); }
.breadcrumbs a { color: var(--charcoal); }
.page-hero.has-photo::before { background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.85) 50%, rgba(255,255,255,.55) 100%); }

/* Former dark sections become white */
.section-dark { background: #fff; color: var(--charcoal); border-top: 1px solid var(--grey-300); border-bottom: 1px solid var(--grey-300); }
.section-dark h2, .section-dark h3 { color: var(--black); }
.section-dark .feature { background: #f6f6f7; }
.section-grey { background: #f8f8f9; }
.spotlight-media { background: #f6f6f7; border: 1px solid var(--grey-300); }
.tile { background: #fff; color: var(--grey-600); border: 1px solid var(--grey-300); border-bottom: 4px solid var(--orange); }
.tile strong { color: var(--black); }
.measure-band { background: #fff; border-top: 1px solid var(--grey-300); border-bottom: 1px solid var(--grey-300); }
.entry-content .spec-table td:first-child { background: #f6f6f7; color: var(--black); }
.entry-content .spec-table td:first-child strong { color: var(--black); }
.product-aside { background: #f8f8f9; }

/* Light footer */
.site-footer { background: #f6f6f7; color: var(--grey-600); border-top: 4px solid var(--orange); }
.site-footer h4, .site-footer .wordmark { color: var(--black); }
.site-footer a { color: var(--charcoal); }
.site-footer a:hover { color: var(--orange-dark); }
.footer-bottom { border-top: 1px solid var(--grey-300); }

/* v1.4 – logo twice the size */
:root { --header-h: 140px; }
.site-header .container { min-height: var(--header-h); }
.brand img, .custom-logo { max-height: 108px; width: auto; }
.wordmark { font-size: 3.2rem; }
.wordmark span { font-size: 1.24rem; margin-top: 6px; }
@media (max-width: 1080px) {
	:root { --header-h: 96px; }
	.brand img, .custom-logo { max-height: 72px; }
	.wordmark { font-size: 2.2rem; }
	.wordmark span { font-size: .85rem; }
	.main-nav { inset: var(--header-h) 0 0 0; }
}
.site-footer .wordmark { font-size: 1.6rem; }
.site-footer .wordmark span { font-size: .62rem; }

/* v1.5 – projects + 8-item menu fits */
.project-meta { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--orange-dark); margin-bottom: 6px; }
.main-nav a { padding: 10px 10px; }
@media (max-width: 1360px) { .header-phone { display: none; } }
@media (max-width: 1240px) {
	.nav-toggle { display: block; }
	.main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--white); overflow-y: auto; display: none; padding: 12px 24px 40px; }
	.main-nav.open { display: block; }
	.main-nav > ul { flex-direction: column; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 14px; }
	.main-nav a { border-bottom: 1px solid var(--grey-100); }
	.main-nav > ul > li.menu-btn > a { margin: 12px 0 0; text-align: center; }
}

/* v1.6 – logo half the v1.4 size */
:root { --header-h: 88px; }
.brand img, .custom-logo { max-height: 54px; }
.wordmark { font-size: 1.6rem; }
.wordmark span { font-size: .62rem; margin-top: 4px; }
@media (max-width: 1240px) {
	:root { --header-h: 72px; }
	.brand img, .custom-logo { max-height: 40px; }
}
@media (max-width: 1080px) {
	:root { --header-h: 72px; }
	.brand img, .custom-logo { max-height: 40px; }
	.wordmark { font-size: 1.4rem; }
	.wordmark span { font-size: .55rem; }
}

/* v1.7 – smaller header logo */
:root { --header-h: 76px; }
.brand img, .custom-logo { max-height: 42px; }
.wordmark { font-size: 1.35rem; }
.wordmark span { font-size: .55rem; }
@media (max-width: 1240px) {
	:root { --header-h: 64px; }
	.brand img, .custom-logo { max-height: 34px; }
}
@media (max-width: 1080px) {
	:root { --header-h: 64px; }
	.brand img, .custom-logo { max-height: 34px; }
	.wordmark { font-size: 1.2rem; }
}

/* =========================================================
   v1.8 – full-width layout, Other Products, stacked menu item
   ========================================================= */
:root { --max: 100%; --gutter: clamp(20px, 4vw, 72px); }
.container { max-width: none; width: 100%; padding-left: var(--gutter); padding-right: var(--gutter); }
.alignwide { max-width: none; }
.entry-content { max-width: 1100px; }
.entry-content.wide { max-width: none; }
.product-layout { grid-template-columns: minmax(0, 1fr) 380px; }
.hero .container.hero-single > div { max-width: 820px; }

/* product range cards: fit as many as the screen allows */
.grid-range { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tiles { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }

/* wide screens: show more product / gallery cards per row */
@media (min-width: 1600px) {
	.grid-3 { grid-template-columns: repeat(4, 1fr); }
	.project-grid { grid-template-columns: repeat(4, 1fr); }
}

/* menu: 9 items – vertically centred, stacked "Project / Examples" */
.main-nav > ul { align-items: center; }
.main-nav > ul > li.menu-stacked > a { line-height: 1.1; text-align: center; padding-top: 4px; padding-bottom: 4px; }
@media (max-width: 1500px) { .header-phone { display: none; } }
@media (max-width: 1360px) {
	.nav-toggle { display: block; }
	.main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--white); overflow-y: auto; display: none; padding: 12px 24px 40px; }
	.main-nav.open { display: block; }
	.main-nav > ul { flex-direction: column; align-items: stretch; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 14px; }
	.main-nav a { border-bottom: 1px solid var(--grey-100); }
	.main-nav > ul > li.menu-stacked > a { text-align: left; line-height: inherit; padding: 10px; }
	.main-nav > ul > li.menu-stacked > a br { display: none; }
	.main-nav > ul > li.menu-btn > a { margin: 12px 0 0; text-align: center; }
}

/* Project Examples gallery: photo-first cards */
.project-grid .card-media { aspect-ratio: 4/3; }
.project-grid .card-body { padding: 14px 18px 18px; }
.project-grid .card-body p { display: none; }

/* v2.1 – project pages show the whole photo (portrait or landscape) */
.single-fortis_project .product-photo img { aspect-ratio: auto; max-height: 80vh; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; }
.single-fortis_project .product-photo { background: #f6f6f7; text-align: center; }
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: var(--radius); }

/* v2.4 – product diagrams, drawings, photos, logos */
.product-logo { margin: 0 0 1.2em; }
.product-logo img { height: 46px; width: auto; }
.product-diagrams, .product-photos { margin: 2.2em 0; }
.diagram-box { background: #fff; border: 1px solid var(--grey-300); border-top: 4px solid var(--orange); padding: 18px 18px 8px; border-radius: var(--radius); }
.diagram-box svg { width: 100%; height: auto; display: block; }
.diagram-note { font-size: .82rem; color: var(--grey-600); margin: .6em 0 0; }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 1em 0; }
.fx-fig { margin: 0; background: #f6f6f7; border: 1px solid var(--grey-300); border-radius: var(--radius); overflow: hidden; }
.fx-fig img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.fx-fig.is-drawing img { object-fit: contain; background: #fff; padding: 8px; }
.fx-fig figcaption { font-size: .85rem; padding: 8px 12px; color: var(--grey-900); }
.product-photo.is-contain img { object-fit: contain; background: #f6f6f7; }
.entry-content .cassette-table td:first-child { width: auto; }

/* v2.6 – full-width technical drawings */
.fx-fig.is-wide { grid-column: 1 / -1; }
.fx-fig.is-wide img { aspect-ratio: auto; height: auto; padding: 0; }

/* v2.8 – Good to know tips */
.product-tips { margin: 2em 0; padding: 22px 24px 8px; background: #f6f6f7; border-left: 5px solid var(--orange); border-radius: var(--radius); }
.product-tips h2 { margin-top: 0; }
