/* ==========================================================================
   Mind and Brain — 2026 redesign
   Layered on top of the legacy template styles. Loaded last so it wins
   the cascade without having to touch the old rules directly.
   ========================================================================== */

:root {
  --ink: #14181f;
  --ink-soft: #565f6d;
  --ink-faint: #8a93a1;
  --bg: #faf9f6;
  --surface: #ffffff;
  --line: rgba(20, 24, 31, 0.09);
  --accent: #1f5d5b;
  --accent-dark: #143f3e;
  --accent-tint: #e7f1ef;
  --warm: #e0673f;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-soft: 0 1px 2px rgba(20, 24, 31, 0.04), 0 12px 32px rgba(20, 24, 31, 0.06);
  --shadow-lift: 0 8px 16px rgba(20, 24, 31, 0.06), 0 24px 48px rgba(20, 24, 31, 0.1);
}

/* ---------- base ---------- */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 100000;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 8px;
}

body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
}

a { color: var(--accent); }
a:hover, a:focus { color: var(--accent-dark); }

.section { padding: 128px 0; }

@media (max-width: 767px) {
  .section { padding: 72px 0; }
}

/* ---------- section headers ---------- */
.section-header { margin-bottom: 64px; }

.section-header .eyebrow,
.detail-hero .eyebrow {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: none;
  width: auto;
  margin-bottom: 18px;
}

.section-header .eyebrow:before,
.detail-hero .eyebrow:before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.section-header .section-title {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: none;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
}

.section-header .section-title:before { display: none; }

.section-header .section-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- nav ---------- */
.navbar.fixed-top {
  background: rgba(250, 249, 246, 0.82) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  padding-top: 18px;
  padding-bottom: 18px;
  transition: padding 0.25s ease, box-shadow 0.25s ease;
}

.navbar.fixed-top.menu-bg {
  padding-top: 10px;
  padding-bottom: 10px;
  box-shadow: 0 8px 30px rgba(20, 24, 31, 0.06);
}

.navbar .logo { height: 42px; width: auto; }

.navbar-expand-md .navbar-toggler {
  background: var(--ink);
  border-radius: var(--radius-sm);
}

.navbar-expand-md .navbar-nav .nav-link.active:before,
.navbar-expand-md .navbar-nav .nav-link.open,
.navbar-expand-md .navbar-nav .open > .nav-link {
  color: var(--accent);
}

.collapse.show { background: var(--surface); }

.navbar-nav .nav-link {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink) !important;
  padding: 8px 16px !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent) !important;
}

.navbar-nav .nav-link:before { background: var(--accent) !important; }

/* A menu item flagged "is_button" in the dashboard (e.g. Book Now) — reads
   as a real call-to-action instead of just another text link. */
.navbar-nav .nav-link-cta {
  background: var(--ink) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 8px 20px !important;
  margin-left: 4px;
}
.navbar-nav .nav-link-cta:hover { background: var(--accent) !important; color: #fff !important; }
.navbar-nav .nav-link-cta:before { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  border-radius: var(--radius-sm);
}

.btn-common {
  background-color: var(--ink);
  box-shadow: none;
}

.btn-common:hover {
  background-color: var(--accent);
  box-shadow: 0 10px 24px rgba(31, 93, 91, 0.28);
  transform: translateY(-1px);
}

.btn-effect:after { display: none; }

.btn-border {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: transparent;
}

.btn-border:hover {
  background-color: #fff;
  color: var(--ink) !important;
  border-color: #fff;
}

.btn-border-ink {
  display: inline-block;
  padding: 12px 30px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink) !important;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-border-ink:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff !important;
}

/* ==========================================================================
   Hero
   ========================================================================== */
header#home { position: relative; background: var(--bg); }

.hero-modern {
  position: relative;
  overflow: hidden;
  padding: 200px 0 120px;
}

@media (max-width: 767px) {
  .hero-modern { padding: 150px 0 72px; }
}

.hero-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-decor .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}

.hero-decor .blob-1 {
  width: 480px;
  height: 480px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle at 30% 30%, #cfe6e3, transparent 70%);
}

