/* 
   Jungle Land Veterinary Clinic Landing Page Style Sheet
   Tailwind-free, Clean Semantic CSS utilizing BIBLE guidelines.
*/

:root {
  /* Brand Colors */
  --color-primary: #121212;
  --color-primary-dark: #000000;
  --color-accent: #D4AF37;
  --color-accent-light: #F4C430;
  --color-bg: #FDFCF8;
  --color-white: #FFFFFF;
  --color-text-dark: #1A1A1A;
  --color-text-muted: #5A5A5A;
  --color-danger: #D32F2F;
  --color-danger-bg: #FFF0F0;
  --color-danger-border: #FFD0D0;
  
  /* Layout Spacing (8px Grid) */
  --sp-1:  0.5rem;   /* 8px */
  --sp-2:  1rem;     /* 16px */
  --sp-3:  1.5rem;   /* 24px */
  --sp-4:  2rem;     /* 32px */
  --sp-6:  3rem;     /* 48px */
  --sp-8:  4rem;     /* 64px */
  --sp-12: 6rem;     /* 96px */
  --sp-16: 8rem;     /* 128px */

  /* Layered Shadows */
  --shadow-sm: 0 1px 3px rgba(18, 18, 18, 0.06), 0 4px 12px rgba(18, 18, 18, 0.06);
  --shadow-md: 0 2px 6px rgba(18, 18, 18, 0.06), 0 8px 24px rgba(18, 18, 18, 0.08);
  --shadow-lg: 0 4px 12px rgba(18, 18, 18, 0.06), 0 16px 40px rgba(18, 18, 18, 0.10);

  /* Friendly Border Radius */
  --radius: 16px;

  /* Typography Scale */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.375rem;  /* 22px */
  --text-2xl:  1.75rem;   /* 28px */
  --text-3xl:  2.25rem;   /* 36px */
  --text-4xl:  3rem;      /* 48px */
}

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

body {
  font-family: 'Tajawal', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  direction: rtl;
  text-align: right;
  background-color: var(--color-bg);
  color: var(--color-text-dark);
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html {
  scroll-padding-top: 80px;
}

p, li, h1, h2, h3, span {
  font-feature-settings: 'calt' 1, 'kern' 1;
  line-height: 1.8;
}

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--color-primary-dark);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  padding: 12px 28px;
  font-weight: 700;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-size: var(--text-base);
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

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

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(18, 18, 18, 0.2);
}

.btn-accent:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(18, 18, 18, 0.3);
}

.section-title {
  text-align: center;
  font-size: var(--text-2xl);
  margin-bottom: var(--sp-1);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--sp-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

section {
  padding: var(--sp-12) 0;
}

@media (max-width: 768px) {
  section {
    padding: var(--sp-6) 0;
  }
}

/* --- Demo Disclaimer Banner --- */
.demo-disclaimer {
  background-color: var(--color-danger-bg);
  border-bottom: 1px solid var(--color-danger-border);
  padding: 10px 0;
  text-align: center;
  position: relative;
  z-index: 1002;
  direction: rtl;
}

.disclaimer-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

.disclaimer-icon {
  font-size: 16px;
  line-height: 1;
}

.disclaimer-text {
  color: var(--color-danger) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

/* --- Header & Navbar --- */
header, .navbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000;
  background-color: rgba(253, 252, 248, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(18, 18, 18, 0.08);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-1) 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.logo-img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
}

.logo-text {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
}

.nav-menu {
  display: flex;
  gap: var(--sp-3);
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: var(--text-base);
  color: var(--color-text-dark);
  position: relative;
  padding: 5px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

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

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-primary);
}

@media (max-width: 992px) {
  .hamburger {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 70px);
    background-color: var(--color-white);
    flex-direction: column;
    padding: var(--sp-6) var(--sp-4);
    box-shadow: var(--shadow-lg);
    transition: right 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
    gap: var(--sp-4);
  }
  .nav-menu.open {
    right: 0;
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--sp-12) 0;
  background: linear-gradient(
    135deg,
    var(--color-primary-dark) 0%,
    var(--color-primary) 50%,
    #1F1F1F 100%
  );
  background-size: 300% 300%;
  animation: gradientPulse 12s ease infinite;
  color: var(--color-white);
}

@keyframes gradientPulse {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  filter: url('#grain');
  opacity: 0.06;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 768px) {
  .hero::after {
    opacity: 0.04;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--sp-6);
}

.hero-text-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  background-color: rgba(212, 175, 55, 0.2);
  color: #D4AF37;
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--sp-3);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}

.hero-title {
  font-size: var(--text-4xl);
  color: var(--color-white);
  line-height: 1.3;
  margin-bottom: var(--sp-2);
}

.hero-desc {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--sp-4);
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.hero-img-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-frame {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: var(--sp-4);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
  max-width: 360px;
}

.hero-logo-frame img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 8px);
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--sp-4);
  }
  .hero-text-container {
    align-items: center;
  }
  .hero-title {
    font-size: var(--text-3xl);
  }
  .hero-desc {
    font-size: var(--text-base);
  }
  .hero-logo-frame {
    max-width: 260px;
  }
}

/* Wave Divider */
.wave-divider {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: -1px;
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.wave-divider svg {
  width: 100%;
  height: 100%;
}

/* --- About Clinic Section --- */
.about {
  background-color: var(--color-white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}

.about-text h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-2);
  color: var(--color-primary);
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: var(--sp-3);
  font-size: var(--text-base);
}

