/*
Theme Name: Qassim Services Theme
Theme URI: https://example.com/qassim-services-theme
Author: Your Name
Author URI: https://example.com
Description: A custom WordPress theme inspired by White & Bright Dental Center, adapted for water and gas leak detection and home services in the Qassim region. The theme features a clean, modern design with Arabic right‑to‑left support, a hero banner, service cards, articles, FAQs and a comprehensive footer. It uses Font Awesome icons, responsive layout and custom colour palette.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qassim-services
Tags: rtl, arabic, custom-header, custom-background, responsive, two-columns
*/

/*
  Reset and base styles
*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', sans-serif;
  background-color: #ffffff;
  line-height: 1.6;
  color: #033d32;
  direction: rtl;
}

/*
 * Provide bottom padding on the main content so that fixed elements such as
 * the hero action bar do not overlap the last section of the page. Without
 * this padding the sticky bar would obscure the footer or last section on
 * shorter pages. Adjust the value if the bar height changes.
 */
.site-content {
  padding-bottom: 5rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: #0f7d73;
}

img {
  max-width: 100%;
  height: auto;
}

/* Colour palette */
:root {
  --clr-primary: #0f7d73; /* dark teal */
  --clr-secondary: #40b39d; /* light teal */
  --clr-accent: #f2b84b; /* warm sand yellow */
  --clr-bg-light: #f7faf9; /* light background */
  --clr-dark: #033d32; /* almost black for text */
  --clr-grey: #6c7975; /* muted text */
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  /* Use the primary colour as header background for a bold look */
  background-color: var(--clr-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.site-branding {
  font-size: 1.5rem;
  font-weight: 700;
  /* Branding text appears white on coloured header */
  color: #ffffff;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-navigation a {
  font-weight: 500;
  /* Set navigation links to white to contrast with coloured header */
  color: #ffffff;
}

.main-navigation a:hover {
  color: var(--clr-accent);
}

.header-contact {
  font-size: 0.9rem;
  /* White text for header contact on coloured header */
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.header-contact i {
  color: var(--clr-accent);
}

/* WhatsApp quick button within header contact */
.header-contact .whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #25D366;
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.2rem;
  margin-right: 0.5rem;
  transition: background-color 0.3s ease;
}

.header-contact .whatsapp-btn:hover {
  background-color: #1aa64f;
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 44px;
  height: 44px;
  background-color: var(--clr-primary);
  color: #ffffff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background-color 0.3s ease;
}

.scroll-top:hover {
  background-color: var(--clr-secondary);
}

.scroll-top.show {
  display: flex;
}

/* Ensure phone number link in header contact inherits white colour */
.header-contact a {
  color: #ffffff;
  font-weight: 500;
}

.header-contact a:hover {
  color: var(--clr-accent);
}

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem 6rem;
  color: #ffffff;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 125, 115, 0.6) 0%, rgba(15, 125, 115, 0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #e9f5f3;
}
/* Hero quick actions bar */
/*
 * Sticky action bar
 *
 * The bar that sits below the hero should remain visible as the user scrolls.
 * We convert it from an absolutely positioned element within the hero to a
 * fixed bar anchored to the bottom of the viewport. On small screens this
 * provides quick access to key actions even when the user scrolls away
 * from the hero section. The bar spans the full width of the page and
 * maintains a subtle shadow to separate it from the underlying content.
 */
.hero-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1rem;
  /* Apply a gradient and pill shape similar to the reference design */
  background-image: linear-gradient(to right, var(--clr-primary), var(--clr-secondary));
  border-radius: 50px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
  display: flex;
  overflow: hidden;
  z-index: 100;
  padding: 0.5rem;
  max-width: 700px;
  width: calc(100% - 2rem);
}

/* عناصر الشريط */
.hero-bar .hero-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1rem;
  flex: 1;
  border-right: none;
  text-align: center;
  color: #ffffff;
}

.hero-bar .hero-item:last-child {
  border-right: none;
}

