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

:root {
  --primary-bg: #2F4F54;
  --secondary-bg: #E9EDEA;
  --highlight-bg: #B6D9E0;
  --accent: #74A8A4;
  --white: #ffffff;
  --text-dark: #1e1e1e;
  --text-light: #f9f9f9;
  --max-width: 1300px;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: 'Poppins', sans-serif;
  background: var(--secondary-bg);
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
}

/* CONTAINER */
.container {
  max-width: var(--max-width);
  margin: auto;
  padding: 0 2rem;
}

/* ---------- HEADER ---------- */
header {
  background: linear-gradient(120deg, var(--primary-bg), #3f6369);
  color: var(--text-light);
  padding: 2.8rem 0 1.6rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: 1px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

header h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--accent);
  margin: 0.6rem auto 0;
  border-radius: 2px;
}

header p {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--highlight-bg);
  letter-spacing: 0.5px;
}

/* ---------- NAVIGATION ---------- */
nav {
  background: var(--primary-bg);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: var(--highlight-bg);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a:hover,
nav a.active {
  color: var(--highlight-bg);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 85vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center; /* Vertical centering */
  justify-content: center; /* Horizontal centering */
  text-align: center;
  color: white;
}

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

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 2rem;
}

/* All hero & section titles now match homepage header */
.hero h2,
.intro h2,
.expertise h2,
.featured h2,
.cta h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.hero p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--highlight-bg);
  margin-bottom: 2rem;
}

/* ---------- BUTTON ---------- */
.btn {
  display: inline-block;
  margin-top: 1.5rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.9rem 1.8rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn:hover {
  background: var(--highlight-bg);
  color: var(--primary-bg);
  transform: translateY(-3px);
}

/* ---------- INTRO ---------- */
.intro {
  max-width: 900px;
  margin: 5rem auto;
  text-align: center;
  padding: 0 1rem;
}

.intro h2 {
  color: var(--primary-bg);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

/* ---------- TWO-COLUMN ---------- */
.two-column {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  max-width: var(--max-width);
  margin: 5rem auto;
}

.two-column .text {
  flex: 1 1 50%;
  padding: 4rem 3rem;
  background: var(--highlight-bg);
}

.two-column .image {
  flex: 1 1 50%;
  background-size: cover;
  background-position: center;
  min-height: 400px;
}

/* ---------- EXPERTISE ---------- */
.expertise {
  max-width: var(--max-width);
  margin: 5rem auto;
  text-align: center;
}

.expertise h2 {
  color: var(--primary-bg);
  margin-bottom: 2rem;
}

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

.card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

/* ---------- FEATURED ---------- */
.featured {
  background: linear-gradient(rgba(47, 79, 84, 0.8), rgba(47, 79, 84, 0.8)),
    url('https://images.pexels.com/photos/2518204/pexels-photo-2518204.jpeg?auto=compress&cs=tinysrgb&w=1600');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 5rem 2rem;
}

.featured h2 {
  color: var(--highlight-bg);
}

.featured p {
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  background: var(--highlight-bg);
  padding: 4rem 2rem;
  margin-top: 5rem;
}

.cta h2 {
  color: var(--primary-bg);
  margin-bottom: 1rem;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--primary-bg);
  color: var(--text-light);
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}

/* ---------- ANIMATIONS ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .two-column {
    flex-direction: column;
  }

  .hero {
    justify-content: center;
    padding-left: 0;
    text-align: center;
  }

  header h1,
  .hero h2 {
    font-size: 2.4rem;
  }
}

/* HEADER WITH LOGO */
.header-with-logo .header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.site-logo {
  height: 75px;
  filter: brightness(1.1);
}

.header-with-logo .header-text {
  text-align: left;
}

.header-with-logo h1 {
  margin: 0;
  font-size: 2.6rem;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.header-with-logo p {
  color: var(--highlight-bg);
  font-size: 1rem;
  margin-top: 0.3rem;
}

@media (max-width: 768px) {
  .header-with-logo .header-brand {
    flex-direction: column;
  }
  .header-with-logo .header-text {
    text-align: center;
  }
}

/* HERO FIXES */
.hero {
  position: relative;
  width: 100%;
  height: 85vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #d9f1f0;
  margin-bottom: 2rem;
}

.hero .btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.9rem 1.8rem;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero .btn:hover {
  background: var(--highlight-bg);
  color: var(--primary-bg);
}

/* HEADER CONTENT WITH SMALL LOGO ABOVE TITLE */
.header-content {
  text-align: center;
}

.site-logo {
  height: 60px;           /* Small logo size */
  display: block;
  margin: 0 auto 10px;    /* Center and add small gap below */
  filter: brightness(1.1);
}

/* HERO SECTION FIX */
.hero {
  position: relative;
  width: 100%;
  height: 95vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #d9f1f0;
  margin-bottom: 2rem;
}

.hero .btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.9rem 1.8rem;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero .btn:hover {
  background: var(--highlight-bg);
  color: var(--primary-bg);
}

/* HEADER CONTENT WITH SMALL LOGO ABOVE TITLE */
.header-content {
  text-align: center;
}

.site-logo {
  height: 150px;           /* small and clean */
  display: block;
  margin: 0 auto 10px;    /* centers logo above title */
  filter: brightness(1.1);
}

/* HERO SECTION FIX */
.hero {
  position: relative;
  width: 100%;
  height: 95vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #d9f1f0;
  margin-bottom: 2rem;
}

.hero .btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.9rem 1.8rem;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero .btn:hover {
  background: var(--highlight-bg);
  color: var(--primary-bg);
}
