/*
Theme Name: SkySource
Theme URI: https://skysource.in
Author: SkySource
Description: One page business theme for SkySource, a workforce, compliance, IT and machinery procurement company based in Navi Mumbai.
Version: 1.5.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: skysource
*/

:root {
	--sky: #0093dd;
	--sky-deep: #00679c;
	--orbit: #be85b2;
	--orbit-deep: #8a4d7e;
	--ink: #12324a;
	--ink-soft: #4a6175;
	--mist: #eef4f8;
	--line: #d6e2eb;
	--white: #ffffff;
	--radius: 6px;
	--wrap: 1160px;
	--head: "Source Serif 4", Georgia, "Times New Roman", serif;
	--body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
	margin: 0;
	font-family: var(--body);
	font-size: 18px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--sky-deep); }

h1, h2, h3, h4 {
	font-family: var(--head);
	line-height: 1.18;
	margin: 0 0 0.6em;
	font-weight: 600;
	color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 600; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-family: var(--body); font-size: 1.15rem; font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 10px; left: 10px; z-index: 100;
	width: auto; height: auto; clip: auto; padding: 10px 16px;
	background: var(--ink); color: var(--white);
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #d9e6ef; }
.section--ink h2, .section--ink h3 { color: var(--white); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.section--ink .section-head p { color: #b9cddc; }

/* Buttons */
.btn {
	display: inline-block;
	font-family: var(--body);
	font-weight: 700;
	font-size: 1rem;
	padding: 14px 26px;
	border-radius: var(--radius);
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--primary { background: var(--sky-deep); color: var(--white); }
.btn--primary:hover { background: var(--ink); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--white); }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid var(--line);
}
.site-header .wrap {
	display: flex; align-items: center; justify-content: space-between;
	min-height: 76px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 44px; width: auto; }
.brand span { font-family: var(--body); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.06em; white-space: nowrap; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; align-items: center; }
.main-nav a {
	color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem;
	padding: 6px 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.is-active { border-bottom-color: var(--sky); }
.main-nav .nav-cta a {
	background: var(--sky-deep); color: var(--white); padding: 10px 18px;
	border-radius: var(--radius); border: 0;
}
.main-nav .nav-cta a:hover { background: var(--ink); }

.nav-toggle {
	display: none; background: none; border: 2px solid var(--ink); border-radius: var(--radius);
	font-family: var(--body); font-weight: 700; color: var(--ink); padding: 8px 14px; cursor: pointer;
}

/* Hero */
.hero { background: var(--ink); color: #d9e6ef; padding: 104px 0 0; }
.hero-main { max-width: 820px; }
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 5vw, 3.7rem); }
.hero-lead { font-size: 1.22rem; color: #c3d5e2; max-width: 700px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--sky); color: var(--white); }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--ink); }
.hero-index {
	display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 88px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-index a {
	display: block; padding: 28px 24px 36px 0; color: #b9cddc; text-decoration: none;
	border-top: 3px solid transparent; margin-top: -2px; transition: border-color 0.2s;
}
.hero-index a + a { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.hero-index a:hover { border-top-color: var(--sky); }
.hero-index strong { display: block; color: var(--white); font-family: var(--head); font-weight: 600; font-size: 1.3rem; margin-bottom: 6px; }
.hero-index span { display: block; font-size: 0.97rem; line-height: 1.5; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.statement { font-family: var(--head); font-size: clamp(1.45rem, 2.6vw, 1.95rem); font-weight: 400; font-style: italic; line-height: 1.35; color: var(--ink); }
.mission-list { list-style: none; margin: 0; padding: 0; }
.mission-list li { padding: 18px 0; border-top: 1px solid var(--line); color: var(--ink-soft); }
.mission-list li:last-child { border-bottom: 1px solid var(--line); }

.culture { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 64px; border: 1px solid var(--line); border-radius: var(--radius); }
.culture div { padding: 30px 28px; }
.culture div + div { border-left: 1px solid var(--line); }
.culture h3 { font-family: var(--head); font-weight: 600; font-size: 1.7rem; color: var(--sky-deep); margin-bottom: 8px; }
.culture p { margin: 0; color: var(--ink-soft); }

/* Why */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 56px; }
.pillar { background: var(--mist); padding: 32px 28px; border-top: 4px solid var(--sky); }
.pillar:nth-child(2) { border-top-color: var(--orbit); }
.pillar:nth-child(3) { border-top-color: var(--ink); }
.pillar p { margin: 0; color: var(--ink-soft); }
.commitments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; list-style: none; margin: 0; padding: 0; }
.commitments li { padding: 16px 0 16px 22px; border-bottom: 1px solid var(--line); position: relative; }
.commitments li::before {
	content: ""; position: absolute; left: 0; top: 26px; width: 8px; height: 8px;
	border-radius: 50%; background: var(--orbit);
}

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.service { padding: 34px 32px 34px 0; border-bottom: 1px solid var(--line); }
.service:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.service p { color: var(--ink-soft); margin: 0; }

/* Compliance */
.acts { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }
.act {
	font-family: var(--body); font-weight: 600; padding: 12px 20px;
	border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 40px; color: var(--white);
}
.tasks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.task { padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.task h3 { margin-bottom: 6px; }
.task p { margin: 0; color: #b9cddc; }

/* Machinery */
.machinery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.machinery-grid > div > h3 { margin-bottom: 16px; }
.machinery-grid .sector-list { columns: 1; }
.machinery-grid .domain h3 { font-size: 1.08rem; }

/* Process */
.process { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.process li {
	counter-increment: step; position: relative; padding: 28px 28px 28px 0;
	border-top: 2px solid var(--line);
}
.process li::before {
	content: counter(step, decimal-leading-zero);
	display: block; font-family: var(--head); font-weight: 600; font-size: 1.05rem;
	color: var(--sky-deep); margin-bottom: 10px;
}
.process li::after {
	content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px;
	border-radius: 50%; background: var(--white); border: 2px solid var(--sky);
}
.process h3 { margin-bottom: 6px; }
.process p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

.billing { margin-top: 56px; padding: 32px; background: var(--white); border-left: 4px solid var(--orbit); }
.billing h3 { margin-bottom: 12px; }
.billing-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.billing-items div { color: var(--ink-soft); }
.billing-items strong { display: block; color: var(--ink); font-family: var(--body); }

/* Industries */
.industries { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.sector-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.sector-list li { padding: 12px 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-weight: 600; }
.domain { padding: 22px 0; border-bottom: 1px solid var(--line); }
.domain:first-child { padding-top: 0; }
.domain h3 { margin-bottom: 4px; }
.domain p { margin: 0; color: var(--ink-soft); }

/* Reviews */
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; }
.reviews-head .section-head { margin-bottom: 0; }
.review-toggle { flex-shrink: 0; }
.review-notice { margin-bottom: 40px; }

.review { margin: 0; display: flex; flex-direction: column; }
.review blockquote { margin: 0 0 20px; flex: 1; }
.review blockquote p { margin: 0; color: #d9e6ef; font-size: 1.05rem; }
.review figcaption strong { display: block; color: var(--white); font-family: var(--body); font-weight: 700; }
.review figcaption span { display: block; color: #b9cddc; font-size: 0.95rem; }

.review--featured { padding-bottom: 56px; }
.review--featured blockquote { padding-left: 28px; border-left: 4px solid var(--orbit); }
.review--featured blockquote p {
	font-family: var(--head); font-style: italic; font-weight: 400;
	font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.42; color: var(--white); max-width: 34em;
}
.review--featured figcaption { padding-left: 32px; }

.review-track {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 96px) / 3); gap: 48px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 32px;
}
.review-track::-webkit-scrollbar { display: none; }
.review-track .review { scroll-snap-align: start; }
.review-track:focus-visible { outline-offset: 6px; }

.review-controls { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.review-controls[hidden] { display: none; }
.review-nav {
	font: inherit; font-weight: 700; font-size: 0.97rem; color: var(--white); cursor: pointer;
	background: transparent; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: var(--radius); padding: 10px 18px;
	transition: background-color 0.2s, color 0.2s;
}
.review-nav:hover:not(:disabled) { background: var(--white); color: var(--ink); }
.review-nav:disabled { opacity: 0.35; cursor: default; }
.review-position { color: #b9cddc; font-size: 0.95rem; min-width: 7em; text-align: center; }

.reviews-empty { color: #b9cddc; font-size: 1.1rem; }

.review-panel { margin-bottom: 64px; }
.review-panel[hidden] { display: none; }
.review-form { color: var(--ink); max-width: 860px; }
.review-form h3 { font-family: var(--head); font-weight: 600; font-size: 1.5rem; color: var(--ink); margin-bottom: 6px; }
.review-form-note { color: var(--ink-soft); margin-bottom: 26px; }
.optional { font-weight: 400; color: var(--ink-soft); }
.char-count { display: block; text-align: right; font-size: 0.85rem; color: var(--ink-soft); margin-top: 4px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 26px; color: var(--ink-soft); font-size: 0.97rem; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; accent-color: var(--sky-deep); }
.review-form-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
.contact-details dl { margin: 0; }
.contact-details dt { font-family: var(--body); font-weight: 700; margin-top: 22px; }
.contact-details dd { margin: 4px 0 0; color: var(--ink-soft); }
.contact-details a { font-weight: 600; }
.map { margin-top: 32px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 260px; border: 0; }

.contact-form { background: var(--white); border: 1px solid var(--line); padding: 36px; border-radius: var(--radius); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
	width: 100%; font: inherit; color: var(--ink); background: var(--white);
	border: 1px solid #b8cad8; border-radius: var(--radius); padding: 12px 14px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sky); border-color: var(--sky); }
.hp-field { position: absolute; left: -9999px; }
.form-notice { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 600; }
.form-notice--ok { background: #e3f4ea; color: #1d5e37; }
.form-notice--error { background: #fbe9e9; color: #8a2424; }

/* Footer */
.site-footer { background: var(--ink); color: #b9cddc; padding: 48px 0 32px; font-size: 0.95rem; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer-brand { font-family: var(--body); font-weight: 700; letter-spacing: 0.06em; font-size: 1.3rem; color: var(--white); margin-bottom: 6px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Generic page content */
.page-content { padding: 72px 0; }
.page-content .wrap { max-width: 800px; }

/* Responsive */
@media (max-width: 1000px) {
	.about-grid, .industries, .contact-grid, .machinery-grid { grid-template-columns: 1fr; gap: 48px; }
	.hero-index { grid-template-columns: repeat(2, 1fr); }
	.hero-index a:nth-child(3) { padding-left: 0; border-left: 0; }
	.hero-index a:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.18); }
	.services, .process { grid-template-columns: repeat(2, 1fr); }
	.review-track { grid-auto-columns: calc((100% - 48px) / 2); }
	.service:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
	.service:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
}

@media (max-width: 1080px) {
	.nav-toggle { display: inline-block; }
	.main-nav {
		position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
		border-bottom: 1px solid var(--line); display: none;
	}
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
	.main-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
	.main-nav .nav-cta a { margin-top: 14px; text-align: center; padding: 14px; }
}

@media (max-width: 720px) {
	body { font-size: 16px; }
	.section { padding: 68px 0; }
	.hero { padding: 64px 0 8px; }
	.culture, .pillars, .commitments, .tasks, .billing-items, .form-row { grid-template-columns: 1fr; }
	.culture div + div { border-left: 0; border-top: 1px solid var(--line); }
	.services, .process { grid-template-columns: 1fr; }
	.service, .service:nth-child(2n) { padding: 26px 0; border-left: 0; }
	.sector-list { columns: 1; }
	.hero-index { grid-template-columns: 1fr; margin-top: 56px; }
	.hero-index a, .hero-index a + a { padding: 20px 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); margin-top: 0; }
	.hero-index a:first-child { border-top: 0; }
	.contact-form { padding: 24px; }
	.reviews-head { flex-direction: column; align-items: flex-start; }
	.review--featured blockquote { padding-left: 20px; }
	.review--featured figcaption { padding-left: 24px; }
	.review-track { grid-auto-columns: 86%; gap: 28px; }
	.brand span { font-size: 1.1rem; }
	.brand img { height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
