/* ============================================
   D&L Projects - Renovation & Plumbing Website
   Global Styles
   ============================================ */

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

:root {
  --primary: #C0392B;
  --primary-hover: #96281E;
  --accent: #7A1C1C;
  --black: #111111;
  --dark: #1A1A1A;
  --dark-bg: #0D0D0D;
  --white: #FFFFFF;
  --gray-light: #F5F5F5;
  --gray: #E5E5E5;
  --gray-mid: #999999;
  --gray-text: #666666;
  --font: 'Outfit', 'Heebo', sans-serif;
  --max-width: 1376px;
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 10px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  direction: rtl;
}

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* ---------- Typography ---------- */
h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-text);
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header p {
  margin-top: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--white);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  background: #333;
}

.btn-outline {
  border: 2px solid var(--black);
  color: var(--black);
  background: transparent;
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

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

.btn-outline-white:hover {
  background: var(--white);
  color: var(--black);
}

.btn .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  transition: var(--transition);
}

.btn-primary .arrow {
  background: var(--white);
  color: var(--primary);
}

.btn-dark .arrow {
  background: var(--primary);
  color: var(--white);
}

.btn-outline .arrow {
  background: var(--black);
  color: var(--white);
}

.btn:hover .arrow {
  transform: rotate(45deg);
}

/* ---------- Navbar ---------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  position: relative;
  z-index: 100;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
}

.navbar-logo .logo-icon {
  width: 32px;
  height: 32px;
}

.navbar-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.navbar-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

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

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--primary);
}

.navbar-cta .btn {
  padding: 10px 20px;
  font-size: 0.95rem;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: var(--transition);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  padding: 32px;
  min-height: 100vh;
}

.hero-inner {
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: calc(100vh - 64px);
  position: relative;
  overflow: hidden;
}

.hero-dark .hero-inner {
  background: var(--dark-bg);
  color: var(--white);
}

.hero-dark .navbar-nav a {
  color: var(--white);
}

.hero-dark .navbar-nav a::after {
  background: var(--white);
}

.hero-dark .navbar-nav a:hover,
.hero-dark .navbar-nav a.active {
  color: rgba(255,255,255,0.8);
}

.hero-dark .menu-toggle span {
  background: var(--white);
}

.hero .dot-pattern {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(0,0,0,0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.hero-dark .dot-pattern {
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-trustpilot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.hero-trustpilot .stars {
  display: flex;
  gap: 2px;
}

.hero-trustpilot .star {
  width: 18px;
  height: 18px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 600px;
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 500px;
  margin-bottom: 32px;
  opacity: 0.8;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-search {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 50px;
  overflow: hidden;
  max-width: 460px;
  border: 1px solid var(--gray);
}

.hero-search input {
  flex: 1;
  padding: 14px 20px;
  padding-right: 48px;
  background: transparent;
}

.hero-search .search-icon {
  position: absolute;
  right: 16px;
  color: var(--gray-mid);
}

.hero-search .search-btn {
  background: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 50px;
  margin: 4px;
}

/* Hero image placeholder */
.hero-image {
  background: var(--gray);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
}

.hero-image svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

/* Hero badge / stat */
.hero-stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 360px;
}

.hero-stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-stat p {
  margin-top: 12px;
  font-size: 0.9rem;
}

/* Rotating badge */
.rotating-badge {
  width: 100px;
  height: 100px;
  position: relative;
}

.rotating-badge svg {
  animation: rotate 12s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Trust indicators below hero */
.trust-bar {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.trust-bar span {
  font-size: 0.9rem;
  color: var(--gray-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Cards ---------- */
.card {
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
}

.service-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(192,57,43,0.08);
}

.service-card-image {
  height: 220px;
  background: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
}

.service-card-body {
  padding: 20px;
}

.service-card-body h4 {
  margin-bottom: 8px;
}

.service-card-body p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.service-card-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-card-price .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
}

.service-card-price .price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gray-text);
}

/* ---------- Mission / About Section ---------- */
.mission-section {
  padding: 100px 0;
}

