/* ==========================================================================
   Setya Energy — Design Tokens
   ========================================================================== */
:root {
	--navy: #0A2540;
	--navy-deep: #061829;
	--steel: #1C5D73;
	--steel-light: #2E7C93;
	--silver: #C7CCD1;
	--silver-mid: #9AA1A8;
	--silver-ink: #5C636A;
	--ink: #12181D;
	--paper: #F5F4F0;
	--paper-dim: #EBE9E3;
	--line: #D8D5CC;
	--white: #FFFFFF;

	--font-display: 'Archivo', sans-serif;
	--font-body: 'Inter', sans-serif;
	--font-mono: 'Inter', sans-serif; /* previously IBM Plex Mono — switched to match body */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

.wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 32px;
}

.eyebrow {
	font-family: var(--font-mono);
	font-size: 12.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--silver-ink);
	font-weight: 600;
	display: block;
	margin-bottom: 14px;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--navy);
	line-height: 1.12;
	margin: 0;
}

section { padding: 96px 0; }
@media (max-width: 780px) { section { padding: 64px 0; } }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(10, 37, 64, 0.97);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 88px;
}

.site-header .logo {
	display: flex;
	align-items: center;
	gap: 12px;
}

.site-header .logo img {
	height: 58px;
	width: auto;
	filter: brightness(0) invert(1);
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 36px;
}

.site-nav a {
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.72);
	transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--white); }

.site-nav .hotline {
	color: var(--silver);
	font-weight: 600;
	border: 1px solid rgba(199,204,209,0.5);
	padding: 8px 16px;
	border-radius: 2px;
}

.site-nav .hotline:hover {
	background: var(--silver);
	color: var(--navy);
	border-color: var(--silver);
}

.nav-toggle { display: none; }

@media (max-width: 900px) {
	.site-nav { display: none; }
	.nav-toggle {
		display: block;
		background: none;
		border: 1px solid rgba(255,255,255,0.3);
		color: var(--white);
		font-family: var(--font-mono);
		font-size: 12px;
		padding: 8px 14px;
		letter-spacing: 0.08em;
	}
}

/* ==========================================================================
   Hazard strip — signature divider
   ========================================================================== */
.hazard-strip {
	height: 7px;
	background: repeating-linear-gradient(45deg, var(--silver) 0 16px, var(--navy-deep) 16px 32px);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative;
	min-height: 680px;
	display: flex;
	align-items: flex-end;
	background: linear-gradient(180deg, rgba(6,24,41,0.45) 0%, rgba(6,24,41,0.7) 55%, rgba(6,24,41,0.98) 100%), url('../images/hero-port.jpg') center 30% / cover no-repeat;
}

.hero .tag-badge {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	border: 1px solid rgba(255,255,255,0.35);
	padding: 7px 16px;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--white);
	margin-bottom: 26px;
}

.hero .tag-badge .dot {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--silver);
	flex-shrink: 0;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 15px 28px;
	border: 1px solid transparent;
	transition: all 0.15s ease;
}

.btn-primary { background: var(--silver); color: var(--navy); }
.btn-primary:hover { background: var(--silver-mid); }
.btn-outline { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.7); }

.hero-inner {
	padding-bottom: 72px;
	max-width: 760px;
}

.hero h1 {
	font-size: 52px;
	font-weight: 800;
	color: var(--white);
	letter-spacing: -0.01em;
}

.hero h1 span { color: var(--silver); }

.hero p.lede {
	color: rgba(255,255,255,0.82);
	font-size: 18px;
	max-width: 600px;
	margin-top: 28px;
}

.hero-cta {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 36px;
}

.hero-facts {
	display: flex;
	gap: 0;
	margin-top: 56px;
	border-top: 1px solid rgba(255,255,255,0.18);
	flex-wrap: wrap;
}

.hero-facts .fact {
	flex: 1;
	min-width: 150px;
	padding: 28px 28px 32px 28px;
	border-right: 1px solid rgba(255,255,255,0.18);
}

.hero-facts .fact:first-child { padding-left: 0; }
.hero-facts .fact:last-child { border-right: none; padding-right: 0; }

.hero-facts .fact .num {
	font-family: var(--font-mono);
	color: var(--silver);
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	display: block;
	margin-bottom: 10px;
}

.hero-facts .fact .val {
	color: var(--white);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 17px;
	line-height: 1.4;
}

@media (max-width: 780px) {
	.hero h1 { font-size: 36px; }
	.hero-facts .fact { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.18); padding: 14px 0; margin-bottom: 14px; flex: 1 1 100%; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 64px;
	align-items: start;
}

.about-grid h2 {
	font-size: 34px;
	font-weight: 800;
}

.about-body p {
	font-size: 16.5px;
	color: #3C4650;
	margin: 0 0 18px;
}

.about-body p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
	.about-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services { background: var(--navy); }

.services .eyebrow { color: var(--steel-light); }

.services h2 { color: var(--white); font-size: 34px; font-weight: 800; max-width: 560px; }

.service-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: rgba(255,255,255,0.1);
	margin-top: 24px;
	border: 1px solid rgba(255,255,255,0.1);
}

.service-group-label {
	font-family: var(--font-mono);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--silver);
	margin: 56px 0 0;
}

.service-group-label.first { margin-top: 48px; }

.service-card {
	background: var(--navy-deep);
	padding: 34px 28px;
	border-top: 3px solid var(--steel);
	position: relative;
}

.service-card.accent { border-top-color: var(--silver); }

.service-card .icon {
	width: 30px;
	height: 30px;
	color: var(--silver);
	margin-bottom: 20px;
}

.service-card .step {
	display: block;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	color: rgba(255,255,255,0.4);
	margin-bottom: 12px;
}

