/* ==========================================================================
   DotGenesis — Website Theme
   Minimal black / white / gray design
   ========================================================================== */

:root {
	--dg-black: #111111;
	--dg-dark: #1f1f1f;
	--dg-gray-900: #2b2b2b;
	--dg-gray-700: #4a4a4a;
	--dg-gray-500: #7a7a7a;
	--dg-gray-300: #d6d6d6;
	--dg-gray-100: #f5f5f5;
	--dg-white: #ffffff;
	--dg-radius: 6px;
	--dg-max-width: 1140px;
	--dg-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Helvetica, Arial, sans-serif;
}

body {
	font-family: var(--dg-font);
	color: var(--dg-dark);
	background: var(--dg-white);
	-webkit-font-smoothing: antialiased;
}

.dg-container {
	max-width: var(--dg-max-width);
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- Navbar ---------- */
.dg-navbar {
	border-bottom: 1px solid var(--dg-gray-300);
	background: var(--dg-white);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.dg-navbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
}

.dg-logo {
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--dg-black);
	text-decoration: none;
}

.dg-logo span {
	font-weight: 400;
	color: var(--dg-gray-500);
}

.dg-nav-links {
	display: flex;
	gap: 32px;
}

.dg-nav-links a {
	color: var(--dg-gray-700);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
	transition: color 0.15s ease;
}

.dg-nav-links a:hover,
.dg-nav-links a.dg-active {
	color: var(--dg-black);
}

/* ---------- Buttons ---------- */
.dg-btn {
	display: inline-block;
	padding: 12px 26px;
	border-radius: var(--dg-radius);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: all 0.15s ease;
	line-height: 1.2;
}

.dg-btn-primary {
	background: var(--dg-black);
	color: var(--dg-white);
	border-color: var(--dg-black);
}

.dg-btn-primary:hover {
	background: var(--dg-gray-900);
}

.dg-btn-secondary {
	background: transparent;
	color: var(--dg-black);
	border-color: var(--dg-gray-300);
}

.dg-btn-secondary:hover {
	border-color: var(--dg-gray-700);
}

.dg-btn-block {
	width: 100%;
	text-align: center;
}

/* ---------- Hero ---------- */
.dg-hero {
	padding: 110px 0 90px;
	text-align: center;
	background: var(--dg-white);
}

.dg-hero h1 {
	font-size: 2.75rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	max-width: 820px;
	margin: 0 auto 24px;
	line-height: 1.2;
	color: var(--dg-black);
}

.dg-hero-sub {
	font-size: 1.1rem;
	color: var(--dg-gray-700);
	max-width: 640px;
	margin: 0 auto 36px;
	line-height: 1.65;
}

.dg-hero-actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

/* ---------- Sections ---------- */
.dg-section {
	padding: 80px 0;
}

.dg-section-alt {
	background: var(--dg-gray-100);
}

.dg-section-title {
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-align: center;
	margin-bottom: 12px;
	color: var(--dg-black);
}

.dg-section-sub {
	text-align: center;
	color: var(--dg-gray-500);
	max-width: 560px;
	margin: 0 auto 48px;
	font-size: 1.02rem;
}

/* ---------- Service Cards ---------- */
.dg-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.dg-card {
	border: 1px solid var(--dg-gray-300);
	border-radius: var(--dg-radius);
	padding: 32px 28px;
	background: var(--dg-white);
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.dg-card:hover {
	border-color: var(--dg-gray-700);
	transform: translateY(-2px);
}

.dg-card h3 {
	font-size: 1.15rem;
	font-weight: 700;
	margin-bottom: 12px;
	color: var(--dg-black);
}

.dg-card p {
	color: var(--dg-gray-700);
	font-size: 0.96rem;
	line-height: 1.6;
	margin: 0;
}

/* ---------- About / Approach ---------- */
.dg-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
}

.dg-lead {
	font-size: 1.2rem;
	line-height: 1.7;
	color: var(--dg-dark);
}

