/* ============================================
   Albairaq International - Global Styles
   شركة البيرق الدولية
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Tajawal:wght@300;400;500;700&display=swap');

/* ===== CSS Variables ===== */
:root {
  --primary: #1a5276;
  --primary-dark: #0e3a57;
  --primary-light: #2980b9;
  --secondary: #e67e22;
  --secondary-light: #f39c12;
  --accent: #27ae60;
  --accent-dark: #1e8449;
  --dark: #1a1a2e;
  --dark-2: #16213e;
  --dark-3: #0f3460;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --white: #ffffff;
  --danger: #e74c3c;
  --success: #2ecc71;
  --warning: #f1c40f;
  --gradient-primary: linear-gradient(135deg, #1a5276 0%, #2980b9 100%);
  --gradient-secondary: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
  --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.18);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background-color: var(--gray-100);
  color: var(--gray-800);
  line-height: 1.7;
  direction: rtl;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

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

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--gray-200);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===== Utility Classes ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 50%;
  transform: translateX(50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-secondary);
  border-radius: 2px;
}

.section-title p {
  color: var(--gray-600);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 20px auto 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border: none;
  border-radius: var(--radius-xl);
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(26, 82, 118, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 82, 118, 0.5);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230, 126, 34, 0.5);
}

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

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

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 12px 0;
  transition: var(--transition);
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

.navbar.scrolled {
  background: rgba(26, 26, 46, 0.98);
  backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: var(--shadow-lg);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-icon {
  width: 45px;
  height: 45px;
  background: var(--gradient-secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
}

.logo-text {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
}

.logo-text span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 8px 18px;
  border-radius: var(--radius-xl);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.15);
}

.nav-cta {
  background: var(--gradient-secondary) !important;
  color: var(--white) !important;
  padding: 8px 24px !important;
  box-shadow: 0 4px 12px rgba(230,126,34,0.3);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(230,126,34,0.4) !important;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle, rgba(0,0,0,0.35) 1.5px, transparent 1.5px),
    linear-gradient(135deg, rgba(26,26,46,0.50) 0%, rgba(15,52,96,0.40) 50%, rgba(26,82,118,0.30) 100%);
  background-size: 6px 6px, 100% 100%;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 8px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 24px;
  font-size: 0.9rem;
  animation: fadeInDown 1s ease;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-content h1 span {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.25rem;
  max-width: 650px;
  opacity: 0.9;
  margin-bottom: 35px;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  animation: fadeInUp 1s ease 0.6s both;
}

.hero-stats {
  display: flex;
  gap: 50px;
  margin-top: 60px;
  animation: fadeInUp 1s ease 0.8s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--secondary);
}

.hero-stat .label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Slider Navigation */
.slider-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 12px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.slider-dot.active {
  background: var(--secondary);
  transform: scale(1.3);
}

/* ===== About Section ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image .main-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.about-image .experience-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--gradient-secondary);
  color: var(--white);
  padding: 20px 30px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.experience-badge .number {
  font-size: 2.5rem;
  font-weight: 900;
  display: block;
}

.experience-badge .text {
  font-size: 0.9rem;
}

.about-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-content p {
  color: var(--gray-600);
  margin-bottom: 25px;
  line-height: 1.9;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
}

.about-feature .icon {
  font-size: 1.3rem;
}

/* ===== Services Section ===== */
.services-section {
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230,126,34,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.services-section .section-title h2 {
  color: var(--white);
}

.services-section .section-title p {
  color: rgba(255,255,255,0.6);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-secondary);
  transform: scaleX(0);
  transition: var(--transition);
  z-index: 5;
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(255,255,255,0.1);
  border-color: rgba(230,126,34,0.3);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 2px solid rgba(255,255,255,0.1);
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 30px;
  flex-grow: 1;
  position: relative;
  z-index: 10;
  background: linear-gradient(to top, rgba(26,26,46,1), rgba(26,26,46,0.85));
}

