/* ─────────── GLOBAL RESET ─────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
body {
  line-height: 1.6;
  background: #fff;
  color: #222;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* ─────────── HEADER ─────────── */
.header {
  background: #fff;
  padding: 15px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo img {
  height: 90px;
  width: auto;
  max-width: 220px;
}

.tagline {
  font-size: 0.8rem;
  color: #5d7531;
  font-weight: 600;
  margin-top: 5px;
}

.contact {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.9rem;
  font-weight: 600;
}

.icon {
  width: 16px;
  vertical-align: middle;
  margin-right: 6px;
}

/* ─────────── NAVIGATION ─────────── */
.main-nav {
  background: #000;
  padding: 15px 50px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center; /* 👈 center everything inside */
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.menu {
  display: flex;
  gap: 50px;
  font-weight: bold;
  justify-content: center; /* 👈 center nav items */
  align-items: center;
}

.menu a {
  color: #fff;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #8bc34a;
  transition: width 0.3s ease;
}

.menu a:hover {
  color: #8bc34a;
}
.menu a:hover::after {
  width: 100%;
}

.menu a.active {
  color: #8bc34a;             /* Highlight color */
}

.menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #8bc34a;
}
.burger {
  display: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  margin-left: auto;
}


/*----- Content ------*/
.page-body {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.company-profile h2 {
  margin-bottom: 50px;
  color: #000000;
  text-align: center;
  margin-top: 30px;
}

.profile-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
}

.profile-body img {
  height: 150px;
  width: 300x;
  display: block;
  margin: 0 auto;
}

.profile-body h3 {
  margin: 10px 0;
  color: #222;
  text-align: center;
}

.profile-body p {
  line-height: 1.6;
  text-align: justify;
  line-height: 2.1;
}

/*--------Royale Homes--------*/

.rhmc-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
  margin-top: 40px
}

.rhmc-logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.rhmc-section img {
  height: 120px;
  width: 300x;
  display: block;
  margin: 0 auto;
}

.rhmc-section h3 {
    margin: 10px 0;
  font-size: 20px;
  color: #000000;
}

.rhmc-section p {
  line-height: 1.6;
  text-align: justify;
  line-height: 2.1;
}
/* ─── Animations ──────────────────────────────── */
.fade-slide-left,
.fade-slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}

.fade-slide-left {
  transform: translateX(-50px);
}

.fade-slide-right {
  transform: translateX(50px);
}

.fade-slide-left.show,
.fade-slide-right.show {
  opacity: 1;
  transform: translateX(0);
}

/* Company Profile Section */
.company-profile-section {
  background-color: #f9f9f9;
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 50px;
  color: #222;
}

.company-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto 60px;
  gap: 40px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.company-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.company-container.reverse {
  flex-direction: row-reverse;
}

.company-logo img {
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}
.company-card.visible .company-logo img {
  transform: scale(1);
  opacity: 1;
}
.company-text {
  flex: 1;
  min-width: 280px;
}

.company-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #2c2c2c;
}

.company-text p {
  line-height: 1.8;
  color: #444;
  text-align: justify;
}

.company-divider {
  height: 1px;
  background: #ddd;
  margin: 50px auto;
  width: 80%;
}

/* ====== Company Hero Banner ====== */

.company-hero-overlay h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #2c2c2c;
  letter-spacing: 1px;
}

.company-hero-overlay p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ====== Company Cards ====== */
.company-profile-section {
  background: linear-gradient(135deg, #ffffff 0%, #f3f3f3 100%);
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.company-card {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.company-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.company-card.reverse {
  flex-direction: row-reverse;
}

.company-logo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  padding: 30px;
}

.company-logo img {
  max-width: 200px;
  height: auto;
}

.company-info {
  flex: 2;
  padding: 40px;
}

.company-info h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #2c2c2c;
}

.company-info p {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
  text-align: justify;
}
.company-card {
  opacity: 0;
  transform: translateY(40px);
}
.company-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Responsive layout */
@media (max-width: 800px) {
  .company-card,
  .company-card.reverse {
    flex-direction: column;
  }

  .company-logo {
    padding: 20px;
  }

  .company-info {
    padding: 20px;
    text-align: center;
  }
}


/* Responsive layout */
@media (max-width: 800px) {
  .company-container,
  .company-container.reverse {
    flex-direction: column;
    text-align: center;
  }

  .company-text h3 {
    text-align: center;
  }

  .company-text p {
    text-align: justify;
  }
}

/* ───────────────────────────────────
   RESPONSIVE (≤700 px)
   ─────────────────────────────────── */
@media(max-width:700px){
  .burger {
    display: block;
  }

  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0%;
    width: 40%;
    background: #000;
    padding: 10px 0;
    border-top: 1px solid #444;
    z-index: 999;
  }

  .menu.show {
    display: block;
    padding: 2% 0;
  }

  .menu li{
    text-align:center;
    padding: 5%;
  }

  .hero{
    padding:40px 6%;
  }

  .hero h1{
    font-size:1.8rem;
  }
}