/* ============================================================
   Modern visual overrides — loaded after Mobirise stylesheets
   ============================================================ */

/* ---- CSS Custom Properties (Design Tokens) ---------------- */

:root {
  /* Palette */
  --accent:         #c99353;
  --accent-light:   #e8c99b;
  --accent-dark:    #a06e28;
  --accent-glow:    rgba(201, 147, 83, 0.18);
  --bg-dark:        #0c0c0e;
  --bg-dark-alt:    #141418;
  --bg-section:     #f8f7f5;
  --bg-card:        rgba(255, 255, 255, 0.7);
  --text-heading:   #1a1a1e;
  --text-body:      #4a4a52;
  --text-muted:     #888890;
  --text-on-dark:   #e8e4df;
  --border-subtle:  #e4e0d8;
  --border-hover:   #c99353;
  --shadow-sm:      0 2px 12px rgba(0,0,0,0.06);
  --shadow-md:      0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg:      0 16px 48px rgba(0,0,0,0.12);
  --shadow-accent:  0 8px 32px rgba(201, 147, 83, 0.20);

  /* Animation */
  --ease-out:       cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast:  0.2s;
  --duration-mid:   0.4s;
  --duration-slow:  0.7s;
}

/* ---- Global Reset Tweaks -------------------------------- */

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Scrollbar (Chrome/Safari) ---------------------------- */

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark-alt);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

/* ---- Scroll-triggered animation utilities ----------------- */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.reveal-group {
  display: flex;
  gap: 2rem;
}

.reveal-group > .reveal {
  transition-delay: var(--stagger, 0ms);
}

/* ---- Hero Section ----------------------------------------- */

#header1-1 .mbr-table-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 70vh;
}

#header1-1 .mbr-section-title {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 4px 32px rgba(0,0,0,0.4);
  margin-bottom: 1.5rem;
}

#header1-1 .mbr-section-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

/* CTA Button */
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  -webkit-transition: all var(--fast);
  transition: all var(--fast);
  cursor: pointer;
}

.hero-cta a.btn-primary {
  background: var(--accent);
  color: #fff !important;
  box-shadow: var(--shadow-accent);
}

.hero-cta a.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201, 147, 83, 0.35);
}

.hero-cta a.btn-outline {
  background: transparent;
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,0.3);
}

.hero-cta a.btn-outline:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

/* Scroll indicator arrow */
.mbr-arrow {
  bottom: 2rem;
}

.mbr-arrow a {
  color: var(--accent-light);
  animation: bounce-down 2s infinite;
}

@keyframes bounce-down {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* ---- Cards Section ---------------------------------------- */

#index-features6-0 {
  background: var(--bg-section) !important;
}

#index-features6-0 .mbr-cards-col {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#index-features6-0 .mbr-cards-col > .container {
  padding: 3rem 2.5rem;
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  -webkit-transition: all var(--duration-mid) var(--ease-out);
  transition: all var(--duration-mid) var(--ease-out);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

/* Accent bar on top */
#index-features6-0 .mbr-cards-col > .container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  -webkit-transition: transform var(--duration-mid) var(--ease-out);
  transition: transform var(--duration-mid) var(--ease-out);
  border-radius: 12px 12px 0 0;
}

#index-features6-0 .mbr-cards-col:hover > .container {
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

#index-features6-0 .mbr-cards-col:hover > .container::before {
  transform: scaleX(1);
}

/* Icons */
.mbr-iconfont.mbr-iconfont-features3 {
  font-size: 52px !important;
  color: var(--accent) !important;
  margin-top: 0 !important;
  margin-bottom: 1.25rem;
  display: block;
  -webkit-transition: all var(--fast) var(--ease-out);
  transition: all var(--fast) var(--ease-out);
}

.mbr-cards-col:hover .mbr-iconfont-features3 {
  transform: scale(1.15);
  filter: drop-shadow(0 4px 12px var(--accent-glow));
}

/* Titles */
.mbr-cards .card-title {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

/* Body text */
.mbr-cards .card-text {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-body);
}

