/*
Theme Name: Dentin CG
Theme URI: https://dentincg.com
Author: WebDesignToo
Author URI: https://webdesigntoo.com
Description: Simple one-page theme for Dentin Construction Group. Paste a GoHighLevel form embed in Appearance → Customize → Dentin Site Settings.
Version: 1.1.0
Requires at least: 6.0
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: dentin
*/

@font-face {
	font-family: "Glacial Indifference";
	src: url("assets/fonts/GlacialIndifference-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	--black: #000;
	--ink: #0b0b0b;
	--brown: #3a2100;
	--brown-hover: #563200;
	--tan: #c7b49b;
	--cream: #fef1e1;
	--white: #fff;
	--font-display: "Glacial Indifference", "Questrial", "Century Gothic", sans-serif;
	--font-body: "Assistant", system-ui, sans-serif;
	--radius: 12px;
	--container: 1240px;
	--gutter: 24px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.31;
	color: var(--black);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; line-height: 1.2; }
p { margin: 0 0 1.3em; }
p:last-child { margin-bottom: 0; }
ul { list-style: none; margin: 0; padding: 0; }
[id] { scroll-margin-top: 20px; }

.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: 0; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; }
.skip-link:focus { left: 10px; top: 10px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: calc(1300px + var(--gutter) * 2); }
.container-narrow { max-width: calc(800px + var(--gutter) * 2); }
.center { text-align: center; }
.section { padding: 80px 0; }

/* Buttons */
.btn {
	display: inline-block;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 18px;
	line-height: 24px;
	padding: 16px 24px;
	border-radius: var(--radius);
	border: 1px solid transparent;
	text-decoration: none;
	transition: background-color .2s, color .2s, border-color .2s;
	cursor: pointer;
}
.btn-brown { background: var(--brown); color: var(--white); }
.btn-brown:hover { background: var(--brown-hover); }
.btn-black { background: var(--ink); color: var(--white); }
.btn-black:hover { background: var(--brown); }
.btn-outline-light { border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--ink); }
.btn-outline-dark { border-color: var(--black); color: var(--black); }
.btn-outline-dark:hover { background: var(--black); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 32px; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }

