/* Fonts: DM Sans for headings, PT Sans for body */
:root {
	--color-primary: hsl(215 80% 45%);
	--color-secondary: hsl(210 40% 96.1%);
	--color-bg: hsl(0 0% 100%);
	--color-text: hsl(222.2 84% 4.9%);
	--color-accent: hsl(45 90% 55%);
	--color-dark: hsl(215 42% 15%);
	--shadow-sm: 0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.1);
	--shadow-md: 0 8px 24px rgba(0,0,0,0.12);
	--radius: 12px;
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body {
	margin: 0;
	font-family: 'PT Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'DM Sans', Arial, sans-serif; margin: 0 0 0.5rem; }
h1.hero-title { font-size: clamp(2rem, 4vw + 1rem, 3rem); letter-spacing: -0.02em; }
.section-title { font-size: clamp(1.5rem, 1.6rem + 1vw, 2rem); color: var(--color-dark); }
.section-title-invert { color: white; }
/* Larger title for services main heading */
.services-main-title { font-size: clamp(2rem, 2.2rem + 1.2vw, 2.75rem); }

.container { width: min(1200px, 92%); margin: 0 auto; }
.container.narrow { width: min(900px, 92%); }

/* Header */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 1000;
	transition: background-color 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
	background: transparent;
	border-bottom: 1px solid transparent;
}
.site-header.scrolled {
	background: rgba(255,255,255,0.9);
	-webkit-backdrop-filter: saturate(150%) blur(8px);
	backdrop-filter: saturate(150%) blur(8px);
	border-color: rgba(0,0,0,0.06);
	box-shadow: var(--shadow-sm);
}

.nav-toggle-button {display: inline;}

.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; }
.header-three-col { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.header-left { justify-self: start;  }
.header-center { justify-self: center; }
.header-right { justify-self: end; display: inline-flex; align-items: center; gap: 0.5rem; }
.logo { display: inline-flex; gap: 0.5rem; align-items: center; text-decoration: none; color: var(--color-text); font-weight: 900; }
.logo-icon { font-size: 1.25rem; }
.company-logo {width: 90px;height: auto;}
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
.logo-text {font-size: 20px;font-family:"Roboto", sans-serif;font-variation-settings:"wdth" 100; margin-right: 40px;padding-top: 10px ;color: white;line-height:20px;}
.logo-subtext{font-size: 16px;}

.nav { display: flex; align-items: center; gap: 1rem; }
.menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 1rem; }
.menu a { text-decoration: none; color: #ffffff; opacity: 1; font-weight: 700; font-family: 'DM Sans', Arial, sans-serif; }
.menu a:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; }
.navbar-close-button {display: none;}

/* While scrolling (header gains .scrolled), nav links turn gray */
.site-header.scrolled .menu a { color: hsl(215 16% 32%); }
.site-header.scrolled .menu a:hover { color: hsl(215 16% 32%); text-decoration: underline; text-underline-offset: 4px; }
.btn-cta { margin-left: 0.5rem; }
.site-header .btn-cta { background: transparent; color: #ffffff; border-color: rgba(255,255,255,0.9); }
.site-header .btn-cta:hover { background: rgba(255,255,255,0.12); color: #ffffff; border-color: #ffffff; }
.site-header.scrolled .btn-cta { background: var(--color-primary); color: #ffffff; border-color: var(--color-primary); }
.site-header.scrolled .btn-cta:hover { background: hsl(215 80% 40%); border-color: hsl(215 80% 40%); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; width: 40px; border-radius: 10px; background: rgba(255,255,255,0.08); border: 1px solid rgba(0,0,0,0.08); color: var(--color-text); cursor: pointer; }
.icon-btn:hover { background: rgb(255, 192, 0 );}
.site-header.scrolled .logo-text {color: hsl(215 16% 32%);}
@media (max-width:900px) {.site-header.site-header.scrolled .nav-toggle-area {background-color:hsl(215 16% 32%);}}

/* Theme toggle */
.theme-toggle { position: relative; }
.theme-btn { position: relative; overflow: hidden; border-radius: 25%; height: 40px; width: 40px; background: rgb(255, 255, 255); border: 1px solid rgba(255, 255, 255, 0.08); }
.theme-btn .icon-sun, .theme-btn .icon-moon { position: absolute; transition: transform 300ms ease, opacity 300ms ease; transform-origin: 50% 50%; }
.theme-btn .icon-sun { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-btn .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.6); }
html.theme-dark .theme-btn .icon-sun { opacity: 0; transform: rotate(90deg) scale(0.6); }
html.theme-dark .theme-btn .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-menu { position: absolute; right: 0; top: 46px; background: white; border: 1px solid rgba(0,0,0,0.1); border-radius: 10px; box-shadow: var(--shadow-md); padding: 0.35rem; display: none; min-width: 140px; }
.theme-menu.open { display: block; animation: fadeIn 120ms ease; }
.theme-menu li { list-style: none; }
.theme-menu button { width: 100%; text-align: left; padding: 0.5rem 0.6rem; background: transparent; border: 0; cursor: pointer; border-radius: 8px; }
.theme-menu button:hover { background: hsl(210 40% 96.1%); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px);} to { opacity: 1; transform: translateY(0);} }

/* Dark theme base */
html.theme-dark, html.theme-dark body { background: hsl(222.2 84% 4.9%); color: hsl(210 40% 98%); }
html.theme-dark .site-header.scrolled { background: whitesmoke; border-color: rgba(255,255,255,0.08); }
html.theme-dark .menu a { color: #ffffff; }
html.theme-dark .menu a:hover { color: #ffffff; text-decoration: underline; }
html.theme-dark .btn-primary { background: hsl(215 80% 55%); border-color: hsl(215 80% 55%); }
html.theme-dark .section { background: hsl(217.2 32.6% 17.5%); color: hsl(210 40% 98%); }
html.theme-dark .section-alt { background: hsl(222.2 84% 4.9%); }
html.theme.dark .section-title {color: hsl(215 80% 45%);}
html.theme-dark .service-title {color: hsl(215 80% 45%);}
html.theme-dark .card, html.theme-dark .contact-form, html.theme-dark .service-card { background: hsl(217.2 32.6% 17.5%); border-color: rgba(255,255,255,0.08); }
html.theme-dark .service-icon { background: rgba(255,255,255,0.06); }
html.theme-dark .site-footer { background: hsl(220 40% 6%); }
html.theme-dark #about-title, #map-title {color: white;}
html.theme-dark #services-main-title{color: white;}
/* Ensure all paragraphs are readable in dark theme */
html.theme-dark p { color: hsl(210 40% 98%); }
/* Dark theme: service section headings in primary blue */
html.theme-dark .services-section h2.section-title { color: var(--color-primary); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; padding: 0; }
.nav-toggle span { display:block; height:2px; background: var(--color-text); margin:8px 7px; border-radius: 2px; transition: transform 200ms ease, opacity 200ms ease; }

@media (max-width: 900px) {
	html.theme-dark .menu a { color: hsl(215 16% 32%); }
	.navbar-close-button {display:inline-flex; float: right; background-color: rgb(0, 0, 0); border: none;}
	.menu a {color: hsl(215 16% 32%);}
	.menu { position: absolute; top: 64px; right: 16px; left: 16px; background: white; padding: 1rem; border-radius: 12px; box-shadow: var(--shadow-md); flex-direction: column; display: none; }
	.menu.open { display: flex; }
	.nav-toggle { display: inline-block; border: solid white; border-radius: 25%;}
	.site-header.scrolled .nav-toggle {border: solid hsl(215 16% 32%);}
	.header-three-col { grid-template-columns: 1fr auto auto; }
	.nav-toggle span {background-color: white; padding: 1.5px;}
	.header-three-col{grid-template-columns:1fr;grid-template-areas:"header-left""header-right""header-center";margin-bottom: 20px;}
	.header-left{grid-area:header-left;justify-content:center;}
	.header-right{grid-area:header-right;justify-content:right;}
	.header-center{grid-area:header-center;justify-content:center}
	/* Company Logo and Text Resizing */
	.company-logo {width: min(60px) ; height: auto;}
	.logo-text {font-size: min(16px); padding: 0; margin: 0;}
	.logo-subtext {font-size: min(14px);}
}

/* Hero */
.section-hero { position: relative; min-height: 100vh; display: grid; place-items: center; color: white; }
/* Hero image url is here*/
.hero-bg { position:absolute; inset:0; background-image: url('heroimage.png'); background-size: cover; background-position: center; }
.hero-content { position: relative; text-align: center; padding: 7rem 0 5rem; }
.hero-content.hero-left { text-align: left; display: grid; gap: 1rem; justify-items: start; }
.hero-subtitle { margin: 0.5rem 0 1.25rem; opacity: 0.95; }
.hero-actions { display: inline-flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.hero-content.hero-left .hero-actions { justify-content: start; }
.hero-title.xl { font-size: clamp(2.25rem, 2rem + 4vw, 4rem); max-width: 14ch; line-height: 1.1; }
.btn .btn-icon { margin-left: 0.4rem; }

/* Hero stats */
.hero-stats { position: absolute; bottom: -3.25rem; left: 46%; transform: translateX(-50%); width: min(1200px, 92%); display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.stat { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 0.5rem; color: hsl(210 40% 96%); }
.stat-icon { display: inline-flex; align-items: center; justify-content: center; height: 28px; width: 28px; color: hsl(210 40% 95%); }
.stat-text strong { display: block; font-family: 'DM Sans', Arial, sans-serif; font-size: 1rem; }
.stat-text span { display: block; font-size: 0.95rem; opacity: 0.9; }
@media (max-width: 900px) {	.hero-stats { position: static; transform: none; width: 100%; grid-template-columns: 1fr; margin-top: 1rem; }}

/* Sections */
.section { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--color-bg); }
.section-alt { background: var(--color-secondary); }
.section-dark { background: var(--color-dark); color: white; }
.section-lead { color: hsl(222 8% 35%); font-size: 1.125rem; }
.section-actions { margin-top: 1rem; }

/* About section redesign */
.about-center { text-align: center; }
.about-title { color: hsl(215 42% 15%); font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3rem); }
.about-lead { max-width: 80ch; margin-inline: auto; color: hsl(222 8% 35%); font-size: clamp(1.125rem, 1rem + 0.6vw, 1.35rem); line-height: 1.9; }
.btn-soft { background: hsl(215 80% 96%); color: var(--color-primary); border: 2px solid hsl(215 80% 90%); }
.btn-soft:hover { background: hsl(215 80% 92%); }

/* Grid */
.grid { display: grid; gap: 1rem; }
.cards-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1000px) { .cards-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 800px) { .cards-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .cards-3, .cards-4 { grid-template-columns: 1fr; } }

.card { background: white; border-radius: var(--radius); padding: 1.1rem 1rem; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.06); }
.card-invert { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }
.card-title { font-size: 1.125rem; color: var(--color-primary); margin-bottom: 0.25rem; }

