/**
 * Clive Portfolio — main stylesheet.
 * Palette: paper #F7F5F1 · ink #121212 · navy #0A3D62 · gold #C9A227 · muted #5B5F63 · divider #E2DFD8
 */

:root {
	--clive-bg: #F7F5F1;
	--clive-ink: #121212;
	--clive-navy: #0A3D62;
	--clive-navy-dark: #082f4d;
	--clive-gold: #C9A227;
	--clive-gold-dark: #a8861e;
	--clive-muted: #5B5F63;
	--clive-divider: #E2DFD8;
	--clive-white: #ffffff;
	--clive-radius: 6px;
	--clive-shadow: 0 10px 30px rgba(18, 18, 18, 0.08);
}

/* ---------- Base ---------- */
a { color: var(--clive-navy); }
img { max-width: 100%; height: auto; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}
.screen-reader-text:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 100000;
}
h1, h2, h3, h4 { color: var(--clive-ink); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4,
.hero h1, .hero h2, .hero h3 { color: var(--clive-white); }
p { margin: 0 0 1.25rem; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-block; padding: 0.85rem 1.9rem; border-radius: var(--clive-radius);
	font-weight: 600; font-size: 0.95rem; text-decoration: none; letter-spacing: 0.02em;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	border: 2px solid transparent; cursor: pointer; font-family: inherit;
}
.btn--gold { background: var(--clive-gold); color: var(--clive-ink); }
.btn--gold:hover, .btn--gold:focus-visible { background: var(--clive-gold-dark); color: var(--clive-white); }
.btn--outline { border-color: rgba(255, 255, 255, 0.7); color: var(--clive-white); }
.btn--outline:hover, .btn--outline:focus-visible { background: rgba(255, 255, 255, 0.12); }
.btn--navy { background: var(--clive-navy); color: var(--clive-white); }
.btn--navy:hover, .btn--navy:focus-visible { background: var(--clive-navy-dark); }

/* ---------- Image fallbacks ---------- */
.image-fallback {
	display: inline-block; width: 100%; min-height: 160px; border-radius: var(--clive-radius);
	background: linear-gradient(135deg, var(--clive-navy) 0%, var(--clive-gold) 100%);
}
.hero__logo .image-fallback { width: 220px; height: 120px; margin-inline: auto; }
.about__portrait .image-fallback { aspect-ratio: 4 / 5; min-height: 320px; }
.projects__hectare-logo.image-fallback { width: 200px; height: 90px; }

/* ---------- Hero ---------- */
.hero { background-position: center; background-size: cover; }
.hero__inner { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.hero__logo-img { max-width: 220px; max-height: 110px; width: auto; height: auto; margin-bottom: 1rem; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }
.hero__eyebrow {
	text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8rem; font-weight: 600;
	color: var(--clive-gold); margin: 0;
}
.hero__heading { max-width: 20ch; }
.hero__sub { font-size: 1.2rem; max-width: 46ch; color: rgba(255, 255, 255, 0.9); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.25rem; }
.hero__credentials {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; list-style: none;
	margin: 2.5rem 0 0; padding: 1rem 0 0; border-top: 1px solid rgba(255, 255, 255, 0.25);
	font-size: 0.85rem; color: rgba(255, 255, 255, 0.85);
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--light { background: var(--clive-white); }
.section--tint { background: var(--clive-bg); }
.section--navy { background: var(--clive-navy); color: rgba(255, 255, 255, 0.9); }
.section--navy p, .section--navy li { color: rgba(255, 255, 255, 0.85); }
.section__heading { max-width: 24ch; }
.section__heading--light { color: var(--clive-white); }
.section__intro { color: var(--clive-muted); max-width: 58ch; }
.section--navy .section__intro { color: rgba(255, 255, 255, 0.7); }
.section__grid--2col {
	display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center;
}
@media (min-width: 900px) {
	.section__grid--2col { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
}
.section--navy .section__grid--2col { align-items: start; }

/* ---------- About ---------- */
.about__portrait { margin: 0; }
.about__portrait-img { border-radius: var(--clive-radius); box-shadow: var(--clive-shadow); width: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.about__content p { color: var(--clive-muted); font-size: 1.05rem; }
.pull-quote {
	margin: 2rem 0 0; padding: 1.5rem 0 0; border-top: 3px solid var(--clive-gold);
}
.pull-quote p {
	font-family: "Playfair Display", serif; font-size: 1.4rem; line-height: 1.4;
	font-style: italic; color: var(--clive-ink); margin: 0;
}

/* ---------- Services ---------- */
.services__grid {
	display: grid; grid-template-columns: 1fr; gap: 1.5rem; list-style: none;
	margin: 3rem 0 0; padding: 0; counter-reset: service;
}
@media (min-width: 640px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services__grid { grid-template-columns: repeat(4, 1fr); } }
.services__item {
	background: var(--clive-white); border: 1px solid var(--clive-divider); border-radius: var(--clive-radius);
	padding: 1.75rem 1.5rem; transition: border-color 0.2s ease, transform 0.2s ease;
}
.services__item:hover { border-color: var(--clive-gold); transform: translateY(-4px); }
.services__number {
	display: block; font-family: "Playfair Display", serif; font-size: 2rem; color: var(--clive-gold);
	margin-bottom: 0.75rem; line-height: 1;
}
.services__item h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.services__item p { color: var(--clive-muted); font-size: 0.92rem; margin: 0; }

/* ---------- Partnerships ---------- */
.partnerships__grid {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; list-style: none;
	margin: 3rem 0 0; padding: 0;
}
@media (min-width: 900px) { .partnerships__grid { grid-template-columns: repeat(4, 1fr); } }
.partnerships__card {
	background: var(--clive-bg); border: 1px solid var(--clive-divider); border-radius: var(--clive-radius);
	padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: 0.4rem;
}
.partnerships__logo-mark {
	width: 52px; height: 52px; border-radius: 50%; background: var(--clive-navy); color: var(--clive-gold);
	display: grid; place-items: center; font-family: "Playfair Display", serif; font-size: 1.5rem;
	margin-bottom: 0.5rem;
}
.partnerships__card h3 { font-size: 1.05rem; margin: 0; }
.partnerships__card p { color: var(--clive-muted); font-size: 0.88rem; margin: 0; flex: 1; }
.partnerships__link { font-weight: 600; font-size: 0.9rem; text-decoration: none; margin-top: 0.75rem; }
.partnerships__link:hover { text-decoration: underline; }

/* ---------- Projects / Hectare ---------- */
.projects__role {
	display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center;
	padding-bottom: 3.5rem; margin-bottom: 3.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
@media (min-width: 900px) { .projects__role { grid-template-columns: 240px 1fr; } }
.projects__hectare-logo { max-width: 220px; background: var(--clive-white); padding: 1rem; border-radius: var(--clive-radius); }
.fact-list { list-style: none; margin: 1.5rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-size: 0.92rem; }
.projects__grid {
	display: grid; grid-template-columns: 1fr; gap: 1.25rem; list-style: none; margin: 2.5rem 0 0; padding: 0;
}
@media (min-width: 700px) { .projects__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects__grid { grid-template-columns: repeat(3, 1fr); } }
.projects__card {
	background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--clive-radius); padding: 1.75rem 1.5rem;
}
.projects__card h3 { color: var(--clive-white); font-size: 1.25rem; margin-bottom: 0.5rem; }
.projects__tag {
	text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; font-weight: 700;
	color: var(--clive-gold) !important; margin-bottom: 0.75rem;
}
.projects__card p:last-child { font-size: 0.92rem; margin: 0; }

/* ---------- Media ---------- */
.media__grid {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; list-style: none;
	margin: 3rem 0 0; padding: 0;
}
@media (min-width: 800px) { .media__grid { grid-template-columns: repeat(4, 1fr); } }
.media__chip {
	border: 1px solid var(--clive-divider); border-radius: var(--clive-radius);
	padding: 1.5rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; background: var(--clive-bg);
}
.media__name { font-family: "Playfair Display", serif; font-size: 1.15rem; color: var(--clive-navy); }
.media__caption { color: var(--clive-muted); font-size: 0.85rem; line-height: 1.5; }

/* ---------- Community & Full Story ---------- */
.community__list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.community__list li { padding: 0.75rem 0; border-bottom: 1px solid var(--clive-divider); color: var(--clive-muted); }
.community__list li::before { content: "—"; color: var(--clive-gold); margin-right: 0.5rem; }
.community__figure { margin: 0; }
.community__img { border-radius: var(--clive-radius); box-shadow: var(--clive-shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.full-story { border-top: 1px solid var(--clive-divider); }
.full-story__inner { max-width: 760px; margin-inline: auto; }
.full-story p { color: var(--clive-muted); font-size: 1.02rem; }

/* ---------- Contact ---------- */
.contact__list { list-style: none; margin: 2rem 0 0; padding: 0; }
.contact__list li { padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.contact__list strong { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--clive-gold); margin-bottom: 0.25rem; }
.contact__list a { color: var(--clive-white); }
.contact__form-wrap { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: var(--clive-radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); margin-bottom: 0.4rem; }
.form-field input, .form-field textarea {
	width: 100%; padding: 0.8rem 1rem; border-radius: var(--clive-radius); border: 1px solid rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.08); color: var(--clive-white); font: inherit;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--clive-gold); }
.contact__notice { padding: 0.9rem 1.2rem; border-radius: var(--clive-radius); margin-bottom: 1.25rem; }
.contact__notice--success { background: rgba(46, 160, 103, 0.25); color: #b9f0d2; }
.contact__notice--error { background: rgba(200, 60, 60, 0.25); color: #ffd2d2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--clive-ink); color: rgba(255, 255, 255, 0.75); }
.site-footer h3 { color: var(--clive-white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1rem; }
.site-footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--clive-gold); }
.site-footer__grid {
	display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 0;
}
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer__logo { max-height: 56px; width: auto; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.site-footer__tagline { font-size: 0.9rem; max-width: 32ch; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.92rem; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 1.5rem 0; font-size: 0.82rem; }
.site-footer__legal p { margin: 0; }
.site-footer__disclosure { display: block; margin-top: 0.35rem; color: rgba(255, 255, 255, 0.45); }

/* ---------- Blog / single / archive ---------- */
.site-main--index, .site-main--archive, .site-main--search, .site-main--404 { padding: 4rem 0; }
.page-title, .entry-title { margin-bottom: 1.5rem; }
.post-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { background: var(--clive-white); border: 1px solid var(--clive-divider); border-radius: var(--clive-radius); overflow: hidden; }
.post-card__thumb { display: block; }
.post-card .entry-header, .post-card .entry-summary { padding: 0 1.5rem; }
.post-card .entry-header { padding-top: 1.25rem; }
.post-card .entry-summary { padding-bottom: 1.5rem; color: var(--clive-muted); font-size: 0.94rem; }
.entry-meta { color: var(--clive-muted); font-size: 0.85rem; }
.entry-content { max-width: 760px; }
.entry-thumbnail { margin: 0 0 2rem; }
.entry-thumbnail img { border-radius: var(--clive-radius); }
.pagination .nav-links, .comments-pagination .nav-links { display: flex; gap: 0.5rem; margin-top: 2.5rem; }
.pagination a, .pagination span, .comments-pagination a, .comments-pagination span {
	padding: 0.5rem 0.9rem; border: 1px solid var(--clive-divider); border-radius: var(--clive-radius); text-decoration: none;
}
.pagination .current { background: var(--clive-navy); color: var(--clive-white); border-color: var(--clive-navy); }
.widget-area { padding: 3rem 0; }
@media (min-width: 900px) {
	body:not(.clive-elementor-page) .site-main--index.has-sidebar { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
}
.search-form { display: flex; gap: 0.5rem; max-width: 480px; margin: 1.5rem 0; }
.search-field { flex: 1; padding: 0.75rem 1rem; border: 1px solid var(--clive-divider); border-radius: var(--clive-radius); font: inherit; }

/* ---------- Comments ---------- */
.comments-area { max-width: 760px; margin-top: 3rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; }
.comment-body { padding: 1.25rem 0; border-bottom: 1px solid var(--clive-divider); }
.comment-reply-link { font-weight: 600; font-size: 0.88rem; }
.comment-form input, .comment-form textarea {
	width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--clive-divider); border-radius: var(--clive-radius); font: inherit;
}

/* ---------- Elementor pages ---------- */
.clive-elementor-page .site-main--page { max-width: none; padding: 0; }
.clive-elementor-page .entry-content { max-width: none; }
.site-main--elementor-full-width { padding: 0; max-width: none; }

/* ---------- Menu toggle bars ---------- */
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
	display: block; width: 18px; height: 2px; background: var(--clive-ink); position: relative; content: "";
}
.menu-toggle__bars::before { position: absolute; top: -6px; }
.menu-toggle__bars::after { position: absolute; top: 6px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Admin bar offset for sticky header ---------- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }