/*
Theme Name: Massage to Bond Forest Herbal Ultra Lite
Theme URI: https://massagetobond.com/
Author: Massage to Bond
Description: Lightweight forest/herbal WooCommerce theme optimized for mobile performance.
Version: 9.0.0
Text Domain: massage-to-bond
*/

:root{
  --paper:#f4f3e8;
  --sage:#e7edde;
  --sage-2:#dce6d5;
  --forest:#213629;
  --text:#33483a;
  --muted:#5b6b5e;
  --line:#b9c8b4;
  --accent:#4e6b50;
  --danger:#962f2f;
  --max:1120px;
}

*,
*::before,
*::after{
  box-sizing:border-box;
  animation:none!important;
  transition:none!important;
}

html{
  scroll-behavior:auto;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  background:var(--paper);
  color:var(--text);
  font-family:Georgia,"Times New Roman",serif;
  font-size:17px;
  line-height:1.6;
  overflow-x:hidden;
}

img,svg,video,canvas,iframe{
  max-width:100%;
  height:auto;
}

a{
  color:#285b35;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}

button,
input,
select,
textarea{
  font:inherit;
}

.announcement{
  padding:9px 16px;
  background:#dbe5d5;
  color:var(--forest);
  text-align:center;
  font:600 13px/1.35 Arial,sans-serif;
}

.site-header{
  position:relative;
  background:rgba(244,243,232,.98);
  border-bottom:1px solid var(--line);
}

.header-inner{
  width:min(var(--max),calc(100% - 32px));
  margin:0 auto;
  min-height:70px;
  display:flex;
  align-items:center;
  gap:22px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--forest);
  text-decoration:none;
  white-space:nowrap;
}

.brand-mark{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--accent);
  color:#fffbed;
  font:700 18px/1 Arial,sans-serif;
}

.brand-name{
  font-size:20px;
  font-weight:700;
}

.site-nav{
  margin-left:auto;
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px 18px;
}

.site-nav a,
.site-nav li{
  list-style:none;
}

.site-nav a{
  color:var(--forest);
  text-decoration:none;
  font:600 14px/1.25 Arial,sans-serif;
}

.cart-link{
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:6px;
  text-decoration:none;
  font:600 14px/1 Arial,sans-serif;
}

.site-main{
  display:block;
  width:100%;
}

.container{
  width:min(var(--max),calc(100% - 40px));
  margin:0 auto;
}

.hero{
  padding:54px 0;
  background:var(--sage);
}

.hero-booking-layout{
  display:grid;
  grid-template-columns:minmax(0,.75fr) minmax(0,1.4fr);
  gap:46px;
  align-items:start;
}

.hero-intro{
  padding-top:14px;
}

.eyebrow{
  margin:0 0 8px;
  color:var(--muted);
  font:700 12px/1.2 Arial,sans-serif;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.display{
  margin:0 0 18px;
  color:var(--forest);
  font-size:clamp(44px,6vw,78px);
  line-height:.98;
  font-style:italic;
  font-weight:500;
  letter-spacing:-.03em;
}

.lead{
  color:var(--text);
  font-size:1.08rem;
  line-height:1.65;
}

.hero-booking-panel{
  min-width:0;
  padding:28px;
  border:1px solid var(--line);
  background:rgba(244,243,232,.78);
}

.hero-booking-panel h2,
.section-title,
.cta h2,
.entry-title,
.page-title,
h1,h2,h3,h4,h5,h6{
  color:var(--forest);
}

.hero-booking-panel h2{
  margin:0 0 20px;
  font-size:clamp(30px,4vw,46px);
  line-height:1.08;
  font-weight:500;
}

.section{
  padding:68px 0;
  background:var(--paper);
}

.section:nth-of-type(even),
.section--mist{
  background:var(--sage);
}

.section-head{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);
  gap:34px;
  align-items:end;
  margin-bottom:34px;
}

.section-title{
  margin:0;
  max-width:780px;
  font-size:clamp(34px,5vw,58px);
  line-height:1.05;
  font-weight:500;
}

.editorial-grid,
.review-grid,
.business-feature-grid{
  display:grid;
  gap:18px;
}

.editorial-grid{
  grid-template-columns:1.3fr .7fr;
}

.review-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.business-feature-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.feature-card,
.service-card,
.review-card,
.business-feature-card,
.faq-preview details{
  display:block;
  min-width:0;
  border:1px solid var(--line);
  background:#eef2e8;
  color:var(--text);
  text-decoration:none;
}

.feature-card,
.service-card,
.review-card,
.business-feature-card{
  padding:24px;
}

.feature-card--image{
  background:var(--accent);
  color:#fffbed;
}

.feature-card--image h3,
.feature-card--image p{
  color:#fffbed!important;
}

.service-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.review-stars{
  color:#6a7650;
  letter-spacing:.1em;
}

.review-card blockquote{
  margin:12px 0;
}

.review-card footer{
  color:var(--muted);
  font-size:.9rem;
}

.business-feature-card > span{
  display:block;
  color:var(--muted);
  font:700 12px/1 Arial,sans-serif;
  letter-spacing:.16em;
}

.business-feature-card h3{
  margin:12px 0 8px;
}

.faq-preview details{
  padding:18px 20px;
  margin:0 0 10px;
}

.faq-preview summary{
  cursor:pointer;
  color:var(--forest);
  font-weight:700;
}

.cta{
  padding:52px 0;
  background:var(--sage-2);
  border-top:1px solid var(--line);
}

.cta-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.cta h2{
  margin:0;
  font-size:clamp(32px,4vw,52px);
}