.service-card h3 {
	color: var(--white);
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 12px;
}

.service-card p {
	color: rgba(255,255,255,0.68);
	font-size: 14.5px;
	margin: 0;
}

@media (max-width: 860px) {
	.service-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Manifest (bunker grades signature element)
   ========================================================================== */
.manifest {
	margin-top: 64px;
	border: 1px solid rgba(255,255,255,0.16);
	background: var(--navy);
}

.manifest-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 28px;
	border-bottom: 1px solid rgba(255,255,255,0.16);
	font-family: var(--font-mono);
	font-size: 12.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.55);
}

.manifest-head span.tag {
	color: var(--silver);
	border: 1px solid rgba(199,204,209,0.5);
	padding: 4px 12px;
	font-size: 11px;
}

.manifest-row {
	display: grid;
	grid-template-columns: 140px 1fr 1fr;
	border-bottom: 1px solid rgba(255,255,255,0.1);
	padding: 20px 28px;
	align-items: center;
}

.manifest-row:last-child { border-bottom: none; }

.manifest-row .code {
	font-family: var(--font-mono);
	color: var(--silver);
	font-weight: 600;
	font-size: 15px;
}

.manifest-row .name {
	color: var(--white);
	font-weight: 600;
	font-size: 15px;
}

.manifest-row .desc {
	color: rgba(255,255,255,0.55);
	font-size: 13.5px;
	font-family: var(--font-mono);
}

@media (max-width: 700px) {
	.manifest-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; }
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
	margin-top: 44px;
}

.gallery-grid figure {
	margin: 0;
	overflow: hidden;
	aspect-ratio: 3/4;
	position: relative;
}

.gallery-grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.gallery-grid figure:hover img { transform: scale(1.06); }

.gallery-grid figcaption {
	position: absolute;
	bottom: 0; left: 0; right: 0;
	background: linear-gradient(0deg, rgba(6,24,41,0.85), transparent);
	color: var(--white);
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.04em;
	padding: 24px 14px 12px;
}

@media (max-width: 860px) {
	.gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-card {
	margin-top: 44px;
	border: 1px solid var(--line);
	background: var(--white);
}

.contact-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 24px;
	padding: 40px 44px;
	border-bottom: 1px solid var(--line);
	background: var(--paper-dim);
}

.contact-top .company {
	font-size: 26px;
	font-weight: 800;
	color: var(--navy);
	margin-bottom: 6px;
}

.contact-top .uen {
	font-family: var(--font-mono);
	font-size: 13px;
	color: #6B7580;
}

.contact-top .hotline-btn {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
}

.contact-top .hotline-btn .lbl {
	font-family: var(--font-mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #8A93A0;
}

.contact-top .hotline-btn .num {
	font-family: var(--font-mono);
	font-size: 24px;
	font-weight: 700;
	color: var(--silver-ink);
}

.contact-rows {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.contact-rows .row {
	padding: 28px 44px;
	border-right: 1px solid var(--line);
}

.contact-rows .row:last-child { border-right: none; }

.contact-rows .label {
	display: block;
	font-family: var(--font-mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #8A93A0;
	margin-bottom: 8px;
}

.contact-rows .value {
	font-size: 15.5px;
	font-weight: 600;
	color: var(--ink);
}

.contact-rows .value a:hover { color: var(--silver-ink); }

@media (max-width: 780px) {
	.contact-rows { grid-template-columns: 1fr; }
	.contact-rows .row { border-right: none; border-bottom: 1px solid var(--line); }
	.contact-top { flex-direction: column; align-items: flex-start; }
	.contact-top .hotline-btn { align-items: flex-start; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background: var(--navy-deep);
	color: rgba(255,255,255,0.5);
	padding: 32px 0;
	font-family: var(--font-mono);
	font-size: 12.5px;
}

.site-footer .wrap {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.site-footer a:hover { color: var(--white); }

/* ==========================================================================
   Motion — hero load-in + scroll reveals
   ========================================================================== */
.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
	@keyframes heroIn {
		from { opacity: 0; transform: translateY(18px); }
		to { opacity: 1; transform: translateY(0); }
	}

	.hero h1, .hero p.lede, .hero-cta, .hero-facts {
		opacity: 0;
		animation: heroIn 0.8s cubic-bezier(.16,.8,.24,1) forwards;
	}
	.hero h1 { animation-delay: 0.05s; }
	.hero p.lede { animation-delay: 0.18s; }
	.hero-cta { animation-delay: 0.3s; }
	.hero-facts { animation-delay: 0.42s; }

	.reveal {
		opacity: 0;
		transform: translateY(24px);
		transition: opacity 0.7s cubic-bezier(.16,.8,.24,1), transform 0.7s cubic-bezier(.16,.8,.24,1);
	}
	.reveal.is-visible { opacity: 1; transform: translateY(0); }

	.service-grid .service-card:nth-child(1) { transition-delay: 0s; }
	.service-grid .service-card:nth-child(2) { transition-delay: 0.08s; }
	.service-grid .service-card:nth-child(3) { transition-delay: 0.16s; }
	.service-grid .service-card:nth-child(4) { transition-delay: 0.24s; }

	.gallery-grid figure:nth-child(1) { transition-delay: 0s; }
	.gallery-grid figure:nth-child(2) { transition-delay: 0.08s; }
	.gallery-grid figure:nth-child(3) { transition-delay: 0.16s; }
	.gallery-grid figure:nth-child(4) { transition-delay: 0.24s; }

	.manifest-row:nth-child(2) { transition-delay: 0.05s; }
	.manifest-row:nth-child(3) { transition-delay: 0.1s; }
	.manifest-row:nth-child(4) { transition-delay: 0.15s; }

	.about-body.reveal { transition-delay: 0.1s; }
}
