/*
Theme Name:   Charles Tims (GeneratePress Child)
Template:     generatepress
Description:  Charles Tims Australia — design styles for pages built with GenerateBlocks.
Version:      1.0.0
Text Domain:  charlestims
*/

/* ===== Design tokens ===== */
:root {
	--ct-primary: #b60c47;
	--ct-primary-dark: #9a0a3c;
	--ct-text: #1f2328;
	--ct-muted: #6b6b6b;
	--ct-border: #e0e0e0;
	--ct-soft: #f5f5f4;
	--ct-muted-bg: #f2f2f2;
	--ct-section-bg: #fafafa;
	--ct-radius: 2px;
	--ct-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===== Base ===== */
body {
	font-family: var(--ct-font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--ct-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--ct-font); color: var(--ct-text); font-weight: 600; margin: 0; }
a { color: inherit; text-decoration: none; transition: color .15s, background-color .15s, border-color .15s, opacity .15s; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
.gb-shape svg { width: 1em; height: 1em; fill: none; stroke: currentColor; display: block; }

/* ===== GeneratePress page shell: full-width, no padding (pages are built from sections) ===== */
.ct-page .site-content,
.ct-page.one-container .site-content,
.ct-page.separate-containers .site-main { padding: 0; margin: 0; }
.ct-page .inside-article,
.ct-page.one-container .inside-article { padding: 0; }
.ct-page .entry-content:not(:first-child),
.ct-page .entry-content { margin: 0; }
.ct-page .site.grid-container,
.ct-page .container.grid-container { max-width: none; }
.ct-page .content-area { width: 100%; }
.ct-page.separate-containers .inside-article,
.ct-page .site-main > article { background: transparent; margin: 0; }
.ct-page .comments-area { display: none; }

/* ===== Header ===== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: #fff;
	border-bottom: 1px solid var(--ct-border);
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 0; } }
.site-header .inside-header {
	max-width: 1280px; margin: 0 auto;
	padding: 0 32px; height: 96px;
	display: flex; align-items: center; flex-wrap: nowrap;
}
.site-header .site-logo img, .site-header .header-image { width: 192px; height: 64px; object-fit: contain; }
.site-header .site-branding { display: none; }
.site-header .main-navigation { flex: 1 1 auto; background: transparent; margin-left: 32px; }
.site-header .main-navigation .inside-navigation { display: flex; align-items: center; justify-content: flex-end; padding: 0; max-width: none; }
.site-header .main-navigation .main-nav { margin: 0 auto; }
.site-header .main-navigation .main-nav > ul { display: flex; gap: 4px; }
.site-header .main-navigation .main-nav ul li a {
	font-size: 14px; font-weight: 500; line-height: 24px;
	padding: 8px 14px; color: var(--ct-text); border-radius: var(--ct-radius);
}
.site-header .main-navigation .main-nav ul li a:hover,
.site-header .main-navigation .main-nav ul li a:focus {
	background: var(--ct-primary); color: #fff;
}
.site-header .main-navigation .main-nav ul li[class*="current-menu-"] > a { color: var(--ct-text); background: transparent; }
.site-header .main-navigation .main-nav ul li[class*="current-menu-"] > a:hover { background: var(--ct-primary); color: #fff; }
.site-header .menu-bar-items { display: flex; align-items: center; }
.ct-header-phone {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 14px; font-weight: 500; line-height: 20px; color: var(--ct-text);
}
.site-header .ct-header-phone svg { width: 16px; height: 16px; color: var(--ct-primary); flex: none; margin: 0 8px 0 0; }
.site-header .menu-bar-items .ct-header-phone { padding: 0; }
.ct-header-phone:hover { color: var(--ct-primary); }

@media (max-width: 768px) {
	.site-header .inside-header { height: 80px; padding: 0 24px; }
	.site-header .site-logo img { width: 156px; height: 52px; }
	.site-header .main-navigation { margin-left: auto; flex: 0 0 auto; }
	.site-header .main-navigation .inside-navigation { justify-content: flex-end; gap: 8px; }
	.site-header .menu-bar-items { display: none; }
	.site-header .menu-toggle { color: var(--ct-text); padding: 0 12px; line-height: 40px; height: 40px; border: 1px solid var(--ct-border); border-radius: var(--ct-radius); background: #fff; }
	.site-header .main-navigation.toggled { position: static; }
	.site-header .main-navigation.toggled .main-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: #fff; border-bottom: 1px solid var(--ct-border); padding: 8px 16px 16px;
	}
	.site-header .main-navigation.toggled .main-nav > ul { display: block; }
	.site-header .main-navigation.toggled .main-nav ul li a { padding: 12px 8px; font-size: 16px; }
}

/* ===== Layout ===== */
.ct-section { padding: 112px 0; background: #fff; }
.ct-section--96 { padding: 96px 0; }
.ct-section--muted { background: var(--ct-section-bg); border-top: 1px solid var(--ct-border); border-bottom: 1px solid var(--ct-border); }
.ct-section--muted + .ct-section { border-top: 0; }
.ct-section--flush-top { padding-top: 0; }
.ct-section--product-head { padding: 64px 0 80px; }
.ct-section--pin-head { padding: 80px 0 96px; }
.ct-section--projects-head { padding: 96px 0 80px; }
.ct-contact-wrap { padding: 0 16px; }
.ct-max-672 { max-width: 672px; }
.ct-container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.ct-narrow { max-width: 768px; }
.ct-mid { max-width: 896px; }
.ct-mt-8 { margin-top: 8px; } .ct-mt-12 { margin-top: 12px; } .ct-mt-16 { margin-top: 16px; } .ct-mt-24 { margin-top: 24px; }
.ct-mt-32 { margin-top: 32px; } .ct-mt-48 { margin-top: 48px; } .ct-mt-56 { margin-top: 56px; } .ct-mt-64 { margin-top: 64px; }

.ct-grid { display: grid; gap: 32px; }
.ct-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ct-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ct-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ct-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.ct-grid--gap-24 { gap: 24px; }
.ct-grid--gap-40 { gap: 40px; }
.ct-grid--gap-48 { gap: 48px; }

/* ===== Type ===== */
.ct-eyebrow { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ct-primary); margin-bottom: 8px; display: block; }
.ct-eyebrow--lg { font-size: 14px; line-height: 20px; margin-bottom: 12px; }
.ct-h1 { font-size: 48px; line-height: 1.15; letter-spacing: -.025em; font-weight: 600; }
.ct-h1--tight { line-height: 1; }
.ct-h2 { font-size: 36px; line-height: 40px; letter-spacing: -.025em; font-weight: 600; }
.ct-h2--sm { font-size: 30px; line-height: 36px; }
.ct-h3 { font-size: 18px; line-height: 28px; font-weight: 600; }
.ct-h3--lg { font-size: 20px; line-height: 28px; }
.ct-h3--sm { font-size: 16px; line-height: 24px; }
.ct-lead { font-size: 18px; line-height: 1.625; color: var(--ct-muted); }
.ct-lead--xl { font-size: 20px; }
.ct-lead--dark { color: var(--ct-text); }
.ct-text { font-size: 16px; line-height: 26px; color: var(--ct-muted); }
.ct-small { font-size: 14px; line-height: 20px; color: var(--ct-muted); }
.ct-xs { font-size: 12px; line-height: 16px; color: var(--ct-muted); }
.ct-statement { font-size: 36px; line-height: 1.625; font-weight: 400; color: var(--ct-text); max-width: 896px; }

/* ===== Buttons ===== */
.ct-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 48px; padding: 0 24px;
	font-size: 14px; line-height: 20px; font-weight: 600;
	border: 1px solid transparent; border-radius: var(--ct-radius);
	white-space: nowrap; cursor: pointer;
}
.ct-btn .gb-shape svg { width: 16px; height: 16px; }
.ct-btn--40 { height: 40px; }
.ct-btn--44 { height: 44px; font-weight: 500; }
.ct-btn--36 { height: 36px; padding: 0 16px; }
.ct-btn--60 { height: 60px; font-weight: 500; }
.ct-btn--primary { background: var(--ct-primary); color: #fff; }
.ct-btn--primary:hover, .ct-btn--primary:focus { background: var(--ct-primary-dark); color: #fff; }
.ct-btn--outline { background: #fff; color: var(--ct-text); border-color: var(--ct-border); }
.ct-btn--outline:hover, .ct-btn--outline:focus { border-color: var(--ct-primary); color: var(--ct-primary); }
.ct-btn--soft { background: var(--ct-soft); color: var(--ct-text); border-color: var(--ct-border); height: 44px; padding: 0 12px; font-weight: 500; }
.ct-btn--soft:hover { border-color: var(--ct-primary); color: var(--ct-primary); }
.ct-btn--light { background: transparent; color: #fff; border-color: #fff; }
.ct-btn--light:hover, .ct-btn--light:focus { background: #fff; color: var(--ct-text); }
.ct-btn--hero { padding: 0 28px; }
.ct-btn--block { display: flex; width: 100%; }
.ct-btn-icon-primary .gb-shape { color: var(--ct-primary); }
.ct-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.ct-btns--12 { gap: 12px; }

.ct-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ct-primary); }
.ct-link .gb-shape svg { width: 16px; height: 16px; }
.ct-link:hover { color: var(--ct-primary-dark); }
.ct-link--muted { color: var(--ct-muted); font-weight: 400; }
.ct-link--muted:hover { color: var(--ct-primary); }
.ct-link--dark { color: var(--ct-text); font-weight: 500; }
.ct-link--dark:hover { color: var(--ct-primary); }
.ct-link--xs { font-size: 12px; line-height: 16px; font-weight: 500; gap: 6px; }
.ct-link--xs .gb-shape svg { width: 14px; height: 14px; }

/* ===== Cards ===== */
.ct-card { background: #fff; border: 1px solid var(--ct-border); border-radius: var(--ct-radius); padding: 32px; }
.ct-card--24 { padding: 24px; }
.ct-card--40 { padding: 40px; }
.ct-card--48 { padding: 48px; }
.ct-card--64 { padding: 64px; }
.ct-card--soft { background: var(--ct-section-bg); }
.ct-card--center { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 31px 24px; min-height: 176px; }
.ct-card--flex { display: flex; flex-direction: column; }
.ct-card hr, .ct-rule { border: 0; border-top: 1px solid var(--ct-border); margin: 0; height: 0; }

.ct-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--ct-soft); border: 1px solid var(--ct-border); border-radius: var(--ct-radius); color: var(--ct-primary); flex: none; }
.ct-icon svg { width: 20px; height: 20px; }
.ct-icon--dark { color: var(--ct-text); }
.ct-icon--plain { border-color: transparent; background: var(--ct-muted-bg); }
.ct-icon--round { width: 48px; height: 48px; border-radius: 999px; border: 0; background: var(--ct-muted-bg); }
.ct-icon--round svg { width: 24px; height: 24px; }

/* ===== Media ===== */
.ct-img { width: 100%; height: auto; object-fit: cover; border-radius: var(--ct-radius); }
.ct-img--43 { aspect-ratio: 4 / 3; }
.ct-img--169 { aspect-ratio: 16 / 9; }
.ct-figure { margin: 0; }
.ct-caption { font-size: 14px; line-height: 20px; color: var(--ct-muted); margin-top: 12px; }
.ct-caption--500 { font-weight: 500; margin-top: 14px; }

.ct-ph {
	aspect-ratio: 4 / 3; width: 100%;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	background-color: var(--ct-muted-bg);
	background-image: radial-gradient(rgba(31, 35, 40, .45) 1px, transparent 1.2px);
	background-size: 16px 16px; background-position: 8px 8px;
	border: 1px solid var(--ct-border); border-radius: var(--ct-radius);
	color: var(--ct-muted); font-size: 12px; line-height: 19.5px; text-align: center;
}
.ct-ph .gb-shape { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: #fff; border: 1px solid var(--ct-border); border-radius: var(--ct-radius); }
.ct-ph .gb-shape svg { width: 16px; height: 16px; }
.ct-ph { flex-direction: column; }
.ct-ph .gb-text { display: block; }

/* ===== Home: hero ===== */
.ct-hero { position: relative; height: 720px; display: flex; align-items: center; overflow: hidden; background: #222; }
.ct-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ct-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.1) 100%); }
.ct-hero__inner { position: relative; z-index: 1; width: 100%; }
.ct-hero__content { max-width: 768px; padding-left: 16px; }
.ct-hero h1 { color: #fff; font-size: 60px; line-height: 1; letter-spacing: -.025em; font-weight: 600; }
.ct-hero p { color: rgba(255,255,255,.9); font-size: 20px; line-height: 28px; max-width: 672px; margin-top: 24px; }
.ct-hero .ct-btns { margin-top: 32px; }

/* ===== Home: product rows ===== */
.ct-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.ct-split + .ct-split { margin-top: 112px; }
.ct-split h2 + p { margin-top: 16px; }
.ct-split .ct-btns { margin-top: 32px; }
.ct-split--about { grid-template-columns: minmax(0, 1fr) 468px; }

/* Applications (5 small cards) */
.ct-app-card h3 { margin-top: 20px; }

/* Section header with button on the right */
.ct-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* Home contact block */
.ct-contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.ct-contact-grid > .ct-grid { gap: 24px; }
.ct-info-label { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ct-muted); }
.ct-info-label .gb-shape { color: var(--ct-primary); }
.ct-info-label .gb-shape svg { width: 20px; height: 20px; }
.ct-info-value { display: block; margin-top: 16px; color: var(--ct-text); font-size: 16px; line-height: 24px; }
.ct-info-value--phone { font-size: 24px; line-height: 29px; font-weight: 600; }
.ct-info-value--email { font-size: 18px; line-height: 21px; font-weight: 500; word-break: break-word; }
a.ct-info-value:hover { color: var(--ct-primary); }
.ct-contact-card h3 + p { margin-top: 12px; }
.ct-contact-card .ct-btn { margin-top: auto; }
.ct-contact-card p { font-size: 14px; line-height: 22.75px; color: var(--ct-muted); margin-bottom: 40px; }

/* Feature cards (icon + title + text) */
.ct-feature h3 { margin-top: 24px; }
.ct-feature h3 + p { margin-top: 8px; }

/* Product cards on About */
.ct-product-card h2 + p { margin-top: 12px; }
.ct-product-card .ct-rule { margin: 28px 0 20px; }

/* CTA boxes */
.ct-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.ct-cta__text { max-width: 576px; }
.ct-cta__text h2 + p { margin-top: 12px; }
.ct-cta--stack { display: block; }
.ct-cta--stack .ct-cta__text { max-width: 672px; }
.ct-cta--stack .ct-cta__text h2 + p { margin-top: 16px; }
.ct-cta-foot { max-width: 672px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--ct-border); }
.ct-crosslink { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ct-border); }