.hero-decor .blob-2 {
  width: 360px;
  height: 360px;
  bottom: -140px;
  left: -100px;
  background: radial-gradient(circle at 50% 50%, #f6d9cd, transparent 70%);
}

.hero-decor .blob-3 {
  width: 280px;
  height: 280px;
  top: 40%;
  left: 55%;
  background: radial-gradient(circle at 50% 50%, #e7f1ef, transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 32px;
  align-items: center;
}

@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 280px; margin: 0 auto; }
}

.hero-content { max-width: 640px; }

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

.hero-visual-illustration {
  width: 100%;
  max-width: 420px;
  height: auto;
}

.hero-visual-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}

.hero-content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-content .eyebrow:before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.hero-content h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.2vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}

.hero-content h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-lede {
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-actions .btn { padding: 14px 30px; }

.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-faint);
}

.hero-meta span { position: relative; padding-left: 16px; }

.hero-meta span:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ==========================================================================
   Services / Features cards
   ========================================================================== */
.services-item {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: none;
  padding: 40px 32px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.services-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
  color: inherit;
}

.services-item-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.item-boxes.services-item .icon,
.services-item .icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-tint) !important;
  margin-bottom: 22px;
}

.services-item .icon i {
  font-size: 20px;
  line-height: 1;
  color: var(--accent) !important;
  background: none !important;
}

.services-item h4 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.services-item p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.featured-box .featured-icon i {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-tint);
  border-radius: 12px;
}

.featured-box .featured-content h4 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.featured-box .featured-content p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ==========================================================================
   Call to action band (light)
   ========================================================================== */
.call-action { background: var(--accent-tint); }

.cta-trial h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  color: var(--ink);
}

.cta-trial p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

/* ==========================================================================
   Video promo
   ========================================================================== */
.video-promo {
  background: var(--bg);
}

.video-promo-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px;
}

.video-promo-copy .eyebrow {
  display: block;
  margin-bottom: 14px;
}

.video-promo-copy h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin: 0 0 16px;
}

.video-promo-copy p {
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.video-promo-copy .btn i {
  margin-right: 8px;
}

.video-promo-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
}

.video-promo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-promo-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  line-height: 72px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-dark);
  font-size: 22px;
  transition: transform 0.25s ease;
}

.video-promo-thumb:hover .video-promo-play {
  transform: translate(-50%, -50%) scale(1.08);
}

@media (max-width: 767px) {
  .video-promo-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 32px;
  }
}

/* ==========================================================================
   Portfolio / gallery
   ========================================================================== */
.shot-item {
  border-radius: var(--radius-md);
  box-shadow: none;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}

.shot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(35%) contrast(0.94) brightness(1.05) saturate(1.05);
}

.shot-item .single-content {
  background: linear-gradient(180deg, rgba(20, 24, 31, 0) 40%, rgba(20, 24, 31, 0.78) 100%);
}

.shot-item .single-content .fancy-table .table-cell {
  vertical-align: bottom;
  padding-bottom: 26px;
}

.shot-item .single-content span,
.shot-item .single-content a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
}

.portfolio-item {
  display: block;
  color: inherit;
  text-decoration: none;
}

.portfolio-item:hover,
.portfolio-item:focus {
  color: inherit;
}

.portfolio-item-view {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  font-size: 16px;
}

.gallery-video-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(20, 24, 31, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.gallery-media-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.gallery-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery-media-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--accent-tint);
  box-shadow: var(--shadow-soft);
}

.gallery-media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(35%) contrast(0.94) brightness(1.05) saturate(1.05);
  transition: transform 0.4s ease;
}

.gallery-media-tile:hover img {
  transform: scale(1.06);
}

.gallery-media-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  line-height: 52px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-dark);
  font-size: 17px;
  transition: transform 0.3s ease;
}

.gallery-media-tile:hover .gallery-media-play {
  transform: translate(-50%, -50%) scale(1.08);
}

.gallery-media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(180deg, rgba(20, 24, 31, 0) 0%, rgba(20, 24, 31, 0.75) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-media-tile:hover .gallery-media-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing-table {
  border: 1px solid var(--line);
  box-shadow: none;
  border-radius: var(--radius-md);
}

.pricing-table:hover { box-shadow: var(--shadow-lift); }

.pricing-big {
  transform: none !important;
  border-color: var(--accent) !important;
  box-shadow: var(--shadow-lift);
}

.pricing-table .pricing-details h2 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  text-transform: none;
}

