* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

/* NAVBAR */
.navbar {
  background: white;
  padding:6px 20px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: bold;
}

.logo img {
  margin: 10%;
  padding: 10%;
  width: 80px;
}

nav a {
  margin: 0 14px;
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

.btn-nav {
  background: #ecc847;
  padding: 8px 16px;
  border-radius: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(180deg, #0a333b 0%, #0b6170 55%, #9dd5e3 100%);
  font-family: "Segoe UI", sans-serif;
  color: #fff;
}

/* HOUSE OF ANALYTICS HERO */

.hoa-hero {
  background: linear-gradient(180deg, #31855f 0%, #8ce6df 55%, #a0e2cf 100%);
  padding: 90px 12% 130px;
  text-align: center;
  color: #093632;
}

.hoa-hero h1 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 18px;
}

.hoa-hero p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.6;
  color: #09183a;
}


/* SECTION */

.roof-text {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.roof-tag {
  background: white;
  color: #087263;
  padding: 6px 14px;
  font-weight: 700;
  border-radius: 20px;
  font-size: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: #49988a;
  color: #1f2937;
}

/* MAIN */
.analytics-house {
  max-width: 1100px;
  margin: 50px auto;
  padding: 20px;
}

/* ================= ROOF ================= */

.roof-container {
  position: relative;
  text-align: center;

}

.roof-triangle {
  width: 0;
  height: 0;
  margin: auto;
  border-left: 500px solid transparent;
  border-right: 500px solid transparent;
  border-bottom: 160px solid #085356;
  margin-bottom: 1%;
  
}

.roof-text {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  line-height: 250%;
}

.roof-text h2 {
  font-size: 25px;
  font-weight: 600;
}

.roof-text p {
  font-size: 15px;
  opacity: 0.85;
}

/* ================= HOUSE BODY ================= */

.house-body {
  background: #105a5a;
  border: 3px solid #dfa81c;
  border-radius: 5%;
  padding: 20px 50px 40px 25px;
  position: relative;
  min-height: 100%;
  min-width: 100%;
  
}

/* FLOORS */
.floor {
  display: flex;
  justify-content:space-between;
  
}

.top-floor {
  margin-top: 10px;
}

.bottom-floor {
  margin-top: 40px;
}

/* ================= ROOMS ================= */

.room {
  padding: 40px 80px 70px 35px;
  border-radius: 10px;
  text-decoration: none;
  position: relative;
  transition: transform 0.3s ease;
  border-style: groove;
  border-color: rgb(215, 174, 38);
}

.room:hover {
  transform: translateY(-6px);
}

/* TEXT */
.room h3 {
  text-align: center;
  font-size: 23px;
  margin-bottom: 12px;
  color: rgb(112, 17, 111);
}

.room .short {
  text-align: center;
  line-height: 150%;
  font-size: 14px;
  opacity: 0.85;
  color: rgb(48, 9, 87);
}

/* ================= COLORS ================= */

.acquisition { background: #b1bcce; }
.portfolio   { background: #c3e3d4; }
.retention   { background: #c8bed9; }
.risk        { background: #e2bbbb; }
.experience  { background: #f3caca; }

/* ================= HOVER LIST ================= */

.room ul {
  list-style: disc;
  padding-left: 1px;
  margin-top: 16px;
  font-size: 13px;
  opacity: 0;
  max-height: 0;
  transition: all 0.35s ease;
  white-space: nowrap;
  overflow: visible;
  color: rgb(5, 58, 88);
  line-height: 190%;
}

.room:hover ul {
  opacity: 1;
  max-height: 200px;
}

/* ================= BOTTOM ================= */

.bottom-floor .room {
  width: 42%;
}

.top-floor .room {
  width: 35%;
}

/* ================= BASE ================= */

.house-base {
  margin-top: 70px;
  line-height: 250%;
  text-align: center;
  font-size: 18px;
  color: #030a1d;
}

/* STRATEGIC QUESTIONS SECTION */

.strategic-section {
  background: #031c23;
  padding: 50px 10%;
  color: #fff;
}

.strategic-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 60px;
}

/* GRID */
.strategic-grid {
  display: grid;
  grid-template-columns: repeat( 1fr);
  gap: 25px;
}

/* CARD */
.strategic-card {
  background: linear-gradient(145deg, #12424a, #041f24);
  border: 1px;
  padding: 5px 25px;
  border-radius: 16px;
  transition: 0.35s ease;
}

.strategic-card:hover {
  transform: translateY(-8px);
  color: #fffefe;
}

.strategic-card .icon {
  font-size: 34px;
  display: block;
  margin-bottom: 15px;
}

.strategic-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.strategic-card p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

/* SOLID FOUNDATION SECTION */

.foundation-section {
  background: linear-gradient(180deg, #396c7a, #0daf97);
  padding: 90px 10%;
  text-align: center;
  color: #fff;
}

.foundation-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 12px;
}

.foundation-sub {
  max-width: 750px;
  margin: 0 auto 60px;
  font-size: 16px;
  color: #b5cbd3;
}

/* GRID */
.foundation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ITEM */
.foundation-item {
  background: #0e4149;
  border: 1px solid #242b28;
  padding: 22px 25px;
  border-radius: 14px;
  font-size: 15px;
  text-align: left;
  transition: 0.3s ease;
}

/* FOOTER */

.site-footer {
  background: #0f3743;
  color: #cfe1e8;
  padding: 70px 10% 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* BRAND */
.footer-brand h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #f5f8f6;
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
}

/* LINKS */
.footer-links h4,
.footer-contact h4 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #fff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  text-decoration: none;
  color: #cfe1e8;
  font-size: 14px;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #22c55e;
}

/* CONTACT */
.footer-contact p {
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-founder {
  margin-top: 15px;
  font-weight: 600;
  color: #fafdfb;
}

.footer-contact a {
  color: #ffffff;        /* white text */
  text-decoration: none;
}

.footer-contact a:visited {
  color: #ffffff;        /* visited link purple varama */
}

.footer-contact a:hover {
  color: #7fd1b9;        /* hover effect (optional) */
  text-decoration: underline;
}

/* COPYRIGHT */
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #1f525f;
  font-size: 13px;
  color: #9fb6bf;
}

/* ================= MOBILE VIEW FIX ================= */
@media (max-width: 768px) {

  /* NAVBAR */
  
  body {
    overflow-x: hidden;
  }

  /* NAVBAR */
  .nav-container {
    flex-direction:column;
    text-align: center;
  }

  .logo img {
    width: 60px;
    margin: 0;
    padding: 20%;
  }

  nav a {
    margin:3px 0;
    display:inline-table;
    line-height: 0%;
    font-size: 80%;
  }

  .btn-nav{
    padding: 5px;
    line-height: 110%; 
  }

  /* HERO */
  .hoa-hero {
    padding: 60px 16px 80px;
  }

  .hoa-hero h1 {
    font-size: 25px;
    line-height: 1.3;
  }

  .hoa-hero p {
    font-size: 15px;
  }

  /* ANALYTICS HOUSE */
  .analytics-house {
    margin: 30px auto;
    padding: 5px;
    font-size: 10px;
  }

  /* ROOF */
  .roof-triangle {
    border-left: 160px solid transparent;
    border-right: 160px solid transparent;
    border-bottom: 120px solid #085356;
  }

  .roof-text h2 {
    font-size: 13px;
    line-height: 140%;
  }

  .roof-text p {
    font-size: 10px;
    line-height: 150%;
  }

  /* HOUSE BODY */
  .house-body {
    padding: 20px 16px;
    border-radius: 20px;
  }

  /* FLOORS STACK */
  .floor {
    flex-direction: column;
    gap: 24px;
  }

  /* ROOMS */
  .room {
    width: 100% !important;
    padding: 24px 18px;
  }

  .room h3 {
    font-size: 18px;
  }

  .room .short {
    font-size: 13px;
  }

  /* 🔥 MOBILE TOUCH FIX (hover depend illa) */
  .room ul {
    opacity: 1;
    max-height: none;
    white-space: normal;
    font-size: 13px;
    margin-top: 12px;
    padding-left: 20px ;
  }

  /* BASE TEXT */
  .house-base {
    font-size: 15px;
    margin-top: 40px;
  }

  /* STRATEGIC SECTION */
  .strategic-section {
    padding: 40px 16px;
  }

  .strategic-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .strategic-grid {
    grid-template-columns: 1fr;
  }

  /* FOUNDATION */
  .foundation-section {
    padding: 60px 16px;
  }

  .foundation-title {
    font-size: 26px;
  }

  .foundation-grid {
    grid-template-columns: 1fr;
  }

  /* FOOTER */
  .site-footer {
    padding: 50px 16px 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
}