/* Projects filter */
.ct-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.ct-filter { height: 44px; padding: 0 20px; font-size: 14px; font-weight: 500; line-height: 20px; background: #fff; color: var(--ct-text); border: 1px solid var(--ct-border); border-radius: var(--ct-radius); cursor: pointer; display: inline-flex; align-items: center; }
.ct-filter:hover { border-color: var(--ct-primary); color: var(--ct-primary); background: #fff; }
.ct-filter.is-active, .ct-filter.is-active:hover { background: var(--ct-primary); border-color: var(--ct-primary); color: #fff; }
.ct-project.is-hidden { display: none; }

/* Contact page */
.ct-contact-box { margin-top: 64px; padding: 24px; }
.ct-contact-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 72px; }
.ct-contact-col h2 { font-size: 16px; line-height: 24px; font-weight: 600; margin-top: 16px; }
.ct-contact-col h2 + p { font-size: 12px; line-height: 16px; color: var(--ct-muted); margin-top: 4px; }
.ct-contact-col .ct-val { display: block; margin-top: 12px; color: var(--ct-text); }
.ct-val--phone { font-size: 20px; line-height: 28px; font-weight: 600; }
.ct-val--email { font-size: 16px; line-height: 24px; font-weight: 500; word-break: break-all; }
.ct-val--addr { font-size: 14px; line-height: 19.25px; }
.ct-val--hours { font-size: 14px; line-height: 20px; font-weight: 600; }
a.ct-val:hover { color: var(--ct-primary); }
.ct-contact-col .ct-link--xs { margin-top: 16px; }
.ct-contact-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--ct-border); }