.pricing-table .pricing-details h2 a {
  color: inherit;
  text-decoration: none;
}

.pricing-table .pricing-details h2 a:hover { color: var(--accent); }

.pricing-table .pricing-details .price span {
  font-family: var(--font-body);
  color: var(--accent);
}

.pricing-table .pricing-details ul li {
  font-family: var(--font-body);
  color: var(--ink-soft);
}

.pricing-table .plan-button { background: var(--bg); }

/* ==========================================================================
   Counters
   ========================================================================== */
.counters {
  background: var(--ink) !important;
}

.counters .facts-item {
  border: none;
  border-radius: 0;
  padding: 20px;
}

.counters .icon i { color: rgba(255, 255, 255, 0.55); }

.counters .fact-count h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 40px;
  color: #fff;
}

.counters .fact-count h4 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  text-transform: none;
}

/* ==========================================================================
   Testimonials (static grid)
   ========================================================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 991px) {
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

.testimonial-grid .testimonial-item {
  margin: 0;
  padding: 36px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}

.testimonial-grid .quote-mark {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
  margin-bottom: 4px;
}

.testimonial-grid .description {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 28px;
  flex-grow: 1;
}

.testimonial-grid .author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
}

.testimonial-grid .avatar-initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.testimonial-grid .author-info h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.testimonial-grid .author-info span {
  font-size: 13px;
  color: var(--ink-faint);
}

/* ==========================================================================
   Mid CTA (dark)
   ========================================================================== */
#cta {
  background: var(--accent-dark) !important;
}

#cta h5 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.4;
}

/* ==========================================================================
   Team
   ========================================================================== */
.single-team {
  border-radius: var(--radius-md);
  box-shadow: none;
  border: 1px solid var(--line);
}

.single-team:hover { box-shadow: var(--shadow-lift); }

.single-team .team-photo {
  width: 100%;
  aspect-ratio: 6 / 7;
  object-fit: cover;
  display: block;
}

.single-team .team-details .team-title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
}

.single-team .team-details .team-title a,
.single-team > a {
  color: inherit;
  text-decoration: none;
}

.single-team .team-details .team-title a:hover { color: var(--accent); }

.single-team .team-details p {
  font-size: 14px;
  color: var(--ink-faint);
}

.single-team .social-list li a,
.contact-info_area .footer-social li a {
  background: var(--accent-tint) !important;
  color: var(--accent) !important;
}

footer .footer-social li a {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

/* ==========================================================================
   Blog
   ========================================================================== */
#blog .blog-item-wrapper {
  border: 1px solid var(--line);
  box-shadow: none;
  border-radius: var(--radius-md);
}

#blog .blog-item-wrapper:hover { box-shadow: var(--shadow-lift); }

#blog .blog-item-img img {
  filter: grayscale(35%) contrast(0.94) brightness(1.05) saturate(1.05);
}

#blog .blog-item-text .date {
  font-size: 13px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#blog .blog-item-text h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.4;
}

#blog .blog-item-text h3 a { color: var(--ink); }

/* ==========================================================================
   Subscribe
   ========================================================================== */
.subscribe-form .form-wrapper {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.subscribe-form .sub-title h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
}

#subscribe .sub-item-box {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: none;
}

#subscribe .sub-item-box .icon-box i {
  color: var(--accent);
}

#subscribe .sub-item-box .text-box h4 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-block .form-control {
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.contact-block textarea.form-control { border-radius: var(--radius-md) !important; }

/* The theme's .form-control padding (15px 30px) was tuned for text inputs;
   applied to a <select> it pushes the option text into the same space the
   browser reserves for its native dropdown arrow, clipping it. */
