
/* ---------- Base ---------- */

:root {
  --primary-font: 'Almarai', sans-serif;
  --bg: #FEFFF6;
  --mod: #F6F4D5;
  --yellow: #F9EB6B;
  --black: #000;
  --gray: #2D2D2D;
  --blue: #3C70B0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  font-family: var(--primary-font);
}

h1, h2, h3, h4, p, ul, li, a {
  font-family: inherit;
  text-decoration: none;
  list-style: none;
  color: inherit;
}

h1 { font-size: 3rem; font-weight: 300; }
h2 { font-size: 2rem; font-weight: 300; }
h3 { font-size: 1.25rem; font-weight: 500; }
p  { font-size: 1rem; font-weight: 300; }

strong { color: var(--blue); }

section {
  padding: 2rem;
}

.section-title {
  margin-bottom: 1rem;
}

.logo-man {
  max-height: 64px;
}

/* ---------- Header ---------- */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--gray);
  color: var(--bg);
}

.header a {
  color: var(--bg);
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a:hover {
  color: var(--yellow);
  text-decoration: underline;
}

.hamburger {
  display: none;
  cursor: pointer;
  color: var(--bg);
}


/* ---------- Hero Section ---------- */

.about {
  display: flex;
  flex-direction: column;
}

.half-hero-container {
  display: flex;
  width: 100%;
  gap: 1rem;

}
#half-hero-reverse{
  flex-direction:row-reverse;
}

.hero {
  display: flex;
  width: 100%;
  flex-direction: column;
  padding: 1rem;
  gap: 1rem;

}

.hero-image {
  width: 100%;
  aspect-ratio:1.5 / 1;
  border: 1px solid var(--gray);
  border-radius: 1rem;
}

#hero-problems, #hero-questions { width: 40%; }
#hero-img, #hero-contact { width: 60%; }


.review-icon:hover {
  background-color: var(--blue);
  border-radius: 50%;
}

/* ---------- Responsive Layouts ---------- */

/* Medium Screens (Tablets) */
@media (min-width: 950px) {
  #half-hero-reg {
    flex-direction: row;
    align-items: top;
  }
  #hero-problems{position:sticky; top: 0; height: fit-content; min-height: 250px;}


  .hero {
    width: 90%;
  }
}
@media(max-width:950px){
  h1{font-size: 2rem;}
}
@media (max-width:800px){
  #hero-problems, #hero-questions, #hero-img, #hero-contact{width: 100%;}

  .half-hero-container {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .hero{
    width: 100%;
    padding: 0px;
    padding-bottom: 1rem;
  }
  #half-hero-reverse{
    flex-direction: column;
  }
}
@media (max-width: 650px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3, p, a, ul, li { font-size: 0.875rem; }
  .hamburger {
    display: flex;
    align-items: center;
  }

  .header-right {
    position: relative;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    gap:1rem;
    top: 100%;
    right: -1rem;
    z-index: 1000;
  }

  .nav-links li {
    text-align: center;
  }

  .nav-links a {
    color: var(--bg);
  }

  .nav-links a:hover {
    color: var(--blue);
  }

  .nav-links.active {
    display: flex;
    background: var(--gray);
    margin-top: 2rem;
    padding:2rem;
  }

  .review-icon{
    transform: scale(85%);
  }
}



/* --------- mini-contact --------*/
.contact-card{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mini-contact{
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: var(--gray);
  color: var(--bg);
  gap: 1rem;
  padding: 1rem;
  border: 2px solid var(--gray);
  border-radius: 1rem;
}

.mini-contact:hover{
  border: 2px solid var(--yellow);
  background-color: var(--black);
  color: var(--yellow);
  cursor: pointer;
}

#light-contact-card .mini-contact{
  background-color: var(--mod);
  color: var(--gray);
  border: 2px solid var(--mod);
}

#light-contact-card .mini-contact:hover{
  background-color: var(--bg);
  border: 2px solid var(--blue);
  color: var(--blue);
}


/* --------- Accordion --------*/

.accordion-container{
  display: flex;
  flex-direction: column;
}

.accordion {
  background-color: var(--mod);
  cursor: pointer;
  padding: 1rem;
  margin: 1rem;
  border-radius: 20px;
  width: auto;
  text-align: left;
  border: none;
  outline: none;
  z-index: 2;
}

.accordion-container ul li{
  list-style: disc;
  margin-left: 1rem;
  font-weight: 300;
}