.hero-bar .hero-item i {
  /* Place icon inside a coloured circle */
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bar .hero-item h4 {
  margin: 0;
  font-size: 1rem;
  color: #ffffff;
}

.hero-bar .hero-item p {
  margin: 0;
  font-size: 0.8rem;
  color: #e0f2f1;
}

/* زرار رئيسي */
.btn-primary {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 2rem;
  background-color: var(--clr-accent);
  color: var(--clr-dark);
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #e0a53e;
}

/* منع أي تمرير أفقي في الموقع بالكامل */
body {
  overflow-x: hidden;
}

/* Services Section */
.services {
  background-color: var(--clr-bg-light);
  padding: 4rem 1rem;
}

.services .section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--clr-dark);
  margin-bottom: 2rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-item {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-item i {
  font-size: 2.5rem;
  color: var(--clr-primary);
  margin-bottom: 1rem;
}

.service-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--clr-dark);
}

.service-item p {
  font-size: 0.9rem;
  color: var(--clr-grey);
  margin-bottom: 1rem;
}

.service-item a {
  font-weight: 600;
  color: var(--clr-primary);
}

/* About Section */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about .about-image {
  /* Slightly reduce the image width so the picture feels less dominant */
  flex: 1 1 40%;
}

.about .about-content {
  flex: 1 1 50%;
  color: var(--clr-dark);
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--clr-grey);
}

/* Articles Section */
.articles {
  background-color: var(--clr-bg-light);
  padding: 4rem 1rem;
}

.articles .section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--clr-dark);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.article-item {
  background-color: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.article-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.article-item .article-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ------------------------------------------------------------------
 * Hero droplet animation
 *
 * A decorative animation in the hero section where a droplet icon
 * periodically falls from the top towards the bottom, reinforcing the
 * water/leak theme. The droplet uses a Font Awesome icon and is animated
 * using CSS keyframes. Adjust the translate values to tweak the start and
 * end positions relative to the hero height.
 */
.hero {
  position: relative;
  overflow: hidden;
}
.hero .droplet-animation {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -40px;
  animation: dropletDown 5s infinite ease-in;
  opacity: 0;
}
.hero .droplet-animation i {
  font-size: 2rem;
  color: var(--clr-accent);
}
@keyframes dropletDown {
  0% { transform: translate(-50%, -80px); opacity: 0; }
  10% { opacity: 1; }
  90% { transform: translate(-50%, 350px); opacity: 1; }
  100% { transform: translate(-50%, 350px); opacity: 0; }
}

/* ------------------------------------------------------------------
 * Responsive navigation
 *
 * On small screens we hide the horizontal menu and instead display a
 * hamburger button. When the button is pressed the navigation list
 * appears as a vertical panel. On wider screens the menu is displayed
 * horizontally and the hamburger button is hidden.
 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}
@media (max-width: 768px) {
  .main-navigation ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--clr-primary);
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 999;
  }
  .main-navigation ul.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  /* Ensure the header inner container can position the dropdown */
  .header-inner {
    position: relative;
  }
}

.article-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--clr-dark);
}

.article-item p {
  flex: 1;
  font-size: 0.9rem;
  color: var(--clr-grey);
  margin-bottom: 1rem;
}

.article-item a {
  font-weight: 600;
  color: var(--clr-primary);
  margin-top: auto;
}

/* CTA Section */
.cta {
  background-color: var(--clr-primary);
  color: #ffffff;
  text-align: center;
  padding: 3rem 1rem;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #dfeeed;
}