select.form-control {
  height: auto !important;
  padding: 15px 44px 15px 20px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23565f6d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

/* Same problem as the <select> fix above, but worse: a native time/date
   control renders a small fixed-width widget (digit segments + a
   clock/calendar icon), not a text run. Stretched to the theme's 100%
   width + 30px side padding, most of the pill is empty space with
   nothing underneath it to click or focus — it looks like one big field
   but only a sliver of it actually responds, which reads as broken. */
input[type="time"].form-control,
input[type="date"].form-control {
  width: auto;
  max-width: 220px;
  padding: 15px 20px;
}

.contact-info i { color: var(--accent) !important; }

.contact-info h5 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer { background: var(--ink); }

footer .footer-Content { background: transparent; }

.footer-Content h3,
.footer-Content .block-title {
  font-family: var(--font-display);
  font-weight: 500;
  color: #fff;
}

.footer-Content .textwidget p { color: rgba(255, 255, 255, 0.6); }

.footer-Content .menu a,
.footer-Content .contact-footer span,
.footer-Content .contact-footer strong,
.footer-Content .contact-footer span a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-Content .menu a:hover,
.footer-Content .contact-footer span a:hover {
  color: #fff;
}

.instagram-footer img {
  filter: grayscale(60%) contrast(0.9) brightness(0.95);
  border-radius: 4px;
}

#copyright {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#copyright p, #copyright .nav-link { color: rgba(255, 255, 255, 0.55) !important; }
#copyright .nav-link:hover { color: #fff !important; }

/* ==========================================================================
   Form feedback
   ========================================================================== */
@keyframes shake-error {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

.shake-error { animation: shake-error 0.6s; }

#msgSubmit.hidden, #subscribeMsg.hidden { display: none; }

.honeypot-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ==========================================================================
   Detail pages (service / team member / blog post)
   ========================================================================== */
.detail-hero {
  padding: 160px 0 56px;
  background: var(--bg);
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-faint);
  margin-bottom: 28px;
}

.detail-back:hover { color: var(--accent); }

.detail-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--ink);
  max-width: 760px;
  margin-bottom: 16px;
}

.detail-lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ---------- prose pages: terms, privacy, FAQ ---------- */
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin: 40px 0 12px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p,
.legal-content li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.legal-content ul { padding-left: 20px; margin-bottom: 16px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--accent); text-decoration: underline; }

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--ink-faint);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.detail-image {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
}

.detail-avatar {
  width: 160px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 44px;
  margin-bottom: 24px;
}

.detail-photo {
  width: 220px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
}

.detail-body {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-soft);
  /* max-width: 880px; */
}

.detail-body p { margin-bottom: 20px; }
.detail-body p:last-child { margin-bottom: 0; }

.detail-social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.detail-related {
  border-top: 1px solid var(--line);
  padding-top: 56px;
  margin-top: 24px;
}

.detail-related-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  margin-bottom: 28px;
}

.detail-cta {
  background: var(--accent-tint);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 48px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ==========================================================================
   My Bookings
   ========================================================================== */
.account-meta {
  color: var(--ink-faint);
  font-size: 14px;
  margin-top: -12px;
  margin-bottom: 0;
}

.account-meta a { color: var(--ink-soft); text-decoration: underline; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-warm { background: #fdece5; color: var(--warm); }
.badge-muted { background: var(--bg); color: var(--ink-faint); border: 1px solid var(--line); }
.badge-accent { background: var(--accent-tint); color: var(--accent-dark); }
.badge-success { background: #e3f5e9; color: #1f7a43; }

.my-booking-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.my-booking-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin: 6px 0 0;
  color: var(--ink);
}

.my-booking-card p { margin: 4px 0 0; color: var(--ink-faint); font-size: 14px; }

.detail-cta p {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  margin: 0;
}

/* ==========================================================================
   Gallery album cover hero (portfolio_detail.html)
   ========================================================================== */
.gallery-cover {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-color: var(--ink);
}

.gallery-cover-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 24, 31, 0.6) 0%, rgba(20, 24, 31, 0.45) 40%, rgba(20, 24, 31, 0.95) 100%);
}

.gallery-cover-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 96px 0 48px;
}

.detail-back-on-dark { color: rgba(255, 255, 255, 0.85); }
.detail-back-on-dark:hover { color: #fff; }

.eyebrow-on-dark {
  color: rgba(255, 255, 255, 0.9) !important;
}

.eyebrow-on-dark:before {
  background: rgba(255, 255, 255, 0.9) !important;
}

.gallery-cover-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
  color: #fff;
  margin: 14px 0 12px;
  max-width: 780px;
}

.gallery-cover-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 600;
}

.gallery-cover-meta-dot { color: rgba(255, 255, 255, 0.5); }