.btn,
button,
.button,
input[type="submit"],
input[type="button"],
.wp-element-button,
.wp-block-button__link{
  display:inline-block;
  border:1px solid #3f5d43!important;
  border-radius:6px!important;
  padding:12px 17px!important;
  background:var(--accent)!important;
  color:#fffbed!important;
  font:700 15px/1.2 Arial,sans-serif!important;
  text-decoration:none!important;
  box-shadow:none!important;
  text-shadow:none!important;
  cursor:pointer;
}

.site-footer{
  padding:50px 0 26px;
  background:#dfe7d9;
  color:var(--text);
}

.footer-grid{
  display:grid;
  grid-template-columns:1.5fr repeat(3,1fr);
  gap:28px;
}

.site-footer ul{
  padding:0;
  margin:0;
  list-style:none;
}

.site-footer li{
  margin:7px 0;
}

.site-footer h4{
  margin-top:0;
}

.footer-bottom{
  margin-top:34px;
  padding-top:18px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:var(--muted);
  font-size:.9rem;
}

/* Generic WordPress pages */
.entry-content,
.page-content{
  min-width:0;
}

.entry-content > *,
.page-content > *{
  max-width:100%;
}

/* Forms */
input,
select,
textarea{
  width:100%;
  max-width:100%;
  min-width:0;
  padding:11px 12px;
  border:1px solid #9fb29d;
  border-radius:4px;
  background:#f7f6ed;
  color:#1f3325;
}

textarea{
  min-height:120px;
}

input::placeholder,
textarea::placeholder{
  color:#67756a;
  opacity:1;
}

/* WooCommerce */
.woocommerce,
.woocommerce-page{
  color:var(--text);
}

.woocommerce table.shop_table{
  width:100%;
  border-collapse:collapse;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td{
  padding:12px;
  border:1px solid var(--line);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error{
  padding:14px 16px!important;
  border:1px solid var(--line)!important;
  background:#edf1e7!important;
  color:var(--text)!important;
}

.woocommerce-error{
  border-color:#bc8f8f!important;
  color:var(--danger)!important;
}

/* Booking plugin readability and layout */
.mtb-booking-shell,
.mtb-booking-shell *,
.mtb-watercolor-booking-form,
.mtb-watercolor-booking-form *{
  max-width:100%;
  box-sizing:border-box;
}

.mtb-booking-shell{
  color:var(--text)!important;
}

.mtb-booking-shell p,
.mtb-booking-shell label,
.mtb-booking-shell span,
.mtb-booking-shell small{
  color:var(--text)!important;
  opacity:1!important;
}

.mtb-booking-shell h2,
.mtb-booking-shell h3,
.mtb-booking-shell h4,
.mtb-booking-shell strong{
  color:var(--forest)!important;
  opacity:1!important;
}

.mtb-form-error-banner,
.mtb-required-message,
.mtb-error-message{
  color:var(--danger)!important;
  opacity:1!important;
}

.mtb-required-error{
  border:2px solid #b23a3a!important;
  background:#f5e2e2!important;
}

.mtb-required-wrap{
  outline:2px solid #b23a3a!important;
  outline-offset:3px!important;
}

/* Nothing may be hidden waiting for animation. */
.reveal,
.reveal.is-visible,
.reveal.visible,
.reveal.is-exiting,
.fade-in,
.fade-out,
.animate,
.animated,
[data-animate],
[data-reveal]{
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
  filter:none!important;
  display:block;
}

/* Mobile-first emergency simplification */
@media(max-width:820px){
  body{
    font-size:16px;
  }

  .announcement{
    font-size:12px;
  }

  .header-inner{
    width:calc(100% - 24px);
    min-height:0;
    padding:13px 0;
    flex-wrap:wrap;
    gap:10px 14px;
  }

  .brand{
    width:100%;
  }

  .site-nav{
    order:3;
    width:100%;
    margin-left:0;
    justify-content:flex-start;
    gap:10px 14px;
  }

  .cart-link{
    position:absolute;
    right:12px;
    top:14px;
  }

  .container{
    width:calc(100% - 28px);
  }

  .hero{
    padding:30px 0 36px;
  }

  .hero-booking-layout,
  .section-head,
  .editorial-grid,
  .review-grid,
  .business-feature-grid,
  .footer-grid{
    display:block;
  }

  .hero-intro{
    padding:0 0 24px;
  }

  .display{
    font-size:44px;
  }

  .hero-booking-panel{
    width:100%;
    padding:20px 14px;
    background:#edf1e7;
  }

  .section{
    padding:46px 0;
  }

  .section-head{
    margin-bottom:24px;
  }

  .section-head .lead{
    margin-top:14px;
  }

  .feature-card,
  .service-card,
  .review-card,
  .business-feature-card{
    margin-bottom:14px;
  }

  .cta-box,
  .footer-bottom{
    display:block;
  }

  .cta .btn{
    margin-top:18px;
  }

  .footer-grid > div{
    margin-bottom:24px;
  }

  input,
  select,
  textarea{
    font-size:16px!important;
  }

  .woocommerce table.shop_table{
    display:block;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  /* Booking form must stay in normal flow on mobile. */
  .mtb-booking-shell,
  .mtb-watercolor-booking-form,
  .mtb-booking-step,
  .mtb-step-content,
  .mtb-field-pair,
  .mtb-full-field,
  .mtb-location-check,
  .mtb-consent-box,
  .mtb-refund-policy-note,
  .mtb-live-total{
    position:relative!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    opacity:1!important;
    visibility:visible!important;
    transform:none!important;
    filter:none!important;
    contain:none!important;
    will-change:auto!important;
  }
}