/* Redesigned services */
.services-section { background: hsl(215 80% 97%); }
/* Make services section span wider viewport with small margins */
.services-section .container { width: min(1600px, 98%); }
.service-grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0.75rem; }
.service-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0.75rem; }
@media (max-width: 1200px) { .service-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 900px) { .service-grid-3 { grid-template-columns: 1fr; } }
.service-card { background: white; border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; padding: 1.25rem; box-shadow: 0 6px 24px rgba(2, 16, 32, 0.06); text-align: center; transition: transform 160ms ease, box-shadow 200ms ease, border-color 160ms ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(2,16,32,0.16); border-color: color-mix(in srgb, var(--color-primary) 25%, rgba(0,0,0,0.06)); }
.service-card:hover .service-icon { background: color-mix(in srgb, var(--color-primary) 18%, white); color: var(--color-primary); }
@media (prefers-reduced-motion: reduce) {
	.service-card { transition: none; }
	.service-card:hover { transform: none; }
}
/* Only Manpower Services (first grid) are square */
.service-grid-4 .service-card { aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: center; }
/* Make Ship & Offshore Services cards taller for more presence */
.service-grid-3 .service-card { min-height: 320px; display: flex; flex-direction: column; justify-content: center; }
.service-icon { height: 64px; width: 64px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 0.75rem; background: hsl(215 80% 96%); color: var(--color-primary); }
.service-title { font-family: 'DM Sans', Arial, sans-serif; font-size: 1.05rem; margin: 0 0 0.25rem; color: hsl(220 60% 20%); }
.service-desc { margin: 0; color: hsl(222 8% 35%); font-size: 0.98rem; }