@media (max-width: 767px) {
  .gallery-cover { min-height: 420px; }
  .gallery-cover-inner { padding: 72px 0 36px; }
}

/* ==========================================================================
   Booking page
   ========================================================================== */
.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

@media (max-width: 991px) {
  .booking-layout { grid-template-columns: 1fr; }
}

.booking-step-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 16px;
}

.booking-picker .booking-step-title:not(:first-child) { margin-top: 32px; }

.booking-calendar-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 400px;
  box-shadow: var(--shadow-soft);
}

.booking-form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.booking-selected-slot {
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 20px;
}

.booking-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.booking-empty {
  background: var(--accent-tint);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  color: var(--ink-soft);
}

.booking-empty a { font-weight: 600; }

.booking-confirmation {
  text-align: center;
  padding: 24px 8px;
}

.booking-confirmation-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.booking-confirmation-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 12px;
}

.booking-confirmation-summary {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 10px;
}

.booking-confirmation-summary strong { color: var(--accent-dark); }

.booking-confirmation-note {
  font-size: 14px;
  color: var(--ink-faint);
  max-width: 380px;
  margin: 0 auto 24px;
}

/* ---------- Booking page: hero polish + trust signals ---------- */
.booking-hero { position: relative; overflow: hidden; }
.booking-hero .container { position: relative; z-index: 1; }

.booking-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.booking-trust-strip li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

.booking-trust-strip i { color: var(--accent); font-size: 17px; }

.booking-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.booking-hero-stats span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
}

/* ---------- Booking page: numbered step headers ---------- */
.booking-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.booking-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  flex-shrink: 0;
}

.booking-step-header .booking-step-title { margin-bottom: 0; }

.booking-next-available {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-tint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.booking-next-available i { font-size: 14px; }

.booking-privacy-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-faint);
  margin: 12px 0 0;
}

/* ---------- Booking page: "what happens next" strip ---------- */
.booking-next-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

@media (max-width: 767px) {
  .booking-next-steps { grid-template-columns: 1fr; gap: 24px; }
}

.booking-next-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 12px;
}

.booking-next-step h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 8px;
}

.booking-next-step p {
  font-size: 14px;
  color: var(--ink-faint);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Simple calendar (static/js/simple-calendar.js) — shared by the public
   booking page and the dashboard's day-off picker.
   ========================================================================== */
.simple-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.simple-cal-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
}

.simple-cal-nav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.simple-cal-nav:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.simple-cal-nav:disabled { opacity: 0.3; cursor: default; }

.simple-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.simple-cal-weekdays {
  margin-bottom: 6px;
}

.simple-cal-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.simple-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}

.simple-cal-day:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }

.simple-cal-day.is-today { border-color: var(--line); }

.simple-cal-day.is-selected {
  background: var(--accent);
  color: #fff;
}

.simple-cal-day.is-disabled {
  color: var(--ink-faint);
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 0.5;
}

.simple-cal-day.simple-cal-empty { cursor: default; }

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top {
  background: var(--ink) !important;
  border-radius: 50% !important;
}

/* ==========================================================================
   Floating "Book Now" CTA — always reachable regardless of scroll position
   or whether the nav is collapsed behind the mobile hamburger.
   ========================================================================== */
.floating-book-cta {
  position: fixed;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff !important;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(31, 93, 91, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.floating-book-cta:hover {
  color: #fff !important;
  background: var(--ink);
  transform: translateY(-2px);
}

.floating-book-cta i { font-size: 16px; }

/* Desktop/tablet: a small pill, stacked above the back-to-top circle. */
@media (min-width: 768px) {
  .floating-book-cta {
    bottom: 72px;
    right: 15px;
    padding: 12px 22px;
    border-radius: 999px;
  }
}

/* Mobile: a full-width sticky bar at the very bottom, rather than a small
   pill — the nav is collapsed behind the hamburger here, so this is the
   one persistent, thumb-friendly way to reach booking without hunting for
   it. Push back-to-top and the page's own bottom padding up to clear it. */
@media (max-width: 767.98px) {
  .floating-book-cta {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 14px 20px;
    border-radius: 0;
    font-size: 15px;
  }

  .back-to-top { bottom: 82px !important; }

  body { padding-bottom: 56px; }
}