.dg-points {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.dg-point h4 {
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 6px;
	color: var(--dg-black);
}

.dg-point p {
	color: var(--dg-gray-700);
	font-size: 0.95rem;
	line-height: 1.6;
	margin: 0;
}

/* ---------- CTA ---------- */
.dg-cta {
	text-align: center;
	background: var(--dg-black);
	color: var(--dg-white);
}

.dg-cta h2 {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 12px;
}

.dg-cta p {
	color: var(--dg-gray-300);
	margin-bottom: 32px;
	font-size: 1.05rem;
}

.dg-cta .dg-btn-primary {
	background: var(--dg-white);
	color: var(--dg-black);
	border-color: var(--dg-white);
}

.dg-cta .dg-btn-primary:hover {
	background: var(--dg-gray-300);
}

/* ---------- Footer ---------- */
.dg-footer {
	border-top: 1px solid var(--dg-gray-300);
	padding: 56px 0 0;
}

.dg-footer-top {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 32px;
	padding-bottom: 40px;
}

.dg-footer-col h5 {
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--dg-gray-500);
	margin: 0 0 14px;
}

.dg-footer-col a {
	display: block;
	color: var(--dg-gray-700);
	text-decoration: none;
	font-size: 0.95rem;
	margin-bottom: 10px;
	transition: color 0.15s ease;
}

.dg-footer-col a:hover {
	color: var(--dg-black);
}

.dg-footer-brand p {
	color: var(--dg-gray-500);
	font-size: 0.92rem;
	margin: 12px 0 0;
	max-width: 320px;
}

.dg-footer-logo {
	font-size: 1.2rem;
}

.dg-footer-bottom {
	border-top: 1px solid var(--dg-gray-300);
	padding: 20px 0;
}

.dg-footer-bottom p {
	color: var(--dg-gray-500);
	font-size: 0.85rem;
	margin: 0;
	text-align: center;
}

/* ---------- Consult Modal ---------- */
.dg-modal-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(17, 17, 17, 0.55);
	align-items: center;
	justify-content: center;
	z-index: 2000;
	padding: 20px;
}

.dg-modal-backdrop.dg-open {
	display: flex;
}

.dg-modal {
	background: var(--dg-white);
	border-radius: var(--dg-radius);
	padding: 36px;
	max-width: 440px;
	width: 100%;
	position: relative;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.dg-modal h3 {
	font-size: 1.4rem;
	font-weight: 700;
	margin-bottom: 6px;
	color: var(--dg-black);
}

.dg-modal-sub {
	color: var(--dg-gray-500);
	font-size: 0.92rem;
	margin-bottom: 24px;
}

.dg-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: none;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--dg-gray-500);
	cursor: pointer;
}

.dg-modal-close:hover {
	color: var(--dg-black);
}

.dg-field {
	margin-bottom: 16px;
}

.dg-field label {
	display: block;
	font-size: 0.88rem;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--dg-dark);
}

.dg-field label span {
	color: var(--dg-gray-500);
}

.dg-field input,
.dg-field textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--dg-gray-300);
	border-radius: var(--dg-radius);
	font-size: 0.95rem;
	font-family: var(--dg-font);
	box-sizing: border-box;
	transition: border-color 0.15s ease;
	resize: vertical;
}

.dg-field input:focus,
.dg-field textarea:focus {
	outline: none;
	border-color: var(--dg-black);
}

.dg-form-message {
	font-size: 0.9rem;
	margin-bottom: 12px;
	min-height: 1.2em;
}

.dg-form-message.dg-success {
	color: #1a7f37;
}

.dg-form-message.dg-error {
	color: #c0392b;
}

/* ---------- Page Header (Services/About/Contact) ---------- */
.dg-page-header {
	padding: 80px 0 50px;
	text-align: center;
}

.dg-page-header h1 {
	font-size: 2.5rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-align: center;
	margin: 0 auto 16px;
	color: var(--dg-black);
}

.dg-page-header .dg-hero-sub {
	margin: 0 auto;
}

/* ---------- Section title (left aligned variant) ---------- */
.dg-section-title-left {
	text-align: left;
	margin-bottom: 16px;
}

.dg-section-link {
	text-align: center;
	margin-top: 40px;
}