.cta .btn-white {
  display: inline-block;
  background-color: #ffffff;
  color: var(--clr-primary);
  padding: 0.8rem 1.6rem;
  border-radius: 2rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cta .btn-white:hover {
  background-color: #f2f2f2;
}

/* Footer */
.site-footer {
  /* Use a solid primary colour for footer instead of a gradient */
  background-color: var(--clr-primary);
  color: #ffffff;
  padding-top: 4rem;
  position: relative;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-col {
  flex: 1 1 200px;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.footer-col ul li a {
  color: #e3f4f2;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #ffffff;
}

.footer-contact {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-contact i {
  margin-left: 0.5rem;
  color: var(--clr-accent);
}

.footer-bottom {
  text-align: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.1);
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .service-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .about {
    flex-direction: column;
  }
  .about .about-image, .about .about-content {
    flex: 1 1 100%;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Adjust service areas alignment */
.areas-grid {
  justify-items: start;
}
/* Team Section */
.team {
  padding: 4rem 1rem;
  background-color: #ffffff;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.team-member {
  background-color: var(--clr-bg-light);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.team-member img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
}

.team-member h3 {
  font-size: 1.2rem;
  color: var(--clr-dark);
  margin-bottom: 0.3rem;
}

.team-member p {
  font-size: 0.9rem;
  color: var(--clr-grey);
}

/* New alternating Team Section */
.team-alt {
  /* Reduce vertical padding to make the team section more compact */
  padding: 3rem 1rem;
  background-color: #ffffff;
  position: relative;
  text-align: center;
}

.team-alt .section-title {
  font-size: 2rem;
  color: var(--clr-dark);
  margin-bottom: 3rem;
}

.team-alt-cards {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  /* Reduce spacing between cards to tighten the layout */
  gap: 2rem;
}

.team-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Make each card stand out with its own container similar to White & Bright design */
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.team-card.left {
  flex-direction: row;
}

.team-card.right {
  flex-direction: row-reverse;
}

.team-card .team-img {
  position: relative;
  /* Increase profile image slightly for a focal point similar to the reference site */
  flex: 0 0 180px;
  width: 180px;
  height: 180px;
}

.team-card .team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 2;
  position: relative;
}

.team-card .team-img .decor-circle {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--clr-secondary);
  z-index: 1;
}

.team-card.right .team-img .decor-circle {
  top: -20px;
  right: -20px;
}

.team-card.left .team-img .decor-circle {
  bottom: -20px;
  left: -20px;
}

.team-card .team-info {
  flex: 1;
  /* Reduce horizontal padding around the text */
  padding: 0 1rem;
  text-align: right;
}

.team-card.left .team-info {
  text-align: left;
}

.team-card .team-info h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--clr-primary);
}

.team-card .team-info p {
  font-size: 1rem;
  color: var(--clr-grey);
  line-height: 1.6;
}

/*
 * Additional section styles merged from custom-sections.css
 * Features, testimonials, ratings, FAQ, service areas, ask section and question form.
 */

/* Features Section */
.features {
  padding: 4rem 1rem;
  background-color: #ffffff;
  text-align: center;
}

.features .section-title {
  font-size: 2rem;
  color: var(--clr-dark);
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-item {
  background-color: var(--clr-bg-light);
  border-radius: 1rem;
  padding: 2rem 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.feature-item i {
  font-size: 2.5rem;
  color: var(--clr-accent);
  margin-bottom: 1rem;
}

.feature-item h3 {
  font-size: 1.3rem;
  color: var(--clr-dark);
  margin-bottom: 0.5rem;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--clr-grey);
}

/* Testimonials Section */
.testimonials {
  padding: 4rem 1rem;
  background-color: var(--clr-bg-light);
  text-align: center;
}

/*
 * Testimonials slider
 *
 * Convert the static testimonial grid into a continuously scrolling carousel.
 * The track is duplicated in the markup so that the animation can loop
 * seamlessly. Adjust the animation duration to control the speed.
 */
.testimonials .testimonial-slider {
  overflow: hidden;
  width: 100%;
  margin-top: 2rem;
}

.testimonials .testimonial-track {
  display: flex;
  /* Each testimonial item has a fixed width; adjust for your content */
  animation: testimonialsScroll 25s linear infinite;
}

.testimonials .testimonial-item {
  /* Fixed width ensures smooth scrolling */
  flex: 0 0 300px;
  margin-inline-end: 2rem;
}

@keyframes testimonialsScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}/* ------------------------------------------------------------------
 * Redesigned Team Section (team-pro) with Card Slide Animation
 *
 * Each team card slides in from left or right alternately.
 * Cards are visible even if JS or animations fail.
 * ------------------------------------------------------------------
 */
.team-pro {
  padding: 4rem 1rem;
  background-color: #ffffff;
  overflow: hidden;
}

.team-pro .section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--clr-dark);
}

