/*
Theme Name: Be Unique Solutions
Author: Jess
Description: Custom dark theme for Be Unique Solutions
Version: 1.1
*/

/* ======= GLOBAL ======= */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #f0f0f0;
    line-height: 1.6;
	padding-top: 80px; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ======= HEADER ======= */
.site-header { 
	background-color: #000; 
	padding: 10px 20px; 
	 position: fixed;       /* 🔹 Fixes header at the top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
	
} 

.site-header .container { 
	
	display: flex; 
	align-items: center; 
	justify-content: space-between; }


.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* ======= NAVIGATION ======= */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #ff6600;
}

/* Hamburger three-line style */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
	position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 4px;
    background: white;
    border-radius: 2px;
    transition: 0.4s;
}


/* Show on mobile */
@media (max-width: 768px) {
    /* Hamburger stays fixed in top-right */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        cursor: pointer;
        position: fixed; /* change from absolute to fixed so it stays at top-right */
        top: 20px;       /* distance from top */
        right: 20px;     /* distance from right */
        z-index: 1001;   /* above everything */
    }

    .hamburger span {
        display: block;
        height: 4px;
        background: white;
        border-radius: 2px;
        transition: 0.4s;
    }

   /* Menu overlays the hamburger */
    .main-nav {
        display: none;
        flex-direction: column;
        background: #000;
        position: absolute; /* relative to page or nearest positioned ancestor */
        top: 50px;          /* slightly below hamburger */
        right: 0;        /* align with hamburger */
        width: 150px;       /* dropdown width */
        border-radius: 5px; /* optional for nicer look */
        padding: 10px 0;
        z-index: 1000;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3); /* subtle shadow */
		align-items: center;
    }

.main-nav.show {
    display: flex;
}


    .main-nav ul {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
    }

    .main-nav a {
        padding: 10px 20px;
    }
	
	.hamburger.hidden {
    display: none;
}

}



/* ======= HERO SECTION ======= */
.hero {
    background-image: url("/wp-content/themes/be-unique-solutions/images/hero.jpg");
    height: 80vh; /* desktop & tablet */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
}

/* Dark overlay, slightly lighter */
.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.25); /* lighter than before */
    z-index: 1;
}

/* Content box */
.front-page-overlay {
    position: relative;
    z-index: 2;
    background: rgba(0,0,0,0.5); /* lighter than before */
    border-radius: 10px;
    max-width: 800px; /* bigger on desktop */
    width: 90%;
    padding: 50px 60px; /* more padding on desktop */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    text-align: center;
    color: white;
}

.front-page-overlay h2 {
    font-size: 3rem; /* desktop bigger */
    margin: 0;
}

.front-page-overlay h3 {
    font-size: 2rem; /* desktop bigger */
    margin: 0;
}

.hero .buttons .btn {
    background: #ff6600;
    color: white;
    padding: 12px 24px;
    margin: 10px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.hero .buttons .btn:hover {
    background: #9e9996;
}

/* ======= MOBILE ======= */
@media (max-width: 700px) {
    .hero {
        min-height: 100vh;          /* fill the entire viewport */
        display: flex;
        flex-direction: column;
        justify-content: center;    /* vertical centering */
        align-items: center;        /* horizontal centering */
        padding: 0 20px;            /* optional horizontal padding */
        box-sizing: border-box;
    }

    .front-page-overlay {
        width: 100%;                /* full width of hero */
        max-width: 90%;             /* leave space at edges */
        padding: 20px;              /* internal spacing */
        background: rgba(0,0,0,0.5);
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;    /* vertical centering inside overlay */
        align-items: center;
        gap: 15px;
        box-sizing: border-box;
    }

    .front-page-overlay h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .front-page-overlay h3 {
        font-size: 1.2rem;
        text-align: center;
    }

    .front-page-overlay .buttons {
        display: flex;
        flex-direction: column;  /* stack buttons vertically */
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .front-page-overlay .buttons .btn {
        width: 100%;              /* fill overlay width */
        max-width: 260px;         /* prevent over-stretch */
        font-size: 1rem;
        padding: 16px 0;
    }

    .hero .landing-text p {
        font-size: 1.5rem;
        max-width: 90%;
        margin: 0 auto;
        text-align: center;
    }
}


/* ======= TABLET ======= */
@media (min-width: 702px) and (max-width: 1024px) {
    .hero {
        height: 80vh; /* same as desktop */
        padding: 40px 20px;
    }

    .front-page-overlay {
        width: 70%;
        padding: 40px 40px;
        gap: 20px;
    }

    .front-page-overlay h2 {
        font-size: 2.4rem;
    }

    .front-page-overlay h3 {
        font-size: 1.6rem;
    }

    .front-page-overlay .buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }


    .front-page-overlay .buttons .btn {
        width: auto;
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* ======= FOOTER ======= */
footer {
    background-color: #1e1e1e;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}
.site-footer {
    background-color: #000; /* or match your theme */
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}
.site-footer p {
    margin: 5px 0;
}


/* ======= SERVICES PAGE ======= */
/* Services intro section */
.services-intro {
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
}

/* Container for cards */
.services-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* desktop: 3 per row */
  gap: 40px;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
}

.flip-card {
  background: transparent;
  perspective: 1000px;
  width: 100%;
  max-width: 370px; 
  height: auto;
  aspect-ratio: 1 / 1; /* keep square */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  border-radius: 12px;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-bottom: 4px solid orange;
  border-right: 4px solid orange;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px; /* ensure text doesn't overflow */
}

.flip-card-front {
  background: #111;
  color: #fff;
  z-index: 2;
}

.flip-card-front img {
  width: 100%;
  height: 60%; /* leave space for title */
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.flip-card-front h3 {
  margin: 10px 0 0 0;
}

.flip-card-back {
  background: #111;
  color: #fff;
  transform: rotateY(180deg);
  text-align: center;
  padding: 20px;
  z-index: 1;
  overflow-wrap: break-word; /* text stays inside */
}

/* ======= Responsive ======= */

/* Tablet & mobile: 1 per row */
@media (max-width: 900px) {
  .services-container {
    grid-template-columns: 1fr; 
  }

  .flip-card {
    max-width: 300px;
  }
}

@media (max-width: 600px) {
  .flip-card {
    max-width: 260px;
  }

  .flip-card-front h3 {
    font-size: 1rem;
  }

  .flip-card-back p {
    font-size: 0.9rem;
  }
}

/* About & Contact Page Styling */
.about-contact-container {
  max-width: 1100px;
  margin: 50px auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.about-section {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.about-section .about-image img {
  max-width: 300px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

.contact-section {
  text-align: center;
}

.contact-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.contact-btn.email {
  background: #ff6600;
  color: #fff;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.contact-btn.email:hover {
  background: #e65c00;
}

/* Social Buttons */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.facebook { background: #3b5998; }
.instagram { background: #e4405f; }
.whatsapp { background: #25d366; }

.social-btn:hover { opacity: 0.8; }

/* Mobile */
@media (max-width: 768px) {
  .about-section {
    flex-direction: column;
    text-align: center;
  }

  .about-section .about-image img {
    margin: 0 auto;
  }
}