.mission-text {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.mission-text span {
  font-style: italic;
  color: var(--gray-mid);
}

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.value-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}

.value-card:hover {
  background: var(--primary);
  color: var(--white);
}

.value-card:hover h4,
.value-card:hover p {
  color: var(--white);
}

.value-card .icon {
  width: 56px;
  height: 56px;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.value-card h4 {
  margin-bottom: 8px;
}

/* ---------- Why Choose Us ---------- */
.why-section {
  background: var(--dark-bg);
  color: var(--white);
  padding: 100px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-text h2 {
  margin-bottom: 20px;
}

.why-text p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
}

.why-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 32px;
}

.why-stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
}

.why-stat-item p {
  font-size: 0.9rem;
}

.why-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.why-feature {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.why-feature .feat-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.why-feature h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.why-feature p {
  font-size: 0.85rem;
}

.why-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.why-image {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
}

/* ---------- Team Section ---------- */
.team-section {
  padding: 100px 0;
}

.team-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.team-hero-image {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}

.team-hero-image img {
  display: block;
}

.team-hero-text {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  color: #fff;
}

.team-hero-text h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.team-hero-text p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
}

.team-card-image {
  aspect-ratio: 3/4;
  background: var(--gray-light);
  border-radius: var(--radius);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
}

.team-card h4 {
  margin-bottom: 4px;
}

.team-card p {
  font-size: 0.85rem;
}

/* ---------- Pricing Section ---------- */
.pricing-section {
  padding: 100px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.pricing-card {
  border: 2px solid var(--gray);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}

.pricing-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(192,57,43,0.1);
}

.pricing-card.featured {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.pricing-card.featured h3,
.pricing-card.featured .price,
.pricing-card.featured .description,
.pricing-card.featured .price span {
  color: var(--white);
}

.pricing-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.pricing-card-header .badge {
  background: var(--black);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-card h3 {
  margin-bottom: 12px;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--gray-text);
}

.pricing-card .description {
  font-size: 0.9rem;
  margin: 16px 0 24px;
}

.pricing-card .features {
  margin-bottom: 24px;
}

.pricing-card .features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 0.9rem;
}

.pricing-card .features li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.pricing-card.featured .features li::before {
  background: var(--white);
  color: var(--primary);
}

.pricing-full {
  grid-column: 1 / -1;
}

/* ---------- Testimonials Section ---------- */
.testimonials-section {
  background: var(--primary);
  padding: 80px 0;
  overflow: hidden;
  color: var(--white);
}

