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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Ensure full height for html and body */
html, body {
  height: 100%;
}
body {
    font-family: "Poppins", sans-serif;
    background-color: rgb(216, 216, 218);
    color: #000;
}

/* HEADER & NAVIGATION */
header {
  width: 100%;
  height: 60px;
  background-color: rgba(29, 29, 51, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  padding: 0 20px;
  overflow: visible; /* let hamburger & close icon show fully */
}

header nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  /* Remove any negative margin for the header logo */
  margin-left: 0;
  display: flex; /* If you want to keep .logo as a flex container, that’s fine */
  align-items: center;
}

/* The anchor that wraps the image + text */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none; /* remove default underline */
}

.logo-link img {
  height: 40px; /* or match header height */
  width: auto;
  object-fit: contain;
}

.logo-text {
  margin-left: 10px;
  font-size: 1.2em;
  font-weight: bold;
  color: #eee;
}


.nav-links{
  flex: 1; /* 1 means the item will grow to fill the available space, sharing it equally with other items that also have the flex grow value set*/
  text-align: right;
}
.nav-links ul li{
  list-style: none;
  display: inline-block; /* makes things appear on the same line as other elements. The elements will appear side by side*/
  padding: 8px 12px;
  position: relative;

}

.nav-links ul li a{
  color: #eee;
  text-decoration: none;
  font-size: 13px ;
}

/* Hamburger icon hidden by default (shown via media query) */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: #eee;
  cursor: pointer;
}

header a {
    color: #000;
    text-decoration: none;
    font-size: .9em;
    padding: 10px 15px;
}

header a:hover {
    background-color: rgb(88, 88, 90,.7);
    color: #000;
    border-radius: 5px;
}

/* Hamburger icon: hidden by default, shown in media query */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: #eee;
  cursor: pointer;
}

.close-icon {
  display: none;}

/* ----- MOBILE SLIDE-IN NAV ----- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    padding-top: 60px;
  }

  .nav-links.active {
    transform: translateX(0);
  }
  .nav-links ul {
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
  }
  .nav-links ul li {
    margin: 10px 0;
  }
  .nav-links ul li a {
    display: block;
    padding: 10px 20px;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
  }
  /* Show close icon on mobile */
  .close-icon {
    display: block; /* <--- THIS is crucial */
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 1000; /* Ensure it’s on top */
  }

}
/* Hero Section (unchanged except removing the .hero-content margin-left) */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Adjust as needed */
  background: url('images/articleback6.jpeg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* Remove padding if you like; the overlay handles spacing now */
  padding: 0;
}

/* New overlay container */
.hero-overlay {
  position: absolute;
  top: 60px;                        /* Start below the 60px-high nav bar */
  width: 300px;                     /* Matches hero-content max width */
  height: calc(100% - 60px);         /* Reduce total height by nav bar height */
  background-color: rgba(49, 49, 61, 0.8); /* Semi-transparent overlay */
  border-radius: 4px;
  display: flex;
  align-items: center;              /* Vertically center the hero content */
  padding: 1rem;                    /* Padding inside the overlay */
  margin-left: 2rem;                /* Offset from left side */
  z-index: 1;
}


/* Hero content inside the overlay */
.hero-content {
  max-width: 300px;      /* Matches overlay width */
  color: #eee;
  z-index: 1;
  /* Remove margin-left: 1rem; since .hero-overlay handles spacing */
}
/* Semi-transparent overlay 
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(189, 184, 184, 0.5);
}*/

