/* Wadii UI - Global Styles */
:root {
  --brand: #E2392F;       /* primary */
  --brand-dark: #C32F27;  /* hover/darker shade */
  --accent: #FF6B61;      /* lighter shade */
  --contrast: #0A2342;    /* dark blue contrast */
  --text: #202124;
  --muted: #5f6368;
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --border: #f0f1f5;      /* lighter border */
  --danger: #B2211A;      /* deep shade for alerts */
}

* { box-sizing: border-box; }
html { 
  margin: 0; 
  padding: 0; 
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* Account for sticky header */
}
body { 
  margin: 0; 
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

/* Ensure solid buttons keep white label on hover */
a.cta-primary, a.cta-primary:hover { color: #ffffff !important; }
.btn, .btn:hover { color: #ffffff !important; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff;
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--contrast); }
.brand img { height: 64px; width: auto; }
.brand span { display: none; }
.nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; align-items: center; }
.nav a { color: var(--contrast); font-weight: 500; }
.nav a:hover { color: var(--brand); }
.cta-primary { background: var(--brand); color: #fff; padding: 12px 24px; border-radius: 10px; font-weight: 600; display: inline-block; transition: background 0.2s ease, transform 0.1s ease; }
.cta-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.cta-secondary { background: var(--contrast); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; display: inline-block; }
.cta-secondary:hover { background: #0d2f53; }
.cta-outline { border: 2px solid var(--brand); color: var(--brand); padding: 10px 24px; border-radius: 10px; font-weight: 600; display: inline-block; transition: all 0.2s ease, transform 0.1s ease; }
.cta-outline:hover { background: var(--brand); color: #fff; transform: translateY(-1px); }
.cta-outline-contrast { border: 2px solid var(--contrast); color: var(--contrast); padding: 9px 14px; border-radius: 10px; font-weight: 600; display: inline-block; }
.cta-outline-contrast:hover { background: var(--contrast); color: #fff; }

.hero { padding: 80px 0 40px; background: linear-gradient(135deg, #ffeef0 0%, #fff5f6 50%, #f8f9ff 100%); }
.hero h1 { font-size: 40px; line-height: 1.2; margin: 0 0 12px; color: var(--contrast); font-weight: 700; }
.hero p { font-size: 18px; color: var(--muted); margin: 0 0 22px; font-weight: 400; }
.hero .badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; }
.badge { background: var(--bg-alt); border: 1px solid var(--border); padding: 6px 10px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 13px; }
.badge-contrast { background: var(--contrast); border: 1px solid var(--contrast); padding: 6px 10px; border-radius: 999px; color: #ffffff; font-weight: 500; font-size: 13px; }

.grid { display: grid; gap: 22px; }
.grid.features { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Features Showcase - Alternating Layout */
.features-showcase {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

.feature-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #fffafa 100%);
  border: 2px solid rgba(226, 57, 47, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(226, 57, 47, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(226, 57, 47, 0.15);
}

.feature-item.reverse {
  flex-direction: row-reverse;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border: 2px solid rgba(10, 35, 66, 0.2);
  box-shadow: 0 4px 16px rgba(10, 35, 66, 0.08);
}

.feature-item.reverse:hover {
  transform: translateX(-8px);
  box-shadow: 0 8px 24px rgba(10, 35, 66, 0.15);
}

.feature-icon {
  min-width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(226, 57, 47, 0.1) 0%, rgba(255, 107, 97, 0.15) 100%);
  border: 2px solid rgba(226, 57, 47, 0.2);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(226, 57, 47, 0.08);
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.feature-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--brand);
  opacity: 0.9;
}

.feature-item:hover .feature-icon {
  transform: scale(1.05);
  background: linear-gradient(135deg, rgba(226, 57, 47, 0.15) 0%, rgba(255, 107, 97, 0.2) 100%);
}

.feature-item.reverse .feature-icon {
  background: linear-gradient(135deg, rgba(10, 35, 66, 0.1) 0%, rgba(13, 47, 83, 0.15) 100%);
  border-color: rgba(10, 35, 66, 0.2);
  box-shadow: 0 2px 8px rgba(10, 35, 66, 0.08);
}

.feature-item.reverse .feature-icon svg {
  fill: var(--contrast);
}

.feature-item.reverse:hover .feature-icon {
  transform: scale(1.05);
  background: linear-gradient(135deg, rgba(10, 35, 66, 0.15) 0%, rgba(13, 47, 83, 0.2) 100%);
}

.feature-content {
  flex: 1;
}

.feature-content h3 {
  margin: 0 0 12px 0;
  font-size: 22px;
  color: var(--contrast);
  font-weight: 600;
}

.feature-content p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}
.card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: 0 4px 10px rgba(0,0,0,0.04); }
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-weight: 400; }
.card { transition: transform 220ms ease, box-shadow 220ms ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }

/* Highlighted cards with outline */
.highlight-card { 
  border: 2px solid rgba(226, 57, 47, 0.3); 
  background: linear-gradient(135deg, #ffffff 0%, #fffafa 100%);
  box-shadow: 0 4px 16px rgba(226, 57, 47, 0.1);
}
.highlight-card:hover { 
  border-color: rgba(226, 57, 47, 0.5);
  box-shadow: 0 10px 30px rgba(226, 57, 47, 0.15);
  transform: translateY(-4px);
}

/* Recommended pricing card */
.recommended-card {
  background: linear-gradient(135deg, #fffafa 0%, #fff5f5 100%);
  box-shadow: 0 8px 24px rgba(226, 57, 47, 0.15);
  transform: scale(1.02);
  border-color: rgba(226, 57, 47, 0.4) !important;
}
.recommended-card:hover {
  transform: scale(1.02) translateY(-4px);
  border-color: rgba(226, 57, 47, 0.6) !important;
}

section { padding: 40px 0; }
section.alt { background: linear-gradient(180deg, #f8f9ff 0%, #fef5f6 100%); }
section .section-title { margin: 0 0 8px; font-size: 28px; color: var(--contrast); font-weight: 700; }
section .section-subtitle { margin: 0 0 20px; color: var(--muted); font-weight: 400; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.feature-list { display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.feature-list li::before { content: "✔"; color: var(--accent); font-weight: 600; margin-top: 2px; }

.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.testimonial .author { margin-top: 10px; font-weight: 700; }
.stars { color: #f1b700; }

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: stretch; }
.price-card { border: 1px solid var(--border); }
.price { font-size: 36px; font-weight: 600; margin: 10px 0; color: var(--brand); }
.price small { font-size: 14px; color: var(--muted); font-weight: 500; }

footer.site-footer { border-top: 1px solid var(--border); background: #ffffff; padding: 28px 0; color: var(--text); }
footer.site-footer .brand { color: var(--contrast); display: block; }
footer.site-footer .brand img { height: 56px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.footer-grid a { color: var(--text); font-weight: 400; }
.footer-grid a:hover { color: var(--brand); }
.footer-grid strong { color: var(--contrast); font-weight: 600; }
.footer-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px; text-align: center; }
.kpi .num { font-size: 28px; font-weight: 700; color: var(--brand); }

.calendar { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.calendar header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.calendar .grid { grid-template-columns: repeat(7, 1fr); }
.calendar .cell { padding: 10px; text-align: right; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); min-height: 66px; transition: background 200ms ease; }
.calendar .cell:nth-child(7n) { border-right: none; }
.calendar .cell.is-today { background: #eef2ff; font-weight: 800; color: var(--brand-dark); }
.calendar .cell.is-disabled { color: #c2c6cc; background: #fafbff; }
.calendar .cell.calendar-event-cell { background: #ffe5e5; border-left: 3px solid var(--brand); }
.calendar .cell.calendar-event-cell:hover { background: #ffd0d0; }
.calendar .legend { display: flex; gap: 10px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.legend .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.available { background: var(--accent); }
.dot.booked { background: var(--danger); }

/* Event Modal */
.event-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); align-items: center; justify-content: center; z-index: 1000; }
.modal-content { background: #fff; border-radius: 14px; padding: 28px; max-width: 500px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.3); position: relative; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.modal-header h3 { margin: 0; font-size: 24px; color: var(--text); }
.modal-close { background: none; border: none; font-size: 28px; cursor: pointer; color: var(--muted); padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.modal-close:hover { background: var(--bg-alt); color: var(--text); }
.modal-body { color: var(--text); }
.modal-info { margin-bottom: 14px; }
.modal-label { font-weight: 600; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.modal-value { font-size: 18px; color: var(--text); }
.event-type-badge { display: inline-block; background: var(--brand); color: #fff; padding: 6px 12px; border-radius: 6px; font-weight: 500; font-size: 14px; }
.event-type-badge.contrast { background: var(--contrast); }

/* Upcoming Events List */
.events-list { display: grid; gap: 14px; margin-top: 20px; }
.event-item { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px; display: flex; gap: 14px; align-items: center; transition: transform 200ms ease, box-shadow 200ms ease; }
.event-item:hover { transform: translateX(4px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.event-date-box { background: var(--brand); color: #fff; border-radius: 8px; padding: 10px; text-align: center; min-width: 60px; }
.event-date-box.contrast { background: var(--contrast); }
.event-date-box .day { font-size: 24px; font-weight: 700; line-height: 1; }
.event-date-box .month { font-size: 12px; text-transform: uppercase; margin-top: 4px; }
.event-details { flex: 1; }
.event-details h4 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.event-details .event-meta { color: var(--muted); font-size: 14px; font-weight: 400; }
.event-type { display: inline-block; background: var(--bg-alt); padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; color: var(--brand); margin-left: 8px; }

.blog-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.post-card .meta { color: var(--muted); font-size: 13px; margin-top: 6px; }
.post { max-width: 820px; margin: 0 auto; }
.post h1 { font-size: 36px; margin-bottom: 10px; }
.post .post-meta { color: var(--muted); margin-bottom: 20px; }
.post img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); }

.row { display: flex; gap: 24px; flex-wrap: wrap; }
.col { flex: 1 1 320px; display: flex; flex-direction: column; }

/* Make cards inside columns stretch to fill height */
.col > .card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Contact Info Styles */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-item:hover {
  background: var(--bg-alt);
  transform: translateX(4px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-item:hover .contact-icon {
  transform: scale(1.1);
}

.email-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.whatsapp-icon {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.phone-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.instagram-icon {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.contact-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.contact-details a {
  font-weight: 500;
  color: var(--text);
  word-break: break-word;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: var(--brand);
}

/* Button group styling for better layout */
.button-group {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

form .field { margin-bottom: 14px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input, textarea, select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; }
textarea { min-height: 120px; resize: vertical; }
button { font: inherit; }
.btn { display: inline-block; background: var(--brand); color: #fff; padding: 10px 16px; border: none; border-radius: 10px; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--brand-dark); }

.sr-only { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Contrast Color Utilities */
.text-contrast { color: var(--contrast); }
.bg-contrast { background: var(--contrast); color: #ffffff; }
.border-contrast { border-color: var(--contrast); }

/* Fixed Contact Buttons */
.fixed-contact-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.fixed-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.fixed-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.fixed-btn:active {
  transform: scale(0.95);
}

.fixed-btn svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Contact Popup Tooltip */
.contact-popup {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: white;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  border: 1px solid var(--border);
}

.contact-popup::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid white;
}

.fixed-btn:hover .contact-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.contact-popup strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--contrast);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-popup span:last-child {
  display: block;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.phone-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.email-btn {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.instagram-btn {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}


/* Responsive Design */
/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--contrast);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
  color: var(--brand);
  background-color: var(--bg-alt);
}

.mobile-menu-toggle:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Tablet and below */
@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
  }
  
  .hero {
    padding: 60px 0 30px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .section-title {
    font-size: 26px;
  }
  
  .grid.features {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  /* Navigation */
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav {
    flex-wrap: wrap;
  }
  
  .nav nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #ffffff;
  }
  
  .nav nav.active {
    max-height: 500px;
    margin-top: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
  }
  
  .nav ul {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 0;
  }
  
  .nav ul li {
    width: 100%;
  }
  
  .nav ul li a {
    display: block;
    padding: 10px 0;
    width: 100%;
  }
  
  /* Keep button styling for CTA in nav on mobile */
  .nav ul li a.cta-primary {
    display: block;
    padding: 10px 16px;
    text-align: center;
    border-radius: 10px;
    margin-top: 8px;
    color: #ffffff !important;
  }
  
  .nav ul li a.cta-primary:hover {
    color: #ffffff !important;
  }
  
  /* Hero Section */
  .hero {
    padding: 40px 0 30px;
  }
  
  .hero h1 {
    font-size: 28px;
    line-height: 1.3;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .hero > div > div {
    flex-direction: column;
    gap: 16px;
  }
  
  .hero .badges {
    margin-top: 16px;
  }
  
  .hero .badge {
    font-size: 12px;
    padding: 5px 8px;
  }
  
  /* CTA Buttons */
  .hero .col > div:not(.badges) {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .hero .cta-primary,
  .hero .cta-outline,
  .hero .cta-secondary {
    display: block;
    text-align: center;
    width: 100%;
  }
  
  /* Button group on mobile */
  .button-group {
    flex-direction: column;
    width: 100%;
  }
  
  /* Full-width CTAs in row/col layouts on mobile */
  .row .col .cta-primary,
  .row .col .cta-outline,
  .button-group .cta-primary,
  .button-group .cta-outline {
    display: block;
    width: 100%;
    text-align: center;
  }
  
  /* Sections */
  section {
    padding: 30px 0;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .section-subtitle {
    font-size: 15px;
  }
  
  /* Grids and Cards */
  .grid.features {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .testimonials {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .pricing {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .kpis {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  /* Calendar */
  .calendar {
    overflow-x: auto;
  }
  
  .calendar .grid {
    min-width: 600px;
  }
  
  .calendar .cell {
    min-height: 50px;
    padding: 8px;
    font-size: 14px;
  }
  
  .legend {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .footer-grid > div {
    margin-bottom: 8px;
  }
  
  /* Row and Column Layout */
  .row {
    flex-direction: column;
    gap: 20px;
  }
  
  .col {
    flex: 1 1 100%;
  }
  
  /* Modal */
  .modal-content {
    width: 95%;
    padding: 20px;
    margin: 20px;
  }
  
  .modal-header h3 {
    font-size: 20px;
  }
  
  .modal-value {
    font-size: 16px;
  }
  
  /* Forms */
  input,
  textarea,
  select {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Contact Info on Mobile */
  .contact-item {
    padding: 10px;
    gap: 12px;
  }
  
  .contact-icon {
    width: 44px;
    height: 44px;
  }
  
  .contact-icon svg {
    width: 22px;
    height: 22px;
  }
  
  .contact-details a {
    font-size: 14px;
  }
  
  /* Blog */
  .blog-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .post h1 {
    font-size: 28px;
  }
  
  /* Event Items */
  .event-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .event-date-box {
    align-self: flex-start;
  }

  /* Features Showcase */
  .features-showcase {
    gap: 20px;
  }

  .feature-item,
  .feature-item.reverse {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }

  .feature-item:hover,
  .feature-item.reverse:hover {
    transform: translateY(-4px);
  }

  .feature-icon {
    min-width: 64px;
    height: 64px;
  }

  .feature-icon svg {
    width: 36px;
    height: 36px;
  }

  .feature-content h3 {
    font-size: 18px;
  }

  .feature-content p {
    font-size: 15px;
  }
  
  /* Fixed contact buttons on mobile */
  .fixed-contact-buttons {
    bottom: 20px;
    right: 20px;
    gap: 8px;
  }
  
  .fixed-btn {
    width: 44px;
    height: 44px;
  }
  
  .fixed-btn svg {
    width: 20px;
    height: 20px;
  }
  
  /* On mobile, adjust popup positioning and require click */
  .contact-popup {
    right: auto;
    left: 50%;
    top: auto;
    bottom: 60px;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
  }
  
  .contact-popup::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -8px;
    transform: translateX(-50%) rotate(90deg);
  }
  
  /* Show popup on click/tap on mobile */
  .fixed-btn.active .contact-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  
  /* Also show on hover if device supports it */
  @media (hover: hover) {
    .fixed-btn:hover .contact-popup {
      opacity: 1;
      visibility: visible;
      transform: translateX(-50%) translateY(0);
    }
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  
  .hero h1 {
    font-size: 24px;
  }
  
  .hero p {
    font-size: 15px;
  }
  
  .section-title {
    font-size: 22px;
  }
  
  .card {
    padding: 14px;
  }
  
  .card h3 {
    font-size: 16px;
  }
  
  .brand {
    font-size: 16px;
    color: var(--contrast);
  }
  
  .brand img {
    height: 52px;
  }
  
  .brand span {
    display: none;
  }
  
  .mobile-menu-toggle {
    color: var(--contrast);
  }
  
  .price {
    font-size: 28px;
  }
  
  .kpi .num {
    font-size: 24px;
  }
  
  .calendar .cell {
    min-height: 45px;
    padding: 6px;
    font-size: 12px;
  }
  
  .modal-content {
    padding: 16px;
  }
  
  .modal-header h3 {
    font-size: 18px;
  }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 30px 0 20px;
  }
  
  .nav nav.active {
    max-height: 300px;
  }
}


