﻿/* Shared site styling -- customize as needed */

/* Ensure top bar sits away from page edges on wide screens */
body {
    background: #f5f6fb;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

/* footer style */
.site-footer {
    margin-top: 28px;
    color: #6b6b85;
}

/* Button outline style reused */
.btn-outline {
    background: transparent;
    border: 1px solid rgba(46,42,107,0.12);
    color: #2e2a6b;
}

/* small helper to visually center page content */
.container {
    max-width: 1200px;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input,
select,
textarea {
    max-width: 280px;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    .body-content {
        padding: 0;
    }
}

/* Trust / promise styles */
.alert-primary {
    background: linear-gradient(180deg, #f5f6fb, #ffffff);
    color: #1f1f2e;
    border: 1px solid rgba(46,42,107,0.06);
}
.card .row .col-md-4 .btn-primary {
    background: #2e2a6b;
    border-color: #2e2a6b;
    border-radius: 8px;
}
@media (max-width: 767px) {
    .card .row { flex-direction: column; }
    .card .row .col-md-4 { text-align: center; padding-top: 12px; }
}

/* === Added hero, scroll, card, feature and partner styles === */

/* Hero */
.hero-panel { background: #3a2a64; border-radius: 18px; }
.hero-image img { min-height: 220px; object-fit: cover; }

/* Scroll containers and cards */
.scroll-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 12px 8px;
    scroll-behavior: smooth;

    /* enable smooth native scrolling on iOS */
    -webkit-overflow-scrolling: touch;

    /* allow horizontal panning inside the container */
    touch-action: pan-x;
    -ms-touch-action: pan-x;

    /* prevent the browser from overscrolling the whole page when swiping the slider */
    overscroll-behavior-x: contain;
}
.scroll-container::-webkit-scrollbar { height: 10px; }
.scroll-container::-webkit-scrollbar-thumb { background: #bfbfbf; border-radius: 6px; }

.cat-card {
    min-width: 140px;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 18px 12px;
    flex: 0 0 auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.icon-placeholder { font-size: 28px; }
.cat-title { margin-top: 8px; color: #2b2b2b; font-weight: 600; }
.cat-icon { width: 48px; height: 48px; object-fit: contain; }

/* Feature cards */
.feature-card { background: #fff; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.feature-media img { height: 140px; object-fit: cover; display: block; }
.feature-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.feature-body h5 { font-size: 1rem; }
.feature-body .btn-primary { background: #2e2a6b; border-color: #2e2a6b; border-radius: 10px; }

/* Partners carousel styling */
#partnersCarousel { padding: 12px 0 28px; }
.partner-logo {
    height: 150px;      /* 1.5 × 70px */
    width: auto;
    object-fit: contain;
    display: block;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
}

@media (max-width: 1000px) {
    .partner-logo {
        height: 100px;   /* 1.5 × 54px */
        padding: 8px;
    }
}

/* responsive tweaks */
@media (max-width:767px) {
    .hero-panel { margin-bottom: 20px; }
    .hero-image { margin-top: 12px; }
    .partner-logo { height: 54px; padding: 6px; }
    .cat-icon { width: 36px; height: 36px; } /* adjust icons for smaller screens */
}

/* Business page layout */
.business-page { max-width: 1100px; margin: 24px auto; }

/* Header */
.business-header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}
.business-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
}

/* Main info column */
.business-meta h1 { margin: 0 0 6px 0; font-size: 1.5rem; color: #1f2350; }
.business-contact { color: #444; font-size: .95rem; line-height: 1.5; }
.business-contact a { color: #2e2a6b; text-decoration: none; }

/* Action button */
.btn-business {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 26px;
  font-weight: 600;
}
.btn-request { border: 2px solid #2e2a6b; color: #2e2a6b; background: transparent; }
.btn-request:hover { background:#2e2a6b; color:#fff; }

/* Description */
.business-description {
  margin: 18px 0;
  color: #333;
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* Gallery */
.business-gallery { display:flex; gap:12px; flex-wrap:wrap; margin:12px 0 24px 0; }
.business-gallery .gallery-item {
  width: calc(25% - 9px);
  min-width: 140px;
  height: 110px;
  overflow:hidden;
  border-radius:8px;
  box-shadow:0 6px 16px rgba(0,0,0,0.04);
}
.business-gallery .gallery-item img { width:100%; height:100%; object-fit:cover; display:block; }

/* Reviews */
.reviews { margin-top:18px; }
.review { background:#fbfbfb; padding:12px; border-radius:10px; margin-bottom:10px; }
.review .meta { color:#666; font-size:.9rem; margin-bottom:6px; }

/* Responsive */
@media (max-width: 900px) {
  .business-header { flex-direction: column; align-items: flex-start; }
  .business-logo { width: 92px; height: 92px; }
  .business-gallery .gallery-item { width: calc(50% - 9px); height:90px; }
}