.about-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.meta-item {
  background-color: var(--color-bg);
  border-radius: var(--radius);
  padding: var(--sp-2);
  text-align: center;
  border: 1px solid rgba(18, 18, 18, 0.05);
}

.meta-number {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-accent);
}

.meta-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}

.badge-wrapper {
  margin-bottom: var(--sp-2);
}

.status-badge {
  padding: 10px 24px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: var(--text-base);
  box-shadow: var(--shadow-sm);
  display: inline-block;
}

.status-open {
  background-color: #FDF8E7;
  color: #D4AF37;
  border: 1px solid #F4C430;
}

.status-closed {
  background-color: #FEECEC;
  color: #C0392B;
  border: 1px solid #FADBD8;
}

.clinic-highlight-card {
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-white) 100%);
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-radius: var(--radius);
  padding: var(--sp-4);
  box-shadow: var(--shadow-md);
  text-align: center;
  max-width: 380px;
}

.clinic-highlight-card h4 {
  color: var(--color-primary-dark);
  font-size: var(--text-lg);
  margin-bottom: var(--sp-1);
}

.clinic-highlight-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }
}

/* --- Services (Bento Grid) Section --- */
.services {
  background-color: var(--color-bg);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.bento-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: var(--sp-4);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(18, 18, 18, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(18, 18, 18, 0.15);
}

.bento-featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--color-white) 0%, #FDF8E7 100%);
  border: 1px solid rgba(18, 18, 18, 0.1);
}

.bento-featured .bento-body h3 {
  font-size: var(--text-xl);
  color: var(--color-primary-dark);
}

.bento-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background-color: rgba(18, 18, 18, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: var(--sp-2);
}

.bento-featured .bento-icon {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.bento-body h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--sp-1);
}

.bento-body p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-featured {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-featured {
    grid-column: span 1;
  }
}

/* --- Operating Hours Section --- */
.hours {
  background-color: var(--color-white);
}

.hours-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--color-bg);
  padding: var(--sp-4);
  border-radius: var(--radius);
  border: 1px solid rgba(18, 18, 18, 0.06);
  box-shadow: var(--shadow-sm);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-row {
  border-bottom: 1px solid rgba(18, 18, 18, 0.05);
  transition: all 0.3s ease;
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-row td {
  padding: 16px;
  font-size: var(--text-base);
}

.day-name {
  font-weight: 700;
  color: var(--color-primary-dark);
}

.hours-time {
  text-align: left;
  font-weight: 500;
}

.hours-row.today {
  background-color: rgba(212, 175, 55, 0.08);
  border-right: 4px solid var(--color-accent);
}

.hours-row.today td {
  font-weight: 700;
  color: var(--color-accent);
}

.closed-time {
  color: var(--color-danger);
  font-weight: 700;
}

/* --- Reviews Section --- */
.reviews {
  background-color: var(--color-bg);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.review-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: var(--sp-4);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(18, 18, 18, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-2);
}

.reviewer-info {
  display: flex;
  flex-direction: column;
}

.reviewer-name {
  font-weight: 700;
  font-size: var(--text-base);
}

.review-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.review-stars {
  color: #FFB300;
  font-size: var(--text-base);
}

.review-text {
  color: var(--color-text-dark);
  font-size: var(--text-sm);
  line-height: 1.7;
  font-style: italic;
}

.reviews-footer {
  text-align: center;
}

@media (max-width: 992px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }
}

/* --- Contact & Location Section --- */
.contact {
  background-color: var(--color-white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.contact-card {
  background-color: var(--color-bg);
  border-radius: var(--radius);
  padding: var(--sp-3);
  border: 1px solid rgba(18, 18, 18, 0.05);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  box-shadow: var(--shadow-sm);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-details h4 {
  font-size: var(--text-base);
  margin-bottom: 2px;
}

.contact-card-details p, .contact-card-details a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(18, 18, 18, 0.08);
  height: 350px;
}

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

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}

/* --- Footer --- */
footer {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding: var(--sp-6) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.footer-logo img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid var(--color-white);
}

.footer-logo span {
  font-size: var(--text-lg);
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: var(--sp-3);
  list-style: none;
  font-size: var(--text-sm);
}

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

.footer-bottom {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--sp-1);
}

/* --- WhatsApp Float Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: block;
}

.whatsapp-float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #D4AF37;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.whatsapp-float-btn:hover {
  background-color: #F4C430;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.whatsapp-float-btn svg {
  width: 32px;
  height: 32px;
}

/* --- Print CSS --- */
@media print {
  .whatsapp-float, .hamburger, .hero::after, .wave-divider, .demo-disclaimer {
    display: none !important;
  }
  body {
    background-color: var(--color-white) !important;
    color: #000000 !important;
    font-size: 11pt;
  }
  h1, h2, h3, h4 {
    color: #000000 !important;
  }
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }
  section {
    padding: var(--sp-3) 0 !important;
    page-break-inside: avoid;
  }
  .bento-grid, .reviews-grid, .contact-content {
    display: block !important;
  }
  .bento-card, .review-card, .contact-card {
    border: 1px solid #CCCCCC !important;
    margin-bottom: var(--sp-2) !important;
    page-break-inside: avoid;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto !important; }
}
