/* Terrasta. — a place for connected care. Scoped to the corporate home. */
.terrasta-home {
  --home-ink: #29383b;
  --home-muted: #5f6c6c;
  --home-paper: #faf8f4;
  --home-line: #dfdfd8;
  --home-popi: #b94d16;
  --home-popi-deep: #9d3f13;
  --home-popi-paper: #fff5e8;
  --home-popi-line: #edc6a6;
  --home-mr-ink: #132a34;
  --home-mr-accent: #80dfd0;
  --home-mr-muted: #c1d0d3;
  padding-top: 80px;
  color: var(--home-ink);
  background: var(--home-paper);
  line-break: strict;
  font-size: 17px;
  line-height: 1.9;
}
.terrasta-home .container { width: min(100% - 44px, 1240px); padding: 0; }
.terrasta-home .site-header { height: 80px; box-shadow: none; }
.terrasta-home .header-top { height: 80px; padding: 0; display: flex; align-items: center; }
.terrasta-home .logo img { height: 58px !important; }
.terrasta-home .common-nav a { font-size: 16px; }
.terrasta-home .common-nav ul { gap: 20px; }
.terrasta-home .btn-contact-header { padding: 13px 22px; box-shadow: none; }
.terrasta-home .common-nav { display: none; }
.terrasta-home .mobile-menu-btn { display: block; }
.terrasta-home a:focus-visible, .terrasta-home button:focus-visible { outline: 3px solid #b84432; outline-offset: 5px; }
.terrasta-home section[id] { scroll-margin-top: 96px; }
.terrasta-home .tr-home-hero { padding: 36px 0 0; background: var(--home-paper); }
.tr-home-hero-grid { display: grid; gap: 32px; align-items: center; }
.tr-home-hero-copy { min-width: 0; }
.terrasta-home .tr-home-eyebrow { margin: 0 0 28px; font: 600 12px/1.7 'Noto Sans JP', sans-serif; letter-spacing: .16em; color: #7a4738; }
.tr-home-eyebrow span { padding: 0 8px; color: #9caaa1; }
.terrasta-home .tr-home-hero h1 { margin: 0 0 25px; font-size: clamp(28px, 8vw, 44px); letter-spacing: -.04em; line-height: 1.52; color: var(--home-ink); }
.tr-home-hero h1 > span { display: block; white-space: nowrap; }
.tr-home-hero h1 em { color: #b24030; font-style: normal; }
.terrasta-home .tr-home-hero-lead { margin: 0 0 30px; color: var(--home-muted); font-size: 17px; line-height: 1.9; }
.tr-home-hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 500px; }
.tr-home-action { display: grid; gap: 5px; padding: 17px 15px; border: 1px solid #bcc9bf; border-radius: 3px; color: var(--home-ink); text-decoration: none; transition: background .2s, border-color .2s; }
.tr-home-action small { font-size: 14px; line-height: 1.6; }
.tr-home-action small > span { display: inline-block; white-space: nowrap; }
.tr-home-action > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 21px; font-weight: 700; }
.tr-home-action b { font-size: 20px; font-weight: 400; }
.tr-home-action:hover { color: var(--home-ink); background: #e9eee6; border-color: var(--home-ink); }
.tr-home-action--primary { color: white; background: var(--home-popi); border-color: var(--home-popi); }
.tr-home-action--primary:hover { color: white; background: var(--home-popi-deep); border-color: var(--home-popi-deep); }
.tr-home-action--meright { color: white; background: var(--home-mr-ink); border-color: var(--home-mr-ink); box-shadow: inset 0 -2px var(--home-mr-accent); }
.tr-home-action--meright small { color: var(--home-mr-muted); }
.tr-home-action--meright > span { color: var(--home-mr-accent); }
.tr-home-action--meright:hover { color: white; background: #1d3c48; border-color: #38727c; }
.tr-home-scroll { display: inline-flex; gap: 36px; align-items: center; margin-top: 24px; font-size: 16px; color: var(--home-muted); text-decoration: none; }
.tr-home-scroll span { font-size: 19px; }
.terrasta-home .tr-home-location { display: flex; justify-content: space-between; gap: 16px; padding: 21px 0; color: var(--home-muted); font-size: 14px; }
.tr-home-location a { flex-shrink: 0; color: var(--home-ink); text-decoration: none; }
.tr-home-location a span { margin-left: 13px; }
.terrasta-home .tr-home-intro { padding: 38px 0; border-top: 1px solid var(--home-line); border-bottom: 1px solid var(--home-line); background: #eef0e9; }
.tr-home-intro-grid { display: grid; gap: 18px; }
.terrasta-home .tr-home-section-label { margin: 0; font-size: 26px; line-height: 1.7; letter-spacing: .03em; font-weight: 700; }
.tr-home-intro-grid > div > p { font-size: 17px; line-height: 1.9; margin-bottom: 18px; }
.tr-home-intro a { color: inherit; text-underline-offset: 4px; }
.tr-home-intro-contact { display: flex; gap: 6px 20px; align-items: baseline; flex-wrap: wrap; margin-bottom: 0 !important; }
.tr-home-intro-contact > a { font-size: 23px; letter-spacing: .02em; text-decoration: none; }
.tr-home-intro-contact span { font-size: 14px; }
.tr-home-intro-contact small { width: 100%; color: #61716b; font-size: 14px; }
.terrasta-home #about { padding: 76px 0; background: #fff; }
.terrasta-home .about-content { display: grid; gap: 48px; }
.terrasta-home .about-text { min-width: 0; }
.terrasta-home .about-text h2 { color: var(--home-ink); font-size: clamp(25px, 2.7vw, 35px); line-height: 1.65; letter-spacing: -.03em; margin-bottom: 24px; }
.terrasta-home .about-text p:not(.tr-home-eyebrow), .terrasta-home .about-text li { font-size: 17px; line-height: 1.9; }
.terrasta-home #services { padding: 76px 0; background: var(--home-paper); }
.tr-home-services-heading { margin-bottom: 38px; }
.terrasta-home .tr-home-services-heading h2 { color: var(--home-ink); font-size: clamp(25px, 3vw, 36px); letter-spacing: -.03em; line-height: 1.6; }
.terrasta-home .services-grid { gap: 24px; }
.terrasta-home .service-card { padding: 30px 24px; border-radius: 4px; border: 1px solid var(--home-line); box-shadow: none; background: #fff; overflow: hidden; }
.terrasta-home .tr-home-service-popi { background: var(--home-popi-paper); border-color: var(--home-popi-line); border-top: 3px solid #e68a39; color: #42372f; }
.terrasta-home .tr-home-service-meright { background: var(--home-mr-ink); border-color: #355360; border-top: 3px solid var(--home-mr-accent); color: #f4f7f6; box-shadow: 0 16px 36px rgba(19, 42, 52, .1); }
.terrasta-home .tr-home-service-number { display: flex; flex-grow: 0; align-items: center; gap: 15px; color: var(--home-muted); font-size: 20px; font-family: Georgia, serif; margin: 0 0 26px; }
.tr-home-service-number span { font-family: 'Noto Sans JP', sans-serif; font-size: 12px; letter-spacing: .07em; }
.terrasta-home .service-card .card-header { min-height: 108px; text-align: left !important; }
.terrasta-home .service-card .card-header img { display: block; }
.terrasta-home .service-card .card-header h3 { padding-top: 15px; margin-bottom: 5px; font-size: 32px; font-style: normal; background: none; color: inherit; }
.terrasta-home .service-card .card-header h4 { font-size: 16px !important; color: var(--home-muted); font-weight: 500; }
.terrasta-home .service-card > p:not(.tr-home-service-number), .terrasta-home .service-card li { font-size: 17px; line-height: 1.9; }
.terrasta-home .service-card .btn { border-radius: 3px; padding: 15px 16px; font-size: 16px !important; box-shadow: none; }
.terrasta-home .btn-meright { color: white; background: var(--home-mr-ink); box-shadow: none; }
.terrasta-home .btn-meright:hover { background: #1d3c48; }
.terrasta-home .btn-popi { background: var(--home-popi); box-shadow: none; }
.terrasta-home .btn-popi:hover { background: var(--home-popi-deep); }
.terrasta-home .btn-terrasta { background: #b24030; box-shadow: none; }
.terrasta-home .card:hover { transform: none; }
.terrasta-home .tr-mobile-cta { padding-bottom: env(safe-area-inset-bottom, 0px); }
.terrasta-home .tr-mobile-cta a { display: flex; align-items: center; justify-content: center; }
.terrasta-home #ceo-message .container > div:last-child > div:last-child { min-width: 0 !important; }
.terrasta-home #contact .btn { min-width: 0 !important; max-width: 100%; }
.terrasta-home .fade-in-up { opacity: 1; transform: none; }

/* Keep the three real service photographs distinct and easy to understand. */
.tr-home-care-visual { min-width: 0; }
.tr-home-care-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: .85fr 1fr; gap: 10px; height: 480px; }
.tr-home-care-scene { position: relative; min-width: 0; min-height: 0; overflow: hidden; border-radius: 8px; color: white; background: #284d3f; text-decoration: none; }
.tr-home-care-scene--nursing { grid-row: 1 / 3; }
.tr-home-care-scene img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tr-home-care-scene--nursing img { object-position: 52% 63%; }
.tr-home-care-scene--rehab img { object-position: 54% 48%; }
.tr-home-care-scene--meright img { object-position: 48% 66%; }
.tr-home-care-scene::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(10, 25, 21, .85)); pointer-events: none; }
.tr-home-care-scene--nursing::after, .tr-home-care-scene--rehab::after { background: linear-gradient(transparent, rgba(59, 30, 16, .9)); }
.tr-home-care-scene--meright::after { background: linear-gradient(transparent, rgba(10, 29, 39, .92)); }
.tr-home-care-scene:hover img { transform: scale(1.025); }
.tr-home-care-number { position: absolute; top: 14px; left: 14px; padding: 3px 9px; background: rgba(20, 39, 31, .8); border-radius: 3px; color: white; font-size: 14px; line-height: 1.6; }
.tr-home-care-scene--nursing .tr-home-care-number, .tr-home-care-scene--rehab .tr-home-care-number { background: var(--home-popi); }
.tr-home-care-scene--meright .tr-home-care-number { background: var(--home-mr-ink); color: var(--home-mr-accent); }
.tr-home-care-caption { position: absolute; left: 16px; right: 14px; bottom: 18px; z-index: 1; display: grid; gap: 4px; color: white; }
.tr-home-care-caption strong { font-size: 21px; line-height: 1.5; }
.tr-home-care-caption > span { font-size: 14px; line-height: 1.6; }
.tr-home-care-caption > span > span { display: inline-block; white-space: nowrap; }
.terrasta-home .tr-home-care-footer { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 16px 0 0; color: var(--home-ink); font-size: 14px; }
.tr-home-care-footer > span { color: #a14a32; }
.tr-home-base-photo { margin: 0; width: 100%; min-width: 0; }
.tr-home-base-photo > img { display: block; width: 100%; height: auto; max-height: 570px; aspect-ratio: 3 / 4; object-fit: cover; object-position: bottom; border-radius: 5px; }
.tr-home-base-photo figcaption { display: grid; gap: 7px; padding-top: 20px; font-size: 15px; line-height: 1.7; color: var(--home-muted); }
.tr-home-base-photo figcaption strong { color: var(--home-ink); font-size: 22px; }
.tr-home-base-photo figcaption a { width: fit-content; padding: 6px 0; color: #284d3f; text-underline-offset: 5px; font-size: 16px; }
.tr-home-service-photos { display: grid; gap: 8px; min-height: 270px; aspect-ratio: 3 / 2; margin-bottom: 26px; }
.tr-home-service-photos--split { grid-template-columns: 1fr 1fr; }
.tr-home-service-photos figure { position: relative; margin: 0; min-width: 0; min-height: 0; overflow: hidden; border-radius: 4px; }
.tr-home-service-photos img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 65%; }
.tr-home-service-photos--split figure:nth-child(2) img { object-position: 53% 50%; }
/* Frame the practitioner against the concrete wall, excluding the tiles on the right. */
.tr-home-service-meright .tr-home-service-photos img { width: 136%; max-width: none; object-position: 0 43%; }
.tr-home-service-photos figcaption { position: absolute; bottom: 0; left: 0; padding: 8px 12px; color: #fff; background: rgba(22, 52, 40, .94); font-size: 15px; line-height: 1.6; }
.tr-home-service-popi .tr-home-service-photos figcaption { background: var(--home-popi); }
.tr-home-service-meright .tr-home-service-photos figcaption { background: var(--home-mr-ink); color: var(--home-mr-accent); }
.terrasta-home .tr-home-popi-brand { display: flex; align-items: flex-start; gap: 14px; }
.terrasta-home .tr-home-popi-brand img { width: 65px; height: 65px; flex-shrink: 0; object-fit: contain; }
.terrasta-home .tr-home-popi-brand h3 { padding-top: 0; margin-bottom: 3px; color: var(--home-popi); font-size: 30px; }
.terrasta-home .tr-home-popi-brand p { font-size: 16px; line-height: 1.6; color: var(--home-muted); margin: 0; }
.terrasta-home .about-text .nwp, .terrasta-home .service-card .nwp { white-space: normal; }
.terrasta-home .section-heading--center > p:last-child, .terrasta-home .strength-card > p:last-child { font-size: 17px; line-height: 1.9; }
.terrasta-home .strength-card h3 { font-size: 21px; }

/* Each service keeps its own identity within the neutral corporate page. */
.terrasta-home .tr-home-service-popi .tr-home-service-number { color: var(--home-popi-deep); }
.terrasta-home .tr-home-service-popi .card-header h3 { color: var(--home-popi); padding-top: 0; }
.terrasta-home .tr-home-service-popi li::marker { color: var(--home-popi); }
.terrasta-home .tr-home-service-meright .tr-home-service-number { color: var(--home-mr-accent); }
.terrasta-home .tr-home-service-meright .card-header h3 { color: var(--home-mr-accent); letter-spacing: .04em; font-size: 36px; }
.terrasta-home .tr-home-service-meright .card-header h4 { color: var(--home-mr-muted); }
.terrasta-home .tr-home-service-meright li { color: var(--home-mr-muted); }
.terrasta-home .tr-home-service-meright li::marker { color: var(--home-mr-accent); }
.tr-home-service-credential { display: inline-block; padding: 5px 0 8px; color: var(--home-mr-accent); font-size: 15px; letter-spacing: .025em; }
.terrasta-home .tr-home-service-meright .btn-meright { color: var(--home-mr-ink); background: var(--home-mr-accent); border: 1px solid var(--home-mr-accent); }
.terrasta-home .tr-home-service-meright .btn-meright:hover { background: #a0ece0; border-color: #a0ece0; }
.terrasta-home .tr-home-service-meright a:focus-visible { outline-color: var(--home-mr-accent); }

@media (min-width: 700px) {
  .terrasta-home .container { width: min(100% - 80px, 1240px); }
  .terrasta-home .tr-home-hero { padding-top: 48px; }
  .terrasta-home .tr-home-hero h1 { font-size: 44px; }
  .tr-home-intro-grid { grid-template-columns: 220px 1fr; gap: 44px; }
  .terrasta-home .about-content { grid-template-columns: .8fr 1fr; gap: 48px; }
  .terrasta-home .service-card { padding: 34px; }
  .tr-home-care-grid { height: 580px; }
}
@media (min-width: 1000px) {
  .tr-home-hero-grid { grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 4vw, 64px); }
  .terrasta-home .tr-home-hero h1 { font-size: clamp(34px, 3.25vw, 46px); }
  .terrasta-home .tr-home-hero-lead { font-size: 18px; }
  .tr-home-action { padding: 20px; }
  .tr-home-action small { font-size: 14px; }
  .tr-home-action > span { font-size: 22px; }
  .terrasta-home .tr-home-location { padding: 22px 0 28px; }
  .terrasta-home #about, .terrasta-home #services { padding: 92px 0; }
  .terrasta-home .about-content { grid-template-columns: .85fr 1fr; gap: 72px; }
  .terrasta-home { font-size: 18px; }
  .tr-home-intro-grid > div > p, .terrasta-home .about-text p:not(.tr-home-eyebrow), .terrasta-home .about-text li, .terrasta-home .service-card > p:not(.tr-home-service-number), .terrasta-home .service-card li { font-size: 18px; }
  .tr-home-care-grid { height: 590px; }
}
@media (min-width: 1200px) {
  .terrasta-home .common-nav { display: block; }
  .terrasta-home .mobile-menu-btn { display: none; }
}
@media (max-width: 699px) {
  .terrasta-home { padding-bottom: 65px; }
  .terrasta-home main .nwp { white-space: normal; }
  .terrasta-home .tr-home-location { font-size: 14px; }
  .terrasta-home .tr-mobile-cta { display: flex !important; }
  .terrasta-home #ceo-message { padding: 64px 0 !important; }
  .terrasta-home #ceo-message .container > div:last-child { flex-direction: column; }
  .terrasta-home #ceo-message .container > div:last-child > div { flex: auto !important; width: 100%; }
  .terrasta-home #ceo-message .container > div:last-child > div:first-child > div:first-child { max-width: 100%; }
  .terrasta-home .strengths-grid { grid-template-columns: minmax(0, 1fr); }
  .terrasta-home #message h2 { font-size: 27px; line-height: 1.65; }
  .tr-home-hero-grid { gap: 22px; }
  .tr-home-hero-copy { display: contents; }
  .terrasta-home .tr-home-hero-copy > .tr-home-eyebrow { order: 0; margin-bottom: 0; }
  .terrasta-home .tr-home-hero h1 { order: 1; margin-bottom: 0; }
  .tr-home-hero h1 > span:first-child, .tr-home-hero h1 > span:nth-child(2) { display: inline; }
  .tr-home-care-visual { order: 2; }
  .terrasta-home .tr-home-hero-lead { order: 3; margin-bottom: 0; }
  .tr-home-hero-actions { order: 4; }
  .tr-home-scroll { order: 5; margin-top: 0; }
  .tr-home-care-grid { height: 450px; gap: 8px; }
  .tr-home-care-caption { left: 12px; right: 10px; bottom: 14px; }
  .tr-home-care-caption strong { font-size: 17px; }
  .tr-home-care-caption > span { font-size: 14px; }
  .tr-home-care-number { top: 10px; left: 10px; }
  .tr-home-care-footer { justify-content: flex-start; }
  .tr-home-action { padding: 16px 12px; }
  .tr-home-action small { min-height: 44px; display: block; }
  .tr-home-service-photos { min-height: 220px; }
  .tr-home-service-photos figcaption { padding: 7px 8px; font-size: 14px; }
  .terrasta-home .service-card { padding: 24px 18px; }
  .terrasta-home .tr-home-service-number { font-size: 18px; gap: 12px; }
  .tr-home-service-number span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .terrasta-home *, .terrasta-home *::before, .terrasta-home *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