/* كل عنصر للفريق ككرت */
.team-pro-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  max-width: 750px;
  position: relative;
  opacity: 1; /* مرئي افتراضيًا */
  transform: translateX(0);
}

/* اتجاه الحركة */
.team-pro-item.left-anim {
  opacity: 0;
  transform: translateX(-80px);
  animation: slideInLeft 0.8s ease forwards;
}

.team-pro-item.right-anim {
  opacity: 0;
  transform: translateX(80px);
  animation: slideInRight 0.8s ease forwards;
}

.team-pro-item.right {
  flex-direction: row-reverse;
  text-align: left;
}

/* صورة الطبيب */
.team-pro-photo {
  position: relative;
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  margin: 0 1rem;
  z-index: 2;
}

.team-pro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  position: relative;
  z-index: 3; /* الصورة فوق الديكور */
}

/* Gradient blob خلف الصورة */
.team-pro-photo::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--clr-secondary) 0%, transparent 70%);
  z-index: 1;
  opacity: 0.15;
}

.team-pro-item.right .team-pro-photo::before {
  right: -10px;
  left: auto;
}

/* دائرة زخرفية صغيرة (خلف الصورة قليلاً) */
.team-pro-photo .decor-circle {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--clr-secondary);
  top: 0;
  right: -20px;
  z-index: 2; /* خلف الصورة */
}

.team-pro-item.right .team-pro-photo .decor-circle {
  left: -20px;
  right: auto;
}

/* معلومات العضو */
.team-pro-info {
  flex: 1;
  padding: 0 1rem;
}

.team-pro-info h3 {
  font-size: 1.3rem;
  color: var(--clr-primary);
  margin-bottom: 0.5rem;
}

.team-pro-info p {
  font-size: 0.9rem;
  color: var(--clr-grey);
  line-height: 1.6;
}

