/*
Theme Name: Buckton Consulting (Clean Rebuild)
Description: Hand-built replacement theme for bucktonconsulting.com. No code reused from the compromised original theme1456 — layout recreated visually from a screenshot of the live site, 2026-08-25.
Author: UKWebCo.com
Version: 1.0
*/

:root{
	--header-bg:#6f8fa0;
	--cream:#efece2;
	--tile1:#7ab6b9;
	--tile2:#8b93c9;
	--tile3:#62788d;
	--accent:#4f6b78;
	--text-dark:#333;
	--text-light:#fff;
}

*{box-sizing:border-box;}
body{
	margin:0;
	font-family:"Lato","Helvetica Neue",Arial,sans-serif;
	background:var(--cream);
	color:var(--text-dark);
	line-height:1.6;
}
a{color:var(--accent);text-decoration:none;}
a:hover{text-decoration:underline;}
img{max-width:100%;height:auto;}
.container{max-width:1100px;margin:0 auto;padding:0 20px;}

/* Header */
.site-header{background:var(--header-bg);color:var(--text-light);}
.site-header .container{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;padding-top:14px;padding-bottom:14px;}
.site-title{font-size:1.6em;font-weight:700;margin:0;}
.site-title a{color:var(--text-light);}
.main-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;}
.main-nav li{margin-left:4px;}
.main-nav a{display:block;color:var(--text-light);padding:10px 16px;}
.main-nav a:hover,.main-nav .current-menu-item a{background:var(--text-light);color:var(--header-bg);text-decoration:none;}

/* Hero */
.hero{background:#fff;padding:30px 0;}
.hero-inner{display:flex;flex-wrap:wrap;gap:0;align-items:stretch;max-width:1100px;margin:0 auto;}
.hero-slider{position:relative;flex:1 1 500px;min-width:280px;overflow:hidden;}
.hero-slide{display:none;}
.hero-slide.is-active{display:block;}
.hero-slide img{display:block;width:100%;height:auto;}
.hero-nav-btn{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.8);border:none;width:36px;height:36px;border-radius:50%;cursor:pointer;font-size:1.1em;}
.hero-prev{left:10px;}
.hero-next{right:10px;}
.hero-dots{position:absolute;bottom:12px;right:16px;display:flex;gap:6px;}
.hero-dots button{width:10px;height:10px;border-radius:50%;border:none;background:#ccc;cursor:pointer;padding:0;}
.hero-dots button.is-active{background:var(--accent);}
.hero-caption{flex:1 1 320px;min-width:260px;background:#f7f6f1;padding:40px 30px;display:flex;flex-direction:column;justify-content:center;}
.hero-caption h2{font-size:1.8em;font-weight:300;color:#555;margin:0 0 20px;}
.hero-caption .btn{align-self:flex-start;}

.btn{display:inline-block;background:var(--accent);color:var(--text-light);padding:10px 22px;border-radius:20px;font-size:.9em;}
.btn:hover{background:#3d5561;color:var(--text-light);text-decoration:none;}

/* Service tiles */
.tiles{display:flex;flex-wrap:wrap;}
.tile{flex:1 1 25%;min-width:220px;color:var(--text-light);padding:26px 22px;}
.tile:nth-child(4n+1){background:var(--tile1);}
.tile:nth-child(4n+2){background:var(--tile2);}
.tile:nth-child(4n+3){background:var(--tile3);}
.tile:nth-child(4n+4){background:var(--tile1);}
.tile h3{margin:0 0 10px;font-size:1.3em;font-weight:600;}
.tile p{font-size:.92em;margin:0 0 12px;}
.tile a{color:var(--text-light);font-weight:700;font-size:.85em;text-decoration:underline;}

/* Main content layout */
.content-wrap{max-width:1100px;margin:0 auto;padding:40px 20px;display:flex;gap:40px;flex-wrap:wrap;}
.main-content{flex:2 1 500px;min-width:280px;}
.main-content h1{font-size:1.8em;margin-top:0;}
.sidebar{flex:1 1 260px;min-width:240px;}
.widget{background:#fff;padding:20px;margin-bottom:20px;border-radius:4px;}
.widget h4{margin-top:0;font-size:1.05em;text-transform:uppercase;letter-spacing:.03em;color:var(--accent);}
.widget ul{list-style:none;margin:0;padding:0;}
.widget li{padding:8px 0;border-bottom:1px solid #eee;}
.widget li:last-child{border-bottom:none;}
.widget .post-date{display:block;font-size:.8em;color:#999;}

/* Page hierarchy nav (sub-pages) */
.subpage-nav{margin:0 0 20px;padding:12px 16px;background:#fff;border-radius:4px;}
.subpage-nav a{margin-right:14px;}

/* Footer */
.site-footer{background:#3d4f58;color:#d7dee0;padding:30px 0;margin-top:20px;}
.site-footer .container{display:flex;flex-wrap:wrap;justify-content:space-between;gap:20px;}
.footer-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 16px;}
.footer-nav a{color:#d7dee0;}
.footer-copy{font-size:.85em;color:#9aa8ad;width:100%;margin-top:16px;}

/* Contact form */
.wpcf7 p{margin:0 0 14px;}
.wpcf7 input[type=text],.wpcf7 input[type=email],.wpcf7 textarea{width:100%;padding:10px;border:1px solid #ccc;border-radius:3px;font-family:inherit;}
.wpcf7 textarea{min-height:120px;}
.wpcf7 input[type=submit]{background:var(--accent);color:#fff;border:none;padding:10px 24px;border-radius:20px;cursor:pointer;}

@media (max-width:640px){
	.site-header .container{flex-direction:column;align-items:flex-start;}
	.hero-inner{flex-direction:column;}
}
