/*
Theme Name: Coastal Finishes
Theme URI: https://artyard.com.au/
Author: ArtYard
Author URI: https://artyard.com.au/
Description: One-page website theme for Coastal Finishes – Painters & Decorators, Northern Beaches. Matt's logo and job photos are built in. All wording, contact details and photos can be changed in Appearance → Customise → "Coastal Finishes website". No plugins needed. No forms, tracking or external requests; fonts are bundled.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coastal-finishes
*/

:root {
	--coal: #252122;      /* the charcoal behind Matt's logo */
	--coal-2: #1b1819;
	--coal-3: #322d2e;
	--gold: #d39a35;      /* the gold in the logo */
	--gold-2: #e8b95c;
	--gold-ink: #8a5f14;  /* gold dark enough to read on white */
	--silver: #c9c9cb;
	--paper: #fbfaf7;
	--sand: #f3efe8;
	--ink: #231f20;
	--muted: #6a6463;
	--line: rgba(37, 33, 34, .12);
	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--radius: 18px;
	--shadow: 0 26px 60px rgba(27, 24, 25, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
html.cf-noscroll { overflow: hidden; }
body.cf {
	margin: 0; background: var(--paper); color: var(--ink);
	font-family: var(--sans); font-size: 17px; line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -.015em; line-height: 1.08; margin: 0 0 .5em; }
h2 { font-size: clamp(2.1rem, 4vw, 3.3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.cf-wrap { max-width: 1220px; margin: 0 auto; padding: 0 28px; }
.cf-skip { position: absolute; left: -9999px; }
.cf-skip:focus { left: 1rem; top: 1rem; z-index: 200; background: var(--gold); color: var(--coal); padding: .6rem 1rem; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }

.cf-eyebrow {
	display: flex; align-items: center; gap: 12px;
	font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
	color: var(--gold-ink); margin: 0 0 16px;
}
.cf-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); }

/* ---------- Buttons ---------- */
.cf-btn {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--gold); color: var(--coal-2); text-decoration: none; font-weight: 600;
	padding: 16px 28px; border-radius: 999px; border: 2px solid var(--gold);
	transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
}
.cf-btn:hover { background: var(--gold-2); border-color: var(--gold-2); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(211, 154, 53, .35); }
.cf-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.cf-btn--ghost:hover { background: #fff; color: var(--coal); border-color: #fff; box-shadow: none; }
.cf-btn--dark { background: var(--coal); color: #fff; border-color: var(--coal); margin-top: 10px; }
.cf-btn--dark:hover { background: var(--coal-3); border-color: var(--coal-3); box-shadow: 0 12px 28px rgba(27, 24, 25, .25); }
.cf-btn--small { padding: 10px 18px; font-size: .92rem; }
.cf-btn svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.cf-header { position: sticky; top: 0; z-index: 50; background: var(--coal); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.admin-bar .cf-header { top: 32px; }
.cf-header__in { display: flex; align-items: center; justify-content: space-between; height: 100px; gap: 20px; }
.cf-brand { display: block; line-height: 0; }
.cf-brand__logo { height: 88px; width: auto; }
.cf-nav { display: flex; align-items: center; gap: 30px; }
.cf-nav > a:not(.cf-btn) { color: #e9e6e3; text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; padding: 6px 0; }
.cf-nav > a:not(.cf-btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--gold); transition: right .2s ease; }
.cf-nav > a:not(.cf-btn):hover::after { right: 0; }

/* ---------- Hero ---------- */
.cf-hero { position: relative; background: var(--coal-2); color: #fff; min-height: min(88vh, 860px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.cf-hero__bg { position: absolute; inset: 0; }
.cf-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.cf-hero__bg::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(27, 24, 25, .92) 0%, rgba(27, 24, 25, .72) 38%, rgba(27, 24, 25, .15) 72%, rgba(27, 24, 25, 0) 100%),
		linear-gradient(0deg, rgba(27, 24, 25, .85) 0%, rgba(27, 24, 25, 0) 38%);
}
.cf-hero__in { position: relative; width: 100%; padding-top: 110px; padding-bottom: 56px; }
.cf-hero .cf-eyebrow { color: var(--gold-2); }
.cf-hero h1 { color: #fff; font-size: clamp(2.9rem, 6.4vw, 5.6rem); max-width: 11.5em; margin-bottom: 24px; text-wrap: balance; }
.cf-hero__text { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #e4dfdb; max-width: 34em; margin-bottom: 34px; }
.cf-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.cf-trust {
	position: relative; width: 100%; list-style: none; margin: 0 auto; padding-top: 22px; padding-bottom: 26px;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; border-top: 1px solid rgba(255, 255, 255, .16);
}
.cf-trust li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: #f1ece7; }
.cf-trust svg { flex: 0 0 26px; width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: rgba(211, 154, 53, .22); color: var(--gold-2); }

/* ---------- Sections ---------- */
.cf-section { padding: 112px 0; }
.cf-section--sand { background: var(--sand); }
.cf-section--dark { background: var(--coal); color: #e9e6e3; }
.cf-section--dark h2 { color: #fff; }
.cf-section--dark .cf-eyebrow { color: var(--gold-2); }
.cf-section h2 { max-width: 15em; margin-bottom: 48px; text-wrap: balance; }

/* Services */
.cf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cf-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.cf-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cf-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.cf-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cf-card:hover .cf-card__img img { transform: scale(1.05); }
.cf-card__body { padding: 28px 28px 32px; position: relative; }
.cf-card__num { font-family: var(--serif); color: var(--gold); font-size: 1rem; letter-spacing: .1em; display: block; margin-bottom: 8px; }
.cf-card p { color: var(--muted); margin: 0; }

/* Gallery */
.cf-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; grid-auto-flow: dense; gap: 14px; }
.cf-tile { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--coal-3); }
.cf-tile--tall { grid-row: span 2; }
.cf-tile--wide { grid-column: span 2; }
.cf-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .3s ease; }
.cf-tile:hover img, .cf-tile:focus-visible img { transform: scale(1.06); }
.cf-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(27, 24, 25, .7) 0%, rgba(27, 24, 25, 0) 45%); opacity: .75; transition: opacity .3s ease; }
.cf-tile:hover::after { opacity: 1; }
.cf-tile__tag { position: absolute; left: 16px; bottom: 14px; z-index: 1; color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.cf-tile__tag::before { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--gold); vertical-align: middle; margin-right: 8px; }

/* Lightbox */
.cf-lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(20, 17, 18, .95); display: none; align-items: center; justify-content: center; padding: 24px 76px; }
.cf-lightbox.is-open { display: flex; }
.cf-lightbox figure { margin: 0; text-align: center; }
.cf-lightbox img { max-width: 100%; max-height: 82vh; width: auto; height: auto; border-radius: 8px; margin: 0 auto; }
.cf-lightbox figcaption { color: var(--silver); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-top: 14px; }
.cf-lightbox button { position: absolute; background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; width: 52px; height: 52px; font-size: 30px; line-height: 1; cursor: pointer; font-family: var(--sans); }
.cf-lightbox button:hover { background: var(--gold); color: var(--coal); border-color: var(--gold); }
.cf-lightbox__close { top: 18px; right: 18px; }
.cf-lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.cf-lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }

