/*
Theme Name: MN Contractors
Theme URI: https://mncontractors.example
Author: MN Contractors
Description: One-page website theme for MN Contractors, a Class-V registered civil contractor in Warangal, Telangana. Includes an enquiry form that saves to the WordPress admin and sends an email, floating Call and WhatsApp buttons, a welcome pop-up, and Customizer settings for phone, GSTIN and social links.
Version: 1.0.0
Requires at least: 5.8
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: mn-contractors
*/

:root {
	--navy: #0B1F44;
	--navy-d: #071433;
	--navy-line: #2A4272;
	--gold: #E3AE2A;
	--gold-l: #F4CF63;
	--gold-d: #8A6210;
	--bg: #F4F6FA;
	--line: #D8DEE9;
	--muted: #4A5670;
	--on-dark: #B7C1D6;
	--on-dark-2: #D5DCEB;
	--green: #0F7A41;
	--f-disp: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--f-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--navy); font-family: var(--f-body); font-size: 18px; line-height: 1.55; }
body.mnc-lock { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .9; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
section[id] { scroll-margin-top: 96px; }
.admin-bar section[id] { scroll-margin-top: 128px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: #fff; color: var(--navy); padding: 10px 16px; }
.skip:focus { left: 8px; top: 8px; }
.icon { flex: none; }

/* Type */
.h2 { font-family: var(--f-disp); font-weight: 700; font-size: clamp(38px, 5vw, 60px); line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.h3 { font-family: var(--f-disp); font-weight: 700; font-size: 28px; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; }
.h3--lg { font-size: 32px; }
.lbl { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; }
.lbl--gold { color: var(--gold-d); }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; font-family: var(--f-body); font-weight: 600; font-size: 18px; line-height: 1.2; border: 0; cursor: pointer; text-align: center; }
.btn--sm { min-height: 48px; padding: 0 20px; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy .icon { color: var(--gold); }
.btn--green { background: var(--green); color: #fff; }
.btn--ghost-w { background: transparent; color: #fff; border: 2px solid #fff; }
.btn--ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }

/* Top bar */
.topbar { background: var(--navy-d); color: var(--on-dark); font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--gold-l); font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { position: relative; flex: none; width: 96px; height: 72px; overflow: hidden; background: #fff; }
.brand-mark img { position: absolute; left: -11px; top: -6px; width: 118px; height: 118px; max-width: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--f-disp); font-weight: 700; font-size: 26px; text-transform: uppercase; letter-spacing: .05em; color: var(--navy); }
.brand-tag { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 16px; }
.header-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; border: 2px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; background: currentColor; content: ""; position: relative; }
.nav-toggle span::before { position: absolute; top: -7px; left: 0; }
.nav-toggle span::after { position: absolute; top: 7px; left: 0; }
@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; order: 2; }
	.header-actions { order: 3; flex: 1 1 100%; }
	.header-actions .btn { flex: 1 1 140px; }
	.main-nav { display: none; order: 4; flex: 1 1 100%; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
	.nav-open .main-nav { display: flex; }
	.main-nav a { border-bottom: 1px solid var(--line); }
	.brand { order: 1; }
}

/* Hero */
.hero { background: var(--navy); color: #fff; }
.hero-inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero .lbl { color: var(--gold-l); }
.hero h1 { font-family: var(--f-disp); font-weight: 800; font-size: clamp(52px, 7.5vw, 104px); line-height: .95; text-transform: uppercase; letter-spacing: .01em; }
.hero h1 span { color: var(--gold); }
.hero-lead { font-size: 20px; color: var(--on-dark-2); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-list { font-size: 16px; color: var(--on-dark); }
.hero-visual { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.logo-card { width: 100%; max-width: 520px; background: #fff; padding: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.logo-card img { display: block; width: 100%; height: auto; }

/* Trust strip */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); }
.trust-item { flex: 1 1 240px; min-width: 0; background: #fff; padding: 24px; display: flex; flex-direction: column; gap: 2px; }
.trust-item strong { font-family: var(--f-disp); font-weight: 700; font-size: 30px; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; }
.trust-item span { font-size: 16px; color: var(--muted); }

/* Sections */
.section { padding: 88px 0; }
.section--white { background: #fff; border-top: 1px solid var(--line); }
.section--line { border-top: 1px solid var(--line); }
.section--dark { background: var(--navy); color: #F4F6FA; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 40px; }
.section--dark .lbl { color: var(--gold-l); }
.section--dark .section-head p { color: var(--on-dark); }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.about-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-copy p { color: var(--muted); }
.points { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.point { border-top: 3px solid var(--gold); padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.point p { color: var(--muted); }

/* Services */
.feature-row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.feature { flex: 1 1 440px; min-width: 0; background: var(--navy); color: #fff; padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.feature .icon { width: 52px; height: 52px; color: var(--gold); }
.feature p { color: var(--on-dark-2); }
.feature-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold-l); font-weight: 600; text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--gold); color: var(--gold-l); padding: 4px 14px; font-weight: 600; font-size: 16px; }
.svc-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.svc { flex: 1 1 250px; min-width: 0; background: var(--bg); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.svc p { color: var(--muted); }
.svc-icon { width: 60px; height: 60px; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.svc-icon .icon { width: 36px; height: 36px; }

/* Process */
.steps { display: flex; flex-wrap: wrap; gap: 32px; }
.step { flex: 1 1 240px; min-width: 0; border-top: 3px solid var(--navy); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.step p { color: var(--muted); }
.step-no { font-family: var(--f-disp); font-weight: 800; font-size: 56px; line-height: 1; color: var(--gold); }

/* Registration */
.titleblock { display: flex; flex-wrap: wrap; gap: 1px; background: var(--navy-line); border: 1px solid var(--navy-line); }
.tb-cell { flex: 1 1 340px; min-width: 0; background: var(--navy); padding: 20px 24px; display: flex; flex-direction: column; gap: 4px; }
.tb-cell--full { flex-basis: 100%; }
.tb-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-l); }
.tb-value { font-size: 20px; font-weight: 500; }
.fine { margin-top: 16px; font-size: 14px; color: var(--on-dark); }

/* Enquiry */
.enquiry { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.enquiry-info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.enquiry-info > p { color: var(--muted); max-width: 480px; }
.big-phone { font-family: var(--f-disp); font-weight: 800; font-size: clamp(44px, 5.5vw, 68px); line-height: 1; letter-spacing: .01em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.addr { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); }
.addr .icon { margin-top: 3px; }
.social { display: flex; flex-direction: column; gap: 10px; }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; }
.social-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--navy); font-weight: 600; font-size: 16px; }
.form-card { flex: 1 1 440px; min-width: 0; background: #fff; border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.fields { display: flex; flex-wrap: wrap; gap: 16px; }
.field { flex: 1 1 200px; min-width: 0; }
.field--full { flex-basis: 100%; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 0 14px; border: 1.5px solid #9AA7C2; border-radius: 0; background: #fff; color: var(--navy); font: inherit; font-size: 17px; }
.field textarea { padding: 12px 14px; min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-actions .btn { flex: 1 1 220px; }
.form-note { font-size: 14px; color: var(--muted); }
.notice { padding: 14px 16px; font-size: 16px; font-weight: 500; border-left: 4px solid; }
.notice--ok { background: #E6F4EC; border-color: var(--green); color: #0B4D29; }
.notice--err { background: #FBEAEA; border-color: #B3261E; color: #7A1510; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--navy-d); color: var(--on-dark); }
.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 56px; padding-top: 56px; padding-bottom: 40px; }
.footer-col { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.footer-col--brand { flex-basis: 320px; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-logo { flex: none; background: #fff; padding: 6px; }
.footer-logo img { display: block; width: 112px; height: auto; }
.footer-name { font-family: var(--f-disp); font-weight: 700; font-size: 28px; text-transform: uppercase; letter-spacing: .05em; color: #fff; }
.footer-col .lbl { font-size: 12px; color: var(--gold-l); }
.footer-col a { color: #fff; font-weight: 600; }
.footer-bar { border-top: 1px solid var(--navy-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; padding-bottom: 32px; font-size: 14px; }

/* Floating buttons */
.floats { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; gap: 12px; }
.float { display: flex; align-items: center; justify-content: center; border-radius: 50%; box-shadow: 0 4px 14px rgba(7, 20, 51, .35); }
.float--call { width: 56px; height: 56px; background: var(--navy); border: 2px solid var(--gold); color: var(--gold); }
.float--wa { width: 60px; height: 60px; background: var(--green); color: #fff; }
.float--call .icon { width: 26px; height: 26px; }
.float--wa .icon { width: 32px; height: 32px; }

/* Welcome pop-up */
.welcome { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.welcome-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: rgba(7, 20, 51, .72); cursor: pointer; }
.welcome-dialog { position: relative; z-index: 1; width: 100%; max-width: 480px; max-height: 100%; overflow: auto; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.welcome-logo { display: flex; justify-content: center; padding: 24px 24px 8px; background: #fff; }
.welcome-logo img { display: block; width: 190px; max-width: 100%; height: auto; }
.welcome-head { background: var(--navy); padding: 20px 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.welcome-head .lbl { color: var(--gold-l); }
.welcome-head h2 { font-family: var(--f-disp); font-weight: 800; font-size: 44px; line-height: 1; text-transform: uppercase; letter-spacing: .03em; color: #fff; }
.welcome-body { padding: 24px; display: flex; flex-direction: column; gap: 20px; text-align: center; }
.welcome-tag { font-family: var(--f-disp); font-weight: 700; font-size: 30px; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; }
.welcome-tag span { color: var(--gold-d); }
.welcome-body p { font-size: 16px; color: var(--muted); }
.welcome-body .welcome-tag { color: var(--navy); }
.welcome-actions { display: flex; flex-direction: column; gap: 10px; }
.welcome-actions .row { display: flex; flex-wrap: wrap; gap: 10px; }
.welcome-actions .row .btn { flex: 1 1 140px; padding: 0 16px; }
.welcome-skip { min-height: 44px; border: 0; background: transparent; color: var(--muted); font-family: var(--f-body); font-size: 16px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.welcome-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: rgba(11, 31, 68, .08); color: var(--navy); font-size: 28px; line-height: 1; cursor: pointer; }

/* Generic pages and posts */
.entry { padding: 88px 0; }
.entry .wrap { max-width: 800px; }
.entry h1 { font-family: var(--f-disp); font-weight: 700; font-size: clamp(38px, 5vw, 60px); line-height: 1; text-transform: uppercase; margin-bottom: 24px; }
.entry-content > * + * { margin-top: 1em; }
.entry-content a { color: var(--gold-d); text-decoration: underline; }