/* Contact */
.contact-grid { grid-template-columns: 1fr 1.2fr; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Contact redesigned */
.contact-layout { align-items: stretch; }
#contact-title {color: hsl(215 80% 45%);}
.contact-heading { margin: 0 0 0.5rem; font-family: 'DM Sans', Arial, sans-serif; }
.info-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.75rem; }
.info-list li { display: grid; grid-template-columns: 26px 1fr; gap: 0.5rem; align-items: start; }
.info-icon { color: hsl(215 70% 50%); display: inline-flex; height: 26px; width: 26px; align-items: center; justify-content: center; }
.info-label { font-weight: 700; font-family: 'DM Sans', Arial, sans-serif; color: var(--color-primary); }
.info-text a { color: inherit; text-decoration: none; }
.info-text a:hover { text-decoration: underline; }
.alert.emergency { display: grid; grid-template-columns: 20px 1fr; gap: 0.5rem; background: #fee4e2; border: 1px solid #fda29b; color: #b42318; border-radius: 12px; padding: 0.75rem; }
.alert-icon { display: inline-flex; align-items: center; justify-content: center; }

/* Dark theme: improve emergency alert contrast */
html.theme-dark .alert.emergency { background: rgba(255, 72, 66, 0.18); border-color: hsl(0 84% 65% / 0.9); color: hsl(0 84% 90%); }
html.theme-dark .alert.emergency p, html.theme-dark .alert.emergency strong { color: hsl(0 84% 90%); }

.contact-card { background: white; border-radius: 16px; padding: 1.25rem; box-shadow: var(--shadow-md); border: 1px solid rgba(0,0,0,0.06); }
.form-title { margin: 0 0 0.25rem; font-family: 'DM Sans', Arial, sans-serif; color: var(--color-primary); }
.form-subtitle { margin: 0 0 0.75rem; color: hsl(222 8% 35%); }
.two-col { grid-template-columns: 1fr 1fr; display: grid; gap: 0.75rem; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.35rem; }
.char-count { text-align: right; color: hsl(222 8% 45%); font-size: 0.9rem; margin-top: 0.25rem; }
.btn-block { width: 100%; justify-content: center; }

.contact-form { background: white; border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.06); }
.form-row { display: grid; gap: 0.35rem; margin-bottom: 0.75rem; }
.form-row label { font-weight: 700; font-family: 'DM Sans', Arial, sans-serif; }
.form-row input, .form-row textarea { width: 100%; padding: 0.65rem 0.75rem; border: 1px solid rgba(0,0,0,0.15); border-radius: 10px; font-family: inherit; font-size: 1rem; }
.form-row input:focus, .form-row textarea:focus { outline: 3px solid var(--color-primary); outline: 3px solid color-mix(in srgb, var(--color-primary) 20%, transparent); border-color: var(--color-primary); }
.field-error { color: #b42318; font-size: 0.9rem; min-height: 1.2em; margin: 0; }
.form-actions { margin-top: 0.5rem; }
.form-status { margin-top: 0.5rem; font-weight: 700; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.6rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 800; font-family: 'DM Sans', Arial, sans-serif; transition: transform 100ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease; border: 2px solid transparent; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.btn-primary:hover { background: hsl(215 80% 40%); border-color: hsl(215 80% 40%); }
.btn-outline { background: transparent; color: white; border-color: rgba(255,255,255,0.8); }
.section:not(.section-dark) .btn-outline { color: var(--color-primary); border-color: var(--color-primary); }
.section:not(.section-dark) .btn-outline:hover { background: color-mix(in srgb, var(--color-primary) 10%, white); }

/* Footer */
.site-footer { background: rgba(23, 37, 84); color: hsl(210 30% 96%); padding: 2.5rem 0 0; }
.footer-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col { font-size: 0.975rem; }
.footer-brand { font-family: 'DM Sans', Arial, sans-serif; font-size: 1.1rem; margin: 0 0 0.35rem; color: white; }
.footer-desc { color: hsl(210 40% 90%); margin: 0 0 0.75rem; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.footer-contact .icon { display: inline-flex; width: 20px; color: hsl(210 40% 80% / 0.9); }
.footer-contact li { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 0.5rem; }
.footer-heading { font-family: 'DM Sans', Arial, sans-serif; font-size: 1rem; color: white; margin: 0 0 0.45rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.25rem; }
.footer-links a { color: hsl(210 40% 90%); text-decoration: none; }
.footer-links a:hover { color: hsl(215 80% 65%); }
.support-copy { color: hsl(210 40% 90%); margin: 0; }
.company-logo-footer {width:min(300px);margin: 0 ;padding-right: 10px;}

.footer-bottom { margin-top: 1.25rem; padding: 0.9rem 0; border-top: 1px solid hsl(215 30% 25%); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-legal { display: inline-flex; gap: 0.9rem; flex-wrap: wrap; }
.footer-legal a { color: hsl(210 40% 85%); text-decoration: none; }
.footer-legal a:hover { color: hsl(215 80% 65%); }

/* Map */
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.06); }
#map-title {color:hsl(215, 85%, 63%);}

/* Utilities */
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }


