/*
Theme Name: Amarapali
Description: Custom theme for Amarapali Drillers, borewell drilling contractors in Hyderabad.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: amarapali
*/

:root {
	--navy: #12203a;
	--navy-2: #1b2f55;
	--orange: #e8590c;
	--orange-d: #c94a06;
	--green: #1faa53;
	--green-d: #178a43;
	--ink: #1c2530;
	--muted: #5c6875;
	--line: #e3e7ec;
	--bg: #ffffff;
	--bg-alt: #f5f7fa;
	--radius: 14px;
	--shadow: 0 8px 28px rgba(18, 32, 58, .08);
	--wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-d); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3, .h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
address { font-style: normal; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.mt { margin-top: 2rem; }
.ic { fill: currentColor; flex: none; vertical-align: -4px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Top bar */
.topbar { background: var(--navy); color: #dbe3ef; font-size: .86rem; }
.topbar-in { display: flex; gap: 18px; justify-content: space-between; align-items: center; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; font-weight: 700; white-space: nowrap; }
.topbar .ic { width: 15px; height: 15px; vertical-align: -2px; color: #ffb37d; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.brand img { width: 190px; height: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 10px 12px; color: var(--navy); font-weight: 700; font-size: .95rem; border-radius: 8px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--bg-alt); color: var(--orange-d); text-decoration: none; }
.header-cta { display: flex; gap: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px; color: var(--navy); cursor: pointer; }
.nav-toggle .ic { width: 24px; height: 24px; display: block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 20px; border-radius: 999px; font-weight: 800; font-size: 1rem; line-height: 1; color: #fff; border: 0; cursor: pointer; transition: transform .12s ease, background .12s ease; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-call { background: var(--orange); }
.btn-call:hover { background: var(--orange-d); }
.btn-wa { background: var(--green); }
.btn-wa:hover { background: var(--green-d); }
.header-cta .btn { padding: 11px 16px; font-size: .92rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4rem 0 .4rem; }
.link-arrow { font-weight: 800; }
.link-arrow::after { content: " \2192"; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #27467d 100%); color: #e6ecf5; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; font-weight: 800; color: var(--orange); margin-bottom: .7em; }
.hero .eyebrow, .page-hero .eyebrow { color: #ffb37d; }
.lead { font-size: 1.14rem; max-width: 60ch; }
.hero-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; font-size: .95rem; }
.hero-points .ic { color: #6fe39b; width: 18px; height: 18px; }
.hero-media { position: relative; }
.hero-media img { border-radius: 20px; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.rating-chip { position: absolute; left: -18px; bottom: 26px; background: #fff; color: var(--navy); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; font-size: .82rem; line-height: 1.25; }
.rating-chip:hover { text-decoration: none; }
.rating-chip .ic { grid-row: span 2; width: 30px; height: 30px; color: #f5a623; }
.rating-chip strong { font-size: 1rem; }
.rating-chip span { color: var(--muted); }

.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 70%, #27467d 100%); color: #e6ecf5; padding: 46px 0 50px; }
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.crumbs { font-size: .85rem; margin-bottom: 14px; color: #b9c6da; }
.crumbs a { color: #fff; }
.crumbs span { opacity: .6; margin: 0 4px; }

/* Sections */
.section { padding: 68px 0; }
.section.alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); max-width: 70ch; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.split-media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.split-media img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.split-media img:nth-child(2) { margin-top: 34px; }
.split-media.one { grid-template-columns: 1fr; margin-bottom: 24px; }
.split-media.one img { aspect-ratio: 5 / 4; margin: 0; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 1.8rem 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.section.alt .card { box-shadow: var(--shadow); border-color: transparent; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.card-ic { display: inline-flex; width: 46px; height: 46px; border-radius: 12px; background: #fff1e8; color: var(--orange); align-items: center; justify-content: center; margin-bottom: 14px; }
.card-ic .ic { width: 24px; height: 24px; }
.card-ic.lg { width: 60px; height: 60px; }
.card-ic.lg .ic { width: 30px; height: 30px; }

.ticks { list-style: none; padding: 0; }
.ticks li { display: flex; gap: 10px; margin-bottom: .55em; }
.ticks .ic { color: var(--green); margin-top: 4px; }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 1.8rem; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; }
.steps h3 { font-size: 1.02rem; margin-bottom: .35em; }
.steps p { margin: 0; color: var(--muted); font-size: .92rem; }
.step-n { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 12px; }
.steps.compact { grid-template-columns: 1fr; gap: 10px; }
.steps.compact li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 14px 16px; }
.steps.compact .step-n { grid-row: span 2; margin: 0; }

.chip-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin: 1.4rem 0; }
.chip-list a, .chip-list span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 700; font-size: .93rem; }
.chip-list a:hover { border-color: var(--orange); color: var(--orange-d); text-decoration: none; }
.chip-list .ic { width: 15px; height: 15px; color: var(--orange); }
.link-cloud a { display: inline-block; margin: 0 14px 8px 0; font-weight: 600; }
.zone-block { margin-bottom: 2.4rem; }

.service-row { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.service-row:last-child { border-bottom: 0; }
.service-row h2 { font-size: 1.45rem; }
.service-row p { color: var(--muted); max-width: 75ch; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.stat { background: #fff; border-radius: var(--radius); padding: 26px 14px; box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 1.8rem; color: var(--orange-d); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 46px 16px 18px; font-weight: 800; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--orange); font-weight: 400; }
.faq[open] summary::after { content: "\2212"; }
.faq p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

/* Enquiry form */
.enquiry-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); scroll-margin-top: 100px; }
.enquiry-card .wpcf7 label { display: block; font-weight: 700; font-size: .9rem; color: var(--navy); margin-bottom: 12px; }
.enquiry-card input[type="text"], .enquiry-card input[type="tel"], .enquiry-card input[type="email"], .enquiry-card textarea, .enquiry-card select {
	width: 100%; margin-top: 5px; padding: 12px 14px; border: 1px solid #cfd6de; border-radius: 10px; font: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
.enquiry-card textarea { height: 104px; resize: vertical; }
.enquiry-card input:focus, .enquiry-card textarea:focus { border-color: var(--orange); outline: 2px solid #ffd9c2; }
.enquiry-card .wpcf7-submit { width: 100%; background: var(--orange); color: #fff; border: 0; border-radius: 999px; padding: 15px 20px; font: inherit; font-weight: 800; cursor: pointer; }
.enquiry-card .wpcf7-submit:hover { background: var(--orange-d); }
.enquiry-card .wpcf7-not-valid-tip { font-size: .82rem; font-weight: 600; }
.enquiry-card .wpcf7-response-output { margin: 14px 0 0 !important; border-radius: 10px; font-size: .92rem; }
.enquiry-card .wpcf7-spinner { display: block; margin: 8px auto 0; }

/* Contact */
.contact-list { list-style: none; padding: 0; }
.contact-list li { display: flex; gap: 12px; margin-bottom: 14px; }
.contact-list .ic { color: var(--orange); margin-top: 4px; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-frame iframe { display: block; width: 100%; height: 340px; border: 0; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 1.6rem; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-body { padding: 18px 20px 20px; }
.post-body time { font-size: .82rem; color: var(--muted); font-weight: 600; }
.post-body h3 { margin: .3em 0 .4em; font-size: 1.1rem; }
.post-body h3 a { color: var(--navy); }
.post-body p { margin: 0; color: var(--muted); font-size: .94rem; }
.post-hero img { border-radius: var(--radius); width: 100%; margin-bottom: 1.6rem; }
.post-hero { margin: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }
.prose ul li, .prose ol li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--bg-alt); }
.post-cta { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; margin: 2rem 0; }
.pager { margin-top: 2rem; text-align: center; }
.pager .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; margin: 0 3px; font-weight: 700; }
.pager .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* CTA band */
.cta-band { background: var(--orange); color: #fff; padding: 44px 0; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; }
.cta-band-in { display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band .btn-call { background: var(--navy); }
.cta-band .btn-call:hover { background: #0b162b; }
.cta-band .cta-row { margin: 0; }

/* Footer */
.site-footer { background: var(--navy); color: #c7d1e0; font-size: .95rem; }
.site-footer a { color: #e6ecf5; }
.site-footer a:hover { color: #ffb37d; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 1em; }
.site-footer h4 { color: #ffb37d; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.f-col li { margin-bottom: .5em; }
.f-logo { width: 180px; background: #fff; border-radius: 10px; padding: 8px 10px; margin-bottom: 16px; }
.f-contact p { margin-bottom: .5em; }
.f-contact .ic { width: 16px; height: 16px; color: #ffb37d; vertical-align: -3px; }
.footer-areas { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 36px; padding-bottom: 36px; }
.zone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 36px; }
.zone ul { columns: 2; column-gap: 18px; }
.zone li { margin-bottom: .32em; break-inside: avoid; font-size: .88rem; }
.zone a { color: #b9c6da; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; font-size: .85rem; color: #93a2b8; text-align: center; }

/* Mobile action bar */
.mobile-bar { display: none; }

@media (max-width: 1080px) {
	.header-cta .btn span { display: none; }
	.header-cta .btn { padding: 12px; }
	.steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
	body { font-size: 16px; padding-bottom: 62px; }
	.hide-sm { display: none; }
	.nav-toggle { display: block; }
	.header-cta { display: none; }
	.header-in { min-height: 64px; }
	.brand img { width: 160px; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); margin: 0; }
	.site-nav.open { display: block; }
	.site-nav ul { flex-direction: column; gap: 0; padding: 8px 14px 14px; }
	.site-nav a { padding: 13px 10px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.hero-in, .split { grid-template-columns: 1fr; gap: 32px; }
	.hero-in { padding-top: 40px; padding-bottom: 44px; }
	.hero-media img { aspect-ratio: 16 / 11; }
	.rating-chip { left: 12px; bottom: 12px; }
	.section { padding: 48px 0; }
	.card-grid, .post-grid, .gallery-grid { grid-template-columns: 1fr 1fr; }
	.steps { grid-template-columns: 1fr; gap: 10px; }
	.steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 14px 16px; }
	.steps .step-n { grid-row: span 2; margin: 0; }
	.stat-row { grid-template-columns: 1fr 1fr; }
	.footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
	.zone-grid { grid-template-columns: 1fr 1fr; }
	.cta-row .btn { flex: 1 1 auto; }
	.mobile-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -4px 18px rgba(0, 0, 0, .18); }
	.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 16px 6px; color: #fff; font-weight: 800; font-size: .95rem; }
	.mobile-bar a:hover { text-decoration: none; }
	.mb-call { background: var(--orange); }
	.mb-wa { background: var(--green); }
	.mb-form { background: var(--navy); }
}

@media (max-width: 560px) {
	.topbar-in { justify-content: center; }
	.topbar-in > span:first-child { display: none; }
	.card-grid, .post-grid, .footer-top, .zone-grid { grid-template-columns: 1fr; }
	.gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.service-row { grid-template-columns: 1fr; gap: 10px; }
	.split-media img:nth-child(2) { margin-top: 0; }
	.enquiry-card { padding: 20px; }
	.cta-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.btn { transition: none; }
}
