@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-primary: #002F6C; /* dark blue derived from the logo */
  --color-secondary: #F05A28; /* bright orange accent from the logo */
  --color-bg: #f9f9f9; /* light background for readability */
  --color-text: #333333; /* default text colour */
  --color-light: #ffffff;
  --color-dark: #111111;
  --font-primary: 'Inter', sans-serif;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-bg);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header and navigation */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background-color: var(--color-light);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Ensure the navigation container uses flex layout and vertically centers its children. */
nav {
  display: flex;
  align-items: center;
}

header .logo img {
  height: 45px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  /* Ensure menu items align vertically with the logo and CTA button */
  align-items: center;
}

nav li {
  margin: 0 1rem;
  position: relative;
}

nav li a {
  font-weight: 600;
  color: var(--color-dark);
  text-transform: capitalize;
  /* Provide some vertical padding so links are vertically centered within the header */
  padding: 0.5rem 0;
}

nav li a:hover {
  color: var(--color-secondary);
}

nav li ul.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  min-width: 220px;
  border-radius: 4px;
  z-index: 999;
}

nav li:hover > ul.dropdown {
  display: block;
}

nav li ul.dropdown li {
  margin: 0.5rem 0;
}

nav li ul.dropdown li a {
  white-space: nowrap;
  font-size: 0.9rem;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
}

/* Hero section */
.hero {
  background-image: url('assets/images/hero.jpg');
  background-size: cover;
  background-position: center;
  color: var(--color-light);
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero .content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #e0e0e0;
}

/* Industry images */
.industry-img {
  width: 100%;
  max-width: 1000px;
  display: block;
  margin: 1rem auto 2rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Generic content images used in interior pages like About and other sections */
.content-img {
  width: 100%;
  max-width: 900px;
  display: block;
  margin: 2rem auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-secondary);
  color: var(--color-light);
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.2s ease-in-out;
}

.btn:hover {
  background-color: #d94e24;
  color: var(--color-light);
}

/* Sections */
.section {
  padding: 4rem 2rem;
}

.section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.section p.section-lead {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--color-text);
  font-size: 1rem;
}

.section.dark {
  background-color: var(--color-primary);
  color: var(--color-light);
}

.section.dark h2 {
  color: var(--color-light);
}

/* Card grid */
.card-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background-color: var(--color-light);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-4px);
}

.card i {
  font-size: 2.5rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.card img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--color-primary);
  font-size: 1.3rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--color-text);
}

.card a {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.card a:hover {
  text-decoration: underline;
}

/* CTA banner */
.cta {
  text-align: center;
  padding: 3rem 1rem;
  background-color: var(--color-secondary);
  color: var(--color-light);
}

.cta h2 {
  margin-bottom: 1rem;
}

.cta p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 3rem 2rem;
}

footer .footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

footer h4 {
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer ul li a {
  color: #ccc;
  font-size: 0.9rem;
}

footer ul li a:hover {
  color: var(--color-light);
}

footer .footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

footer .footer-social a {
  color: #ccc;
  font-size: 1.5rem;
  transition: color 0.2s ease-in-out;
}

footer .footer-social a:hover {
  color: var(--color-secondary);
}

/* Responsive nav for mobile */
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  header.active nav {
    display: block;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: var(--color-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
  }
  header.active nav ul {
    flex-direction: column;
  }
  header.active nav li {
    margin: 0.75rem 0;
  }
  .menu-toggle {
    display: block;
  }
}
/* Footer link colors + states (override default blue/purple) */
footer a,
footer a:link,
footer a:visited {
  color: var(--color-light);         /* white on dark footer */
  text-decoration: none;
}

footer a:hover,
footer a:focus {
  color: var(--color-secondary);     /* orange on hover/focus */
  text-decoration: underline;        /* accessibility */
}

/* If social icons are SVGs, make them inherit the link color */
footer a svg { 
  fill: currentColor; 
}
