/* ----------------------------------------------------
    Al Naima Domestic Services - FULL CONSOLIDATED STYLESHEET
    Includes NORMALIZED Logo, Background Image Fix, and Responsive Features
    ---------------------------------------------------- */

/* --- ROOT VARIABLES --- */
:root {
  --gold: #d4af37;
  --rich-gold: #b5651d;
  --dark: #111;
  --light: #ffffff;
  --gray: #f8f8f8;
  --soft-beige: #f9f5ef;
  --light-cream: #fffaf3;
  --text: #333;
  --deep-brown: #36281e;
  --accent: #b68f2e;
}

/* --- GLOBAL RESET & BODY --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--soft-beige);
  color: var(--text);
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

a:focus,
button:focus {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Page Content Container */
main,
.features,
.forms,
.about,
.values,
.core-values,
.contact {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  background: transparent;
}

/* Balanced side padding for sections */
.features,
.forms,
.about,
.values,
.core-values,
.contact {
  padding-left: 6%;
  padding-right: 6%;
  padding-top: 60px;
  padding-bottom: 60px;
}

/* ----------------------------------------------------
    HEADER & NORMALIZED LOGO
    ---------------------------------------------------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 6%;
  background: var(--light-cream);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* LOGO CONTAINER: NORMALIZED */
.logo-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.1); /* Subtle border for clarity */

  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* LOGO IMAGE: NORMALIZED */
.logo {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  object-fit: contain;

  /* Removed metallic filter effects */
  filter: none;

  /* Removed inner shadow */
  box-shadow: none;

  transition: all 0.3s ease;
}

.logo-circle:hover .logo {
  transform: scale(1.05);
}

.brand-text h1 {
  font-size: 22px;
  color: var(--dark);
  font-weight: 700;
}

#brand-sub {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.5px;
}

/* Language Switch Buttons */
.lang-switch .lang {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--dark);
  padding: 6px 10px;
  margin-left: 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.lang-switch .lang.active {
  background: var(--gold);
  color: var(--light);
}

/* NAV LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  font-size: 15px;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

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

.nav-links a i,
.nav-links a svg {
  display: none !important;
}

/* ----------------------------------------------------
    HERO SECTION (BACKGROUND IMAGE FIX APPLIED)
    ---------------------------------------------------- */
.hero {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  min-height: calc(100vh - 100px);
  display: flex;
  justify-content: center;
  align-items: center;
  /* IMPORTANT: Update the image path here */
  background-image: url("assets/CLEANING.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 0;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Reduced opacity from 0.45 to 0.25 */
  background: rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  z-index: 3;
}

.hero-content {
  max-width: 650px;
  margin: 0 auto;
  padding: 40px 30px;
  text-align: center;
  /* Set to 0.6 for high transparency */
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border-top: 5px solid var(--gold);
}

#hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--rich-gold);
  margin-bottom: 12px;
  line-height: 1.2;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

#hero-sub {
  color: var(--deep-brown);
  font-size: 1.25rem;
  margin-bottom: 30px;
  font-weight: 500;
  line-height: 1.6;
}

/* --- CTA BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.hero-contact {
  display: flex;
  justify-content: center;
  gap: 15px;
  width: 100%;
  max-width: 450px;
  margin-top: 5px;
}

.cta-row .btn.primary {
  width: 100%;
  max-width: 320px;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--gold), var(--rich-gold));
  color: var(--light);
  box-shadow: 0 8px 25px rgba(181, 101, 29, 0.45);
}

.cta-row .btn.primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(181, 101, 29, 0.7);
}

.hero-contact .btn {
  flex-grow: 1;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-contact .btn.ghost {
  border: 2px solid var(--deep-brown);
  color: var(--deep-brown);
  background: transparent;
  box-shadow: none;
}

.hero-contact .btn.ghost:hover {
  background: var(--deep-brown);
  color: var(--light);
  border-color: var(--deep-brown);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(54, 40, 30, 0.15);
}

.hero-contact .btn.whatsapp-btn {
  background-color: #25d366;
  color: #fff;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.hero-contact .btn.whatsapp-btn:hover {
  background-color: #1ebe5f;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

.btn img {
  width: 20px;
  height: 20px;
}

/* --- FEATURES --- */
.features {
  background: var(--light);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.feature {
  flex: 1 1 260px;
  max-width: 300px;
  background: var(--gray);
  border-radius: 20px;
  padding: 40px 30px 50px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--gold);
  border-radius: 20px 0 0 20px;
  transition: all 0.3s ease;
}