.testimonials-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.testimonial-left h2 {
  margin-bottom: 40px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.testimonial-author .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-author .stars {
  display: flex;
  gap: 2px;
  color: var(--primary);
  font-size: 0.8rem;
}

.testimonial-author .name {
  font-weight: 600;
}

.testimonial-author .role {
  font-size: 0.85rem;
  color: var(--gray-text);
}

.testimonial-card .quote {
  font-size: 0.95rem;
  color: var(--gray-text);
  line-height: 1.7;
}

.testimonial-right-card {
  background: var(--dark-bg);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.testimonial-right-card h4 {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.testimonial-right-image {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
}

/* ---------- FAQ Section ---------- */
.faq-section {
  padding: 100px 0;
}

.faq-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.faq-left h2 {
  margin-bottom: 16px;
}

.faq-left p {
  margin-bottom: 24px;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--gray);
  padding: 20px 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  text-align: right;
  gap: 16px;
}

.faq-question .faq-toggle {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  border: 1px solid var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 0.9rem;
}

.faq-item.active .faq-toggle {
  background: var(--primary);
  border-color: var(--primary);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-top: 16px;
}

.faq-answer p {
  font-size: 0.9rem;
}

/* ---------- CTA Footer Section ---------- */
.cta-section {
  padding: 80px 0;
}

.cta-box {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: var(--white);
}

.cta-box h2 {
  max-width: 500px;
  color: var(--white);
}

.cta-form {
  display: flex;
  gap: 12px;
}

.cta-form input {
  padding: 14px 24px;
  border-radius: 50px;
  border: 2px solid var(--white);
  background: rgba(255,255,255,0.15);
  min-width: 260px;
  color: var(--white);
}

.cta-form input::placeholder {
  color: rgba(255,255,255,0.6);
}

.cta-form .btn-dark {
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
}

.cta-form .btn-dark:hover {
  background: var(--black);
  color: var(--white);
}

.cta-form .btn-dark .arrow {
  background: var(--primary);
  color: var(--white);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark-bg);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .navbar-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.footer-column h4 {
  margin-bottom: 20px;
  font-size: 1rem;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--white);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--dark-bg);
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.marquee-track {
  display: flex;
  gap: 40px;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}

.marquee-track span {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  gap: 16px;
}

.marquee-track span::after {
  content: '✦';
  color: var(--primary);
  font-size: 0.8rem;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ---------- Stats Row ---------- */
.stats-row {
  display: flex;
  gap: 60px;
  margin: 40px 0;
}

.stat-item .stat-number {
  font-size: 3rem;
  font-weight: 700;
}

.stat-item p {
  font-size: 0.9rem;
}

/* ---------- Contact Form ---------- */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 16px;
  border: 1px solid var(--gray);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ---------- Time Slots ---------- */
.time-slot {
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: var(--white);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.time-slot:hover {
  border-color: var(--primary);
  background: rgba(192,57,43,0.2);
}

.time-slot.active-slot {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}

/* ---------- Booking Calendar ---------- */
.calendar {
  background: var(--dark-bg);
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.calendar-header h4 {
  font-size: 1rem;
}

.calendar-header button {
  color: var(--white);
  font-size: 1.2rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.calendar-grid .day-name {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  padding: 8px 0;
}

.calendar-grid .day {
  padding: 10px;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.calendar-grid .day:hover {
  background: var(--primary);
  color: var(--white);
}

.calendar-grid .day.active {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}

.calendar-grid .day.today {
  border: 1px solid var(--primary);
}

.calendar-grid .day.inactive {
  color: rgba(255,255,255,0.2);
  cursor: default;
}

/* ---------- Blog Cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card-image {
  height: 220px;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
}

.blog-card-body {
  padding: 20px 0;
}

.blog-card-body .tag {
  display: inline-block;
  background: var(--gray-light);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.blog-card-body h4 {
  margin-bottom: 8px;
}

.blog-card-body p {
  font-size: 0.9rem;
}

/* ---------- Category Tabs ---------- */
.category-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.category-tab {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  flex: 1;
  min-width: 200px;
}

.category-tab:hover,
.category-tab.active {
  background: var(--primary);
  color: var(--white);
}

.category-tab-image {
  height: 140px;
  background: var(--gray);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
}

/* ---------- Project Showcase ---------- */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-item {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--gray);
}

.project-item:nth-child(even) {
  direction: ltr;
}

.project-item:nth-child(even) > * {
  direction: rtl;
}

.project-item-image {
  height: 300px;
  background: var(--gray-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
}

.project-item-content h3 {
  margin-bottom: 12px;
}

.project-item-content p {
  margin-bottom: 20px;
}

/* ---------- Countdown ---------- */
.countdown {
  display: flex;
  gap: 16px;
  margin: 32px 0;
}

.countdown-item {
  background: var(--dark-bg);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  min-width: 70px;
}

.countdown-item .number {
  font-size: 2rem;
  font-weight: 700;
  display: block;
}

.countdown-item .label {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ---------- Contact Info Cards ---------- */
.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-info-card {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--white);
}

.contact-info-card .icon {
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.2rem;
  color: var(--primary);
}

.contact-info-card h4 {
  margin-bottom: 4px;
  color: var(--white);
}

.contact-info-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}

/* ---------- 404 Page ---------- */
.error-page {
  background: var(--dark-bg);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 32px;
}

.error-code {
  font-size: 15rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.9);
}

.error-content p {
  color: rgba(255,255,255,0.6);
  max-width: 500px;
  margin-bottom: 32px;
}

.error-image {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  width: 100%;
  max-width: 500px;
  height: 300px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
}

/* ---------- Image placeholder icon ---------- */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

/* ---------- Insights/Articles section ---------- */
.insights-section {
  padding: 80px 0;
  background: var(--gray-light);
}

.insight-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.insight-item h4 {
  font-size: 1rem;
}

.insight-item .arrow-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.insight-item:hover .arrow-link {
  background: var(--primary);
  border-color: var(--primary);
}

/* ---------- Still Have Questions Banner ---------- */
.questions-banner {
  background: var(--primary);
  padding: 60px 0;
  text-align: center;
  color: var(--white);
}

.questions-banner h2 {
  text-decoration: underline;
  margin-bottom: 40px;
  color: var(--white);
}

/* ---------- Map Area ---------- */
.map-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.map-placeholder {
  height: 400px;
  background: var(--gray-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
}

/* ---------- Special Offer ---------- */
.offer-section {
  background: var(--gray-light);
  padding: 80px 0;
}

.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* ---------- Review Grid (Testimonials page) ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.review-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(192,57,43,0.08);
}

.review-card .stars {
  color: var(--primary);
  margin-bottom: 12px;
}

.review-card .text {
  font-size: 0.9rem;
  color: var(--gray-text);
  margin-bottom: 16px;
}

.review-card .author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card .author .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
}

/* ---------- Benefits Grid ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.benefit-card {
  text-align: center;
  padding: 24px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.benefit-card:hover {
  background: var(--gray-light);
  transform: translateY(-4px);
}

.benefit-card .icon {
  width: 64px;
  height: 64px;
  background: var(--gray-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

.benefit-card h4 {
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  h1, .hero-title {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials-wrapper {
    grid-template-columns: 1fr;
  }

  .map-area {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 20px;
  }

  h1, .hero-title {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section {
    padding: 60px 0;
  }

  .hero {
    padding: 16px;
  }

  .hero-inner {
    padding: 20px;
  }

  .navbar-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 100;
  }

  .hero-dark .navbar-nav {
    background: var(--dark-bg);
  }

  .navbar-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }

  .cta-form {
    flex-direction: column;
    width: 100%;
  }

  .cta-form input {
    min-width: auto;
    width: 100%;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
  }

  .project-item {
    grid-template-columns: 1fr;
  }

  .project-item:nth-child(even) {
    direction: rtl;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .why-images {
    grid-template-columns: 1fr;
  }

  .offer-grid {
    grid-template-columns: 1fr;
  }

  .error-code {
    font-size: 8rem;
  }

  .hero-search {
    flex-direction: column;
    border-radius: var(--radius);
  }

  .hero-search .search-btn {
    width: 100%;
    justify-content: center;
  }

  .stats-row {
    gap: 30px;
  }

  .stat-item .stat-number {
    font-size: 2rem;
  }

  .why-features {
    grid-template-columns: 1fr;
  }

  .countdown {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  h1, .hero-title {
    font-size: 2rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-hero-text {
    padding: 20px;
  }

  .team-hero-text h2 {
    font-size: 1.2rem;
  }

  .team-hero-text p {
    font-size: 0.9rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .category-tabs {
    flex-direction: column;
  }
}

/* ---------- Social Links ---------- */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--white);
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.social-links a svg {
  width: 18px;
  height: 18px;
}

/* ---------- Floating WhatsApp Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: var(--transition);
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}

/* ---------- Process Timeline ---------- */
.process-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: 32px;
  position: relative;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* JS adds this class on load to enable animations */
.process-step.animate-ready {
  opacity: 0;
  transform: translateX(40px);
}

.process-step.visible {
  opacity: 1;
  transform: translateX(0);
}

.process-step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.process-step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
  transition: 0.4s ease;
}

.process-step-line {
  width: 3px;
  flex: 1;
  background: linear-gradient(to bottom, var(--primary), var(--gray));
  min-height: 40px;
  margin: 8px 0;
  opacity: 1;
  transform: scaleY(1);
  transform-origin: top;
  transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}

.process-step-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 16px;
  border-right: 4px solid var(--primary);
  transition: border-color 0.4s ease 0.2s, box-shadow 0.3s ease;
  flex: 1;
}

