/* colour pallete grays
#faf8ff; #afadbf; #cacaca;
*/
:root{
  --background: #faf8ff;
  --imagebox: #6B6F72;    
  --highlight: #afadbf;

  --navHiLi: #893488;
  --navhightlight: #893488;

  --text: #1a171b;
  --navtext: #1a171b;

  --nav: #cacaca;

  --footer: #2E2E2E;

  --button: #893488;     
  --sec-highlight: #aac511;

  /* Typography - consistent across all pages */
  --font-heading: 'Rokkitt-ExtraBold', "Poppins", sans-serif;
  --font-body: 'Rokkitt-SemiBold', 'Rokkitt', Georgia, serif;
}

/* font for nav bar*/
@font-face {
    font-family: 'Rokkitt-ExtraBold';
    src:url('../Fonts/webfonts_Rokkitt-ExtraBold/Rokkitt-ExtraBold.ttf.woff') format('woff'),
        url('../Fonts/webfonts_Rokkitt-ExtraBold/Rokkitt-ExtraBold.ttf.svg#Rokkitt-ExtraBold') format('svg'),
        url('../Fonts/webfonts_Rokkitt-ExtraBold/Rokkitt-ExtraBold.ttf.eot'),
        url('../Fonts/webfonts_Rokkitt-ExtraBold/Rokkitt-ExtraBold.ttf.eot?#iefix') format('embedded-opentype'); 
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Rokkitt-SemiBold';
    src:url('../Fonts/webfonts_Rokkitt-SemiBold/Rokkitt-SemiBold.ttf.woff') format('woff'),
        url('../Fonts/webfonts_Rokkitt-SemiBold/Rokkitt-SemiBold.ttf.svg#Rokkitt-SemiBold') format('svg'),
        url('../Fonts/webfonts_Rokkitt-SemiBold/Rokkitt-SemiBold.ttf.eot'),
        url('../Fonts/webfonts_Rokkitt-SemiBold/Rokkitt-SemiBold.ttf.eot?#iefix') format('embedded-opentype'); 
    font-weight: normal;
    font-style: normal;
}

html, body{
  margin: 0;
  padding: 0;
  background-color: var(--background);
  position: relative;
  z-index: -2;
  overflow-x: visible;
  color: var(--text);
  font-family: var(--font-body);
  /* could make iso very bad need to test*/
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
}

main {
  padding-top: 130px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* the below section is dedicated to the navbar*/
my-nav {
  /*position: -webkit-sticky;
  position: sticky;*/
  position:fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
}

header{
  align-self: stretch;
  background: var(--nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav ul {
  list-style-type: none;
  padding: 15px 0px;
  margin-left: 0px;
  display: flex;      
  align-items: center;
  gap: 40px;   
}
nav ul li {
  white-space: nowrap;
}

nav a {
  color: var(--navtext);
  text-decoration: none;
  font-size: 30px;
  font-weight: bold;
  font-family: var(--font-heading);
  transition: border 0.7s;
  transform-origin: 20% 40%; 
}
nav a:hover {
  border-bottom: 20px solid var(--navHiLi);
  border-radius: 10px;
}

.logo{
  display: flex;
  align-items: center;
  text-decoration: none;
  max-height: 100px;
  background-color: var(--nav);
  border-radius: 20%;
  padding: 5px;
  margin: 10px;
  margin-left: 20px;
  filter: grayscale(0%) invert(0);
  z-index: 1000;
  height: 138px;
  max-width: 50%;
}

.nav_highlight{
  text-decoration: none;
  font-size: 30px;
  font-family: var(--font-heading);
  color: var(--navHiLi);
  border-bottom: 20px solid var(--navHiLi);
  border-radius: 10px;
}
/*compresses nav bar for mobile and smaller devices */
/* ── Base styles (all screen sizes) ─────────────── */
.ham-menu {
  display: none; /* hidden on desktop by default */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.ham-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Animate into an ✕ when active */
.ham-menu.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.ham-menu.active span:nth-child(2) {
  opacity: 0;
}
.ham-menu.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.off-screen-menu ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding-right: 50px;
}

.nav_highlight {
  font-weight: bold;
}

.rectangle {
  height: 3px;
  background-color: currentColor;
  margin-top: 2px;
}

/* ── Mobile breakpoint ───────────────────────────── */
@media (max-width: 900px) {

  .ham-menu {
    display: flex; /* show burger on mobile */
    padding-right: 20px;
  }

  nav a {
  color: var(--navtext);
  text-decoration: none;
  font-size: 30px;
  font-weight: bold;
  font-family: var(--font-heading);
  transition: border 0.7s;
  transform-origin: 20% 40%; 
}
nav a:hover {
  border-bottom: 20px solid var(--navHiLi);
  border-radius: 10px;
}

  .off-screen-menu {
    position: fixed;
    top: 0;
    right: -250px; /* hidden off-screen */
    width: 250px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .off-screen-menu.active {
    right: 0; /* slide in */
    background: var(--background);
  }

  .off-screen-menu ul {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 540px) {
  nav ul {
    padding: 0px;
  }
}

/*Footer*/
footer {
  margin-top: 0px;
  background: var(--nav);
  color: var(--navtext);
}

.footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand img{
  max-width: 170px;
  height: auto;
  filter: invert(0);
  display: block;
  margin-bottom: 12px;
}

.footer-tagline{
  margin: 0 0 14px;
  opacity: 0.85;
  font-size: 15px;
}

.footer-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-actions{
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.btn-primary{
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--highlight);
  color: #000;
  text-decoration: none;
  font-weight: 800;
  font-family: var(--font-heading);
  transition: background 0.6s;
}

.btn-primary:hover{
  filter: brightness(0.95);
  background: var(--navHiLi);
  color: var(--background);

}

.btn-link{
  color: var(--navtext);
  text-decoration: none;
  opacity: 0.85;
  font-weight: 700;
  font-family: var(--font-body);
}
.btn-link:hover{
  color: var(--navHiLi);
  opacity: 1;
}

.footer-contact{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.footer-contact small{
  display: block;
  opacity: 0.7;
  margin-bottom: 4px;
}

.footer-contact a{
  color: var(--navtext);
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-body);
}
.footer-contact a:hover{
  color: var(--navHiLi);
}

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.14);
  text-align: center;
  padding: 14px 10px;
  opacity: 0.75;
  font-size: 14px;
  font-family: var(--font-body);
}

/*main body text of home about and service*/

.body-text {
  font-size: 22px;
  line-height: 1.4;
}
@media (max-width: 600px) {
  .body-text {
    font-size: 18px;
  }
}

/* ===== Responsive ===== */
@media (max-width: 940px){
  nav ul {
    list-style-type: none;
    margin-left: 0px;
    display: grid;
    grid-template-columns: auto auto auto;
    align-content: center;
    align-items: start;
    gap: 30px;
  }
}
@media (max-width: 705px){
  .footer-inner{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand img{
    margin-left: auto;
    margin-right: auto;
  }
  .footer-badges{
    justify-content: center;
  }
  .footer-actions{
    justify-content: center;
  }
  .footer-contact{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  nav ul {
    grid-template-columns: auto auto;
  }
}