.feature:hover::before {
  width: 10px;
  box-shadow: 0 0 14px var(--gold);
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #fffaf3, #ffecd1);
}

.feature h3 {
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 12px;
  font-weight: 600;
}

.feature p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* ----------------------------------------------------
    FORMS SECTION (RESPONSIVENESS FIXED)
    ---------------------------------------------------- */
.forms {
  background: var(--light);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
}

.form-col {
  flex: 1 1 100%; /* Ensure full width on mobile */
  max-width: 400px; /* Max width for desktop */
  background: var(--gray);
  border-radius: 18px;
  padding: 35px 25px 45px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.form-col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--gold);
  border-radius: 18px 0 0 18px;
  transition: all 0.3s ease;
}

.form-col:hover::before {
  width: 8px;
  box-shadow: 0 0 12px var(--gold);
}

.form-col:hover {
  transform: translateY(-10px);
  background: #fff;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

form label {
  display: block;
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background: var(--light);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

form button {
  width: 100%;
  background: var(--dark);
  color: var(--light);
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

form button:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 14px rgba(212, 175, 55, 0.3);
}

.form-message {
  text-align: center;
  margin-top: 15px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* --- ABOUT US SECTION --- */
.about {
  background: linear-gradient(145deg, #fffaf2, #f9efe0);
  padding: 100px 30px 80px;
  display: flex;
  justify-content: center;
  text-align: center;
}

.about-container {
  max-width: 950px;
  background: var(--light);
  border-radius: 24px;
  padding: 60px 50px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.about h3 {
  font-size: 34px;
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 10px;
}

.about .gold-line {
  width: 90px;
  height: 4px;
  background: var(--gold);
  margin: 0 auto 30px;
  border-radius: 8px;
}

.about-intro {
  color: #444;
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* --- VALUES SECTION --- */
.values {
  background: var(--light);
  text-align: center;
}

.values-container {
  max-width: 1100px;
  margin: 0 auto;
}

.values-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.value-card {
  flex: 1 1 300px;
  max-width: 340px;
  background: var(--gray);
  border-radius: 20px;
  padding: 40px 25px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
}

.value-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(135deg, #fff8f0, #ffe8d6);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.value-card h4 {
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
}

.value-card p,
.value-card li {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}

.value-card ul {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

/* --- CORE VALUES --- */
.core-values {
  text-align: center;
  background: #fffaf3;
  padding: 60px 5%;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-top: 40px;
}

.core-values h4 {
  font-size: 1.8rem;
  color: var(--rich-gold);
  margin-bottom: 2rem;
  font-weight: 700;
}

.core-values-grid {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 1.2rem;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

.core-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.2rem 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  flex: 1;
  max-width: 250px;
}

.core-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, #fffaf3, #fff1e6);
}

.core-icon {
  font-size: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.6rem;
  color: #fff;
  transition: all 0.3s ease;
}

.core-card:nth-child(1) .core-icon {
  background: var(--rich-gold);
}
.core-card:nth-child(2) .core-icon {
  background: #3a86ff;
}
.core-card:nth-child(3) .core-icon {
  background: #8ecae6;
  color: #222;
}
.core-card:nth-child(4) .core-icon {
  background: #ffb703;
}

.core-card h5 {
  font-size: 1rem;
  color: var(--rich-gold);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.core-card p {
  color: #444;
  font-size: 0.85rem;
  line-height: 1.4;
}

.core-card:hover .core-icon {
  transform: scale(1.1) rotate(5deg);
  filter: brightness(1.1);
}

/* --- ICON STYLING (for mission, vision, contact) --- */
.icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background: transparent;
  overflow: hidden;
}

.icon:hover {
  filter: brightness(1.2);
  transform: scale(1.1);
}

.icon.mission {
  background: #ffe8d6;
  color: #ff7f50;
}

.icon.vision {
  background: #e7f5ff;
  color: #0077b6;
}

.icon.values {
  background: #f3e8ff;
  color: #7b2cbf;
}

.icon.values img {
  width: 50%;
  height: 50%;
  object-fit: contain;
  display: block;
}

.icon.phone {
  background: #e6fffa;
  color: #20b2aa;
}

.icon.email {
  background: #fff3e0;
  color: #ff9800;
}

.icon.map {
  background: #fce4ec;
  color: #e91e63;
}

/* --- TESTIMONIALS --- */
.testimonials {
  background: var(--light);
  padding: 50px 40px;
  text-align: center;
}

.testimonials h3 {
  color: var(--dark);
  margin-bottom: 18px;
}

blockquote {
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
  color: #555;
  background: var(--gray);
  padding: 20px;
  border-left: 4px solid var(--gold);
  border-radius: 10px;
}

/* --- CONTACT SECTION --- */
.contact {
  background: linear-gradient(145deg, #fffaf2, #f9efe0);
  padding: 100px 30px;
  text-align: center;
}

.contact-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.contact-card {
  flex: 1 1 250px;
  max-width: 280px;
  background: var(--gray);
  border-radius: 18px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-8px);
  background: #fff;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.contact-card h4 {
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-card p {
  color: #555;
  font-size: 15px;
}

/* --- FOOTER --- */
footer {
  width: 100%;
  position: relative;
  background: linear-gradient(135deg, #111, #222);
  color: #f9f9f9;
  text-align: center;
  padding: 1.8rem 0;
  font-size: 0.9rem;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.25);
  margin: 0;
  border: none;
  z-index: 20;
}

footer a {
  color: #ffd700;
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
  color: #fff;
}

footer .footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transition: transform 0.3s ease;
}

.whatsapp-float img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-tooltip {
  position: fixed;
  bottom: 85px;
  right: 30px;
  background: #111;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 99;
}

.whatsapp-float:hover + .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------
    MOBILE NAVIGATION (CUTER TOGGLE) & RESPONSIVE DESIGN
    ---------------------------------------------------- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  transition: transform 0.3s ease;
  z-index: 110;
}

.menu-icon {
  width: 24px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.menu-icon span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

/* Animation for the 'X' icon when open */
.menu-toggle.open .menu-icon span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open .menu-icon span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open .menu-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- RTL SUPPORT --- */
body.rtl {
  direction: rtl;
  text-align: right;
}

body.rtl .form-col label {
  text-align: right;
}

body.rtl .feature::before {
  left: auto;
  right: 0;
  border-radius: 0 20px 20px 0;
}
body.rtl .feature:hover::before {
  left: auto;
  right: 0;
}
body.rtl .form-col::before {
  left: auto;
  right: 0;
  border-radius: 0 18px 18px 0;
}
body.rtl .form-col:hover::before {
  left: auto;
  right: 0;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 992px) {
  .core-values-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block; /* Show the cute toggle button */
  }

  .main-nav {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 80px;
    right: 0;
    width: 200px;
    padding: 20px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .main-nav.open {
    display: flex;
    transform: translateX(0);
  }

  /* RTL Mobile Menu Fix */
  body.rtl .main-nav {
    right: auto;
    left: 0;
    transform: translateX(-100%);
  }
  body.rtl .main-nav.open {
    transform: translateX(0);
  }

  .features,
  .forms {
    flex-direction: column;
  }

  /* FIX: Features take full width on phone for better flow */
  .feature {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 30px 25px;
  }

  /* FIX: Form column appears fully on phone */
  .form-col {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .values-grid {
    flex-direction: column;
    align-items: center;
  }

  /* Hero Section Mobile Overrides */
  .hero {
    min-height: 70vh;
    background-attachment: scroll;
  }
  .hero::before {
    background: rgba(0, 0, 0, 0.55);
  }
  .hero-content {
    padding: 30px 20px;
    margin: 0 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }

  #hero-title {
    font-size: 2.2rem;
  }

  #hero-sub {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }

  .cta-row .btn.primary {
    max-width: 100%;
    padding: 14px 25px;
  }

  .hero-contact {
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .core-card {
    min-width: 220px;
  }
}
