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

body {
  font-family: sans-serif;
  background-color: #f9f9f9; /* off-white */
  color: #222;
  line-height: 1.6;
}

/* Header / Navigation */
header {
  background-color: #1b2838; /* dark blue */
  padding: 1rem 0;
}

.logo {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

.logo a {
  color: white;          /* Same as your logo text */
  text-decoration: none; /* Removes underline */
  font-weight: bold;     /* Preserve logo style */
  font-size: 1.5rem;     /* Match existing logo style if needed */
}

.logo a:hover {
  color: #87cefa;        /* Optional: add subtle hover effect */
}

.navbar {
  max-width: 1800px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  position: relative;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-left: auto; /* push links to the right */
}

.nav-contact-button {
  background-color: #87cefa; /* light blue or any accent */
  color: #1b2838;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  margin-left: 1rem;
}

.nav-contact-button:hover {
  background-color: #5aaed8; /* darker on hover */
  color: white;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem;
}

.nav-links li a:hover {
  color: #87cefa; /* optional lighter blue hover, or white */
}

/* Dropdown Styles */
.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #1b2838;
  top: 100%;
  left: 0;
  padding: 0.5rem 0;
  min-width: 200px;
  z-index: 1000;
  list-style: none; /* removes bullets */
  border-radius: 0 0 4px 4px;
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: white;
}

.dropdown-menu li a:hover {
  background-color: #2a3a4f;
  color: #87cefa;
}

/* Reveal dropdown on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* Hero Section */
.hero {
  position: relative;
  height: 45vh; /* or whatever height you want */
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* behaves like background-size: cover */
  object-position: center; /* behaves like background-position: center */
  z-index: 1;
  filter: blur(8.5px);
  transform: scale(1.05);
}

.hero-overlay {
  position: relative;
  z-index: 2;
  background: rgba(27, 40, 56, 0.4);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
}

.hero-text {
  display: flex;
  align-items: center;
  justify-content: center; /* or flex-start if you want it left-aligned */
  gap: 2rem;
  margin: 0 auto;
  padding-left: 3vw;
  max-width: 900px;
  width: auto; /* Important: don't force full width */
  color: white;
}

.hero-text-left h1 {
  font-size: 2.8rem;  /* was probably around 2.2rem */
  margin-bottom: 0.5rem;
}

.hero-text-left p {
  font-size: 1.25rem;  /* was likely 1rem */
  line-height: 1.5;
  
}

.hero-text-left,
.hero-text-right {
  color: white;
}

.hero-text-left {
  text-align: left;
  padding-right: 1rem; /* spacing */
}

.hero-text-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* button to right */
  text-align: right;
  padding-left: 1rem; /* spacing */
}

/* Contact button */
.contact-button {
  background-color: #1b2838;
  color: white;
  padding: 0.9rem 2.2rem;         /* Increase side padding */
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;          /* ✅ Prevent line breaks */
  min-width: 140px;             /* ✅ Optional: guarantees single-line */
  transition: background-color 0.3s ease;
}

.hero .contact-button {
  font-size: 1.6rem;
}

.contact-button:hover {
  background-color: #2a3a4f;
}

/* Main Content */
main {
  padding: 2rem;
}

.mission {
  text-align: center;
  padding: 3rem 1rem;
  background-color: #f0f2f5;
}

.our-work {
  padding: 3rem 1rem;
  background-color: #ffffff; /* white to contrast the light gray mission section */
  text-align: center;
}

.our-work h2 {
  font-size: 2rem;
  color: #1b2838; /* primary blue */
  margin-bottom: 2rem;
}

.work-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.work-column {
  flex: 1 1 300px;
  max-width: 500px;
  background-color: #f9f9f9; /* off-white card */
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: left;
}

.work-column h3 {
  font-size: 1.5rem;
  color: #1b2838;
  margin-bottom: 1rem;
}

.work-column p {
  font-size: 1rem;
  color: #333;
}