.accordion-para{
  padding-bottom: 1rem;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active, .accordion:hover {
  color: var(--blue);
  background-color: var(--yellow);
}

/* Style the accordion panel. Note: hidden by default */
.panel {
  margin: 1rem;
  margin-top: -2rem;
  padding-top: 2rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 1rem;
  width:auto;
  background-color: var(--mod);
  display: none;
  overflow: hidden;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  z-index: 1;
}

.accordion:after {
  content: '\02795'; /* Unicode character for "plus" sign (+) */
  font-size: 13px;
  color: var(--gray);
  float: right;
  margin-left: 5px;
}

.accordion.active:after {
  content: "\2796"; /* Unicode character for "minus" sign (-) */
}

/* --------- location --------*/
.location{
  background-color: var(--mod);
}

#location-title{
  text-align: center;
}


.location-img{
  display: flex;
  justify-content: center;
  
}

.location-img img{
  display:flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 16 / 8;
  width:100%;
  max-width: 1000px;
  border: 1px solid var(--gray);
}

/* --------- hours --------*/
.contact-container{
  display: flex;
  flex-direction: row;
}

.hours{
  display: flex;
  flex-direction: column;
  flex: 00 auto;
  max-width: 400px;
  gap: 1rem;
}

/* --------- contact --------*/
.contact{
  display: flex;
  flex-direction: column;
  background-color: var(--yellow);
  flex: 1;
}

form{
  display: flex;
  flex-direction: column;
}

.input{
  background-color: var(--bg);
  border: 2px solid var(--gray);
  border-radius: 1rem;
  padding: 0.5rem;

  margin-bottom: 1rem;
  width:90%;
}

.send-button{
  background-color: var(--mod);
  border: 2px solid var(--gray);
  border-radius: 0.5rem;
  padding: 0.5rem;
  max-width: 60px;

}
.send-button:hover{
  background-color: var(--gray);
  border: 2px solid var(--bg);
  color: var(--bg);
  cursor: pointer;
}

@media (max-width:800px){
  .contact-container{
    flex-direction:column;
  }
  .hours{
    max-width:none;
  }

}

/* --------- footer --------*/

footer{
  display: flex;
  flex-direction: row;
  justify-content: left;
  padding: 2rem;
  padding-top: 3rem;
  gap: 5%;

  background-color: var(--gray);
  color: var(--bg);
}

footer h3{
  color: var(--bg);
  font-weight: 800;
}

.footer-chunk{
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#footer-logo{
  display:flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-chunk li{
  margin-bottom: 0.5rem;
}

.footer-chunk a{
  color: var(--bg);
}
.footer-chunk a:hover{
  color: var(--yellow);
  text-decoration: underline;
  cursor: pointer;
}


@media (max-width:880px){
  footer{
    flex-direction:column;
  }
  .footer-chunk{
    margin-top: 1rem;
  }
  .footer-chunk li{
    margin-left: 0.5rem;
  }
}

/* --------- speech bubbles --------*/

.bubble {
  position: absolute;
  background: var(--yellow);       /* Bubble color */
  color: var(--gray);               /* Text color */
  padding: 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--gray);    /* Black border */
}

/* Tail triangle */
.bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;           /* Position below bubble */
  left: 25px;              /* Horizontal offset */
  width: 0;
  height: 0;

  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--yellow); /* Same as bubble color */
}

/* Triangle border */
.bubble::before {
  content: '';
  position: absolute;
  bottom: -11px;          /* Slightly bigger to match border */
  left: 24px;             /* Slightly shifted for perfect alignment */
  width: 0;
  height: 0;

  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 11px solid var(--gray);   /* Black border for triangle */
  z-index: -1;             /* Place behind main triangle */
}


/* bubble1 */
#bubble1{
  top: 85px;
  transform:scaleY(-1);
}
#bubble1 .bubble-txt{
  transform:scaleY(-1);
}


/* bubble2 */
#pop-up2{
  transform:scaleX(-1);
}
#bubble2{
  transform: scaleY(-1) translateY(-20%);
}
#bubble2 .bubble-txt{
  transform:scaleX(-1) scaleY(-1);
  
}

/* bubble3 */
#bubble3{
  transform:scaleY(-1) translateY(-10%);
}
#bubble3 .bubble-txt{
  transform:scaleY(-1);
  
}

/* bubble4 */
#footer-logo {
  position: relative; /* makes #bubble4 position relative to this area */
}

#bubble4 {
  position: absolute;
  bottom: 100%;           /* place it just above the footer-logo area */
              /* center horizontally relative to the logo */
  transform: translateX(10%) translateY(-20%);
  z-index: 10;            /* ensures it appears above footer elements */
  white-space: nowrap;     /* Prevent line breaks */
  max-width: none;         /* Remove width limitation */
  width: auto;             /* Let it size naturally */
  
}



