/*
Theme Name: Metron Fencing (Earthy)
Theme URI: https://mild-peachpuff-cobra-42.hostingersite.com
Description: Custom theme for Metron Fencing: fencing and landscaping in Melbourne's west and north west. Includes a Projects portfolio, suburb service-area pages, a quote form that saves requests in the dashboard, and local SEO schema.
Version: 1.1.1
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: metron-fencing
Tags: light
*/

:root {
	--accent: #F26B1D;
	--bg: #16191C;
	--bg-2: #1F2327;
	--line: #2C3136;
	--text: #F3F1EE;
	--muted: #B9BEC3;
	--radius: 6px;
	--head: "Archivo", "Arial Black", system-ui, sans-serif;
	--body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: #ff8a45; }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--bg); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 20px; border-radius: 4px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--body); font-size: 16px; line-height: 1.2; }
.btn--lg { padding: 16px 28px; }
.btn--accent { background: var(--accent); color: var(--bg); }
.btn--accent:hover { background: #ff8a45; color: var(--bg); }
.btn--outline { border-color: var(--text); color: var(--text); }
.btn--outline:hover { background: var(--text); color: var(--bg); }
.btn--dark { background: var(--bg); color: var(--text); }
.btn--dark:hover { background: #000; color: var(--text); }
.btn--block { width: 100%; padding: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { margin-right: auto; }
.brand__text { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--head); font-weight: 900; font-size: 22px; letter-spacing: .5px; }
.brand__text:hover { color: var(--text); }
.logo-mark { color: var(--accent); flex: none; }
.custom-logo { max-height: 56px; width: auto; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 0; display: block; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--accent); }
.site-nav .sub-menu { display: none; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; height: 2px; background: var(--text); position: relative; content: ""; }
.nav-toggle__bars::before { top: -8px; position: absolute; width: 100%; }
.nav-toggle__bars::after { top: 6px; position: absolute; width: 100%; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero__text { flex: 1 1 480px; min-width: 0; }
.hero__media { flex: 1 1 420px; min-height: 420px; border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.kicker { margin: 0 0 16px; color: var(--accent); font-weight: 600; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; }
.kicker a { text-decoration: none; }
.hero__title { margin: 0; font-weight: 900; font-size: clamp(38px, 6vw, 60px); line-height: 1.02; text-transform: uppercase; }
.hero__lead { margin: 24px 0 32px; font-size: 18px; color: var(--muted); max-width: 520px; }
.ph-label, .hero__media:empty { color: #8A9096; font-size: 14px; text-align: center; padding: 16px; }
.hero__media, .project-card__img { background: repeating-linear-gradient(135deg, #2b2f33 0 14px, #30353a 14px 28px); }

/* Trust bar */
.trust-bar { background: var(--accent); color: var(--bg); }
.trust-bar__list { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; }

/* Sections */
.section { padding-top: 64px; padding-bottom: 32px; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.section__head .section__title { margin: 0; }
.section__title { margin: 0 0 28px; font-weight: 900; font-size: clamp(30px, 4vw, 40px); text-transform: uppercase; }
.section__title--sm { font-size: 26px; margin-top: 48px; }

.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.service-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; color: var(--text); text-decoration: none; transition: border-color .15s; }
.service-card:hover { border-color: var(--accent); color: var(--text); }
.service-card__bar { display: block; width: 40px; height: 4px; background: var(--accent); margin-bottom: 18px; }
.service-card__title { margin: 0 0 8px; font-weight: 700; font-size: 22px; }
.service-card p { margin: 0; color: var(--muted); font-size: 15px; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.project-grid--2 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.project-card__link { color: var(--text); text-decoration: none; display: block; }
.project-card__link:hover .project-card__title { color: var(--accent); }
.project-card__img { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.project-card__img img { width: 100%; height: 100%; object-fit: cover; }
.project-card__title { margin: 14px 0 4px; font-family: var(--body); font-size: 18px; font-weight: 600; }
.project-card__meta { margin: 0; color: var(--muted); font-size: 14px; }

.chips { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; border: 1px solid #3A4046; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--text); text-decoration: none; }
.chip:hover, .chip.is-active { border-color: var(--accent); color: var(--accent); }
.chips--filter { margin-bottom: 32px; }

.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split__main { flex: 999 1 520px; min-width: 0; }
.split__side { flex: 1 1 360px; min-width: 0; position: sticky; top: 96px; }

/* Page hero and content */
.page-hero { border-bottom: 1px solid var(--line); padding: 56px 0 40px; background: linear-gradient(0deg, var(--bg-2), var(--bg)); }
.page-hero__title { margin: 0; font-weight: 900; font-size: clamp(32px, 5vw, 52px); text-transform: uppercase; }
.page-hero__meta { margin: 12px 0 0; color: var(--muted); }
.page-image { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.prose { color: #D9DCDF; }
.prose h2 { font-size: 26px; margin: 36px 0 12px; color: var(--text); text-transform: uppercase; }
.prose h3 { font-size: 20px; margin: 28px 0 10px; color: var(--text); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--accent); }
.prose .wp-block-gallery { gap: 8px; }
.prose figure { margin: 24px 0; }
.home-content { margin-top: 32px; }
.area-grid { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.area-card { display: block; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; color: var(--text); text-decoration: none; font-weight: 600; }
.area-card:hover { border-color: var(--accent); color: var(--accent); }

/* Quote form */
.quote-form { background: var(--text); color: var(--bg); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 96px; }
.quote-form__title { margin: 0; font-weight: 900; font-size: 28px; text-transform: uppercase; }
.quote-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.quote-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.quote-form input, .quote-form select, .quote-form textarea { padding: 12px; border: 1px solid #8D9399; border-radius: 4px; font: inherit; font-weight: 400; font-size: 16px; background: #fff; color: var(--bg); width: 100%; }
.quote-form input[type="file"] { padding: 8px; }
.quote-form .hp { position: absolute; left: -9999px; }
.form-notice { margin: 0; padding: 12px 14px; border-radius: 4px; font-weight: 600; }
.form-notice--ok { background: #DDF3E2; color: #12512A; }
.form-notice--err { background: #FBE1DD; color: #8A1C0E; }

/* Pagination */
.pagination .nav-links { display: flex; gap: 8px; margin-top: 40px; }
.pagination .page-numbers { padding: 10px 14px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); text-decoration: none; }
.pagination .current { border-color: var(--accent); color: var(--accent); }

.post-item { border-bottom: 1px solid var(--line); padding: 24px 0; }
.post-item h2 { margin: 0 0 4px; font-size: 24px; }
.post-item h2 a { color: var(--text); text-decoration: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; color: var(--muted); font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.site-footer__brand { font-family: var(--head); font-weight: 900; font-size: 20px; color: var(--text); margin: 0 0 8px; }
.site-footer__h { font-family: var(--body); font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text); margin: 0 0 12px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer__areas, .site-footer nav ul { list-style: none; margin: 0; padding: 0; columns: 2; }
.site-footer__areas li { margin-bottom: 4px; }
.site-footer__base { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 28px; font-size: 14px; }
.mobile-call { display: none; }

/* Phones and tablets */
@media (max-width: 900px) {
	.nav-toggle { display: block; order: 3; }
	.btn--call { order: 2; padding: 10px 14px; font-size: 14px; }
	.site-header__inner { flex-wrap: wrap; gap: 12px; }
	.site-nav { order: 4; width: 100%; display: none; }
	.site-nav.is-open { display: block; }
	.site-nav .menu { flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
	.site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
	.hero { padding-top: 40px; padding-bottom: 40px; gap: 32px; }
	.hero__media, .hero__media img { min-height: 260px; }
	.split__side { position: static; }
	.section { padding-top: 48px; }
}
@media (max-width: 560px) {
	.btn--call { display: none; }
	.brand__text { font-size: 19px; }
	.quote-form { padding: 22px; }
	.mobile-call { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; justify-content: center; align-items: center; min-height: 52px; border-radius: 6px; background: var(--accent); color: var(--bg); font-weight: 800; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
	body { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Footer credit */
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer__credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__credit a:hover { color: #D9A77E; }

/* Free quote menu item */
.site-nav .menu-item--quote > a { color: var(--accent); font-weight: 700; }

/* ===== Look C: Earthy Premium overrides ===== */
:root {
	--accent: #7A4A26;
	--bg: #F5F0E8;
	--bg-2: #FFFDF9;
	--line: #DDD3C4;
	--text: #2A2622;
	--muted: #5A5148;
	--dark: #2A2622;
	--radius: 2px;
	--head: "Fraunces", Georgia, "Times New Roman", serif;
}
h1, h2, h3 { font-weight: 500; }
a:hover { color: #5C3519; }
.btn { border-radius: 2px; font-weight: 600; }
.btn--accent { color: #fff; }
.btn--accent:hover { background: #5C3519; color: #fff; }
.btn--outline { border-color: var(--text); color: var(--text); border-width: 1.5px; }
.btn--outline:hover { background: var(--text); color: var(--bg); }
.btn--dark { background: var(--accent); color: #fff; }
.btn--dark:hover { background: #5C3519; color: #fff; }
.brand__text { font-weight: 700; font-size: 26px; letter-spacing: 0; }
.brand__text em { font-weight: 500; }
.hero__title, .section__title, .page-hero__title, .quote-form__title, .prose h2 { text-transform: none; font-weight: 500; }
.hero__title { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; }
.kicker { letter-spacing: 3px; }
.hero__media, .project-card__img { background: repeating-linear-gradient(135deg, #E4DACB 0 14px, #EBE3D6 14px 28px); }
.ph-label { color: #6E6458; }
.trust-bar { background: transparent; color: var(--text); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-bar__list { font-weight: 600; font-size: 13px; letter-spacing: 2px; }
.section__title { font-size: clamp(32px, 4vw, 44px); }
.band-dark { background: var(--dark); color: #F5F0E8; }
.band-dark .section { padding-bottom: 64px; }
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); column-gap: 56px; }
.service-row { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid #4A433C; color: #F5F0E8; text-decoration: none; }
.service-row:hover { color: #F5F0E8; }
.service-row:hover .service-row__title { color: #D9A77E; }
.service-row__num { font-family: var(--head); font-size: 22px; color: #D9A77E; min-width: 36px; }
.service-row__title { display: block; font-family: var(--head); font-size: 24px; margin-bottom: 6px; }
.service-row__text { display: block; color: #C9BFB2; font-size: 15px; line-height: 1.6; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; counter-reset: step; }
.steps li { border-top: 3px solid var(--accent); padding-top: 18px; counter-increment: step; }
.steps h3 { margin: 0 0 8px; font-family: var(--body); font-size: 18px; font-weight: 600; }
.steps h3::before { content: counter(step) ". "; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.project-card__title { font-family: var(--head); font-size: 22px; font-weight: 500; }
.chip { border-color: #BFB3A3; color: var(--text); }
.chip:hover, .chip.is-active { border-color: var(--accent); color: var(--accent); }
.page-hero { background: var(--bg); }
.page-hero__title { font-size: clamp(34px, 5vw, 56px); }
.prose { color: #3A342E; }
.prose h2 { font-size: 30px; }
.service-card, .area-card { background: var(--bg-2); }
.area-card:hover { color: var(--accent); }
.quote-form { background: var(--bg-2); color: var(--text); border: 1px solid var(--line); }
.quote-form__title { font-size: 30px; }
.quote-form input, .quote-form select, .quote-form textarea { border-color: #8F8373; border-radius: 2px; color: var(--text); }
.site-header { background: var(--bg); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { background: var(--text); }
.site-footer { background: var(--dark); color: #C9BFB2; border-top: 0; }
.site-footer__brand, .site-footer__h { color: #F5F0E8; }
.site-footer__brand .accent { color: #D9A77E; }
.site-footer a { color: #C9BFB2; }
.site-footer a:hover { color: #D9A77E; }
.site-footer__base { border-top-color: #4A433C; }
.mobile-call { color: #fff; border-radius: 2px; }
.skip-link { color: #fff; }

/* Compact quote box (when a chatbot handles enquiries) */
.quote-mini { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; scroll-margin-top: 96px; }
.quote-mini__title { margin: 0 0 6px; font-family: var(--head); font-size: 20px; }
.quote-mini__text { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.quote-mini .form-notice { margin-bottom: 12px; }
.quote-mini__more summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--accent); min-height: 44px; display: flex; align-items: center; }
.quote-mini__more[open] summary { margin-bottom: 12px; }
.quote-form--compact { padding: 20px; gap: 12px; }
body.quote-compact .split__side { flex-basis: 300px; }
@media (max-width: 560px) {
	body.has-chat-space .mobile-call { right: 92px; }
}
