/*
Theme Name: TutorStarter Child
Theme URI: https://example.com/tutorstarter-child
Description: Child theme for TutorStarter to customize header, logo, footer, and styles
Author: Arfaoui Marwen
Template: tutorstarter
Version: 1.0.0
*/

/* ====== HEADER ====== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: #ffffff;
  border-bottom: 1px solid #eee;
  position: relative;
  z-index: 1000;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 15px;
}

.custom-logo { max-width:150px; height:auto; }

/* ====== MAIN MENU ====== */
.main-navigation { margin-left: auto; }

.primary-menu {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.primary-menu li { position: relative; }
.primary-menu li a {
  text-decoration: none;
  font-size: 16px;
  color: #333;
  transition: color 0.3s ease;
  padding: 8px 5px;
  display: block;
}
.primary-menu li a:hover { color: #f39c12; }

/* Dropdown */
.primary-menu ul {
  position: absolute;
  top: 100%; left: 0;
  min-width: 200px;
  background: #fff;
  list-style: none;
  margin: 0; padding: 8px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease-in-out;
  z-index: 999;
}
.primary-menu li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-menu ul li a { padding: 8px 14px; }

/* ====== SOCIAL MEDIA (HEADER) ====== */
.site-socials { display:flex; gap:14px; }
.site-socials a { font-size:18px; color:#555; transition:0.3s; }
.site-socials a:hover { color:#0a84ff; transform:scale(1.2); }

/* ====== RESPONSIVE (MOBILE) ====== */
.menu-toggle {
  display: none;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    padding: 15px;
  }

  .site-branding {
    flex-direction: column;
    gap: 8px;
  }

  .site-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
  }

  .site-socials a {
    font-size: 16px;
  }

  .main-navigation {
    width: 100%;
  }

  .primary-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    position: static;
    width: 100%;
    background: #fff;
    padding: 15px;
    border-top: 1px solid #eee;
  }

  .primary-menu.active { display: flex; }

  .menu-toggle { display: block; }
}

/* ====== FOOTER ====== */
.site-footer {
  background: #111;
  color: #ddd;
  padding: 40px 20px 20px;
  text-align: center;
  border-top: 3px solid #f39c12;
}

.footer-widgets {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.footer-widget {
  max-width: 250px;
  text-align: left;
}

.footer-widget h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #fff;
}

.footer-widget p,
.footer-widget li {
  font-size: 14px;
  line-height: 1.6;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widget ul li {
  margin: 8px 0;
}

.footer-widget ul li a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-widget ul li a:hover { color: #f39c12; }

/* Highlight email & phone */
.footer-widget ul li a[href^="mailto:"],
.footer-widget ul li a[href^="tel:"] {
  color: #0a84ff;
  font-weight: 500;
}
.footer-widget ul li a[href^="mailto:"]:hover,
.footer-widget ul li a[href^="tel:"]:hover {
  color: #f39c12;
  text-decoration: underline;
}

/* Highlight address (Google Maps link) */
.footer-widget ul li a[href*="maps.google"] {
  color: #ddd;
}
.footer-widget ul li a[href*="maps.google"]:hover {
  color: #f39c12;
  text-decoration: underline;
}

/* SOCIAL MEDIA IN FOOTER */
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 15px;
}

.footer-socials a {
  font-size: 20px;
  color: #ddd;
  transition: color 0.3s ease, transform 0.2s ease;
}
.footer-socials a:hover {
  color: #f39c12;
  transform: scale(1.2);
}

/* COPYRIGHT */
.site-info {
  font-size: 14px;
  color: #888;
}
.site-info strong {
  color: #fff;
}