.process-step-content:hover {
  box-shadow: 0 8px 30px rgba(192,57,43,0.08);
}

.process-step-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--black);
}

.process-step-content p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Staggered animation delays */
.process-step:nth-child(1) { transition-delay: 0s; }
.process-step:nth-child(2) { transition-delay: 0.1s; }
.process-step:nth-child(3) { transition-delay: 0.2s; }
.process-step:nth-child(4) { transition-delay: 0.3s; }
.process-step:nth-child(5) { transition-delay: 0.4s; }
.process-step:nth-child(6) { transition-delay: 0.5s; }
.process-step:nth-child(7) { transition-delay: 0.6s; }
.process-step:nth-child(8) { transition-delay: 0.7s; }

@media (max-width: 768px) {
  .process-step {
    gap: 20px;
  }

  .process-step-marker {
    min-width: 44px;
  }

  .process-step-number {
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
  }

  .process-step-content {
    padding: 20px;
  }

  .process-step-content h3 {
    font-size: 1.05rem;
  }
}

/* ---------- Video Reels Section ---------- */
.reels-section {
  padding: 80px 0;
  background: var(--dark-bg);
  color: var(--white);
  overflow: hidden;
}

.reels-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.reels-grid::-webkit-scrollbar {
  height: 4px;
}