.work-icon {
  width: 125px;
  height: auto;
  margin-bottom: 2rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Example button style for future CTA buttons */
.contact-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #1b2838;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.contact-button:hover {
  background-color: #2a3a4f;
}

.from-blog {
  padding: 3rem 1rem;
  background-color: #f0f2f5; /* soft contrast against Our Work */
  text-align: center;
}

.from-blog h2 {
  font-size: 2rem;
  color: #1b2838;
  margin-bottom: 2rem;
}

.blog-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.blog-post {
  flex: 1 1 300px;
  max-width: 400px;
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: left;
}

.blog-post h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.blog-post h3 a {
  color: #1b2838;
  text-decoration: none;
}

.blog-post h3 a:hover {
  color: #2a3a4f;
}

.blog-post p {
  font-size: 1rem;
  color: #333;
}

.contact-section {
  max-width: 700px;
  margin: 4rem auto;
  padding: 2rem;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #007bff;
  outline: none;
}

.contact-button {
  background-color: #1b2838;
  color: white;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.contact-button:hover {
  background-color: #2c3e50;
}

.site-footer {
  background-color: #1b2838;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  color: #87cefa;
  margin: 0 0.75rem;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-social a {
  display: inline-block;
  margin: 0 0.5rem;
}

.footer-social img {
  width: 24px;
  height: 24px;
  filter: invert(1); /* makes dark icons light if needed */
}

.footer-copy {
  font-size: 0.9rem;
  margin-top: 1rem;
  color: #ccc;
}

/* Always apply these to .nav-toggle */
.nav-toggle {
  display: none; /* hidden by default on desktop */
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0;
  margin: 0;
}

.about-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 1rem;
}

.about-image img {
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}

.about-text {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.6;
}

.service-philosophy {
  width: 100%;
  padding: 3rem 1rem;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 0 auto;
}


.philosophy-row {
  display: flex;
  flex-direction: row; /* 🧭 Ensures icon stays beside the text */
  align-items: center;
  background-color: #f9f9f9;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  gap: 2rem;
  flex-wrap: nowrap; /* 🛑 Prevents icon from wrapping above text */
  width: 100%; 
  max-width: 1500px;
  margin: 0 auto; /* ✅ this centers the row */
}


.philosophy-row .work-icon {
  width: 100px;
  height: auto;
  flex-shrink: 0;
}

.philosophy-text {
  flex: 1;
}

.philosophy-text h3 {
  font-size: 1.5rem;
  color: #1b2838;
  margin-bottom: 1rem;
}

.philosophy-text p {
  font-size: 1rem;
  color: #333;
  margin: 0;
}

/* Responsive Design: Mobile Layout */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    z-index: 1001;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #1b2838;
    width: 100%;
    padding: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.75rem;
  }

  .nav-contact-button {
    width: 100%;
    text-align: center;
    margin-left: 0;
  }

  .dropdown:hover .dropdown-menu {
    position: static;
  }

  .dropdown-menu {
    background-color: #2a3a4f;
  }

  .hero {
    height: auto;
  }

  .hero-overlay {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1rem;
  }

  .hero-text {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0;
    width: 100%;
  }

  .hero-text-left,
  .hero-text-right {
    max-width: 100%;
    flex: 1 1 100%;
    text-align: left;
    padding: 0;
  }

  .hero-text-right {
    align-items: flex-start;
    margin-top: 1rem;
  }

  .contact-button {
    width: fit-content;
  }

  .work-columns,
  .blog-articles {
    flex-direction: column;
    align-items: center;
  }

  .work-column,
  .blog-post {
    max-width: 90%;
  }
  
  .about-intro {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .about-image img {
    max-width: 100%;
    width: 800px;
    height: auto;
  }

.philosophy-row {
    flex-direction: column;
    text-align: center;
  }

  .philosophy-row .work-icon {
    margin: 0 auto 1rem;
  }

}
