/* ==========================================================================
   Mind and Brain — site foundation
   Our own base layer for the public site, written to replace the original
   third-party HTML theme stylesheets (main.css, responsive.css,
   menu_sideslide.css), so the site carries no theme license obligations.
   It covers only what the current templates use; the 2026 design itself
   lives in modern.css, which loads after this file and builds on it.
   Depends only on Bootstrap 4 (MIT) for the grid and utilities.
   ========================================================================== */

/* No sideways scrolling from decorative shapes that poke past the edge.
   `clip` rather than `hidden`: hidden on both html and body turns body into
   its own scroll container, which silently breaks every position: sticky
   element (booking summary, profile tabs). Old browsers without clip fall
   back to hidden. */
body {
  overflow-x: hidden;
  overflow-x: clip;
  background: #fff;
  color: var(--ink-soft, #565f6d);
  font-size: 0.9375rem;
  line-height: 1.6;
}

html { overflow-x: hidden; overflow-x: clip; }

p { margin-bottom: 0; }

a { transition: color 0.2s ease; }

ul { list-style: none; }

img { max-width: 100%; }

.section { padding: 80px 0; }

/* ---------- section headings ---------- */
.section-header {
  position: relative;
  margin-bottom: 40px;
  text-align: center;
}

.section-header .section-title { position: relative; margin-bottom: 16px; }

/* ---------- buttons ---------- */
.btn {
  font-size: 0.875rem;
  padding: 10px 30px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Mouse clicks get no ring; keyboard focus always does (WCAG 2.4.7). */
.btn:focus:not(:focus-visible),
.btn:active { box-shadow: none; outline: none; }

.btn-common {
  position: relative;
  z-index: 1;
  background-color: var(--accent, #1f5d5b);
  color: #fff;
  border-radius: 999px;
  padding: 12px 32px;
}

.btn-common:hover,
.btn-common:focus { color: #fff; transform: translateY(-2px); }

.btn-lg { padding: 14px 34px; text-transform: none; }

/* ---------- navbar ---------- */
.navbar-brand img { max-width: 115px; }

.scrolling-navbar { transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease; }

.menu-bg { background-color: #fff !important; box-shadow: var(--shadow-soft); z-index: 999; }

.navbar-expand-md .navbar-toggler {
  border: 0;
  border-radius: var(--radius-sm, 12px);
  padding: 6px 10px;
  background: var(--accent, #1f5d5b);
  color: #fff;
  cursor: pointer;
}

.navbar-expand-md .navbar-toggler i { color: #fff; font-size: 1.25rem; }

@media (max-width: 767.98px) {
  .navbar-collapse { background: #fff; margin: 8px -15px 0; padding: 8px 15px 14px; }
  .navbar-expand-md .navbar-nav .nav-link { padding: 10px 4px; }
}


/* ---------- back to top ---------- */
.back-to-top { display: none; position: fixed; right: 15px; bottom: 18px; z-index: 998; }

/* ---------- gallery tiles ---------- */
.shot-item { position: relative; overflow: hidden; }
.shot-item .single-content { position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s ease; }
.portfolio-item:hover .single-content,
.portfolio-item:focus-visible .single-content { opacity: 1; }
.shot-item .fancy-table { display: table; width: 100%; height: 100%; }
.shot-item .table-cell { display: table-cell; vertical-align: middle; text-align: center; }

/* ---------- pricing ---------- */
.pricing-table {
  height: 100%;
  overflow: hidden;
  text-align: center;
  background: #fff;
  border-radius: var(--radius-md, 20px);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.pricing-table ul { margin: 0; padding: 0; }
.pricing-table .pricing-details ul li { padding: 11px 16px; font-size: 0.875rem; }
.pricing-table .pricing-details ul li:nth-child(even) { background: #f9f9f7; }
.pricing-table .plan-button { padding: 26px 0; }

@media (max-width: 767.98px) {
  .pricing-tables > [class*="col-"] { margin-bottom: 24px; }
}

/* ---------- testimonials ---------- */
.testimonial-item { margin: 15px; padding: 30px; background: #fff; border-radius: var(--radius-md, 20px); }
.testimonial-item .author { display: flex; align-items: center; gap: 14px; }
.testimonial-item .avatar-initials { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; font-weight: 600; }

/* ---------- contact ---------- */
.contact-info { margin-bottom: 18px; }
.contact-info i { font-size: 1.25rem; color: var(--accent, #1f5d5b); }
.contact-info h3 { margin-top: 6px; font-size: 1.125rem; }


/* ---------- footer ---------- */
footer .footer-Content { padding: 60px 0; }
footer .menu { padding-left: 0; }
footer .menu li { padding-bottom: 12px; }
.textwidget { margin-bottom: 12px; font-size: 0.875rem; }
.contact-footer { margin: 0; padding: 0; }
.contact-footer li { display: flex; gap: 8px; margin-bottom: 14px; }
.contact-footer li strong { flex-shrink: 0; min-width: 66px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.footer-social li { display: inline-block; }
#copyright { padding: 18px 0; }
#copyright p { margin-bottom: 0; line-height: 40px; }
#copyright .nav-inline { display: flex; flex-wrap: wrap; }
#copyright .nav-inline .nav-link { padding: 10px 0; margin-left: 12px; }

@media (max-width: 991.98px) {
  .widget { margin-top: 30px; }
}

@media (max-width: 767.98px) {
  #copyright .float-left,
  #copyright .float-right { float: none !important; text-align: center; }
  #copyright .nav-inline { justify-content: center; }
  #copyright p { line-height: 24px; }
}

/* ---------- mid-page call to action (dark band) ---------- */
#cta .cta-text h5 { margin: 0; color: #fff; }

.btn-border {
  border: 2px solid #fff;
  border-radius: 999px;
  background: transparent;
  color: #fff;
}

.btn-border:hover,
.btn-border:focus { background: #fff; color: var(--accent, #1f5d5b); }

@media (max-width: 767.98px) {
  #cta .text-right { margin-top: 18px; text-align: left !important; }
}

/* ---------- pricing card header ---------- */
.pricing-table { padding-top: 20px; }
.pricing-table .pricing-details h2 { padding: 15px 16px; margin: 0; }
.pricing-table .pricing-details .price { padding-bottom: 22px; border-bottom: 1px solid var(--line, #eaeaea); }

/* ---------- blog cards ---------- */
#blog .blog-item { margin-bottom: 30px; }
#blog .blog-item-img { position: relative; }
#blog .blog-item-img img { display: block; width: 100%; }
#blog .blog-item-text { padding: 20px 26px 24px; }
#blog .blog-item-text .date i { margin-right: 7px; }

/* ---------- footer headings & social icons ---------- */
.footer-Content h3 { margin-bottom: 18px; font-size: 1.375rem; }
.footer-Content .block-title { font-size: 1rem; letter-spacing: 0.02em; }

.footer-social li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.9375rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social li a:hover { transform: translateY(-2px); }

/* ---------- blog cards outside the home #blog section (related posts) ---------- */
.blog-item .blog-item-wrapper { height: 100%; overflow: hidden; background: #fff; border: 1px solid var(--line, #eaeaea); border-radius: var(--radius-md, 20px); }
.blog-item .blog-item-img img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }  /* reserves the space before the photo loads */
.blog-item .blog-item-text { padding: 20px 26px 24px; }
.blog-item .blog-item-text .date { margin-bottom: 8px; font-size: 0.8125rem; color: var(--ink-faint, #5a6371); }
.blog-item .blog-item-text .date i { margin-right: 7px; }
.blog-item .blog-item-text :is(h2, h3) { margin-bottom: 10px; font-size: 1.125rem; line-height: 1.4; }
.blog-item .blog-item-text :is(h2, h3) a { color: var(--ink, #14181f); }