/* Steps */
.cf-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cf-steps li { background: #fff; border-radius: var(--radius); padding: 34px 30px; border: 1px solid var(--line); }
.cf-steps span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--coal); color: var(--gold-2); font-family: var(--serif); font-size: 1.4rem; margin-bottom: 20px; }
.cf-steps p { color: var(--muted); margin: 0; }

/* About */
.cf-about__in { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.cf-about__media { position: relative; }
.cf-about__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cf-about__media::before { content: ""; position: absolute; left: -18px; top: -18px; width: 42%; height: 42%; border-left: 3px solid var(--gold); border-top: 3px solid var(--gold); border-radius: var(--radius) 0 0 0; }
.cf-badge { position: absolute; right: -26px; bottom: 34px; background: var(--coal); color: #fff; border-radius: 16px; padding: 18px 22px; box-shadow: 0 16px 36px rgba(27, 24, 25, .3); display: flex; align-items: center; gap: 12px; }
.cf-badge strong { font-family: var(--serif); font-weight: 600; font-size: 2.4rem; color: var(--gold-2); line-height: 1; }
.cf-badge span { font-size: .85rem; color: #d9d4d0; max-width: 7em; line-height: 1.3; }
.cf-about__copy h2 { margin-bottom: 26px; }
.cf-about__copy h2 + p { font-family: var(--serif); font-size: clamp(1.35rem, 2.1vw, 1.75rem); line-height: 1.35; color: var(--ink); }
.cf-about__copy p { font-size: 1.1rem; color: #4a4443; }

/* Waterfront band */
.cf-band { position: relative; height: clamp(200px, 26vw, 360px); overflow: hidden; background: var(--coal); }
.cf-band img { width: 100%; height: 100%; object-fit: cover; }
.cf-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(37, 33, 34, .82) 0%, rgba(37, 33, 34, .1) 60%); }
.cf-band p { position: absolute; z-index: 1; left: 0; right: 0; bottom: 26px; margin: 0; text-align: center; color: #fff; font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3.2vw, 2.6rem); padding: 0 20px; }

/* Contact */
.cf-cta { background: var(--coal); color: #e9e6e3; padding: 100px 0; position: relative; overflow: hidden; }
.cf-cta::before { content: ""; position: absolute; right: -180px; top: -220px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(closest-side, rgba(211, 154, 53, .22), transparent); }
.cf-cta__in { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cf-cta .cf-eyebrow { color: var(--gold-2); }
.cf-cta h2 { color: #fff; font-size: clamp(2.4rem, 4.6vw, 3.8rem); }
.cf-cta p { color: #c9c3be; font-size: 1.15rem; margin: 0; }
.cf-cta__links { display: grid; gap: 14px; }
.cf-cta__big {
	display: block; text-decoration: none; color: #fff; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 16px; padding: 20px 26px; font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.9rem);
	transition: background .15s ease, border-color .15s ease, transform .15s ease; overflow-wrap: anywhere;
}
.cf-cta__big small { display: block; font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 2px; }
.cf-cta__big:hover { background: rgba(211, 154, 53, .14); border-color: var(--gold); transform: translateX(4px); }

/* Footer */
.cf-footer { background: var(--coal-2); color: #a8a19d; font-size: .95rem; padding: 48px 0 28px; }
.cf-footer a { color: #e9e6e3; text-decoration: none; }
.cf-footer a:hover { color: var(--gold-2); }
.cf-footer__in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.cf-footer__in > div:first-child span { display: block; }
.cf-footer__name { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: #fff; margin-bottom: 4px; }
.cf-footer__links { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.cf-footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 22px; font-size: .85rem; }
.cf-footer__menu { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.cf-credit a { color: var(--gold-2); font-weight: 600; }

/* Mobile call bar */
.cf-callbar { display: none; }

/* Plain pages */
.cf-page { max-width: 820px; }
.cf-page h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.cf-nav > a:not(.cf-btn) { display: none; }
	.cf-trust { grid-template-columns: repeat(2, 1fr); }
	.cf-cards, .cf-steps { grid-template-columns: 1fr; }
	.cf-card { display: grid; grid-template-columns: 40% 1fr; }
	.cf-card__img { aspect-ratio: auto; min-height: 200px; }
	.cf-about__in, .cf-cta__in { grid-template-columns: 1fr; gap: 48px; }
	.cf-about__media { max-width: 520px; }
	.cf-badge { right: 14px; }
	.cf-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
}
@media (max-width: 640px) {
	body.cf { font-size: 16px; padding-bottom: 76px; }
	.cf-wrap { padding: 0 20px; }
	.cf-header__in { height: 76px; }
	.cf-brand__logo { height: 66px; }
	.cf-nav .cf-btn--small { display: none; }
	.cf-hero { min-height: 0; }
	.cf-hero__bg::after { background: linear-gradient(0deg, rgba(27, 24, 25, .95) 0%, rgba(27, 24, 25, .78) 55%, rgba(27, 24, 25, .35) 100%); }
	.cf-hero__in { padding-top: 150px; padding-bottom: 36px; }
	.cf-actions .cf-btn { width: 100%; justify-content: center; }
	.cf-trust { grid-template-columns: 1fr; gap: 10px; padding-bottom: 30px; }
	.cf-section { padding: 76px 0; }
	.cf-section h2 { margin-bottom: 32px; }
	.cf-card { display: block; }
	.cf-card__img { aspect-ratio: 4 / 3; min-height: 0; }
	.cf-gallery { grid-auto-rows: 170px; gap: 10px; }
	.cf-tile__tag { left: 10px; bottom: 10px; font-size: .66rem; letter-spacing: .1em; }
	.cf-about__media::before { left: -10px; top: -10px; }
	.cf-lightbox { padding: 70px 10px 80px; }
	.cf-lightbox__prev { left: 24%; top: auto; bottom: 14px; transform: none; }
	.cf-lightbox__next { right: 24%; top: auto; bottom: 14px; transform: none; }
	.cf-callbar {
		display: flex; align-items: center; justify-content: center; gap: 10px;
		position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
		background: var(--gold); color: var(--coal-2); text-decoration: none; font-weight: 700;
		padding: 16px; border-radius: 999px; box-shadow: 0 12px 30px rgba(27, 24, 25, .45);
	}
	.cf-callbar svg { width: 18px; height: 18px; }
}
@media (max-width: 782px) { .admin-bar .cf-header { top: 46px; } }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.cf-btn, .cf-card, .cf-card__img img, .cf-tile img, .cf-cta__big { transition: none; }
}