.dg-link-arrow {
	color: var(--dg-black);
	font-weight: 600;
	text-decoration: none;
	font-size: 0.98rem;
	border-bottom: 1px solid var(--dg-gray-300);
	padding-bottom: 2px;
	transition: border-color 0.15s ease;
}

.dg-link-arrow:hover {
	border-color: var(--dg-black);
}

/* ---------- About teaser (home) ---------- */
.dg-about-teaser {
	max-width: 720px;
	text-align: left;
}

/* ---------- ERPNext module grid ---------- */
.dg-module-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.dg-module-card {
	border: 1px solid var(--dg-gray-300);
	border-radius: var(--dg-radius);
	padding: 22px 24px;
	background: var(--dg-white);
}

.dg-module-card h4 {
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--dg-black);
}

.dg-module-card p {
	color: var(--dg-gray-700);
	font-size: 0.92rem;
	line-height: 1.55;
	margin: 0;
}

/* ---------- Services page detail blocks ---------- */
.dg-service-block {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: start;
}

.dg-service-points {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.dg-service-points li {
	position: relative;
	padding-left: 24px;
	color: var(--dg-gray-700);
	font-size: 0.97rem;
	line-height: 1.6;
}

.dg-service-points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--dg-black);
}

/* ---------- About process steps ---------- */
.dg-process {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.dg-process-step {
	border-top: 2px solid var(--dg-black);
	padding-top: 18px;
}

.dg-process-index {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--dg-gray-500);
	margin-bottom: 10px;
}

.dg-process-step h4 {
	font-size: 1.02rem;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--dg-black);
}

.dg-process-step p {
	color: var(--dg-gray-700);
	font-size: 0.93rem;
	line-height: 1.6;
	margin: 0;
}

/* ---------- Contact page ---------- */
.dg-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 56px;
	align-items: start;
}

.dg-contact-info h3,
.dg-contact-form-wrapper h3 {
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 16px;
	color: var(--dg-black);
}

.dg-contact-item {
	margin-bottom: 20px;
}

.dg-contact-label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--dg-gray-500);
	margin-bottom: 4px;
}

.dg-contact-item a {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--dg-black);
	text-decoration: none;
}

.dg-contact-item a:hover {
	text-decoration: underline;
}

.dg-contact-note {
	margin-top: 32px;
	padding: 16px 18px;
	border: 1px solid var(--dg-gray-300);
	border-radius: var(--dg-radius);
	background: var(--dg-gray-100);
	color: var(--dg-gray-700);
	font-size: 0.92rem;
	line-height: 1.6;
}

.dg-contact-form-wrapper {
	border: 1px solid var(--dg-gray-300);
	border-radius: var(--dg-radius);
	padding: 32px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.dg-cards {
		grid-template-columns: 1fr;
	}

	.dg-module-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.dg-grid-2 {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.dg-hero h1 {
		font-size: 2.1rem;
	}

	.dg-page-header h1 {
		font-size: 2rem;
	}

	.dg-service-block {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.dg-process {
		grid-template-columns: repeat(2, 1fr);
	}

	.dg-contact-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.dg-footer-top {
		grid-template-columns: 1fr 1fr;
	}

	.dg-footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.dg-nav-links {
		display: none;
	}

	.dg-module-grid {
		grid-template-columns: 1fr;
	}

	.dg-navbar-inner {
		height: 64px;
	}

	.dg-hero {
		padding: 70px 0 60px;
	}

	.dg-section {
		padding: 56px 0;
	}

	.dg-process {
		grid-template-columns: 1fr;
	}

	.dg-footer-top {
		grid-template-columns: 1fr;
	}
}

/* ---------- Toast ---------- */
.dg-toast {
	position: fixed;
	bottom: 28px;
	left: 50%;
	transform: translate(-50%, 16px);
	background: var(--dg-black);
	color: var(--dg-white);
	padding: 14px 24px;
	border-radius: var(--dg-radius);
	font-size: 0.95rem;
	font-weight: 500;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 2000;
	pointer-events: none;
}

.dg-toast-show {
	opacity: 1;
	transform: translate(-50%, 0);
}