/* Top banner */
.top-banner { background: var(--tan); text-align: center; padding: 10px var(--gutter); }
.top-banner p { font-family: "Roboto", sans-serif; font-size: 14px; line-height: 21px; margin: 0; }
.top-banner a { font-weight: 600; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid #e6e6e6; position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 142px; gap: 24px; }
.site-logo img { width: 146px; height: auto; }
.site-nav { display: flex; align-items: center; flex: 1; justify-content: space-between; margin-left: 9%; }
.site-nav ul { display: flex; gap: 28px; margin: 0 auto; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-size: 18px; line-height: 24px; }
.site-nav ul a:hover { color: var(--brown); text-decoration: underline; text-underline-offset: 4px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero {
	position: relative;
	background-color: #555;
	background-size: cover;
	background-position: center;
	color: var(--white);
	min-height: 423px;
	display: flex;
	align-items: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.hero-inner { position: relative; max-width: calc(1040px + var(--gutter) * 2); padding-top: 80px; padding-bottom: 80px; }
.hero h1 { font-size: 48px; line-height: 58px; margin-bottom: 15px; }
.hero-sub { font-family: var(--font-display); font-size: 30px; line-height: 36px; margin-bottom: 58px; }

/* Split rows (about + services) */
.split { display: grid; grid-template-columns: 557fr 614fr; gap: 56px; align-items: center; }
.split-text h2 { font-size: 40px; line-height: 48px; margin-bottom: 20px; }
.split-text h3 { font-size: 30px; line-height: 36px; margin-bottom: 20px; }
.split-text p { max-width: 590px; }
.split-text .btn { margin-top: 15px; }

/* About */
.about .split { align-items: start; max-width: 1226px; margin: 0 auto; }
.about-media { position: relative; aspect-ratio: 557 / 495; }
.about-media img { position: absolute; object-fit: cover; border-radius: 10px; }
.about-img-1 { left: 5.4%; top: 0; width: 81.3%; height: 76%; }
.about-img-2 { left: 45.9%; top: 45.5%; width: 48.7%; height: 54.5%; }

/* Services */
.services { background: var(--cream); padding-top: 60px; padding-bottom: 50px; }
.section-head { text-align: center; max-width: 954px; margin: 0 auto 41px; }
.section-head h2 { font-size: 40px; line-height: 48px; margin-bottom: 41px; }
.services .split { max-width: 1226px; margin: 0 auto 41px; }
.service-img { width: 100%; aspect-ratio: 557 / 322; object-fit: cover; border-radius: 10px; }
.service.is-reversed { grid-template-columns: 614fr 557fr; }
.service.is-reversed .service-img { order: 2; }

/* Projects */
.projects h2 { font-size: 40px; line-height: 48px; text-align: center; margin-bottom: 61px; }
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 61px; }
.project-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 5px; }

/* Contact */
.contact { padding-top: 60px; }
.contact-inner { display: grid; grid-template-columns: 302px minmax(0, 854px); justify-content: space-between; gap: 60px; }
.contact-intro h2 { font-size: 40px; line-height: 48px; margin-bottom: 22px; }
.contact-intro a { text-decoration: none; }
.contact-intro a:hover { text-decoration: underline; }
.contact-form { min-width: 0; }
.contact-form iframe { width: 100% !important; border: 0; }
.form-placeholder { border: 2px dashed var(--tan); border-radius: var(--radius); padding: 40px; background: #fffaf3; line-height: 1.6; }

/* Footer */
.site-footer { color: var(--white); }
.footer-inner {
	background: var(--ink);
	max-width: none;
	display: flex;
	justify-content: space-between;
	gap: 48px;
	padding-top: 64px;
	padding-bottom: 32px;
	padding-left: max(var(--gutter), calc((100% - var(--container)) / 2));
	padding-right: max(var(--gutter), calc((100% - var(--container)) / 2));
}
.footer-logo-wrap { width: 267px; display: flex; flex-direction: column; align-items: center; margin-bottom: 32px; }
.footer-logo { width: 180px; }
.social-links { display: flex; gap: 12px; margin-top: 12px; }
.social-links a { display: block; color: var(--white); transition: opacity .2s; }
.social-links a:hover { opacity: .7; }
.footer-meta { font-family: "Roboto", sans-serif; font-size: 14px; line-height: 21px; margin-bottom: 24px; }
.footer-meta strong { font-weight: 600; display: inline-block; margin-bottom: 4px; }
.footer-meta a { text-decoration: none; }
.footer-meta a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 46px; padding-top: 49px; }
.footer-links nav { width: 177px; }
.footer-links h2 { font-family: var(--font-body); font-weight: 600; font-size: 18px; line-height: 24px; padding: 8px 0; }
.footer-links a { display: block; padding: 8px 0; text-decoration: none; line-height: 24px; }
.footer-links a:hover { text-decoration: underline; }
.footer-seo { background: var(--black); padding: 20px 0; }
.footer-seo p, .footer-seo .container, .footer-credit p { font-family: "Teachers", sans-serif; font-size: 14px; line-height: 1.2; text-align: center; margin: 0; }
.footer-seo .container { max-width: calc(1306px + var(--gutter) * 2); }
.footer-credit { background: var(--brown); padding: 10px var(--gutter); }
.footer-credit a { text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }

/* Rich text blocks on the homepage */
.rich p { margin: 0 0 1.3em; }
.rich p:last-child { margin-bottom: 0; }
.rich a { color: inherit; }
.split-text .rich { max-width: 590px; }
.section-head .rich { margin: 0 auto; }

/* Inner pages (Accessibility, Terms, Privacy, etc.) */
.page-header { background: var(--cream); padding: 64px 0 56px; }
.page-header h1 { font-size: 48px; line-height: 58px; }
.page-updated { font-size: 15px; color: #5c4a33; margin: 12px 0 0; }
.page-body { padding-top: 56px; }
.entry { font-size: 18px; line-height: 1.6; }
.entry > * { margin-top: 0; margin-bottom: 1.2em; }
.entry > *:last-child { margin-bottom: 0; }
.entry h2 { font-size: 30px; line-height: 1.25; margin: 1.8em 0 .6em; }
.entry h3 { font-size: 24px; line-height: 1.3; margin: 1.6em 0 .5em; }
.entry h4 { font-family: var(--font-body); font-weight: 600; font-size: 19px; margin: 1.4em 0 .4em; }
.entry h2:first-child, .entry h3:first-child { margin-top: 0; }
.entry a { color: var(--brown); text-decoration: underline; text-underline-offset: 2px; }
.entry a:hover { color: var(--black); }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry ul { list-style: disc; }
.entry li { margin-bottom: .4em; }
.entry li > ul, .entry li > ol { margin-top: .4em; }
.entry strong { font-weight: 600; }
.entry hr { border: 0; border-top: 1px solid #e3d6c4; margin: 2.4em 0; }
.entry blockquote { border-left: 4px solid var(--tan); margin-left: 0; padding: 4px 0 4px 20px; color: #333; }
.entry table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry th, .entry td { border: 1px solid #e3d6c4; padding: 10px 12px; text-align: left; vertical-align: top; }
.entry th { background: var(--cream); font-weight: 600; }
.entry img { border-radius: 10px; }
.entry figcaption { font-size: 14px; color: #555; margin-top: 8px; }
.entry .wp-block-button__link { background: var(--brown); color: var(--white); border-radius: var(--radius); padding: 16px 24px; font-weight: 600; text-decoration: none; }
.entry .wp-block-button__link:hover { background: var(--brown-hover); color: var(--white); }
.entry .is-style-outline .wp-block-button__link { background: transparent; color: var(--brown); border: 1px solid currentColor; }
.entry .alignwide { max-width: 1240px; margin-left: auto; margin-right: auto; }
.container-narrow .alignwide, .container-narrow .alignfull { margin-left: calc(50% - 50vw + var(--gutter)); margin-right: calc(50% - 50vw + var(--gutter)); max-width: none; }
.entry-wide { max-width: calc(var(--container) + var(--gutter) * 2); }
.post-summary { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid #e3d6c4; }
.post-summary h2 { margin-top: 0; }
.post-summary h2 a { text-decoration: none; color: inherit; }
.has-brown-color { color: var(--brown); } .has-brown-background-color { background-color: var(--brown); }
.has-tan-color { color: var(--tan); } .has-tan-background-color { background-color: var(--tan); }
.has-cream-color { color: var(--cream); } .has-cream-background-color { background-color: var(--cream); }
.has-black-color { color: var(--ink); } .has-black-background-color { background-color: var(--ink); }
.has-white-color { color: var(--white); } .has-white-background-color { background-color: var(--white); }

/* Tablet */
@media (max-width: 1080px) {
	.site-nav ul { gap: 20px; }
	.split, .service.is-reversed { gap: 40px; }
	.split-text h2 { font-size: 34px; line-height: 42px; }
	.contact-inner { grid-template-columns: 1fr 2fr; gap: 40px; }
	.footer-inner { flex-wrap: wrap; }
}

/* Mobile nav */
@media (max-width: 900px) {
	.header-inner { min-height: 96px; }
	.site-logo img { width: 104px; }
	.nav-toggle { display: block; }
	.site-nav {
		display: none;
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--white);
		flex-direction: column; align-items: stretch;
		margin: 0; padding: 12px var(--gutter) 24px;
		border-bottom: 1px solid #e6e6e6;
		box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
	}
	.nav-open .site-nav { display: flex; }
	.site-nav ul { flex-direction: column; gap: 0; margin: 0 0 16px; }
	.site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid #eee; }
	.nav-cta { text-align: center; }
	.nav-open .nav-toggle .bar:nth-child(2) { transform: translateY(8px) rotate(45deg); }
	.nav-open .nav-toggle .bar:nth-child(3) { opacity: 0; }
	.nav-open .nav-toggle .bar:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }
}

/* Mobile layout */
@media (max-width: 768px) {
	body { font-size: 17px; }
	.section { padding: 56px 0; }
	.hero { min-height: 0; }
	.hero-inner { padding-top: 64px; padding-bottom: 64px; }
	.hero h1 { font-size: 36px; line-height: 42px; }
	.hero-sub { font-size: 22px; line-height: 28px; margin-bottom: 32px; }
	.btn-row { gap: 16px; }
	.split, .service.is-reversed { grid-template-columns: 1fr; gap: 28px; }
	.service.is-reversed .service-img { order: 0; }
	.about-media { max-width: 520px; width: 100%; margin: 0 auto; }
	.split-text h2, .section-head h2, .projects h2, .contact-intro h2 { font-size: 32px; line-height: 38px; }
	.split-text h3 { font-size: 26px; line-height: 32px; }
	.split-text h2 br { display: none; }
	.section-head h2 { margin-bottom: 24px; }
	.services .split { margin-bottom: 56px; }
	.projects h2 { margin-bottom: 32px; }
	.project-grid { grid-template-columns: repeat(2, 1fr); margin-bottom: 40px; }
	.contact-inner { grid-template-columns: 1fr; gap: 32px; }
	.footer-inner { flex-direction: column; gap: 0; padding-top: 48px; }
	.footer-links { padding-top: 8px; gap: 24px; }
	.footer-links nav { width: auto; flex: 1; }
	.page-header { padding: 44px 0 40px; }
	.page-header h1 { font-size: 36px; line-height: 42px; }
	.entry h2 { font-size: 26px; }
	.entry .wp-block-table { overflow-x: auto; }
}