.mbr-cards .card-text a {
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-light);
  -webkit-transition: border-color var(--fast);
  transition: border-color var(--fast);
}

.mbr-cards .card-text a:hover {
  border-bottom-color: var(--accent-dark);
}

/* ---- Social Strip ----------------------------------------- */

#social-buttons3-0 {
  background: linear-gradient(135deg, var(--bg-dark-alt) 0%, var(--bg-dark) 100%);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.btn-social {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--accent);
  color: #fff;
  font-size: 1.1rem;
  background: transparent;
  -webkit-transition: all var(--fast) var(--ease-out);
  transition: all var(--fast) var(--ease-out);
}

.btn-social:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.15) translateY(-2px);
  box-shadow: var(--shadow-accent);
}

/* ---- Footer ----------------------------------------------- */

#footer1-2 {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.05);
}

#footer1-2 p {
  font-size: 0.78rem;
  letter-spacing: 0.3px;
  color: var(--text-muted);
}

#footer1-2 a {
  color: var(--accent-light);
  -webkit-transition: color var(--fast);
  transition: color var(--fast);
}

#footer1-2 a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ---- Equal-height cards (flexbox stretch) -------------------- */

/* Force the row to align all columns to the same height */
#index-features6-0 .mbr-cards-row {
  display: flex !important;
  align-items: stretch !important;
}

/* Force each column to stretch to full row height */
#index-features6-0 .mbr-cards-col {
  display: flex !important;
  align-items: stretch !important;
  flex: 1 1 0 !important;
  float: none !important;
}

/* Force the inner container to fill the full column height */
#index-features6-0 .mbr-cards-col > .container {
  width: 100% !important;
  height: auto !important;
  min-height: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Ensure card-block stretches to fill remaining space */
#index-features6-0 .mbr-cards-col .card-block {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Force the card itself to stretch */
#index-features6-0 .mbr-cards-col .card {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

/* ---- Scroll-to-top ---------------------------------------- */

#scrollToTop a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
  -webkit-transition: all var(--fast) var(--ease-out);
  transition: all var(--fast) var(--ease-out);
}

#scrollToTop a:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201, 147, 83, 0.35);
}

/* ---- Navbar tweaks (stuck state) -------------------------- */

#menu-0.mbr-navbar--stuck .navbar,
#menu-0 .navbar {
  background: rgba(12, 12, 14, 0.95) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* Link hover underlines */
#menu-0 .link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
}

#menu-0 .link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  -webkit-transition: width var(--duration-mid) var(--ease-out);
  transition: width var(--duration-mid) var(--ease-out);
}

#menu-0 .link:hover::after,
#menu-0 .bg-color.transparent.opened .link:hover::after {
  width: 100%;
}

#menu-0 .link:hover,
#menu-0 .bg-color.transparent.opened .link:hover {
  color: var(--accent) !important;
}

/* Mobile hamburger icon */
#menu-0 .hamburger-icon span,
#menu-0 .navbar-toggler span {
  background-color: var(--accent-light);
}

/* ---- Responsive Overrides --------------------------------- */

@media (max-width: 991px) {
  #header1-1 .mbr-table-cell {
    min-height: 55vh;
  }

  #index-features6-0 .mbr-cards-col > .container {
    padding: 2.25rem 1.75rem;
  }

  .reveal-group {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  #header1-1 .mbr-section-title {
    font-size: 2rem;
    letter-spacing: -1px;
  }

  #header1-1 .mbr-section-lead {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta a {
    text-align: center;
  }
}

/* ---- Hero Background Overlay (upgrade) ------------------- */

#header1-1 .mbr-overlay {
  background: linear-gradient(160deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.65) 100%) !important;
}

/* ---- Subtle grain texture overlay (optional depth) -------- */

#header1-1::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ---- CTA link styling (email) ---------------------------- */

.mbr-section-lead a {
  color: var(--accent-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 201, 155, 0.4);
  -webkit-transition: border-color var(--fast);
  transition: border-color var(--fast);
}

.mbr-section-lead a:hover {
  border-bottom-color: var(--accent-light);
}