/* Keyframes للحركة الجانبية */
@keyframes slideInLeft {
  0% { opacity: 0; transform: translateX(-80px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  0% { opacity: 0; transform: translateX(80px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Responsive للموبايل */
@media (max-width: 768px) {
  .team-pro-item,
  .team-pro-item.right {
    flex-direction: column;
    text-align: center;
  }
  .team-pro-photo {
    margin: 0 0 1rem 0;
  }
  .team-pro-photo::before {
    left: 50%;
    transform: translateX(-50%);
  }
  .team-pro-photo .decor-circle {
    right: 50%;
    transform: translateX(50%);
  }
}

/* ------------------------------------------------------------------
 * Testimonials Section (Optional)
 */
.testimonials .section-title {
  font-size: 2rem;
  color: var(--clr-dark);
  margin-bottom: 2rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-item {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.testimonial-item i {
  font-size: 2rem;
  color: var(--clr-accent);
  margin-bottom: 0.5rem;
}

.testimonial-item p {
  font-size: 0.95rem;
  color: var(--clr-grey);
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.testimonial-item .author {
  font-weight: 700;
  color: var(--clr-primary);
}

/* FAQ Section */
.faq {
  padding: 4rem 1rem;
  background-color: #ffffff;
  text-align: center;
}

.faq .section-title {
  font-size: 2rem;
  color: var(--clr-dark);
  margin-bottom: 2rem;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  text-align: right;
}

.faq-item {
  margin-bottom: 1rem;
}

.faq-item summary {
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.8rem 1rem;
  border: 1px solid #e5ecec;
  border-radius: 0.5rem;
  background-color: var(--clr-bg-light);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item details[open] summary {
  background-color: var(--clr-secondary);
  color: #ffffff;
}

.faq-item .answer {
  padding: 1rem;
  background-color: #f9fafa;
  border: 1px solid #e5ecec;
  border-top: none;
  border-radius: 0 0 0.5rem 0.5rem;
  font-size: 0.9rem;
  color: var(--clr-grey);
  line-height: 1.6;
}


/* Ratings Section (Social Proof with rotating avatars) */
.ratings {
  padding: 4rem 1rem;
  text-align: center;
  background-color: #ffffff;
  overflow: hidden;
}

.ratings .section-title {
  font-size: 2rem;
  color: var(--clr-dark);
  margin-bottom: 0.5rem;
}

.ratings .subtext {
  font-size: 1rem;
  color: var(--clr-grey);
  margin-bottom: 2rem;
}

.rating-orbit {
  position: relative;
  margin: 0 auto 2rem;
  width: 500px;
  height: 500px;
}

.rating-orbit .orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid #e5ecec;
  border-radius: 50%;
  transform-origin: center;
  animation: spin 40s linear infinite;
}

.rating-orbit .orbit.outer {
  width: 500px;
  height: 500px;
  margin-top: -250px;
  margin-left: -250px;
  animation-duration: 60s;
}

.rating-orbit .orbit.inner {
  width: 320px;
  height: 320px;
  margin-top: -160px;
  margin-left: -160px;
  animation-duration: 40s;
}

.rating-orbit .orbit img {
  position: absolute;
  top: 50%;
  left: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.ratings .rating-boxes {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.ratings .rating-box {
  background-color: var(--clr-bg-light);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  min-width: 240px;
}

.ratings .rating-box i {
  font-size: 2.4rem;
  color: var(--clr-accent);
  margin-bottom: 0.5rem;
}

.ratings .rating-box span {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: 0.2rem;
}

.ratings .rating-box small {
  font-size: 0.85rem;
  color: var(--clr-grey);
}

/* Reviews slider styles */
.rating-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.rating-slider .slider-inner {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding-bottom: 0.5rem;
}

.rating-slider .slider-inner::-webkit-scrollbar {
  display: none;
}

.rating-slider .slider-item {
  flex: 0 0 280px;
  max-width: 280px;
  background-color: var(--clr-bg-light);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  scroll-snap-align: start;
}

.rating-slider .review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.rating-slider .review-header img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.rating-slider .review-header h4 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--clr-dark);
}

.rating-slider .review-date {
  font-size: 0.8rem;
  color: var(--clr-grey);
  margin-top: 0.2rem;
}

.rating-slider .review-text {
  font-size: 0.9rem;
  color: var(--clr-grey);
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.rating-slider .review-stars i {
  color: var(--clr-accent);
  margin-right: 0.1rem;
}

.rating-slider .slider-arrow {
  background-color: var(--clr-primary);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.rating-slider .slider-arrow i {
  font-size: 1rem;
}


/* Ask Question Section */
.ask {
  padding: 4rem 1rem;
  background-color: var(--clr-bg-light);
  text-align: center;
}

.ask .section-title {
  font-size: 2rem;
  color: var(--clr-dark);
  margin-bottom: 0.5rem;
}

.ask .subtext {
  font-size: 1rem;
  color: var(--clr-grey);
  margin-bottom: 1.5rem;
}

.question-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.question-form input,
.question-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #e0e8e8;
  border-radius: 0.5rem;
  font-size: 1rem;
  background-color: #ffffff;
}

.question-form textarea {
  min-height: 120px;
  resize: vertical;
}

.question-form button {
  align-self: center;
  padding: 0.8rem 2rem;
  border-radius: 2rem;
  background-color: var(--clr-primary);
  color: #ffffff;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.question-form button:hover {
  background-color: var(--clr-secondary);
}

/* Service Areas Section */
.service-areas {
  background-color: var(--clr-bg-light);
  padding: 4rem 1rem;
  text-align: center;
}

.service-areas .section-title {
  font-size: 2rem;
  color: var(--clr-dark);
  margin-bottom: 2rem;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  justify-content: start;
}

.area-item {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.area-item i {
  font-size: 2rem;
  color: var(--clr-accent);
  margin-bottom: 0.5rem;
}

.area-item h3 {
  font-size: 1.2rem;
  color: var(--clr-dark);
  margin-bottom: 0.5rem;
}

.area-item p {
  font-size: 0.9rem;
  color: var(--clr-grey);
}
/* جدول بتصميم احترافي */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 10px;
    font-weight: 600;
    text-align: center;
    border: none;
}

table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:nth-child(even) {
    background-color: #f8f9ff;
}