.reels-grid::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
}

.reel-card {
  min-width: 220px;
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  transition: var(--transition);
  position: relative;
}

.reel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(192,57,43,0.2);
}

.reel-card iframe {
  width: 100%;
  aspect-ratio: 9/16;
  border: none;
  display: block;
  border-radius: var(--radius);
}

.reels-section .section-header h2,
.reels-section .section-header p {
  color: var(--white);
}

.reels-section .section-header p {
  color: rgba(255,255,255,0.6);
}

@media (max-width: 768px) {
  .reel-card {
    min-width: 180px;
  }
}

/* ---------- Clients / Trust Logos ---------- */
.clients-section {
  padding: 60px 0;
  overflow: hidden;
}

.clients-header {
  text-align: center;
  margin-bottom: 40px;
}

.clients-header h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.clients-header p {
  font-size: 0.95rem;
}

.clients-track-wrapper {
  overflow: hidden;
  position: relative;
}

.clients-track-wrapper::before,
.clients-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.clients-track-wrapper::before {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}

.clients-track-wrapper::after {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}

.clients-track {
  display: flex;
  gap: 60px;
  align-items: center;
  animation: scroll-logos 25s linear infinite;
  width: max-content;
}

.clients-track img {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.4s ease;
}

.clients-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .clients-track img {
    height: 36px;
  }

  .clients-track {
    gap: 40px;
  }
}

/* ---------- Review Screenshots Gallery ---------- */
.review-screenshots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.review-screenshot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.review-screenshot:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-color: var(--primary);
}

.review-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

/* Lightbox overlay */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--black);
  border: none;
  z-index: 10001;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  color: var(--black);
}

.lightbox-prev { right: 20px; }
.lightbox-next { left: 20px; }

@media (max-width: 768px) {
  .review-screenshots {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .review-screenshots {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin: 0 auto;
  }
}

/* ---------- Paint Animations ---------- */

/* Paint roller reveal - sections wipe in like a roller */
.paint-reveal {
  position: relative;
  overflow: hidden;
}

.paint-reveal::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  z-index: 10;
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.paint-reveal.visible::before {
  transform: scaleX(0);
  transform-origin: left;
}

/* Brush stroke underline on headings */
.brush-underline {
  position: relative;
  display: inline;
}

.brush-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 8px;
  background: var(--primary);
  opacity: 0.25;
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
}

.brush-underline.visible::after {
  width: 100%;
}

/* Paint drip decoration */
.paint-drip {
  position: relative;
}

