/*
Theme Name: HENNECORE Engineering
Author: HENNECORE Engineering
Description: Custom theme for HENNECORE Engineering, a ready-mix concrete supply partner in Chennai. Creates its own pages and menu on activation.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hennecore
*/

:root {
	--navy: #092344;
	--navy-deep: #061830;
	--orange: #F47718;
	--grey: #74797D;
	--slab: #ECEDEE;
	--line: #D3D6D9;
	--ink: #17212E;
	--wrap: 1160px;
	--slant: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: Archivo, "Segoe UI", system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: #b9520a; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

h1, h2, h3 { font-stretch: 112%; font-weight: 800; line-height: 1.12; color: var(--navy); margin: 0 0 .6em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.small { font-size: .88rem; color: #4d555e; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
.section { padding: 76px 0; }
.slab { background: var(--slab); }

.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Buttons: the slanted bar from the logo ---------- */
.btn {
	display: inline-block;
	padding: 15px 34px;
	font: inherit;
	font-weight: 700;
	font-stretch: 108%;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
	transition: background-color .15s;
}
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px var(--navy); }
.btn-orange { background: var(--orange); color: var(--navy-deep); }
.btn-orange:hover { background: #ff8c33; color: var(--navy-deep); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.btn-small { padding: 10px 24px; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { width: 186px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.nav-list { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; font-weight: 600; font-size: .96rem; color: var(--navy); padding: 6px 0; border-bottom: 3px solid transparent; }
.nav-list a:hover,
.nav-list .current-menu-item > a { border-bottom-color: var(--orange); color: var(--navy); }
.nav-toggle { display: none; font: inherit; font-weight: 700; background: none; border: 2px solid var(--navy); color: var(--navy); padding: 8px 16px; cursor: pointer; }

/* ---------- Home hero ---------- */
.hero {
	background:
		linear-gradient(100deg, var(--navy-deep) 0%, var(--navy) 62%, #0e3261 100%);
	color: #fff;
	padding: 84px 0 96px;
	overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.45fr .8fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.7rem); font-stretch: 125%; line-height: 1.04; text-transform: uppercase; letter-spacing: -.015em; margin-bottom: 28px; }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 span:nth-child(2) { padding-left: .55em; }
.hero h1 span:nth-child(3) { padding-left: 1.1em; color: var(--orange); }
.hero-lead { font-size: 1.14rem; max-width: 33em; color: #dbe3ee; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* The quote slip */
.slip {
	background: #fff;
	color: var(--ink);
	padding: 28px 30px 24px;
	transform: rotate(-2deg);
	box-shadow: 14px 14px 0 rgba(0, 0, 0, .28);
	border-top: 8px solid var(--orange);
	max-width: 400px;
	justify-self: end;
	width: 100%;
}
.slip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--navy); padding-bottom: 10px; margin-bottom: 6px; }
.slip-head strong { font-stretch: 120%; font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.slip-head span { font-size: .85rem; color: #4d555e; }
.slip dl { margin: 0; }
.slip dl div { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.slip dt { font-weight: 500; }
.slip dd { margin: 0; display: flex; align-items: center; gap: 8px; color: #4d555e; }
.slip dd i { display: block; width: 74px; height: 10px; background: var(--slab); }
.slip .slip-total { border-bottom: 0; border-top: 2px solid var(--navy); margin-top: 4px; }
.slip .slip-total dt { font-weight: 800; color: var(--navy); }
.slip .slip-total dd i { background: var(--orange); width: 92px; }
.slip-note { font-size: .84rem; color: #4d555e; margin: 12px 0 0; }

/* ---------- Home sections ---------- */
.statement { background: var(--slab); }
.statement h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.statement p { font-size: 1.12rem; }

.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.promise { padding: 6px 36px; border-left: 1px solid var(--line); }
.promise:first-child { border-left: 0; padding-left: 0; }
.promise h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-stretch: 125%; text-transform: uppercase; margin-bottom: 18px; }
.promise h3::before { content: "Right"; display: block; font-size: .95rem; font-stretch: 100%; font-weight: 600; text-transform: none; color: var(--grey); letter-spacing: 0; margin-bottom: 2px; }
.promise h3::after { content: ""; display: block; width: 64px; height: 8px; background: var(--orange); margin-top: 14px; transform: skewX(-24deg); }

.options { background: var(--slab); }
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; }
.option { background: #fff; padding: 36px; border-top: 8px solid var(--grey); }
.option h2, .option h3 { margin-bottom: .35em; }
.option > h3:first-child, .option > h2:first-child { font-size: 1.5rem; }
.option-for { color: #4d555e; margin-bottom: 1.2em; }
.option ul { margin: 0 0 1.2em; padding-left: 1.15em; }
.option li { margin-bottom: .5em; }
.option-full { background: var(--navy); color: #e3e9f1; border-top-color: var(--orange); }
.option-full h2, .option-full h3 { color: #fff; }
.option-full .option-for, .option-full .small { color: #b9c5d6; }
.option.detail h3, .detail .option h3 { font-size: 1.02rem; margin-top: 1.4em; }
.more { margin: 26px 0 0; font-weight: 700; }

.step-list { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; margin: 34px 0 0; padding: 0; }
.step-list li { counter-increment: step; border-top: 3px solid var(--navy); padding-top: 16px; }
.step-list li::before { content: counter(step); display: block; font-size: 2.6rem; font-weight: 800; font-stretch: 125%; line-height: 1; color: var(--orange); margin-bottom: 12px; }
.step-list h3 { font-size: 1.05rem; }
.step-list p { font-size: .95rem; margin: 0; }

.areas { background: var(--navy); color: #dbe3ee; }
.areas h2 { color: #fff; }
.areas a { color: #fff; font-weight: 700; }
.areas a:hover { color: var(--orange); }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 18px 34px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.6rem; font-weight: 500; color: var(--orange); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 34px 18px 0; margin: 0; }

.cta-band { background: var(--orange); color: var(--navy-deep); padding: 54px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.cta-band h2 { color: var(--navy-deep); margin-bottom: .3em; max-width: 20em; }
.cta-band p { margin: 0; font-weight: 500; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cta-call { color: var(--navy-deep); font-weight: 700; }
.cta-call:hover { color: #fff; }

/* ---------- Inner pages ---------- */
.page-hero { background: linear-gradient(100deg, var(--navy-deep), var(--navy)); color: #fff; padding: 64px 0 58px; border-bottom: 8px solid var(--orange); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); font-stretch: 120%; max-width: 17em; margin-bottom: .35em; }
.page-hero-lead { font-size: 1.14rem; color: #dbe3ee; margin: 0; max-width: 36em; }

.prose h2 { margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.15em; }
.prose li { margin-bottom: .5em; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 26px; }
.three-col > div { border-top: 3px solid var(--navy); padding-top: 16px; }

.grades { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0 !important; }
.grades li { background: var(--navy); color: #fff; font-weight: 700; padding: 8px 20px; margin: 0; transform: skewX(-12deg); }
.cols { columns: 2; column-gap: 40px; }
.checks { list-style: none; padding: 0 !important; }
.checks li { padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); position: relative; margin: 0; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 14px; height: 8px; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg); }
.callout { background: var(--slab); border-left: 8px solid var(--orange); padding: 22px 26px; margin: 1.8em 0; }
.callout p { margin: 0; }

.quote-table { width: 100%; border-collapse: collapse; background: #fff; margin: 20px 0; }
.quote-table th, .quote-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.quote-table th { background: var(--navy); color: #fff; font-weight: 700; }
.quote-table td:last-child, .quote-table th:last-child { text-align: right; width: 130px; }
.quote-table .total td { font-weight: 800; color: var(--navy); border-top: 2px solid var(--navy); border-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.enquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field.wide { grid-column: 1 / -1; }
.field label, .calc label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; color: var(--navy); }
.hint { font-weight: 400; color: #4d555e; }
input, select, textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid #9aa1a8; background: #fff; color: var(--ink); border-radius: 0; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--orange); outline-offset: 0; border-color: var(--navy); }
.form-error { grid-column: 1 / -1; background: #fdeee2; border-left: 6px solid var(--orange); padding: 12px 16px; margin: 0; font-weight: 600; }
.enquiry .small { margin: 12px 0 0; }
.contact-side h2 { font-size: 1.3rem; }
.calc { background: var(--slab); padding: 28px; border-top: 8px solid var(--orange); }
.calc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.calc label { font-size: .85rem; }
.calc label input { margin-top: 6px; }
.calc-out { font-size: 1.2rem; margin-bottom: .4em; }
.calc-out strong { font-size: 2rem; font-weight: 800; font-stretch: 120%; color: var(--navy); }
.link-btn { font: inherit; font-weight: 700; background: none; border: 0; padding: 0; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; margin-bottom: 14px; }
.direct { padding: 28px 0 0; }
.direct a { font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9c5d6; padding: 60px 0 0; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
.footer-name { color: #fff; font-weight: 800; font-stretch: 120%; font-size: 1.2rem; margin-bottom: .2em; text-transform: uppercase; }
.footer-line { color: var(--orange); font-weight: 600; }
.footer-head { color: #fff; font-weight: 700; margin-bottom: .7em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5em; }
.site-footer a { color: #b9c5d6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 44px; padding-top: 20px; padding-bottom: 24px; font-size: .86rem; }
.footer-base p { margin: 0; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; background: #128C4A; color: #fff; font-weight: 700; text-decoration: none; padding: 13px 22px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0, 0, 0, .28); }
.wa-float:hover { background: #0e743d; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.hero-grid { grid-template-columns: 1fr; gap: 48px; }
	.slip { justify-self: start; }
	.step-list { grid-template-columns: repeat(2, 1fr); }
	.contact-grid { grid-template-columns: 1fr; }
	.nav-toggle { display: block; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 18px 24px 24px; gap: 18px; }
	.site-nav.open { display: flex; }
	.nav-list { flex-direction: column; gap: 6px; width: 100%; }
	.nav-list a { display: block; padding: 10px 0; }
}
@media (max-width: 720px) {
	body { font-size: 16px; }
	.section { padding: 54px 0; }
	.hero { padding: 54px 0 68px; }
	.hero h1 span:nth-child(2), .hero h1 span:nth-child(3) { padding-left: 0; }
	.hero h1 { font-size: clamp(1.7rem, 8.6vw, 2.6rem); }
	.promise-grid, .option-grid, .two-col, .three-col, .footer-grid, .enquiry { grid-template-columns: 1fr; }
	.promise { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 8px; }
	.promise:first-child { border-top: 0; padding-top: 0; }
	.step-list { grid-template-columns: 1fr; }
	.option { padding: 26px; }
	.cols { columns: 1; }
	.brand img { width: 150px; }
	.btn { padding: 14px 26px; }
	.wa-float { padding: 11px 18px; font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.btn { transition: none; }
}

/* Services page: give the lighter panel a surface on the white page */
.detail .option { background: var(--slab); }
.detail .option.option-full { background: var(--navy); }