.hero-subtitle {
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.hero-title {
  font-size: 26px;
  line-height: 2.0em;
  margin-bottom: 60px;
  font-weight: 700;
  text-align: center;
}

.hero-text {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 2rem;
  text-align: center;
  color: #eee;
}

/* Center hero buttons horizontally */
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.btn {
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  font-size: 5px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn-primary {
  background-color: #000;
  color: #fff;
}

.btn-primary:hover {
  background-color: rgb(130, 130, 133);
}

.btn-secondary {
  background-color: #000;
  color: #fff;
 /* border: 2px solid #000;*/
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
  background-color: rgb(130, 130, 133);
  color: #fff;
}
/* ----- MAIN BACKGROUND CONTAINER ----- */
.container {
  width: 100%;
  min-height: 100vh;
  background-image: url("images/articlesback5.jpeg");
  background-position: center;
  background-size: cover;
  position: relative;
  /* Ensure content sits below the fixed header */
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content {
  width: 80%;
  max-width: 900px;
  padding: 40px 20px;
  background-color: transparent;
  text-align: center; /* Center the text for the "Industry Insights" heading */
}

.text-section h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #eee;
  text-transform: uppercase;
}
.text-section p {
  font-size: 1rem;
  line-height: 1.5em;
  color: #eee;
  max-width: 600px;
  margin: 0 auto; /* center the paragraph text */
}

/* ----- ARTICLES (Three Cards Section) ----- */
.three-cards-section {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
  /* margin-top: 60px; Not needed if you want them stacked immediately after container */
}

.three-cards-section h2 {
  font-size: 1.8rem;
  margin-bottom: 40px;
  letter-spacing: 1px;
  color: #333;
  text-transform: uppercase;
}

/* Cards wrapper: use grid for easy multi-column layout */
.cards-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns by default */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card styling */
.card {
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-content {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 15px;
  gap: 10px;
}
.card-content h3 {
  margin: 0;
  text-align: center;
  font-size: 1rem;
  text-transform: uppercase;
  color: #333;
}
.card-content p {
  margin: 0;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #555;
}
.learn-more-btn {
  justify-self: center;
  padding: 8px 16px;
  background-color: #0a043f;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  transition: background-color 0.3s ease;
}
.learn-more-btn:hover {
  background-color: #333;
}

/* Responsive columns: 2 columns on medium screens, 1 column on small screens */
@media (max-width: 992px) {
  .cards-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .cards-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Contact Form Section */


.contactcontainer {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 2rem;
  background-color: #f4f4f9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  margin-top: 60px; /* adjust if header is fixed */
}

.form {
  width: 100%;
  max-width: 820px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px 1px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.contact-form {
  background-color: #0a043f;
  position: relative;
}

.circle {
  border-radius: 50%;
  background: linear-gradient(135deg, transparent 20%, #777a7a);
  position: absolute;
}

.circle.one {
  width: 130px;
  height: 130px;
  top: 130px;
  right: -40px;
}

.circle.two {
  width: 80px;
  height: 80px;
  top: 10px;
  right: 30px;
}

.contact-form:before {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background-color: #777a7a;
  transform: rotate(45deg);
  top: 50px;
  left: -13px;
}
.contact-form:after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background-color: #777a7a;
  transform: rotate(45deg);
  bottom: 50px;
  left: -13px;
}

form {
  padding: 2.3rem 2.2rem;
  z-index: 10;
  overflow: hidden;
  position: relative;
}

.title {
  color: #fff;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.7rem;
}

.input-container {
  position: relative;
  margin: 1rem 0; /*This adds spacing between the rows of inputs*/
}

.input {
  width: 100%;
  outline: none;
  border: 2px solid #fafafa;
  background: none;
  padding: 0.6rem 1.2rem;
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border-radius: 25px;
  transition: 0.3s;
}

textarea.input {
  padding: 0.8rem 1.2rem;
  min-height: 150px;
  border-radius: 22px;
  resize: none; /*prevents the user from resizing the containers when they are on your site*/
  overflow-y: auto; /*creates a scrolling option when the user fills the container*/
}

.input-container label {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  padding: 0 0.4rem;
  color: #fafafa;
  font-size: 0.9rem;
  font-weight: 400;
  pointer-events: none;
  z-index: 1000;
  transition: 0.5s;
}

.input-container.textarea label {
  top: 1rem;
  transform: translateY(0);
}

.btn {
  padding: 0.6rem 1.3rem;
  background-color: #fff;
  border: 2px solid #fafafa;
  font-size: 0.95rem;
  color: #0a043f;
  line-height: 1;
  border-radius: 25px;
  outline: none;
  cursor: pointer;
  transition: 0.3s;
  margin: 0;
}

.btn:hover {
  background-color: transparent;
  color: #fff;
}

.input-container span { /*This area creates the animation where the input name appears at the top of the input container when you try to input text*/
  position: absolute;
  top: 0;
  left: 25px;
  transform: translateY(-50%);
  font-size: 0.8rem;
  padding: 0 0.4rem;
  color: transparent;
  pointer-events: none;
  z-index: 500;
}

.input-container span:before,
.input-container span:after {
  content: "";
  position: absolute;
  width: 10%;
  opacity: 0;
  transition: 0.3s;
  height: 5px;
  background-color: #757a79;
  top: 50%;
  transform: translateY(-50%);
}

.input-container span:before {
  left: 50%;
}

.input-container span:after {
  right: 50%;
}

.input-container.focus label {
  top: 0;
  transform: translateY(-50%);
  left: 25px;
  font-size: 0.8rem;
}

.input-container.focus span:before,
.input-container.focus span:after {
  width: 50%;
  opacity: 1;
}

.contact-info {
  padding: 2.3rem 2.2rem;
  position: relative;
}

.contact-info .title {
  color: #0a043f;
  text-align: left;
}

.text {
  color: #333;
  margin: 1.5rem 0 2rem 0;
  text-align: left;
  font-size: .9rem;
}

.information {
  display: flex;
  color: #555;
  margin: 0.7rem 0;
  align-items: center;
  font-size: 0.95rem;
}

.icon {
  width: 28px;
  margin-right: 0.7rem;
}



.social-media {
  padding: 2rem 0 0 0;
}

.social-media p {
  color: #333;
}

.social-icons {
  display: flex;
  margin-top: 0.5rem;
}

.social-icons a {
  width: 35px;
  height: 35px;
  border-radius: 5px;
  background: linear-gradient(45deg, #0a043f, #0a043f);
  color: #fff;
  text-align: center;
  line-height: 35px;
  margin-right: 0.5rem;
  transition: 0.3s;
}

.social-icons a:hover {
  transform: scale(1.05);
}

.contact-info:before {
  content: "";
  position: absolute;
  width: 110px;
  height: 100px;
  border: 22px solid #464a6e;
  border-radius: 50%;
  bottom: -77px;
  right: 50px;
  opacity: 0.3;
}

.big-circle {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: linear-gradient(to bottom, #0a043f, #0a043f);
  bottom: 50%;
  right: 50%;
  transform: translate(-40%, 38%);
}

.big-circle:after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  background-color: #fafafa;
  border-radius: 50%;
  top: calc(50% - 180px);
  left: calc(50% - 180px);
}

.square {
  position: absolute;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(181%, 11%);
  opacity: 0.2;
}

@media (max-width: 850px) {
  .form {
    grid-template-columns: 1fr;
  }

  .contact-info:before {
    bottom: initial;
    top: -75px;
    right: 65px;
    transform: scale(0.95);
  }

  .contact-form:before {
    top: -13px;
    left: initial;
    right: 70px;
  }

  .square {
    transform: translate(140%, 43%);
    height: 350px;
  }

  .big-circle {
    bottom: 75%;
    transform: scale(0.9) translate(-40%, 30%);
    right: 50%;
  }

  .text {
    margin: 1rem 0 1.5rem 0;
  }

  .social-media {
    padding: 1.5rem 0 0 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1.5rem;
  }

  .contact-info:before {
    display: none;
  }

  .square,
  .big-circle {
    display: none;
  }

  form,
  .contact-info {
    padding: 1.7rem 1.6rem;
  }

  .text,
  .information,
  .social-media p {
    font-size: 0.8rem;
  }

  .title {
    font-size: 1.15rem;
  }

  .social-icons a {
    width: 30px;
    height: 30px;
    line-height: 30px;
  }

  .icon {
    width: 23px;
  }

  .input {
    padding: 0.45rem 1.2rem;
  }

  .btn {
    padding: 0.45rem 1.2rem;
  }
}
/* FOOTER */
.footer {
  background-color: #000; /* Black background */
  color: #fff;            /* White text */
  padding: 20px 0;        /* Adjust top/bottom spacing */
  font-family: Arial, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Footer logo container */
.footer .logo {
  display: flex;
  align-items: center;
  /* Remove negative margin */
  margin-left: -30px;
}

/* The anchor that wraps the logo image + text */
.footer .logo-link {
  display: flex;
  align-items: center;
  text-decoration: none; /* No underline on link */
}

/* Logo image: set a consistent height */
.footer .logo-link img {
  height: 40px;    /* Keep consistent with header or adjust as desired */
  width: auto;
  object-fit: contain;
}

/* Logo text next to the image */
.footer .logo-text {
  margin-left: 10px;
  font-size: 1.2em;
  font-weight: bold;
  color: #eee;
}

/* Center column: policy links + text */
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;            /* Space between links */
  text-align: center;
}

/* Policy link styling */
.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.7rem;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: #ccc;
}

/* Small text for the All Rights Reserved line */
.footer-links p {
  font-size: 0.8rem;
  margin: 0;
}

/* Right column: social icons */
.footer-social {
  display: flex;
  gap: 15px; /* Space between icons */
}

/* Social icon links */
.footer-social a {
  color: #fff;
  font-size: 1.2rem;
  transition: color 0.3s;
}
.footer-social a:hover {
  color: #ccc;
}

/* Responsive adjustments if needed */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* Reduce vertical spacing in each .three-cards-section */
  .three-cards-section {
    margin-top: 20px; /* or 0 if you want no top gap at all */
    padding: 20px 0;  /* reduce padding to avoid big gaps */
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 0;
  }

  /* Stack cards in a single column, with consistent gap */
  .three-cards-section .cards-wrapper {
    display: grid;               /* override any flex or older grid settings */
    grid-template-columns: 1fr;  /* one column on mobile */
    gap: 20px;    
    margin-left: 20px;
    margin-right: 20px;               /* consistent vertical spacing between cards */
  }

  /* Remove or reduce bottom margin between consecutive sections if needed */
  .three-cards-section:last-of-type {
    margin-bottom: 0; /* no extra gap after the last section */
  }
}

/* === Responsive Adjustments (Optional) === */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}


@media (max-width: 768px) {
  .about-container, .contact-container {
    flex-direction: column;
    text-align: center;
  }
  .about-text, .contact-info, .contact-form {
    flex: none;
  }
  .nav-links ul {
    flex-direction: column;
    gap: 10px;
  }
}
/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
  /* Show hamburger icon */
  .menu-toggle {
    display: block;
  }
  /* Slide-in menu from the right */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    padding-top: 60px; /* so links appear below header */
  }
  .nav-links.active {
    transform: translateX(0);
  }
  .nav-links ul {
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
  }
  .nav-links ul li {
    margin: 20px 0;
  }
  .nav-links ul li a {
    display: block;
    padding: 10px 20px;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
  }

  /* Close icon inside the nav-links */
/* Hide the close icon by default (on desktop) */
  /* Show close icon on mobile */
  .close-icon {
    display: block; /* <--- THIS is crucial */
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 1000; /* Ensure it’s on top */
  }


  /* Hero overlay: adjust width & positioning */
  .hero-overlay {
    width: 90%;
    margin-left: 5%;
  }
  .hero-content {
    max-width: 100%;
  }

  /* Housing sections: stack image/text */
  .housing-container {
    flex-direction: column;
    gap: 20px;
  }

  /* Contact form: single column */
  .form {
    grid-template-columns: 1fr;
  }

  /* Footer layout: stack vertically */
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* Very small screens <= 480px */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.9rem;
  }
  .hero-text {
    font-size: 1.4rem;
  }
  .btn {
    font-size: 1.0rem;
    padding: 0.5rem 1rem;
  }
}

