/* === Variables and Base Reset === */
:root {
  --primary: #0a2c3d;
  --accent: #f26419;
  --light-bg: #f4f4f4;
  --dark-blue: #0d3c55;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  background-color: var(--white);
}

/* === Header and Navigation === */
/* === Header and Navbar === */
header {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 999;
  background-color: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  height: 50px;
  max-width: 100%;
}

.main-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.main-nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
}

/* === Hero Section === */
.hero {
  background: url('../img/bg-onshoresubstation.jpg') no-repeat center center;
  background-size: cover;
  color: var(--dark-blue);
  padding: 160px 20px 40px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.hero-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px 20px;
  max-width: 600px;
  width: 100%; /* allow shrinking */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: 0 auto; /* center it */
}

.hero-index .hero-content {
  margin-left: 0;
  margin-right: auto;
}

.hero h1 {
  font-size: 2.8em;
  color: var(--dark-blue);
}

.hero p {
  font-size: 1.1em;
  margin: 20px 0;
}

.hero a {
  text-decoration: none;
  background: var(--dark-blue);
  color: var(--white);
  padding: 10px 20px;
  margin-right: 10px;
  display: inline-block;
  font-weight: bold;
}

.hero-subtitle {
  font-size: 1.1em;
  color: var(--dark-blue);
  font-weight: 400;
  margin-top: 5px;
  margin-bottom: 10px;
}

.hero-underline {
  width: 120px;
  height: 2px;
  background-color: var(--dark-blue);
  margin-bottom: 30px;
}

.hero-intro {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--dark-blue);
}

/* === Hero Background Variants === */
.hero-bg-about {
  background-image: url('../img/bg-offshore-substation.jpg');
  background-size: cover;
  background-position: center top 20%;
  background-repeat: no-repeat;
}

.hero-bg-contact {
  background-image: url('../img/bg-offshore-substation.jpg');
  background-size: cover;
  background-position: center top 20%;
  background-repeat: no-repeat;
}

.hero-bg-offshore {
  background-image: url('../img/bg-offshore-crew.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.centered-hero .hero-content {
  text-align: center;
  align-items: center;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
}

.centered-hero .hero-content h1 {
  font-size: 2.8em;
  color: var(--dark-blue);
}

.centered-hero .hero-content p {
  font-size: 1.1em;
  color: var(--dark-blue);
}

/* === Section Layout === */
.section {
  padding: 100px 20px;
  max-width: 1200px;
  margin: auto;
}

.section h2 {
  font-size: 2em;
  margin-bottom: 40px;
  color: var(--primary);
  text-align: center;
}

.section.section-tight {
  padding-top: 20px;
}

section.hero,
section.section {
  margin-top: 20px;
}

/* === Services and Features === */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.service-box {
  background: var(--dark-blue);
  color: var(--white);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 260px;
  height: 320px;
}

.service-box h3 {
  margin-bottom: 20px;
  font-size: 1.3em;
}

.service-box p {
  flex-grow: 1;
  margin-bottom: 20px;
}

.service-box a {
  background: var(--white);
  color: var(--dark-blue);
  font-weight: bold;
  padding: 10px 20px;
  text-decoration: none;
}

/* Styled service list */
.service-list {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 40px auto;
}

.service-list li {
  background: var(--light-bg);
  padding: 15px 20px;
  margin-bottom: 12px;
  border-left: 5px solid var(--accent);
  font-weight: 400;
}

/* === References Section === */
.references-section {
  position: relative;
  background: url('../img/bg-offshore-crew.jpg') center center / cover no-repeat;
  padding: 100px 20px;
  padding-left: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* default desktop layout */
  min-height: 600px;
}

.references {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  width: 330px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  text-align: center;
  margin: 0;
}

.references h2 {
  color: var(--primary);
  font-size: 2em;
  margin-bottom: 30px;
}

.logo-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.logo-grid img {
  max-width: 160px;
  max-height: 70px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-grid img:hover {
  transform: scale(1.05);
}

/* === Footer === */
footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 40px 20px;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-logo {
  height: 40px;
  margin-bottom: 20px;
}

.footer-contact-group {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

.footer-link:hover {
  color: var(--accent);
}

.footer-address,
.footer-copy {
  font-size: 0.95em;
  line-height: 1.5;
}

.footer-address {
  margin-bottom: 8px;
}



/* === Floating Contact Button === */
.floating-contact {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--accent);
  color: var(--white);
  padding: 8px 10px;
  text-decoration: none;
  border-radius: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-contact svg {
  display: block;
  margin: 0 auto;
  width: 36px;
  height: 36px;
  fill: #ffffff;
  transition: transform 0.3s ease;
}

.floating-contact:hover svg {
  transform: scale(1.1);
}

/* === Buttons and Call-To-Action === */
.cta {
  text-align: center;
  margin-top: 40px;
}

.button-accent {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  padding: 12px 30px;
  font-weight: bold;
  font-size: 1em;
  border-radius: 5px;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease;
}

.button-accent:hover {
  background-color: #d6500f;
  color: var(--white);
  text-decoration: none;
}

/* === Responsive Layout === */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 1001;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    background: white;
    width: 100%;
    padding: 20px 0;
    position: absolute;
    top: 70px;
    left: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .main-nav.active {
    display: flex;
  }

  .navbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }

  .hero-content {
    padding: 20px;              /* reduce padding inside the box */
    margin: 0 15px;             /* reduce side margins (left/right) */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1); /* optional: slightly smaller shadow */
  }

  .hero {
    margin-top: 40px;
    justify-content: center;
    padding: 120px 10px 30px;
  }
 
  .hero-index .hero-content {
    margin: 0 auto;
    text-align: center;
  }

  .references-section {
    justify-content: center; /* center the references box */
	align-items: flex-start;
	padding-top: 80px;
    padding: 30px 20px;
  }

  .references {
    margin: 0 auto;
    width: 100%;
    max-width: 330px;
    padding: 20px 40px;
  }
  
  .footer-contact-group {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .footer-address {
    display: none;
  }

  .footer-link {
    justify-content: center;
  }
  
}
