/* ============================
   TASEES BH - Professional Website
   Theme: Bahraini Government Style
   White/Light + Red (#CE1126) + Navy (#1a2a3a)
   RTL + LTR Support
   ============================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #1a2a3a;
  --primary-light: #2c3e6b;
  --red: #CE1126;
  --red-dark: #a80d1e;
  --red-light: #e8253b;
  --navy: #1a2a3a;
  --navy-light: #243447;
  --white: #ffffff;
  --bg: #f5f6fa;
  --bg-alt: #eef0f5;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --text: #2c3e50;
  --text-light: #5a6a7a;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --font-ar: 'Tajawal', 'Cairo', sans-serif;
  --font-en: 'Inter', 'Poppins', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-en);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

body[dir="rtl"] { font-family: var(--font-ar); }

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.3; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.3rem); font-weight: 600; }

.section-title {
  text-align: center;
  margin-bottom: 60px;
}
.section-title h2 {
  color: var(--navy);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}
.section-title p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 20px auto 0;
}

section { padding: 90px 0; }

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--navy);
  padding: 8px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-contact {
  display: flex;
  gap: 20px;
  align-items: center;
}
.top-bar-contact a {
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 5px;
}
.top-bar-contact a:hover { color: var(--white); }
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: inherit;
}

.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(206,17,38,0.3);
}

.btn-outline-red {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.btn-outline-red:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,42,58,0.3);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--gray-300);
}
.btn-white:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}
.navbar-main {
  padding: 12px 0;
}
.navbar-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo .logo-accent { color: var(--red); }
.logo-emblem {
  width: 38px;
  height: 38px;
  background: var(--red);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  position: relative;
  padding: 5px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after { width: 100%; }

body[dir="rtl"] .nav-links a::after { left: auto; right: 0; }

.lang-switch {
  background: var(--bg);
  border: 1px solid var(--gray-300);
  color: var(--navy);
  padding: 7px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.82rem;
  transition: var(--transition);
  font-family: inherit;
}
.lang-switch:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}
.mobile-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  background: var(--navy);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://img1.wsimg.com/isteam/ip/39fbc7ff-33c6-4ba3-9d63-adb8932040d2/Harbour-Heights-Panorama-View.jpeg') center/cover;
  opacity: 0.2;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,42,58,0.92), rgba(44,62,107,0.85));
}
.hero .container { position: relative; z-index: 2; }

.hero-content { max-width: 700px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(206,17,38,0.15);
  border: 1px solid rgba(206,17,38,0.3);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 25px;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 { margin-bottom: 20px; color: var(--white); }
.hero h1 .highlight { color: var(--red-light); }
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 35px;
  max-width: 580px;
}
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 50px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat h3 {
  font-size: 2rem;
  color: var(--white);
  font-weight: 800;
}
.hero-stat p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Services ---------- */
.services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 35px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
}
.service-card:hover::before { opacity: 1; }

body[dir="rtl"] .service-card::before {
  background: var(--red);
}

.service-icon {
  width: 55px;
  height: 55px;
  border-radius: 10px;
  background: rgba(206,17,38,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  color: var(--red);
}
.service-card h3 { margin-bottom: 10px; color: var(--navy); }
.service-card p { color: var(--text-light); font-size: 0.93rem; }

/* ---------- About ---------- */
.about { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.about-image-placeholder {
  font-size: 4rem;
  opacity: 0.15;
}
.about-text h2 { margin-bottom: 20px; color: var(--navy); }
.about-text p {
  color: var(--text-light);
  margin-bottom: 15px;
  font-size: 1.02rem;
}
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 25px;
}
.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.93rem;
}
.about-feature .check {
  color: var(--red);
  font-size: 1.1rem;
  flex-shrink: 0;
  font-weight: 700;
}

/* ---------- Team ---------- */
.team { background: var(--white); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 450px;
  margin: 0 auto;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.team-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: var(--bg);
  border: 4px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--gray-500);
  overflow: hidden;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card h3 { margin-bottom: 5px; color: var(--navy); }
.team-card .role {
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.team-card p { color: var(--text-light); font-size: 0.9rem; }

/* ---------- Advantages ---------- */
.advantages { background: var(--navy); color: var(--white); }
.advantages .section-title h2 { color: var(--white); }
.advantages .section-title p { color: rgba(255,255,255,0.7); }

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 18px;
}
.advantage-item {
  display: flex;
  gap: 15px;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
.advantage-item:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(206,17,38,0.3);
}
.advantage-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.advantage-item p { color: rgba(255,255,255,0.85); font-size: 0.93rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg); }
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
}
.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
  transition: var(--transition);
}
.faq-question:hover { color: var(--red); }
.faq-question .arrow {
  transition: var(--transition);
  color: var(--red);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.faq-item.active .faq-question .arrow { transform: rotate(180deg); }
.faq-item.active { border-color: var(--red); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ---------- Contact ---------- */
.contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-info h3 {
  color: var(--navy);
  margin-bottom: 25px;
  font-size: 1.3rem;
}
.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  align-items: flex-start;
}
.contact-icon {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  background: rgba(206,17,38,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item-text h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--navy);
}
.contact-item-text p, .contact-item-text a {
  color: var(--text-light);
  font-size: 0.95rem;
}
.contact-item-text a:hover { color: var(--red); }

.contact-form {
  background: var(--bg);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 35px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(206,17,38,0.08);
}
.form-group textarea { height: 110px; resize: vertical; }
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-500);
}

.working-hours {
  margin-top: 30px;
}
.working-hours h4 {
  margin-bottom: 15px;
  color: var(--navy);
}
.hours-table {
  width: 100%;
  font-size: 0.88rem;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
}
.hours-row .day { color: var(--text); }
.hours-row .time { color: var(--text-light); }
.hours-row.closed .time { color: var(--red); font-weight: 600; }

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: whatsappPulse 2s infinite;
}
body[dir="rtl"] .whatsapp-float { right: auto; left: 30px; }
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }
@keyframes whatsappPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  padding: 60px 0 30px;
  color: var(--white);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-about .logo {
  margin-bottom: 15px;
  display: inline-block;
  color: var(--white);
}
.footer-about .logo .logo-accent { color: var(--red-light); }
.footer-about p { color: rgba(255,255,255,0.65); font-size: 0.9rem; max-width: 300px; }
.footer-col h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1rem;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--red);
}
body[dir="rtl"] .footer-col h4::after { left: auto; right: 0; }
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  padding: 5px 0;
}
.footer-col a:hover { color: var(--white); }

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}
.social-link:hover {
  background: var(--red);
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
}

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 30px; }
  .top-bar { display: none; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    transform: translateX(100%);
    transition: var(--transition);
  }
  body[dir="rtl"] .nav-links { transform: translateX(-100%); }
  .nav-links.active { transform: translateX(0); }
  .nav-links a { font-size: 1.15rem; color: var(--navy); }
  .mobile-toggle { display: flex; }

  .hero-stats { flex-direction: column; gap: 20px; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .services-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 15px; }
  .hero h1 { font-size: 1.7rem; }
  .service-card { padding: 28px 20px; }
  .contact-form { padding: 22px; }
}
