/* ============================================
   Maid Magic - Main Stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --mm-navy: #2d394b;
  --mm-navy-dark: #1e2a38;
  --mm-gold: #c9a96e;
  --mm-gold-light: #d4bc8e;
  --mm-gold-hover: #b8964f;
  --mm-light-blue: #5b9bd5;
  --mm-ice-blue: #eef4fa;
  --mm-off-white: #f8f9fa;
  --mm-white: #ffffff;
  --mm-text-dark: #2d394b;
  --mm-text-body: #5a6a7a;
  --mm-text-light: #8a97a8;
  --mm-text-on-dark: #d6d6d6;
  --mm-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  --mm-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --mm-radius: 16px;
  --mm-transition: all 0.3s ease;
}

/* --- Base Styles --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--mm-text-body);
  background-color: var(--mm-white);
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--mm-text-dark);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.1rem; font-weight: 600; }

p {
  font-size: 1rem;
  font-weight: 400;
  color: var(--mm-text-body);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--mm-gold);
  transition: var(--mm-transition);
}

a:hover {
  color: var(--mm-gold-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Section Utilities --- */
.section-subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--mm-gold);
  margin-bottom: 0.75rem;
  display: block;
}

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

.section-description {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--mm-text-body);
}

.py-6 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* --- Buttons --- */
.btn-magic {
  background-color: var(--mm-gold);
  color: var(--mm-white);
  border: 2px solid var(--mm-gold);
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--mm-transition);
  display: inline-block;
  text-align: center;
  cursor: pointer;
}

.btn-magic:hover {
  background-color: var(--mm-gold-hover);
  border-color: var(--mm-gold-hover);
  color: var(--mm-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 169, 110, 0.4);
}

.btn-outline-magic {
  background-color: transparent;
  color: var(--mm-white);
  border: 2px solid var(--mm-white);
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--mm-transition);
  display: inline-block;
  text-align: center;
  cursor: pointer;
}

.btn-outline-magic:hover {
  background-color: var(--mm-white);
  color: var(--mm-navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* --- Navbar --- */
.mm-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 15px 0;
  transition: var(--mm-transition);
  background-color: transparent;
}

.mm-navbar.scrolled {
  background-color: var(--mm-white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.mm-navbar .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 120px;
  transition: var(--mm-transition);
}

.mm-navbar.scrolled .nav-logo img {
  height: 80px;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links li a {
  color: var(--mm-white);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 5px 0;
  position: relative;
  transition: var(--mm-transition);
}

.mm-navbar.scrolled .nav-links li a {
  color: var(--mm-text-dark);
}

.nav-links li a:hover,
.nav-links li a.active-menu {
  color: var(--mm-gold);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--mm-gold);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active-menu::after {
  width: 100%;
}

.mm-navbar .btn-magic {
  padding: 8px 24px;
  font-size: 0.85rem;
}

/* Nav Login Link */
.nav-login-link {
  color: var(--mm-white);
  font-weight: 500;
  font-size: 0.85rem;
  margin-left: 20px;
  padding: 6px 0;
  transition: var(--mm-transition);
}

.nav-login-link i {
  margin-right: 4px;
}

.mm-navbar.scrolled .nav-login-link {
  color: var(--mm-text-dark);
}

.nav-login-link:hover {
  color: var(--mm-gold);
}

/* Sidebar Login Link */
.sidebar-login-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  color: var(--mm-text-body);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px;
  transition: var(--mm-transition);
}

.sidebar-login-link:hover {
  color: var(--mm-gold);
}

/* Hamburger */
.hamburger {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--mm-white);
  transition: var(--mm-transition);
}

.mm-navbar.scrolled .hamburger {
  color: var(--mm-text-dark);
}

/* --- Mobile Sidebar --- */
.sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: var(--mm-white);
  z-index: 2000;
  transition: right 0.3s ease;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.sidebar.active {
  right: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.sidebar-logo {
  height: 55px;
}

.sidebar-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--mm-text-dark);
  cursor: pointer;
}

.sidebar-links {
  list-style: none;
  padding: 20px;
  margin: 0;
  flex: 1;
}

.sidebar-links li {
  margin-bottom: 5px;
}

.sidebar-links li a {
  display: block;
  padding: 12px 15px;
  color: var(--mm-text-dark);
  font-weight: 500;
  font-size: 1rem;
  border-radius: 8px;
  transition: var(--mm-transition);
}

.sidebar-links li a:hover {
  background-color: var(--mm-ice-blue);
  color: var(--mm-gold);
}

.sidebar-cta {
  padding: 20px;
  border-top: 1px solid #eee;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--mm-transition);
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--mm-navy);
  color: var(--mm-text-on-dark);
  padding: 4rem 0 2rem;
}

.footer-logo {
  height: 70px;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  color: var(--mm-text-on-dark);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--mm-text-on-dark);
  transition: var(--mm-transition);
}

.footer-social a:hover {
  background-color: var(--mm-gold);
  color: var(--mm-white);
}

.footer-heading {
  color: var(--mm-white);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--mm-gold);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links li a {
  color: var(--mm-text-on-dark);
  font-size: 0.95rem;
  transition: var(--mm-transition);
}

.footer-links li a:hover {
  color: var(--mm-gold);
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact li i {
  color: var(--mm-gold);
  margin-top: 4px;
  min-width: 16px;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0 1.5rem;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--mm-text-light);
  margin-bottom: 0;
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--mm-gold);
  color: var(--mm-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 3px 15px rgba(201, 169, 110, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--mm-gold-hover);
  transform: translateY(-3px);
}
