/**
 * Race-Holding Theme Main Styles
 */

:root {
  --primary-color: #dc2626;
  --primary-dark: #b91c1c;
  --primary-light: #fecaca;
  --dark-color: #1f2937;
  --light-color: #f9fafb;
  --text-dark: #374151;
  --text-light: #e0e1e4;
  --border-color: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}
p {
  margin: 0 0 1rem;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.site-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-navigation a {
  font-size:19px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 120px 0 80px;
  text-align: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

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

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

/* Projects Grid Layout */
.projects-grid {
  gap: 2rem;
  margin: 2rem 0;
  transition: opacity 0.3s ease;
}

.projects-grid.filtering {
  opacity: 0.7;
  pointer-events: none;
}

/* Project Filters */
.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 2rem;
  background: var(--light-color);
  border-radius: 12px;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 25px;
  color: var(--text-dark);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: capitalize;
}

.filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Project Card Enhancements */
.project-card {
  display: flex;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  background: var(--white);
  border-radius: 12px;
  margin: 15px 0px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

.project-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.project-image {
  flex-basis: 70%;
  width: 100%;
  height: 350px;
  object-fit: cover;
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.status-under-construction {
  background: rgba(251, 191, 36, 0.9);
  color: #92400e;
}

.status-handover {
  background: rgba(34, 197, 94, 0.9);
  color: #14532d;
}

.project-content {
      background-size: cover;
    background-blend-mode: multiply;
    background-image: url(https://raceholdingsbd.com/site/wp-content/uploads/2025/07/image-6.jpg);
    align-content: center;
    background-color: rgb(69 55 55);
    text-align: center;
    padding: 1.5rem;
    flex-basis: 30%;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.project-title a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-title a:hover {
  color: var(--primary-color);
}
.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.meta-item i {
  font-style: normal;
}

.icon-location::before {
  content: "📍";
}
.icon-area::before {
  content: "📐";
}

.project-excerpt {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-view {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Gallery Grid Columns */
.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Archive Page Specific */
.page-header {
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.archive-description {
  font-size: 1.1rem;
  color: var(--text-dark);
  max-width: 800px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  background: var(--dark-color);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  color: var(--text-light);
}

/* Gutenberg Block Styles */
.wp-block-race-holding-project-single {
  margin: 2rem 0;
}

.wp-block-race-holding-projects-grid {
  margin: 2rem 0;
}

.wp-block-race-holding-projects-list {
  margin: 2rem 0;
}

.projects-list-view .project-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.projects-list-view .project-image {
  width: 200px;
  height: 150px;
  flex-shrink: 0;
}

/* Theme Customizer Styles */
.customizer-section {
  padding: 1rem;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo Styles */
.site-logo img {
  max-height: 100px;
  width: auto;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 50%;
  font-weight: 600;
  transition: all 0.3s ease;
}

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

/* Project Gallery Styles */
.project-gallery-section {
  margin: 2rem 0;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Project Plans Styles */
.project-plan-section {
  margin: 2rem 0;
}

.plan-image {
  margin-top: 1rem;
}

.plan-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* Location Map Styles */
.project-location-section {
  margin: 2rem 0;
}

.location-map iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 8px;
}

/* Contact Form Shortcode Styles */
.race-holding-contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* Elementor Compatibility Styles */
.elementor-widget-container {
  box-sizing: border-box;
}

.elementor-section {
  position: relative;
}

.elementor-container {
  display: flex;
  margin: 0 auto;
  position: relative;
}

.elementor-column {
  position: relative;
  min-height: 1px;
  display: flex;
  flex-direction: column;
}

.elementor-column-gap-default > .elementor-column > .elementor-element-populated {
  padding: 10px;
}

.elementor-column-gap-narrow > .elementor-column > .elementor-element-populated {
  padding: 5px;
}

.elementor-column-gap-extended > .elementor-column > .elementor-element-populated {
  padding: 15px;
}

.elementor-column-gap-wide > .elementor-column > .elementor-element-populated {
  padding: 20px;
}

.elementor-column-gap-wider > .elementor-column > .elementor-element-populated {
  padding: 30px;
}

/* Reset conflicting theme styles for Elementor */
.elementor-section .container {
  max-width: none;
  padding: 0;
  margin: 0;
}

.elementor-widget-heading h1,
.elementor-widget-heading h2,
.elementor-widget-heading h3,
.elementor-widget-heading h4,
.elementor-widget-heading h5,
.elementor-widget-heading h6 {
  margin: 0;
  padding: 0;
}

/* Ensure Elementor columns work properly */
.elementor-row {
  display: flex;
  flex-wrap: wrap;
}

.elementor-column {
  flex-basis: 0;
  flex-grow: 1;
  max-width: 100%;
}

/* Specific column widths */
.elementor-col-16 {
  width: 16.666%;
}

.elementor-col-20 {
  width: 20%;
}

.elementor-col-25 {
  width: 25%;
}

.elementor-col-33 {
  width: 33.333%;
}

.elementor-col-40 {
  width: 40%;
}

.elementor-col-50 {
  width: 50%;
}

.elementor-col-60 {
  width: 60%;
}

.elementor-col-66 {
  width: 66.666%;
}

.elementor-col-75 {
  width: 75%;
}

.elementor-col-80 {
  width: 80%;
}

.elementor-col-83 {
  width: 83.333%;
}

.elementor-col-100 {
  width: 100%;
}

/* Fix for theme's container interfering with Elementor */
.elementor-section > .elementor-container,
.elementor-section > .elementor-container > .elementor-row {
  max-width: none;
  width: 100%;
}

/* Ensure proper box-sizing */
.elementor-section *,
.elementor-section *:before,
.elementor-section *:after {
  box-sizing: border-box;
}

/* Remove theme margins that might interfere */
.elementor-section .elementor-container {
  margin-left: auto;
  margin-right: auto;
}

/* Fix button styling conflicts */
.elementor-button {
  display: inline-block;
  line-height: 1;
  background-color: transparent;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 3px;
  color: #ffffff;
  fill: #ffffff;
  text-align: center;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
}

/* Responsive fixes for Elementor */
@media (max-width: 1024px) {
  .elementor-section .elementor-container {
    flex-direction: column;
  }

  .elementor-column {
    width: 100% !important;
    flex: none;
  }
}

@media (max-width: 767px) {
  .elementor-section .elementor-container {
    flex-direction: column;
  }

  .elementor-column {
    width: 100% !important;
    flex: none;
  }

  .elementor-col-mobile-100 {
    width: 100% !important;
  }
}

/* Fix for theme's global styles interfering */
.elementor-section {
  overflow: hidden;
}

.elementor-section .elementor-container {
  display: flex;
  flex-wrap: wrap;
}

.elementor-section .elementor-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}

/* Ensure images in Elementor work properly */
.elementor-widget-image img {
  max-width: 100%;
  height: auto;
}

/* Fix spacing issues */
.elementor-element {
  position: relative;
}

.elementor-element-populated {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}

/* Override theme's text styles in Elementor */
.elementor-section p,
.elementor-section h1,
.elementor-section h2,
.elementor-section h3,
.elementor-section h4,
.elementor-section h5,
.elementor-section h6 {
  color: inherit;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  z-index: 1001;
}

.hamburger {
  background: var(--primary-color);
  display: block;
  height: 2px;
  position: relative;
  width: 28px;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  background: var(--primary-color);
  content: "";
  display: block;
  height: 100%;
  position: absolute;
  transition: all 0.3s ease;
  width: 100%;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Active state */
.menu-toggle.active .hamburger {
  background: transparent;
}

.menu-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-navigation {
    position: relative;
  }

  .main-navigation ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
  }

  .main-navigation ul.show {
    display: flex;
  }

  .main-navigation li {
    margin: 0;
    border-bottom: 1px solid var(--border-color);
  }

  .main-navigation li:last-child {
    border-bottom: none;
  }

  .main-navigation a {
    display: block;
    padding: 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .main-navigation a:hover {
    background: var(--light-color);
    color: var(--primary-color);
    padding-left: 1.5rem;
  }
}

/* Responsive Updates */
@media (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

@media (max-width: 768px) {
  .site-header {
    position: relative;
  }

  .header-content {
    flex-direction: row;
    padding: 1rem 0;
  }

  .main-navigation {
    width: 100%;
  }

  .main-navigation ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
  }

  .main-navigation ul.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero-section {
    padding: 80px 0 60px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card {
    margin-bottom: 1rem;
  }

  .project-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-content {
    flex-direction: column;
  }

  .contact-info,
  .contact-form-wrapper {
    width: 100%;
  }

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

  .site-logo img {
    max-height: 75px;
  }

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

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .project-content {
    padding: 1rem;
  }

  .project-title {
    font-size: 1.1rem;
  }

  .project-price {
    font-size: 1.3rem;
  }

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

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

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

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .menu-toggle,
  .btn {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  .project-card {
    break-inside: avoid;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .project-image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }

  .project-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-filters {
    flex-direction: row;
    align-items: center;
  }

  .filter-btn {
    min-width: 80px;
    text-align: center;
  }

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

  .project-meta {
    flex-direction: column;
  }

  .page-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .project-gallery-grid {
    grid-template-columns: 1fr;
  }

  .project-content {
    padding: 1rem;
  }

  .filter-btn {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}