/* ===== Footer ===== */
.ct-footer { border-top: 1px solid var(--ct-border); background: #fff; padding: 80px 0; }
.ct-footer__grid { display: grid; grid-template-columns: 1fr 280px 384px; gap: 32px; }
.ct-footer__brand { max-width: 384px; }
.ct-footer__logo { width: 168px; height: 56px; object-fit: contain; }
.ct-footer__line { width: 32px; height: 2px; background: var(--ct-primary); margin-top: 16px; }
.ct-footer__about { font-size: 14px; line-height: 22.75px; color: var(--ct-muted); margin-top: 20px; }
.ct-footer h3 { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ct-text); }
.ct-footer__links { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 19px; }
.ct-footer__links a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ct-muted); }
.ct-footer__links a .gb-shape svg { width: 12px; height: 12px; }
.ct-footer__links a:hover { color: var(--ct-primary); }
.ct-footer__contact { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.ct-footer__contact > * { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; color: var(--ct-muted); }
.ct-footer__contact .gb-shape { color: var(--ct-primary); }
.ct-footer__contact .gb-shape svg { width: 16px; height: 16px; }
.ct-footer__contact a:hover { color: var(--ct-primary); }
.ct-footer__bar { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--ct-border); font-size: 12px; line-height: 16px; color: var(--ct-muted); }
.ct-footer__bar a:hover { color: var(--ct-primary); }
.site-footer .site-info { display: none; }