.paint-drip::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: 15%;
  width: 6px;
  height: 0;
  background: var(--primary);
  border-radius: 0 0 6px 6px;
  opacity: 0.3;
  transition: height 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.5s;
  z-index: 5;
}

.paint-drip.visible::after {
  height: 40px;
}

/* Second drip at different position */
.paint-drip::before {
  content: '';
  position: absolute;
  bottom: -28px;
  right: 45%;
  width: 4px;
  height: 0;
  background: var(--accent);
  border-radius: 0 0 4px 4px;
  opacity: 0.2;
  transition: height 1s cubic-bezier(0.23, 1, 0.32, 1) 0.8s;
  z-index: 5;
}

.paint-drip.visible::before {
  height: 28px;
}

/* Paint roller icon animation */
.paint-roller-anim {
  display: inline-block;
}

.paint-roller-anim svg {
  transition: transform 0.6s ease;
}

.paint-roller-anim:hover svg {
  transform: translateX(-20px) rotate(-5deg);
}

/* Paint splash floating decoration */
@keyframes paint-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-12px) rotate(3deg); }
  75% { transform: translateY(8px) rotate(-2deg); }
}

.paint-splash {
  position: absolute;
  opacity: 0.08;
  animation: paint-float 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.paint-splash:nth-child(2) {
  animation-delay: -2s;
  animation-duration: 8s;
}

.paint-splash:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 7s;
}

/* Color swatch fan animation */
.color-swatches {
  display: flex;
  gap: 4px;
  margin-top: 20px;
}

.color-swatch {
  width: 40px;
  height: 52px;
  border-radius: 4px 4px 20px 20px;
  opacity: 0;
  transform: translateY(20px) rotate(5deg);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.color-swatches.visible .color-swatch {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

.color-swatches.visible .color-swatch:nth-child(1) { transition-delay: 0.1s; }
.color-swatches.visible .color-swatch:nth-child(2) { transition-delay: 0.2s; }
.color-swatches.visible .color-swatch:nth-child(3) { transition-delay: 0.3s; }
.color-swatches.visible .color-swatch:nth-child(4) { transition-delay: 0.4s; }
.color-swatches.visible .color-swatch:nth-child(5) { transition-delay: 0.5s; }

/* Paint stroke separator between sections */
.paint-separator {
  height: 6px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), var(--primary), transparent);
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.6s ease, transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.paint-separator.visible {
  opacity: 0.3;
  transform: scaleX(1);
}

/* Stat counter animation */
.count-up {
  display: inline-block;
}

/* ---------- Scroll Fade-In Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Blog Page: Hero 3-Column Grid ---------- */
.blog-hero-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 32px;
  align-items: center;
  min-height: 70vh;
  padding: 60px 0;
}

/* ---------- Blog Page: Featured Posts Grid ---------- */
.blog-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ---------- Blog Page: Latest Posts Layout ---------- */
.blog-latest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.blog-latest-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blog-latest-right {
  display: flex;
  flex-direction: column;
}

.blog-list-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray);
  align-items: center;
  transition: var(--transition);
}

.blog-list-item:hover {
  opacity: 0.8;
}

.blog-list-thumb {
  width: 120px;
  height: 90px;
  background: var(--gray-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
}

.blog-list-item h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.blog-list-item p {
  font-size: 0.85rem;
}

/* ---------- Hero Layout Grid (responsive) ---------- */
@media (max-width: 1024px) {
  .blog-hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 40px 0;
  }

  .blog-hero-grid > .hero-image {
    display: none;
  }

  .blog-featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-latest-grid {
    grid-template-columns: 1fr;
  }
  .hero-content [style*="grid-template-columns: 1.2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .pricing-card.featured[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .hero-content [style*="grid-template-columns: 1.2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .hero-stat {
    max-width: 100%;
    align-self: stretch !important;
  }

  .pricing-card.featured[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .blog-featured-grid {
    grid-template-columns: 1fr;
  }

  .blog-list-item {
    grid-template-columns: 90px 1fr;
    gap: 16px;
  }

  .blog-list-thumb {
    width: 90px;
    height: 70px;
  }
}