.service-card h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.service-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ===== Products / Concrete Grades ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.product-card .grade-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gradient-primary);
  color: var(--white);
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 2;
}

.product-card .card-img {
  height: 220px;
  object-fit: cover;
  width: 100%;
}

.product-card .card-body {
  padding: 25px;
}

.product-card h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.product-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== Posts / Blog Section ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.post-card .post-img {
  height: 220px;
  object-fit: cover;
  width: 100%;
}

.post-card .post-body {
  padding: 25px;
}

.post-card .post-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  color: var(--gray-500);
  font-size: 0.85rem;
}

.post-card h3 {
  font-size: 1.15rem;
  color: var(--gray-800);
  margin-bottom: 10px;
  line-height: 1.6;
}

.post-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== Contact Section ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-info-card:hover {
  transform: translateX(-5px);
  box-shadow: var(--shadow-md);
}

.contact-info-card .info-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

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

.contact-info-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-700);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--gray-100);
  direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(26,82,118,0.1);
}

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

/* ===== Map Section ===== */
.map-section {
  height: 400px;
  position: relative;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  margin: 15px 0;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.footer-section h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

.footer-section a {
  display: block;
  color: rgba(255,255,255,0.6);
  padding: 6px 0;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--secondary);
  padding-right: 8px;
}

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

/* ===== WhatsApp Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: pulse-whatsapp 2s infinite;
}

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

.whatsapp-float .wa-icon {
  font-size: 1.2rem;
}

/* ===== Auth Pages ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-dark);
  padding: 20px;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  width: 100%;
  max-width: 450px;
  box-shadow: var(--shadow-xl);
}

.auth-card .auth-header {
  text-align: center;
  margin-bottom: 35px;
}

.auth-card .auth-header h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.auth-card .auth-header p {
  color: var(--gray-500);
}

.auth-card .btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 1.05rem;
}

.auth-card .auth-footer {
  text-align: center;
  margin-top: 25px;
  color: var(--gray-500);
}

.auth-card .auth-footer a {
  color: var(--primary);
  font-weight: 600;
}

/* ===== Page Header (Inner Pages) ===== */
.page-header {
  background: var(--gradient-dark);
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(230,126,34,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

.page-header .breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.6);
}

.page-header .breadcrumb a {
  color: var(--secondary);
}

/* ===== Toast / Alert ===== */
.toast {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  padding: 16px 30px;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-weight: 600;
  z-index: 9999;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--danger);
}

/* ===== Loading Spinner ===== */
.spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7); }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

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

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

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

  .hero-stats {
    gap: 30px;
  }

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 5px;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-xl);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    padding: 12px 20px;
    width: 100%;
    text-align: right;
  }

  .menu-toggle {
    display: flex;
  }

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

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

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

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

  .section-title h2 {
    font-size: 1.8rem;
  }

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

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }

  .auth-card {
    padding: 30px 20px;
  }

  .contact-form {
    padding: 25px 20px;
  }

  .whatsapp-float span:not(.wa-icon) {
    display: none;
  }

  .whatsapp-float {
    padding: 14px;
    border-radius: 50%;
  }
}

/* ===== Post Modal ===== */
.post-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

.post-modal.show {
  opacity: 1;
  visibility: visible;
}

.post-modal-content {
  background: var(--white);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: var(--transition);
  box-shadow: var(--shadow-xl);
}

.post-modal.show .post-modal-content {
  transform: translateY(0) scale(1);
}

.post-modal-close {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.post-modal-close:hover {
  background: var(--danger);
  transform: scale(1.1);
}

.post-modal-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.post-modal-img-placeholder {
  width: 100%;
  height: 300px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.post-modal-body {
  padding: 40px;
}

.post-modal-body h2 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
  line-height: 1.4;
}

.post-modal-text {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .post-modal-body {
    padding: 25px;
  }
  .post-modal-img {
    height: 250px;
  }
  .post-modal-body h2 {
    font-size: 1.5rem;
  }
}