/* ===== Responsive ===== */
@media (max-width: 1023px) {
	.ct-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ct-contact-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
	.ct-footer__grid { grid-template-columns: 1fr 1fr; }
	.ct-footer__brand { grid-column: 1 / -1; }
	.ct-contact-grid { grid-template-columns: 1fr; }
	.ct-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
	.ct-container { padding: 0 24px; }
	.ct-section, .ct-section--96, .ct-section--projects-head, .ct-section--pin-head { padding: 80px 0; }
	.ct-section--product-head { padding: 56px 0 72px; }
	.ct-hero { height: 634px; }
	.ct-hero__content { padding-left: 0; }
	.ct-hero h1 { font-size: 36px; line-height: 1.1; }
	.ct-hero p { font-size: 18px; margin-top: 20px; }
	.ct-hero .ct-btns { flex-direction: column; align-items: stretch; }
	.ct-hero .ct-btn { width: 100%; }
	.ct-h1 { font-size: 30px; line-height: 1.2; }
	.ct-info-value--email { font-size: 15px; overflow-wrap: anywhere; word-break: normal; }
	.ct-contact-wrap { padding: 0; }
	.ct-contact-col .ct-val--email { word-break: normal; overflow-wrap: anywhere; }
	.ct-h2 { font-size: 30px; line-height: 36px; }
	.ct-h2--sm { font-size: 26px; line-height: 32px; }
	.ct-statement { font-size: 24px; }
	.ct-grid--2, .ct-grid--3, .ct-grid--4, .ct-split, .ct-split--about { grid-template-columns: 1fr; }
	.ct-grid--5 { grid-template-columns: 1fr; gap: 16px; }
	.ct-split { gap: 32px; }
	.ct-split + .ct-split { margin-top: 64px; }
	.ct-split--reverse > :first-child { order: 2; }
	.ct-head-row { flex-direction: column; align-items: flex-start; }
	.ct-card--64 { padding: 32px 24px; }
	.ct-card--48, .ct-card--40 { padding: 28px 24px; }
	.ct-contact-cols { grid-template-columns: 1fr; gap: 56px; }
	.ct-contact-box { padding: 24px 0; margin-top: 40px; }
	.ct-contact-bar { flex-direction: column; align-items: flex-start; }
	.ct-footer { padding: 56px 0; }
	.ct-footer__grid { grid-template-columns: 1fr; gap: 40px; }
	.ct-footer__bar { flex-direction: column; align-items: center; text-align: center; }
	.ct-btns { gap: 12px; }
}
